Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 3 of 3

Thread: Custom Translations dropdown menu position not working with vbCMS

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    2

    Default Custom Translations dropdown menu position not working with vbCMS

    I would like to add the "Translations dropdown menu" to the navbar of vbCMS, eg at istyles.com/news/

    I've tried setting "vBET->Flags->Translations dropdown menu position" to "Custom" and inserted {vb:raw vbenterprisetranslatorflagsdropdown} into the template vbcms_navbar_link but nothing's showing up.

    This feature otherwise works for the forum, eg istyles.com/news/forum

    Is there anything else I need to do or can something be done to get this variable into vbCMS?

  2. #2
    MichaƂ Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Dropdown menu was designed to be used in navbar template (as described in parameter description). If you want to use it also somewhere else please try this:
    1. edit file /includes/vbenterprisetranslator_functions_hooks.php
    2. Find:
    PHP Code:
    vB_Template::preRegister('navbar', array('vbenterprisetranslatorflagsdropdown' => $vbenterprisetranslatorflagsdropdown)); 
    3. Put after it:
    PHP Code:
    vB_Template::preRegister('TEMPLATE_NAME', array('vbenterprisetranslatorflagsdropdown' => $vbenterprisetranslatorflagsdropdown)); 
    4. Change TEMPLATE_NAME to your template name

    I cannot guarantee that it will work appropriately there. If not you will have to change appropriate template, but in such case it can be hard to make it working in booth places.

    Please tell us did it help

  3. #3
    Junior Member
    Join Date
    Apr 2010
    Posts
    2

    Default

    That worked, thank you!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •