hey,
im trying to do a realy simple thing - i just want to register a boolean variable that will be avaible in the "search_threadbit" template .
so ive added the following code with the location of "search_results_thread_process" hook :
PHP Code:
$templater->register_page_templates();
if ( strpos($_SERVER['HTTP_REFERER'],'pitronot') !== false ) {
$diffPrev['bool']=true;
$templater->register('diffPrev', $diffPreview);
}
else {
$diffPrev['bool']=false;
$templater->register('diffPrev', $diffPreview);
}
though this gives me an error :
Quote:
Fatal error: Call to a member function register_page_templates() on a non-object in .../packages/vbforum/search/result/thread.php(229) : eval()'d code on line 1
|
tried to use a class and an object instead of the array, this didnt work neither.
any suggestions?
I`M Sorry, this thread should have been under *vB4 Programming Discussions * please move the thread to this forum .