CustomerService
02-01-2008, 11:21 PM
If after installing vBulletin's Blogs plugin you do not see the link to the Blogs in the navigation, or that link doesn't look right, you probably have to manually add it.
This is the "normal" code (for the default skin):
<td class="vbmenu_control"><a href="blog.php$session[sessionurl_q]" accesskey="5">$vbphrase[blogs]</a></td>However, most of our skins are coded using valid, standard's compliant XHTML (vBulletin uses tables for layout), which means when adding the links you must follow the examples of the other links (if the skin you purchased doesn't use tables). Many of our skins utilize the common practice of using CSS styled lists to organize the navigation links. In that case, the code would probably look more like this:
<li><a href="blog.php$session[sessionurl_q]" accesskey="5">$vbphrase[blogs]</a></li>Additionally, there are two edits you will want to do to either the postbit or postbit_legacy (whatever you are using) if the Blogs data is not showing up there too.
Find (should be right below the "$post[posts]" section):
$template_hook[postbit_userinfo_right_after_posts]Add below:
<if condition="$post['entries'] > 0">
$vbphrase[blog_entries]: <a href="blog.php?$session[sessionurl]u=$post[userid]">$post[entries]</a>
</if>And find:
$template_hook[postbit_user_popup]Adding below:
<if condition="$post['entries'] > 0">
<tr><td class="vbmenu_option" colspan="2"><a href="blog.php?$session[sessionurl]u=$post[userid]"><phrase 1="$post[username]">$vbphrase[view_blog]</phrase></a></td></tr></if>
This is the "normal" code (for the default skin):
<td class="vbmenu_control"><a href="blog.php$session[sessionurl_q]" accesskey="5">$vbphrase[blogs]</a></td>However, most of our skins are coded using valid, standard's compliant XHTML (vBulletin uses tables for layout), which means when adding the links you must follow the examples of the other links (if the skin you purchased doesn't use tables). Many of our skins utilize the common practice of using CSS styled lists to organize the navigation links. In that case, the code would probably look more like this:
<li><a href="blog.php$session[sessionurl_q]" accesskey="5">$vbphrase[blogs]</a></li>Additionally, there are two edits you will want to do to either the postbit or postbit_legacy (whatever you are using) if the Blogs data is not showing up there too.
Find (should be right below the "$post[posts]" section):
$template_hook[postbit_userinfo_right_after_posts]Add below:
<if condition="$post['entries'] > 0">
$vbphrase[blog_entries]: <a href="blog.php?$session[sessionurl]u=$post[userid]">$post[entries]</a>
</if>And find:
$template_hook[postbit_user_popup]Adding below:
<if condition="$post['entries'] > 0">
<tr><td class="vbmenu_option" colspan="2"><a href="blog.php?$session[sessionurl]u=$post[userid]"><phrase 1="$post[username]">$vbphrase[view_blog]</phrase></a></td></tr></if>