Hey, it's ok Charter. I knew that you were busy for a time, and since I don't know of anyone else who's proficient with PhpDig besides you and vinyl-junkie, I tried seeking advice from vinyl-junkie in the meantime. Unfortunately, my problem still remains even when following yours and vinyl-junkie's advice for parsing.
Anyway, out of frustration, I've deleted PhpDig and Advanced Poll, tables and all, and re-uploaded them from scratch. After configuring Advanced Poll, I tried to go for PhpDig. What I did since the re-upload is that I changed the template path from the default one to the following:
PHP Code:
//template file and style
$template = "$relative_script_path/templates/destroyerx.php";
After that, I went into search_function.php and tried the advice that I got from vinyl-junkie. Below this code right here:
PHP Code:
//===============================================
// do the search and display the results
// can be called in any page
function phpdigSearch($id_connect, $query_string, $option='start', $refine=0,
$refine_url='', $lim_start=0, $limite=10, $browse=0,
$site=0, $path='', $relative_script_path = '.', $template='')
{
I added the following PHP code:
PHP Code:
include_once "/home/destroyerx/public_html/poll/booth.php";
ob_start();
require("/home/destroyerx/public_html/poll/booth.php");
$my_poll = ob_get_contents();
ob_end_clean();
After that, I added my_poll to the following:
PHP Code:
if ($template == 'array' || is_file($template)) {
$phpdig_version = PHPDIG_VERSION;
$t_mstrings = compact('my_poll','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links');
$t_fstrings = phpdigMakeForm($query_string,$option,$limite,SEARCH_PAGE,$site,$path,'template',$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);
}
}
Once that was done, I went to my template file, destroyerx.php, and added <phpdig:my_poll/> as shown below:
<div align="center" class="sidebar" id="sidebarheaderfont"><b>Website Poll</b></div>
<br>
<phpdig:my_poll/>
<br>
</div>
When all was said and done and I finally went to
http://www.destroyerx.net/search/search.php to try it out, thinking it would finally work, I received the same error message yet again:
Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/destroyerx/public_html/poll/include/class_mysql.php on line 32
Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /home/destroyerx/public_html/poll/include/class_mysql.php on line 32
Connection Error
MySQL Error : Connection Error
Error Number: 0
Date : Mon, July 12, 2004 09:40:05
IP : 68.13.236.125
Browser : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Referer :
PHP Version : 4.2.2
OS : Linux
Server : Apache/2.0.40 (Red Hat Linux)
Server Name :
www.destroyerx.net
Script Name : /search/search.php
While there's probably someone out there saying give up and just drop the Website Poll, I prefer to have it to get the input of people that visit my Web site when it comes to games, cartoons, or whatever I poll about. Anyway, I posted the following links that may be of interest:
For Advanced Poll:
http://www.destroyerx.net/poll/index.php
http://www.destroyerx.net/poll/include/class_mysql.txt
For PhpDig:
http://www.destroyerx.net/search/search.txt
http://www.destroyerx.net/search/includes/config.txt
http://www.destroyerx.net/search/lib...h_function.txt
http://www.destroyerx.net/search/tem...destroyerx.txt
I also noticed in my Advanced Poll folder in
http://www.destroyerx.net/poll/include/.htaccess the .htaccess file said the following:
deny from all
I'm not sure if that's of any relevance or not, but I thought I'd post that anyway. Well, I'd like to thank Charter and vinyl-junkie for sticking with me on this thing. If anymore information is needed to help solve this problem, I'm willing to post anything from my Advanced Poll and PhpDig coding, with the exception of usernames and passwords. Thank you all very much for your time.
Ciao for now!
Edit:
Well, I just now tested out the link to class_mysql.txt at
http://www.destroyerx.net/poll/include/class_mysql.txt to make sure everyone can view it, and it pulled up my Error 403: Access Forbidden! page. Anyway, I added the .txt file in a new spot:
http://www.destroyerx.net/class_mysql.txt
Thanks everyone for your time and cooperation!
Ciao for now!