View Single Post
Old 06-22-2004, 09:33 PM   #10
Destroyer X
Green Mole
 
Join Date: Jun 2004
Location: Oklahoma, U.S.A.
Posts: 19

Well everyone, first, I like to thank Charter for helping me out every step of the way. Because of his help, I nearly have http://www.destroyerx.net/search/search.php completely configured. While I wasn't intending on doing this, I'm going to add a link to the Search page on my sidebar of my layout.

Anyway, I restored config.php and search_function.php to their default settings (thank goodness, I backed those up). After that, I replaced:

if ($template == 'array' || is_file($template)) {
$phpdig_version = PHPDIG_VERSION;
$t_mstrings = compact('powered_by_link','title_message','phpdig_version','result_message'
,'nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','n
ext_link','templates_links');
$t_fstrings = phpdigMakeForm($query_string,$option,$limite,SEARCH_PAGE,$site,$path,'templ
ate',$template);
if ($template == 'array') {
return array_merge($t_mstrings,$t_fstrings,array('results'=>$table_results));
}
else {
$t_strings = array_merge($t_mstrings,$t_fstrings);
phpdigParseTemplate($template,$t_strings,$table_results);
}
}

with

// check that the paths are correct or use full paths
$my_page_header = get_my_includes("../../dir/header.html");
$my_page_footer = get_my_includes("../../dir/footer.html");

if ($template == 'array' || is_file($template)) {
$phpdig_version = PHPDIG_VERSION;
$t_mstrings = compact('my_page_header','my_page_footer','powered_by_link','title_message'
,'phpdig_version','result_message','nav_bar','ignore_message','ignore_comme
ss','pages_bar','previous_link','next_link','templates_links');
$t_fstrings = phpdigMakeForm($query_string,$option,$limite,SEARCH_PAGE,$site,$path,'templ
ate',$template);
if ($template == 'array') {
return array_merge($t_mstrings,$t_fstrings,array('results'=>$table_results));
}
else {
$t_strings = array_merge($t_mstrings,$t_fstrings);
phpdigParseTemplate($template,$t_strings,$table_results);
}
}

After fixing the "word wrapping", I removed

$my_page_header = get_my_includes("../../dir/header.html");

and

$my_page_footer = get_my_includes("../../dir/footer.html");

as well as removed them from

$t_mstrings = compact('my_page_header','my_page_footer',

etc.

Once that was done, I created destroyerx.php and placed it in the template folder. After that, I changed the template file and style to

//template file and style
$template = "/home/destroyerx/public_html/search/templates/destroyerx.php";

Well, I'm nearly done with completely configuring the template to suit my needs. There're a few questions remaining which should completely wrap up using PhpDig on my Web site. Here they are:

1.) On the top of http://www.destroyerx.net/search/search.php I have a search bar and a Go graphic button that I want to use for the search engine like how I used it for Perlfect Search. Is there anyway I can configure that search field to work with PhpDig instead and still keep the search bar and the Go graphic intact?

2.) I am also running a Website Poll on my Web site called Advanced Poll v2.03. When I go to http://www.destroyerx.net/search/search.php and scroll down to where the poll's at, I get the following:

set_template_set("Destroyer X Template"); // Destroyer X Template = template name echo $php_poll->poll_process("newest"); ?>

While it does that on the search page, on the other pages like http://www.destroyerx.net/staff.php the Website Poll will display fine. I'm suspecting I need to do an include, but I'm not completely sure. Can someone offer me assistance as to whether or not this is right, and if so, how would I word the include on search_function.php and the template destroyerx.php?

3.) On the bottom of http://www.destroyerx.net/search/search.php there's text saying "Powered by PhpDig." I was wanting to not only make the text for this slightly larger (after all, this is a good search engine, and I really want to promote it), but I was also wanting to include the version number of PhpDig I have on my Web site. Where can I go to do this?

Anyway, I would like to thank everyone for putting up with me and my questions. This is a great script, and the tech support here is very friendly and prompt to respond. Thank you so much everyone for your time and cooperation.

Ciao for now!
__________________
Visit the Destroyer X Network at http://www.destroyerx.net/

Last edited by Destroyer X; 06-22-2004 at 09:35 PM.
Destroyer X is offline   Reply With Quote