PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
allmichael
New Member
New Member


Joined: Oct 17, 2006
Posts: 3

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

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: 6044

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

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"...
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 Back to top

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


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

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

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


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

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

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


Joined: Apr 30, 2004
Posts: 3221

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

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


Joined: Oct 17, 2006
Posts: 3

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

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


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

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

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


Joined: Oct 17, 2006
Posts: 3

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

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


Joined: Apr 30, 2004
Posts: 3221

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

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

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum