vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Forums section abbreviations "prefix" (https://vborg.vbsupport.ru/showthread.php?t=267451)

Oclamora 07-26-2011 12:57 PM

Forums section abbreviations "prefix"
 
Hello,

I was wondering if it's possible to add an abbreviation "prefix" to a forum subcategory? An example of what I mean:
Let's say you have a few categories titled "iOS, Android, webOS, ..." and under each one of them you have "Apps, reviews, tips, ...". Is it possible to add "[iOS], [ANDR], [wOS]" to the subcategory?

Another example would be:
Main categories:
-vBulletin 4.0
-vBulletin 3.8
Under each one you have:
-Hacks
-Styles
What I need is:
-[vB4]Hacks
-[vB3]Hacks
-[vB4]Styles
-[vB3]Styles

The reason I'm asking this is because, I'm using "VSa - Advanced Forum Statistics" hack and under the subcategory column you see "Apps, Apps, Apps, tips, reviews, tips" but you don't know which belongs to which section :confused: Or for the second example "Hacks, Hacks, Styles, Hacks, Styles" :confused::confused:


I thought about it and it would be very helpful if you can add prefix to subcategories, just like threads :)

Thank you for your help!

Lynne 07-26-2011 04:04 PM

Why not just call the forum [vB4]Hacks instead of just Hacks? Or, rewrite the modification to include the prefix based on the parent forum? I don't know the mod, so if you need help with rewriting part of it, the place to ask for help would be in the modification thread.

Oclamora 07-26-2011 08:13 PM

First and for most, Welcome back :)

Second, where are my giftS :D

Lets forget about this for now, and lets go back to my previous issue with the blogs large images please :)

About this thread, the issue for me right now is how can I do it. Meaning, creating dynamic prefixes for sections titles.

Btw I'm not that good with php programming :(

Thank you and Welcome back!

Lynne 07-26-2011 11:17 PM

I'm actually not back. I've decided I like it too much here and have just settled in for now. But, I do occasionally have some time off from playing and get around to posting. :)

I think you would have to write some code that would basically say "if the forumid is x, then add [vB4] in front of the forum title. Or, if the forumid is y, then add [vB3] in front of the title" I would guess that you could do this in the plugin that puts together the information in the first place. What hook that is is something you should either look to find out, or ask in the modification thread about.

Oclamora 07-27-2011 11:21 AM

That sounds great :)

I will try to write some code and posted as soon as I'm done for opinions.

Thank you!


All times are GMT. The time now is 09:48 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.01386 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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