View Full Version : how to make this variable work in social groups and album pages
Super Jinni
04-22-2009, 12:20 AM
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. :)
Lynne
04-22-2009, 02:38 AM
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.)
Super Jinni
04-22-2009, 03:08 AM
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.
Lynne
04-22-2009, 03:10 AM
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.
Super Jinni
04-22-2009, 10:44 AM
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?
Lynne
04-22-2009, 01:56 PM
I don't know if you did it right since you didn't post the code you used.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.