Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2011, 12:57 PM
Oclamora Oclamora is offline
 
Join Date: May 2011
Location: San Francisco, CA
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 Or for the second example "Hacks, Hacks, Styles, Hacks, Styles"


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!
Reply With Quote
  #2  
Old 07-26-2011, 04:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-26-2011, 08:13 PM
Oclamora Oclamora is offline
 
Join Date: May 2011
Location: San Francisco, CA
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First and for most, Welcome back

Second, where are my giftS

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!
Reply With Quote
  #4  
Old 07-26-2011, 11:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-27-2011, 11:21 AM
Oclamora Oclamora is offline
 
Join Date: May 2011
Location: San Francisco, CA
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That sounds great

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

Thank you!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09222 seconds
  • Memory Usage 2,197KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete