PhpDig.net

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

Reply
 
Thread Tools
Old 06-04-2005, 07:13 PM   #1
Gam-Man
Green Mole
 
Join Date: Jun 2005
Posts: 2
Show recent searches on a page other than list.php

Hey, I am new to PhpDig. It is great scripting, but I cannot seem to find a way to show recent searches on my homepage. Has anyone done this before? How would I do this?

Thanks!
-Gam
Gam-Man is offline   Reply With Quote
Old 06-04-2005, 10:39 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Upzip the attachment and FTP recentqueries.php to your PhpDig directory, the one that contains the search.php and list.php files.

In the PHP page that you wish to show the last ten PhpDig queries, place the following code, changing the two paths as needed:

Code:
chdir("/full/path/to/phpdig/dir");
include("recentqueries.php");
chdir("/full/path/to/return/dir");
Note that you may have to edit the HREF tag in the attached file, or SEARCH_PAGE in the PhpDig config file, to correctly link to your search page. It is up to you to edit to your preferences.
Attached Files
File Type: zip recentqueries.zip (1.2 KB, 10 views)
__________________
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


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
How to filter your searches yveslebeau How-to Forum 1 05-22-2006 11:01 PM
show results in an include (php) vuurvos How-to Forum 1 10-05-2005 06:44 AM
Forcing a page to always show up first in search results based on keyword derrickp How-to Forum 3 02-22-2005 12:01 PM
install.php doesn't show up in browser Nosmada Script Installation 12 12-23-2003 10:03 AM
Returning from a html page to a php page. rafarspd How-to Forum 2 12-04-2003 03:23 AM


All times are GMT -8. The time now is 11:25 PM.


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