The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
How exactly have you created 'bbtitle_discrete' in the first place ?
|
#12
|
|||
|
|||
Thanks for your reply Paul, please read my first post in this thread.
|
#13
|
|||
|
|||
Hi, I'm still looking for a solution on this.. can anyone help?
|
#14
|
||||
|
||||
When you answer my question, what steps exactly did you take to create it.
|
#15
|
|||
|
|||
Hi Paul, Thanks for replying.
I created the variable through MySQL queries. Code:
INSERT INTO `setting` VALUES ('bbtitle_discrete', 'address', 'HC Support Forum', 'vBulletin Forums', '', 15, 0, 1, 'free', 'vbulletin', '', 0); INSERT INTO `phrase` VALUES ('', -1, 'setting_bbtitle_discrete_desc', 'vbsettings', 'A discrete name for your forum. This appears in emails etc. (Wherever $vboptions[bbtitle_discrete] appears)', 'vbulletin', '', 0, '', 0); INSERT INTO `phrase` VALUES ('', -1, 'setting_bbtitle_discrete_title', 'vbsettings', 'Discrete Forum Name', 'vbulletin', '', 0, '', 0); The above queries allow me to edit the new variable in the adminCP. I assumed that since the variable is in the setting table (alongside the original variable - bbtitle), it would be simple for me to access it's value in the scripts, provided I ensure that it is being set. That's why I am trying to find out where the original variable - bbtitle - is set. Regards Remo |
#16
|
||||
|
||||
You could've created that setting without running SQL queries of your own, that's what the Products are for. You could just change $vbulletin->options['bbtitle'] by using a plugin at global_start.
|
#17
|
|||
|
|||
ok, thanks Dismounted, but...
I don't actually want to change $vbulletin->options['bbtitle'] everywhere, only in some places. That's why I created another variable, $vbulletin->options['bbtitle_discrete'] , so that I can use both. Also, I created it this way so that it can be edited in the adminCP. Could you explain how I would do this in the way of a plugin? Thanks Remo |
#18
|
||||
|
||||
It depends where you want to change it.
|
#19
|
|||
|
|||
If you go back to page 1 in this thread, one of my posts states all of the phrases I have changed 'bbtitle' to 'bbtitle_discrete'.
|
#20
|
|||
|
|||
What you are trying to do would need a lot of changes in phrases, templates and worse code-edits.
I suggest you try to do it the other way round: Mask your bbtitle, create a new setting with the real title and use that in your regular templates (just a guess, probably only needed in header template). Not tried this but i have the feeling it would be a lot less work. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|