PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Sat Jan 24, 2004 9:40 pm Reply with quote Back to top

I have a question regarding html code in v7.0

I am trying to figure out what html code i enter in order to have a link to a site. For example, on my site, i type out a "New Story" In this story, i want a link to a site. For example:

For more info, visit XYZSITE

When they click the word XYZSITE they go to that site. I tried using html code from Frontpage but Nuke said those tags are not allowed. I'd appreciate any pointers.

Thanks

Joe
Porcupine PC
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Jan 24, 2004 10:57 pm Reply with quote Back to top

Some words within a URL are not aloud, like the word Script for one.

This post at Nukecops should help you.

Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sun Jan 25, 2004 12:52 am Reply with quote Back to top

Check in your config.php file to see what tags are allowed. Then compare the FP tags to that array. Just a word of advice, scrap FP. It usually adds more code than is needed and also is usually proprietary code that only works in IE Wink
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sun Jan 25, 2004 7:08 am Reply with quote Back to top

I seen the link porcupinepc trying to use. It a link to Ravenphpscripts.com, I had the same problem when I tried to enter any link using the word script. The fix for me was editing the mainfile.php.

Is there a better fix for this problem?
View user's profile Send private message Visit poster's website
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Sun Jan 25, 2004 7:18 am Reply with quote Back to top

can you provide me with the corrected mainfile code?

Joe
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sun Jan 25, 2004 7:37 am Reply with quote Back to top

Is that the problem your having, entering curtain words or are you having trouble with all URL's/Links? Read Raven's Post here
Only registered users can see links on this board!
Get registered or login to the forums!
it explains what needs to be done. Wink

You need to rule out all other possible problem before you resort to editing the mainfile.php.
View user's profile Send private message Visit poster's website
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Sun Jan 25, 2004 8:56 am Reply with quote Back to top

Thanks to Nukem66 for the fix.

For everyone else, backup your mainfile.php and edit all instances of "script"

Here's the edited code:

foreach ($_GET as $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("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue))) {
die ("I don't like you...");
}
}

foreach ($_POST as $secvalue) {
if (/*(eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||*/ (eregi("<[^>]*style*\"?[^>]*>", $secvalue))) {
Header("Location: index.php");
die();
}
}



Joe
PorcupinePC
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sun Jan 25, 2004 8:57 am Reply with quote Back to top

Here is a good thread on it also
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Sun Jan 25, 2004 9:06 am Reply with quote Back to top

Thanks Raven. I printed out the article and will keep it for future reference.

Joe
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sun Jan 25, 2004 9:20 am Reply with quote Back to top

Don't thank me! I'm just passing along what I've learned from READING EVERTHING in this forum, so really you need to thank Raven. Very Happy
View user's profile Send private message Visit poster's website
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Sun Jan 25, 2004 9:49 am Reply with quote Back to top

Well, a big thank you to Raven.


Joe
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
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