I do not show the gallery's link in the navbar. I let user go to the gallery through a link. (abc.com/bbs/dbtgallery.php?gal=qc)
The question is how to add the following menu into dbtech_gallery_home. Data like {vb:raw instance.shortname} & {vb:raw instance.navbar_title} are empty. How to register them?
Code:
<a class="navtab" href="{vb:raw file_link}?gal={vb:raw instance.shortname}">{vb:raw instance.navbar_title}</a>
<ul class="floatcontainer">
<li><a href="{vb:raw file_link}?do=main&gal={vb:raw instance.shortname}" title="{vb:rawphrase dbtech_gallery_nav_main}">{vb:rawphrase dbtech_gallery_nav_main}</a></li>
<vb:if condition="$instance[user_can_add_cat11]">
<li><a href="{vb:raw file_link}?do=add_category&gal={vb:raw instance.shortname}" title="{vb:rawphrase dbtech_gallery_nav_add_category}">{vb:rawphrase dbtech_gallery_nav_add_category}</a></li>
</vb:if>
<vb:if condition="$instance[user_can_add_album]">
<li><a href="{vb:raw file_link}?do=add_album&gal={vb:raw instance.shortname}" title="{vb:rawphrase dbtech_gallery_nav_add_album}">{vb:rawphrase dbtech_gallery_nav_add_album}</a></li>
</vb:if>
<vb:if condition="$instance[user_can_upload]">
<li><a href="{vb:raw file_link}?do=add_image&gal={vb:raw instance.shortname}" title="{vb:rawphrase dbtech_gallery_nav_upload}">{vb:rawphrase dbtech_gallery_nav_upload}</a></li>
<li><a href="{vb:raw file_link}?do=profile&gal={vb:raw instance.shortname}" title="{vb:rawphrase dbtech_gallery_nav_my_profile}">{vb:rawphrase dbtech_gallery_nav_my_profile}</a></li>
<li><a href="{vb:raw file_link}?do=add_prof_image&gal={vb:raw instance.shortname}" title="{vb:rawphrase dbtech_gallery_nav_add_prof_img}">{vb:rawphrase dbtech_gallery_nav_add_prof_img}</a></li>
</vb:if>
</ul>
The reason I do this is because if I do not show the gallery's link in the navbar, I can not find out how to let user add album and images.