When 1.0 came out I found an easy way to add a Blog button to the header template using:
When 1.0.1 came out it seemed to break that conditional. I found a new way to call that using:
I just discovered an error with that conditional... It shows up even if a user does not have the blog installed. Also it still shows up if you turn your Blog off.
I dug a bit deeper and tried this (See code below). It seems to work well. The button will show if the Blog is enabled and it won't show if the Blog is turned off. Even better it won't show on a board without a Blog installed.
My question: Is this the best way to do this? It seems to work really well but before I update my skins I'd like to know if anybody has a better way or if this is the best route to take.
I also did already try all the staff suggestions here.
Thanks.
Code:
<if condition="$loadblogtemplate">
Code:
<if defined="$VBBLOG_CACHED_TEMPLATES">
I dug a bit deeper and tried this (See code below). It seems to work well. The button will show if the Blog is enabled and it won't show if the Blog is turned off. Even better it won't show on a board without a Blog installed.
My question: Is this the best way to do this? It seems to work really well but before I update my skins I'd like to know if anybody has a better way or if this is the best route to take.
Code:
<if condition="$vbulletin->products['vbblog']">
Thanks.
Comment