Hi I have installed and successfully got the script running, this works fine in a stand alone php file, great.
Now i am trying to integrate with a directory script (called indexu ) that use's smarty as a template engine.
With smarty the php call changes from <?php to <%php%> so this is the code I have at the very beginning of my header file
PHP Code:
<%php%>
$curdir = getcwd ();
chdir('/home/essext/public_html/forums');
require_once('/home/essext/public_html/forums/global.php');
chdir ($curdir)
<%/php%>
and my index file calls the mod as follows
PHP Code:
<%php%>
require_once('/home/essext/public_html/forums/login_inc.php');
<%/php%>
all paths are correct but when i browse the page with the mod enabled i am presented with the following error.
HTML Code:
Fatal error: Call to a member function query_first_slave() on a non-object in /home/essext/public_html/forums/includes/functions.php on line 1303
this points to my vbulletin functions.php file
PHP Code:
$user = $vbulletin->db->query_first_slave("
As you can imagine I have spoke to the indexu support forums, as it seems the mod works fine , just doesnt work when combined with indexu script, which I cant understand why.
But have been told to post over here. The original thread is here
http://www.nicecoder.com/community/s...ead.php?t=7159 .
I hope some one can shed some light on this one. Thank you