sinucello
09-08-2008, 11:14 AM
Hi,
I`d like to display the tag cloud on every page and so I tried to modify Atakan KOC tag cloud on forum home mod.
I succeeded in displaying the cloud on the home page and the forum display with the hooks:
forumdisplay_start
forumhome_start
and used the following function:
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace('<!-- ###TAGCLOUD### -->', $vbulletin->templatecache['tag_cloud_forum_home'], $vbulletin->templatecache['FORUMDISPLAY']);
To be more flexible, I would rather like to replace a marker in the header template. But
$vbulletin->templatecache['header'] = str_replace('<!-- ###TAGCLOUD### -->', $vbulletin->templatecache['tag_cloud_forum_home'], $vbulletin->templatecache['header']);
won`t work with the hooks mentioned above. So I guess I have to use another hook to modify the header template.
Can anybody help me?
Thank you - all the best,
Sacha
I`d like to display the tag cloud on every page and so I tried to modify Atakan KOC tag cloud on forum home mod.
I succeeded in displaying the cloud on the home page and the forum display with the hooks:
forumdisplay_start
forumhome_start
and used the following function:
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace('<!-- ###TAGCLOUD### -->', $vbulletin->templatecache['tag_cloud_forum_home'], $vbulletin->templatecache['FORUMDISPLAY']);
To be more flexible, I would rather like to replace a marker in the header template. But
$vbulletin->templatecache['header'] = str_replace('<!-- ###TAGCLOUD### -->', $vbulletin->templatecache['tag_cloud_forum_home'], $vbulletin->templatecache['header']);
won`t work with the hooks mentioned above. So I guess I have to use another hook to modify the header template.
Can anybody help me?
Thank you - all the best,
Sacha