2011-07-30, 09:13 PM
Changes to VBNavBar for MyBB 1.6.4
Template changes
MyBB 1.6.4 introduced a change to the Template System to improve security and this affects one of the template changes required for VBNavBar.
The changes have been made to the main post (for new users) but for existing users of VBNavBar wishing to upgrade to MyBB 1.6.4, you will need to make a change to the following template:
Header Templates / header_welcomeblock_member_admin
From
New versions of functions.php and class_templates.php
The existing functions.php and class_templates.php have been replaced with new downloads to maintain compatibility with MyBB 1.6.4.
@primster7: I have just updated the downloads in the first post with the latest functions.php and class_templates.php files for MyBB 1.6.4. Would you mind trying these to see if they will get rid of the zeros? There is also a small change to one of the template edits detailed here.
- Template changes
- New versions of functions.php and class_templates.php
Template changes
MyBB 1.6.4 introduced a change to the Template System to improve security and this affects one of the template changes required for VBNavBar.
The changes have been made to the main post (for new users) but for existing users of VBNavBar wishing to upgrade to MyBB 1.6.4, you will need to make a change to the following template:
Header Templates / header_welcomeblock_member_admin
From
<td class="tcat" align="center"><img src="{$theme['imgdir']}/vbnb_admincp.png" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/{$config['admin_dir']}/index.php"><strong>{$lang->welcome_admin}</strong></a></td>
to<td class="tcat" align="center"><img src="{$theme['imgdir']}/vbnb_admincp.png" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/{$admin_dir}/index.php"><strong>{$lang->welcome_admin}</strong></a></td>
New versions of functions.php and class_templates.php
The existing functions.php and class_templates.php have been replaced with new downloads to maintain compatibility with MyBB 1.6.4.
(2011-07-30, 07:09 PM)primster7 Wrote: [ -> ]Hello,
Thanks for the tutorial.
I tried it on a forum running 1.6.3. I then upgraded to 1.6.4 and the menu has the 0's again like in my prior post. I re-uploaded the class_templates.php file again from the first post and it's still messed up. I think that there might have been a change in 1.6.4 where this will not look correctly for some templates.
I installed it on another template (that is like the original) and it works fine.
Do you know what else I can try to get rid of the 0's in the header area?
@primster7: I have just updated the downloads in the first post with the latest functions.php and class_templates.php files for MyBB 1.6.4. Would you mind trying these to see if they will get rid of the zeros? There is also a small change to one of the template edits detailed here.