The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Show a phrase in a page it was not meant for
Ok I wanted to show the following phrase in a postbit but it came from the member profile.
Code:
$vbphrase[show_all_albums] Any help would be appreciated. |
#2
|
||||
|
||||
You probably need to include the phrase group in the $phrasegroups array at the top of the page.
|
#3
|
||||
|
||||
Anyway to do it with in the plugin its self?
|
#4
|
||||
|
||||
Probably. Try using the init_startup hook location with:
PHP Code:
|
#5
|
||||
|
||||
I was looking at the phrase for this in the AdminCP and I think this would be allowed to be user anywhere?
Here is what I have but the phrase doesn't show up. Code:
if ($vbulletin->options['new_enable_albums']) { if(THIS_SCRIPT == 'forumdisplay') { $GLOBALS['phrasegroups'][] = 'user'; } $template_hook['postbit_user_popup'] .= '<li><a href="album.php?'.$session[sessionurl].'u='.$post[userid].'" rel="nofollow">'. $vbphrase[show_all_albums] .'</a></li>'; } |
#6
|
||||
|
||||
What hook location are you using? I think the phrasegroups has to be added at init_startup (as I said in my original post). But, the template_hook part needs to be added using another hook location.
|
#7
|
||||
|
||||
Ahh I see. Thanks again, I'll try that when I get back from pciking my son up from school.
--------------- Added [DATE]1259698752[/DATE] at [TIME]1259698752[/TIME] --------------- That didn't seem to work either so I will just make this all easier and not use the phrase. |
#8
|
||||
|
||||
Post exactly what you used. Also, if you are using this on the showthread page, then you want to use 'showthread' in the THIS_SCRIP condition, not 'forumdisplay'.
|
#9
|
||||
|
||||
When all else fails make your own phrase.
It works now. https://vborg.vbsupport.ru/showthread.php?t=229275 Thanks for all your help Lynn. |
#10
|
||||
|
||||
Glad you got it working.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|