Author |
Message |
porcupinepc
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA
|
Posted:
Sat Jan 24, 2004 9:40 pm |
|
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
www.porcupinepc.com/forums |
|
|
 |
 |
Nukeum66
Life Cycles Becoming CPU Cycles

Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA
|
Posted:
Sat Jan 24, 2004 10:57 pm |
|
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! |
_________________ Scott Johnson MIS Ubuntu/Linux 11.10 |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sun Jan 25, 2004 12:52 am |
|
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  |
|
|
|
 |
Nukeum66

|
Posted:
Sun Jan 25, 2004 7:08 am |
|
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? |
|
|
|
 |
porcupinepc

|
Posted:
Sun Jan 25, 2004 7:18 am |
|
can you provide me with the corrected mainfile code?
Joe |
|
|
|
 |
Nukeum66

|
Posted:
Sun Jan 25, 2004 7:37 am |
|
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! it explains what needs to be done.
You need to rule out all other possible problem before you resort to editing the mainfile.php. |
|
|
|
 |
porcupinepc

|
Posted:
Sun Jan 25, 2004 8:56 am |
|
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
www.porcupinepc.com/forums |
|
|
|
 |
Raven

|
Posted:
Sun Jan 25, 2004 8:57 am |
|
|
|
 |
porcupinepc

|
Posted:
Sun Jan 25, 2004 9:06 am |
|
Thanks Raven. I printed out the article and will keep it for future reference.
Joe |
|
|
|
 |
Nukeum66

|
Posted:
Sun Jan 25, 2004 9:20 am |
|
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.  |
|
|
|
 |
porcupinepc

|
Posted:
Sun Jan 25, 2004 9:49 am |
|
Well, a big thank you to Raven.
Joe |
|
|
|
 |
|