Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9
Author Message
allmichael
New Member
New Member



Joined: Oct 17, 2006
Posts: 3

PostPosted: Tue Oct 17, 2006 2:09 pm Reply with quote

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 Sad

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.
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Tue Oct 17, 2006 3:39 pm Reply with quote

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!
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Tue Oct 17, 2006 4:31 pm Reply with quote

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 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Oct 17, 2006 4:32 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Tue Oct 17, 2006 4:44 pm Reply with quote

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

PostPosted: Tue Oct 17, 2006 7:52 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
allmichael







PostPosted: Wed Oct 18, 2006 11:34 pm Reply with quote

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







PostPosted: Thu Oct 19, 2006 6:27 am Reply with quote

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







PostPosted: Tue Oct 24, 2006 9:47 am Reply with quote

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







PostPosted: Tue Oct 24, 2006 12:08 pm Reply with quote

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
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©