The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to call the current forum ID in forumdispaly.php inside a template phrase ?
Hi all
Please help! This is to add custom text on the “+ Post New Thread” default buttons on forumdisplay.php I have created some custom phrases: Boton_1 = Post New Company Boton_2 = Post New Discussion Boton_3 = Post New Deal Etc. The number are related to the forum ID So, I im trying to call it from template this way: {vb:rawphrase boton_{vb:raw foruminfo.forumid}} But it is not working this way. How can I add the current forum ID next to {vb:rawphrase boton_ ? I appreciate any suggestion. thanks. |
#2
|
||||
|
||||
What template are you modifying? And can we see a link to where you are doing this so we can see what is actually happening in the page source?
|
#3
|
|||
|
|||
Thank you Lynne. I am trying to modify FORUMDISPLAY template, the button text ( "+ Post New Theread")
http://bit.ly/eLa9Yj As I said I have already created 15 custom phrases witht this structure: Boton_1 = Post New Company Boton_2 = Post New Discussion Boton_3 = Post New Deal So, now I just need to call {vb:rawphrase boton_FORUMID} Please help, this would be a great trick to manage what I want. I tried the logic thing: {vb:rawphrase boton_{vb:raw foruminfo.forumid}} but it does not work Thank you! |
#4
|
||||
|
||||
Did you try other things, like:
{vb:rawphrase boton_$foruminfo['forumid']} |
#5
|
|||
|
|||
Instead you can use plugin system. Example:
Hook: forumdisplay_start PHP Code: PHP Code:
Also you will able to use any PHP condition |
#6
|
||||
|
||||
^^ Yeah, that is what I would do. I'd rather use a plugin than edit my template.
|
#7
|
|||
|
|||
It works like a charm! Thank you so much !!!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|