vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Prefix Title on forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=188377)

WiBu 08-17-2008 12:36 PM

Prefix Title on forumdisplay
 
I'm looking for a way to display the prefix as a title when viewing threads with a certain prefix in forum display.

For example, if a user selects to view threads prefixed by "Modifications" a title would display at the top saying something along the lines of "Viewing threads marked Modifications".

If a user has not chosen a prefix it will display something like "Viewing all threads".

I don't need help with the front end code, I'd just like some help on finding the variable to use or getting pointed to a guide on how to pull the variables needed using a plugin (I've searched and searched but come up with nothing).

Thanks in advance.

Edit #1:
After a little thought I figured this might be able to be done by using <if>. I still have no idea if it's possible to do something like...
Code:

<if condition="prefixid=['1']">Viewing XXXXX</if>

Opserty 08-17-2008 04:17 PM

Code:

<if conditon="$vbulletin->GPC['prefixid'] == 'blabla'">
    Viewing XXXXX
</if>

blabla - is the the prefix id you assigned to the prefix when you created it.

WiBu 04-04-2009 08:33 PM

Completing rising this thing from the dead, but it's the same question, just needs a little refinement to the answer.

I'm wondering if there's a way to display the prefixrich on the forumdisplay when viewing all threads from that prefix. Haven't come up with anything from big search (found my old thread while looking).


All times are GMT. The time now is 02:42 PM.

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.00937 seconds
  • Memory Usage 1,710KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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