vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to make this variable work in social groups and album pages (https://vborg.vbsupport.ru/showthread.php?t=211881)

Super Jinni 04-22-2009 12:20 AM

how to make this variable work in social groups and album pages
 
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.


All times are GMT. The time now is 03:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00995 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete