The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Added a new phrase what now?
As the title suggests I have added a phrase to my forum but I am having a little trouble implementing it. What I need to know is how to I set up the Album section of vbulletin to have my custom phrase. If it help my phrase name is [elite_only].
Also is there a specific place that the phrase should go? Please help, Connor |
#2
|
||||
|
||||
To use it in a template, you would put $vbphrase[elite_only]. As for specifically where, we can't really tell you since you haven't said where you want it. If you need to find the template, vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.
|
#3
|
|||
|
|||
Sorry about that basically when a member clicks on the album section they get the vBulletin error message which is [vbulletin_message] (i think) I basically want to change some coding or whatever so that instead of going to vbulletin_message it goes to elite_only
if that makes sense again sorry for the lack of info in first post Connor |
#4
|
||||
|
||||
Why don't you just edit the error message?
|
#5
|
|||
|
|||
Because that error message is a standard error message across the system I want this to be only for elite member sections which is what the album section is.
|
#6
|
||||
|
||||
I've never played with changing the error messages, but I suppose you can just put a condition in the template:
HTML Code:
<if condition="THIS_SCRIPT == 'album'"> $vbphrase[whatever] <else /> $vbphrase[other] </if> |
#7
|
||||
|
||||
Actually, the other way would be to use the hook "album_start_precheck" and process your error there. They do a check for the permissions around line 190 in album.php and spit out the error there. What you can do is use the hook to perform that same check only spit out your error instead.
|
#8
|
|||
|
|||
Quote:
|
#9
|
||||
|
||||
I was just suggesting that you may be able to use the plugin system - Adding or Editing a Plugin
It's a preference thing.... some people would rather use plugins than edit templates. |
#10
|
|||
|
|||
Hmm yes this does seem easier to do rather than edit files, so what code do I enter as the code you provided before is HTML this needs to be in PHP
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|