PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Show recent searches on a page other than list.php (http://www.phpdig.net/forum/showthread.php?t=2032)

Gam-Man 06-04-2005 07:13 PM

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

Charter 06-04-2005 10:39 PM

1 Attachment(s)
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.


All times are GMT -8. The time now is 08:47 AM.

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