View Full Version : Phrasegroup adv_gallery called on all pages [added 2.4.3]
January 12th, 2008, 03:13 PM
Phrasegroup adv_gallery is called on all pages and not only gallery pages or pages that uses addons.
This destroys the translations for other products since there is no specific prefix used for gallery on all phrases.
One small example is category but there are a lot more.
I also do not understand the reason for calling adv_gallery phrases in datastore and on all pages.
January 12th, 2008, 04:03 PM
good eye, I'll take a look at that.
January 16th, 2008, 05:53 PM
Is it possible to provide a quick fix for this?
I have to translate in templates because of this bug.
February 23rd, 2008, 10:11 AM
I have problems with this as well. Are you looking into this or not?
When vbgallery is enabled, the phrases for "My stuff", "What´s new" and "What´s popular" on my vbadvanced links and dynamics pages are changed to the vbgallery phrases.
February 23rd, 2008, 02:30 PM
A quick and dirty fix for this is to change the plugin at hook init_startup to only include the scripts where gallery pictures are presented.
I only have them in Member and Forumhome so my init_startup hook is:
if (PP_SCRIPT != 'vBGallery' AND (THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'member'))
$phrasegroups = 'adv_gallery';
$datastore_fetch = "'adv_gallery_opt'";
$datastore_fetch = "'ppg_stats'";
$ppg_options =& $vbulletin->adv_gallery_opt;
February 24th, 2008, 06:05 AM
Thanks for the fix. It works fine now.
February 25th, 2008, 09:08 PM
I am breaking up phrases into another PhraseGroup and load it.
- next ver.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.