vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I display text next to category title? (https://vborg.vbsupport.ru/showthread.php?t=102609)

NateDog 12-09-2005 06:58 PM

How do I display text next to category title?
 
On the forum homepage, I would like to display an extra link next to the titles for some of the forums that are in 'category' mode. I don't see a hook that will allow me to do this, but I have seen cases where AJAX lets you hook into places that you can't with hooks alone. Is this possible for what I'm doing?

If not, I'll have to modify the vB source, which I'd much rather not have to do.

peterska2 12-09-2005 09:12 PM

Should be possible with some template edits. I'll look into it for you.

Right then, this is dead simple.


In your forumdisplay_level1_nopost template

FIND

Code:

<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
Replace with

Code:

<if condition="$show['forumdescription']">$forum[description]</if>
This moves the description box to the same line as the title box, and you can use html in the description to provide and additional links.

brunod76 12-12-2005 01:58 AM

Thanks, I was needing this also... Actually I want to post some kind of menu beside but the idea is the same ;)

NateDog 12-12-2005 01:40 PM

Thanks Peter! Worked like a charm.

peterska2 12-12-2005 08:11 PM

You're both welcome. HTH :)


All times are GMT. The time now is 09:21 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.01035 seconds
  • Memory Usage 1,711KB
  • 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
  • (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