Please, help with my code:
I have 2 plugin
First - in
blog_entry_start
PHP Code:
$myvar='12345';
$search='$bloginfo[comments_visible]</span>';
$vbulletin->templatecache['blog_show_entry']=str_replace($search,$search.fetch_template('mytemplate'), $vbulletin->templatecache['blog_show_entry']);
Second in
blog_list_entries_start
PHP Code:
$myvar='12345';
$search='<!-- trackbacks -->';
$vbulletin->templatecache['blog_entry']=str_replace($search,$search.fetch_template('mytemplate'), $vbulletin->templatecache['blog_entry']);
And template 'mytemplate' with code
Both plugin work - phrase "some text" appear in the right places But text from variable $myvar appear only in places of blog_entry_start
How can i get my variable for use in mytemplate from second plugin in hook blog_list_entries_start ? Why similar code gives different results?
--------------- Added [DATE]1254401073[/DATE] at [TIME]1254401073[/TIME] ---------------
Nobody can`t help me?