Author |
Message |
allmichael
New Member


Joined: Oct 17, 2006
Posts: 3
|
Posted:
Tue Oct 17, 2006 2:09 pm |
|
Long time reader - first time poster here.
I am sure this has been posted somewhere and sorry if I repeat. But I have googled and searched forums for 4 months with no resolve.
I am running a hacked up, modded version of Nuke 7.9 with chatserv 3.1
I know, ugh. But us newbies have no ideas when we start from scratch. It took me a few months to find ravens site where I have seen the most community support.
I am down to these final bugs and if they are resolved I will be exremely happy. I have already looked into and sampled converting to a 7.6 version. Problem is this only leaves you with a whole new set of bugs if you trying using all your current modules and addons that won't work with a different version.
Please if any of these bugs ring a bell please reply:
Single quotes - will post as double quotes in many modules, especially blocks, and will not even post if submitted from the nucalendar.
target="_blank" - this is filtered out of content and all modules - imagine having a site where you can't have your link open in a new window
border="0" - this is filtered out of all content, modules, and blocks. It is simply ugly to have an image link when there is a purple border around it
I have tried with editor taken out of the script and this did not resolve any of the above.
Please help if you can lead me in the right direction for any of these bugs. I can post any script if needed. |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Tue Oct 17, 2006 3:39 pm |
|
Check your php magic quotes setting to address the quotes issue. You can override this several ways (a local php.ini or an htaccess setting).
The target="_blank" filter is likely related to the inability of 7.9 to check HTML. You might check the allowable_html setting in config.php, but I doubt that will work.
Same issue with border="0"... |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Tue Oct 17, 2006 4:31 pm |
|
I use 7.9 (for the time being...) and have no problems with border="0" in images. I have the editor disabled and I have 'img' => 2 in my AllowableHTML array in config.php.
Same with your target problem. Make sure you have 'a' => 2 in your AllowableHTML array.
I got NuCalendar to work with 7.9 after some futzing...it does sound like a magic quotes thing with you though.
My host switched its magic quote policy on me unannounced one day. It revealed many interesting bugs.... |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Oct 17, 2006 4:32 pm |
|
You may also want to try the latest 3.2b/3.3 patches from Chatserv. BUT, please, please, please, backup your entire site first before applying these. Also, if you have lots of mods, you must rationalize the changes.
The reason I suggest this is that it looks like there have been many fixes to the patches with regards to the old bad use of FixQuotes (which may be causing the extra single quotes you see) and it does assume that magic quotes are turned off. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Gremmie

|
Posted:
Tue Oct 17, 2006 4:44 pm |
|
Oh yeah, I forgot to add that I changed my FixQuotes function to look like this:
Code:
function FixQuotes ($what = "") {
return addslashes($what);
}
|
since the existing one in 7.9 was so badly broken. |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue Oct 17, 2006 7:52 pm |
|
First, disable magic_quotes_gpc in your .htaccess of php.ini file
In mainfile.php
Code:
FIND (x2)
($tmp != "")
CHANGE TO
(!empty($tmp))
DELETE
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">', $str);
|
Should solve your problems |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
allmichael

|
Posted:
Wed Oct 18, 2006 11:34 pm |
|
Thanks for the responses! I definately found the right forum!
Okay sorry to be newb. I have never used the .htaccess files. I googled and got the following line:
Code:php_flag magic_quotes_gpc off
|
But when I create the file and place this code in it I get a standard server error from my host "Site is not active please notify admin"
BTW - I assumed the file should be in the main nuke directory. And I can not find a php.ini file so I assume I do not have acces to it.
Here is my html allowable:
Code:$AllowableHTML = array("col"=>2,"td"=>2,"tr"=>2,"hr"=>1,"p"=>1,"font"=>2,"embed"=>2,"font color"=>2,"table"=>2,"b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1,"object"=>1,"img"=>2, "center"=>1, "target"=>2, "img src="=>2);
|
|
|
|
|
 |
montego

|
Posted:
Thu Oct 19, 2006 6:27 am |
|
allmichael, you may have to ask your host 1) if they allow you to use .htaccess, and 2) if they do, do they allow the particular override that you are using. |
|
|
|
 |
allmichael

|
Posted:
Tue Oct 24, 2006 9:47 am |
|
Thanks all! The quotes was definately a magic quotes problem! fixed!
I was hoping evaders solution may fix my html probs:
Suggested:
Quote: |
FIND (x2)
($tmp != "")
CHANGE TO
(!empty($tmp))
DELETE
FIND (x2)
($tmp != "")
CHANGE TO
(!empty($tmp))
DELETE
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">', $str);
|
I am just getting a blank screen when I delete line:
Quote: |
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">', $str);
|
|
|
|
|
 |
evaders99

|
Posted:
Tue Oct 24, 2006 12:08 pm |
|
Hmm I'm not sure why. That line doesn't seem to interact with anything else.
Could be you did the edit incorrectly.
You may need to post that snip of code around the line. Before and after, about 3 or 4 lines is usually enough |
|
|
|
 |
|