The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I wanted the title of social group and album be shown under the navbar, so I added the variable $custompagetitle to the the end of the navbar with if condition, but that didn't work at all and nothing showed, but if I add the variable $pagetitle it works fine but it doesn't show the exact title that I want it to be shown.
how to make that work? thanks. ![]() |
#2
|
||||
|
||||
![]()
Take a look at the code in the vbulletin files that is used to define $custompagetitle and then write a plugin that does the same thing to output that variable for use. (If I recall, that may be a combination of a couple of variable which may or may not be available for use there.)
|
#3
|
|||
|
|||
![]()
thanks Lynne.
I just tried that with no luck. as you said, it's combination of a couple of variable. and I think it's not available for use there. |
#4
|
||||
|
||||
![]()
You tried what? I said to find the code (did you find it?) and write a plugin (can we see it? What hook location are you using?). You didn't give any information at all about what you did so I have no clue on how to proceed in helping you.
|
#5
|
|||
|
|||
![]()
here what I did (not sure if that what you mean in your first post of this thread):
- I opened the files album.php and group.php and looked for the variable $custompagetitle. - I found three found the that the variable is defined 3 times in group.php and 4 times in album.php - I added new plugin in the global_start hook. - in the new plugin I made a new variable and named $new_pagetitle and set its value to the same $custompagetitle set to int the php files. - I then used the $new_pagetitle in the navbar template but still nothing showed. did I do it right? |
#6
|
||||
|
||||
![]()
I don't know if you did it right since you didn't post the code you used.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|