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.7
Author Message
mrix
Client



Joined: Dec 04, 2004
Posts: 757

PostPosted: Wed May 04, 2005 10:19 am Reply with quote

Hello all, if I click on any of the news posts topic icons I get The html tags you attempted to use are not allowed error, the thing is I havnt used any html tag and I still get the error?, any idea`s.
thanks for any help
mrix
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu May 05, 2005 8:18 am Reply with quote

I have not even loaded 7.7 yet. But, you can try this. In mainfile.php you have this code
Code:
foreach ($_GET as $sec_key => $secvalue) {

   if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||
   (eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
   (eregi("\"", $secvalue)) ||
   (eregi("forum_admin", $sec_key)) ||
   (eregi("inside_mod", $sec_key))) {
      die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
   }
}

foreach ($_POST as $secvalue) {
   if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $secvalue))) {
      die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
   }
}

It's probably either the style or the img tag that is the issue. Start by commenting out the references to style. If that doesn't work, then try img. Now that's a quick fix. There may need to be a more permanent one, but that should get you by.
 
View user's profile Send private message
mrix







PostPosted: Thu May 05, 2005 10:26 am Reply with quote

Hello, I commented out both style and img references but no joy unfortunately.
thanks
mrix
 
mrix







PostPosted: Sun May 22, 2005 12:19 pm Reply with quote

Hello all, still have this problem, I re-installed the latest patch but still have no joy, I am wondering now if my database tables could cause this problem?, its the only problem left on my site and is becoming an headache to be honest.
Thanks for any idea`s
Cheers
mrix
phpnuke 7.7 with latest patch
latest sentinal
GT-Nextgen latest
 
Raven







PostPosted: Sun May 22, 2005 1:05 pm Reply with quote

Try this. Remove or comment out all the gt code and see if you still get that error. Let's rule out the GT before trying anything else.
 
mrix







PostPosted: Sun May 22, 2005 2:38 pm Reply with quote

Hello Raven, I commented out the GT from the footer and header files and found that the function articles I wanted to work did work but not in short urls..... thing is the footer and header I have which are the latest from GT-Nextgen site are the latest files I know off, do you know of any newer footer and header files around? as I cant do without GT now its so very good.
thanks
mrix
 
Raven







PostPosted: Sun May 22, 2005 3:25 pm Reply with quote

I suspected the GT code Smile. Just play around with the GT code. It's probably very close to being correct and shouldn't be that hard to find.
 
mrix







PostPosted: Mon May 23, 2005 7:07 am Reply with quote

Hello again, I have spent a few hours now trying to sort this problem but with no joy unfortunately, Its probably something staring me in the face I expect as usual, oh well I`ll have to just hope GT-Nextgen starts getting updated soon.
Thanks for your help anyway
mrix
p.s posted right place this time "sorry again"
 
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Mon May 23, 2005 3:53 pm Reply with quote

This is all part of new function of using TinyMCE as the editor in PHP-Nuke 7.7 instead of using using the "old" methodology of having text tables.

I have touched on this a little in the moderators forum as well in my post that recommends that users NOT implement 7.7, but my point is that TinyMCE is an HTML editor that is putting HTML variables and code in places where baseline Nuke rules say HTML code is forbidden.

Now a few things to note.

First, check your mainfile.php for all instances of & not having the &amp; This will screw up the GT properties and yes, FB put that those stupid bugs back in again, and no, for some reason the "patched" updates did not address or fix this problem.

Most likely because Chatserv and others don't know about the issue yet and they would probably assume that since these problems have been fixed 20 times already, even as recent as 7.6 baseline, only a complete moron would put these bugs back in the base code again..... and yes, FB is that moron. You'll have to search all of your files for these types of old problems that WERE resolved, being re-introduced in the 7.7 code. Need I say more?

Next, if you have groups permissions from something like NSN groups, you need to go through the mainfile and add all of that code back in MANUALLY!

That should get you started anyway. But if you want my recommendation it would be to NOT use 7.7 but instead to revert to 7.6 at the very latest!

Just my two cents.

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
mrix







PostPosted: Mon May 23, 2005 4:15 pm Reply with quote

Hi 64bitguy, WoW many thanks for that informative reply
I think I better get to work!
at least I got something to work on.
thanks
mrix
 
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.7

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 ©