vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v3.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2008, 10:25 AM
PyroMarkus PyroMarkus is offline
Junior Member
 
Join Date: Nov 2004
Posts: 21
Default $languagechooserbits not working anymore?

Hi there,

in vBA CMPS 2.2.1 I used some lines of template code to have a little language chooser on the home page. It looked like this:

PHP Code:
<tr>
<
td class="$bgclass">
<if 
condition="$show['languagechooser']"><strong>$vbphrase[quick_language_chooser]: </strong> <br />
        
            <
select style="width:120px;margin-bottom:4px;" name="langid" onchange="switch_id(this, 'lang')">
                <
optgroup label="$vbphrase[quick_language_chooser]">
                    
$languagechooserbits
                
</optgroup>
            </
select></if>
</
td>
</
tr
This worked as well as a valid module (with wrapper) as included in the welcomeblock template.

When I now try this with 3.0.1, it works just when hitting "Preview" while editing the module -> all is fine, in the popup are all languages listed.

But in my homepage the select box is empty, so the $languagechooserbits from vB is not working anymore in vBA CMPS 3.0.1.

Is there a workaround, please?
Thanks fpr any hint!
Reply With Quote
  #2  
Old 08-24-2008, 05:25 PM
greggus greggus is offline
Junior Member
 
Join Date: Apr 2006
Posts: 8
Default

add languagechooserbits in the Portal Output Global Variables
Reply With Quote
  #3  
Old 08-25-2008, 12:03 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

If adding 'languagechooserbits' to the Portal Output Global Variables setting doesn't help, try adding a new plugin to the 'vba_cmps_fetch_vba_module' hook location with the following code:
PHP Code:
global $languagechooserbits
Reply With Quote
  #4  
Old 08-25-2008, 01:08 PM
PyroMarkus PyroMarkus is offline
Junior Member
 
Join Date: Nov 2004
Posts: 21
Default

Thanks a lot, but

1.- adding languagechooserbits global did not work
2.- (1.) and adding plugin did not work
3.- (2.) alone did not work

So, not change at all, but testing the medule within CMPS-ACP still works fine ???
Reply With Quote
  #5  
Old 08-25-2008, 01:46 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Weird... I did a quick search for the variable, but don't see anything obvious in vB's code that should prevent it from being displayed. Another option though might be to add a new PHP module with something like this for the content of the PHP file.

PHP Code:
$languagechooserbits construct_language_options('--'true);

eval(
'$home["$mods[modid]"][\'content\'] = "' fetch_template('adv_portal_langchoose') . '";'); 
Be sure to change the template name in the last line there to match the name of the template you're currently using.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I Can't Integrate Nothing Anymore RaceJunkie Troubleshooting & Problems 6 02-08-2008 11:53 PM
Members viewing not working anymore omegared "How Do I..." Questions 2 07-30-2007 10:22 PM
Upgraded to 2.00 and none of my categories are there anymore. GamingVidz.com Troubleshooting & Problems 7 02-20-2007 02:08 PM
Collapsable Modules Not Working Anymore jcerious "How Do I..." Questions 2 03-26-2006 07:43 PM
Are You Supporting Your Products Anymore pennylessz28 Site Feedback & Updates 5 01-23-2006 05:31 PM


All times are GMT -4. The time now is 03:42 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.