Ljusya
09-30-2009, 01:24 PM
Please, help with my code:
I have 2 plugin
First - in blog_entry_start
$myvar='12345';
$search='$bloginfo[comments_visible]</span>';
$vbulletin->templatecache['blog_show_entry']=str_replace($search,$search.fetch_template('mytem plate'), $vbulletin->templatecache['blog_show_entry']);
Second in blog_list_entries_start
$myvar='12345';
$search='<!-- trackbacks -->';
$vbulletin->templatecache['blog_entry']=str_replace($search,$search.fetch_template('mytem plate'), $vbulletin->templatecache['blog_entry']);
And template 'mytemplate' with code
$myvar
Some text
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 1254401073 at 1254401073 ---------------
Nobody can`t help me?
I have 2 plugin
First - in blog_entry_start
$myvar='12345';
$search='$bloginfo[comments_visible]</span>';
$vbulletin->templatecache['blog_show_entry']=str_replace($search,$search.fetch_template('mytem plate'), $vbulletin->templatecache['blog_show_entry']);
Second in blog_list_entries_start
$myvar='12345';
$search='<!-- trackbacks -->';
$vbulletin->templatecache['blog_entry']=str_replace($search,$search.fetch_template('mytem plate'), $vbulletin->templatecache['blog_entry']);
And template 'mytemplate' with code
$myvar
Some text
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 1254401073 at 1254401073 ---------------
Nobody can`t help me?