View Single Post
Old 06-23-2004, 08:39 AM   #11
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. For one, try the following. Replace:

<form method="get" action="http://www.destroyerx.net/cgi-bin/perlfect/search/search.pl">
<td valign="top" width="177">
<div align="left" class="searchbar">

<!-- Begin Search Field -->

<input type="hidden" name="p" value="1">
<input type="hidden" name="lang" value="en">
<table width="140" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
&nbsp;<input type="text" name="q" size="15" maxlength="255" value="Search" style="font-family: Arial, Helevetica, sans-serif; font-size: 12px; color: #FFFFFF; background-color: #000000; border: 1px" onfocus="javascript:if(this.value=='Search') {this.value='';}">
</td>
<td valign="top">
&nbsp;<input type="image" src="../../images/nav_go.gif" alt="">
</td>
</tr>
</table>

<!-- End Search Field -->

</div>
</td>
</form>

with the following:

<form action='http://www.destroyerx.net/search/search.php' method='get'>
<td valign="top" width="177">
<div align="left" class="searchbar">

<!-- Begin Search Field -->

<input type='hidden' name='site' value='0'/>
<input type='hidden' name='path' value=''/>
<input type='hidden' name='result_page' value='search.php'/>
<table width="140" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
&nbsp;<input type="text" name="query_string" size="15" maxlength="255" value="Search" style="font-family: Arial, Helevetica, sans-serif; font-size: 12px; color: #FFFFFF; background-color: #000000; border: 1px" onfocus="javascript:if(this.value=='Search') {this.value='';}">
</td>
<td valign="top">
&nbsp;<input type="image" name="search" src="../../images/nav_go.gif" alt="">
</td>
</tr>
</table>

<!-- End Search Field -->

</div>
</td>
</form>

For two, the following:
PHP Code:
        <?php
        
include_once "/home/destroyerx/public_html/poll/booth.php";
        
$php_poll->set_template_set("Destroyer X Template"); // Destroyer X Template = template name 
        
echo $php_poll->poll_process("newest");
        
?>
appears in the HTML source at http://www.destroyerx.net/search/search.php because it is not being parsed. There was also a "Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/destroyerx/public_html/poll/include/class_mysql.php on line 32" error meaning that the poll script wasn't able to access the database. To include PHP code in the search page, you'd need to do the stuff mentioned ealier in this thread.

For three, find and edit the $powered_by_link variable in the search_function.php file. Look for PHPDIG_VERSION in the config.php file to get the version number.
__________________
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