PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 10-11-2004, 05:21 AM   #1
rogerh
Green Mole
 
Join Date: Oct 2004
Posts: 1
Adding search box to every page (cont'd)

(Afraid vBulletin insisted that I start a new thread.)

In the previous thread on this subject [http://www.phpdig.net/forum/showthread.php?t=839] the instructions are to replace:

Quote:
if ((isset($relative_script_path)) && ($relative_script_path != ".") && ($relative_script_path != "..")) {
**exit();
}
However I can't find this exact string in config.php. The closest seems to be this:

Quote:
if ((!isset($relative_script_path)) || (($relative_script_path != ".") &&
($relative_script_path != "..") && ($relative_script_path != ABSOLUTE_SCRIPT_PATH))) {
// echo "\n\nPath not recognized!\n\n";
exit();
}
Maybe PhpDig has been updated since but I'd be grateful for new instructions.

Thanks.
rogerh is offline   Reply With Quote
Old 10-11-2004, 11:08 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Code:
<!-- set http://www.domain.tld/search/search.php to your link -->

<form action="http://www.domain.tld/search/search.php" method="post">
<input type="text" name="query_string"> <input type="submit" value="Go">
</form>
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search box on every page? chrisdgreen How-to Forum 3 07-29-2005 09:27 AM
Blank page after adding code mods Brewer External Binaries 1 07-06-2005 12:34 PM
Adding a thumbnail to each page...help? huge_nerd How-to Forum 1 11-16-2004 09:54 AM
Adding search box to every page Psycho1 How-to Forum 7 04-25-2004 08:04 AM
Search box on html page rafarspd How-to Forum 4 12-04-2003 06:37 AM


All times are GMT -8. The time now is 01:40 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.