vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Sub-Forums (https://vborg.vbsupport.ru/showthread.php?t=287703)

TravisWPaquin 09-10-2012 04:41 PM

Sub-Forums
 
<font face="Century Gothic">Hello, I have a question regarding Sub-forums. I see on other forums that they have the bold text that normally says "sub-forums" replaced with another name such as "Check this." I replaced the sub-forum to say what I wanted it to, but now I can't choose sub-forums when I need it to. How do I make an additional phrase and still keep it to say sub-forums?

Thanks!</font>

Lynne 09-10-2012 05:30 PM

I'm not sure I follow. Do you have images to show what it currently looks like and what you want it to look like?

TravisWPaquin 09-10-2012 06:46 PM

For example, I have replaced the phrase "Sub-Forums" with "Don't forget to check:" which you can see here. Since I edited the phrase it doesn't show Sub-forums anymore as you can see here.


However, this forum has multiple phrases. Which I can't figure out how they did it.
http://i.imgur.com/dNpBS.jpg

I apologize if I am still unclear to you.

Lynne 09-10-2012 10:31 PM

Ah, OK, so you only want it changed for some forums. You will need to edit the template and replace the phrase with a condition like:

HTML Code:

<if condition="$forum[forumid] == xx">Custom Text here<else />phrase here</if>

TravisWPaquin 09-10-2012 11:34 PM

What template would I be editing? I'm learning with Vb, fairly new.

Thanks!

Lynne 09-11-2012 03:09 PM

Ah, sorry..... To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)

TravisWPaquin 09-12-2012 06:14 PM

Okay, I added the code where the phrase is and now I got this where the sub-forums used to be: Custom Text herephrase here:

How do I make it what I want it to say?

Lynne 09-12-2012 06:29 PM

You would change "Custom Text Here" to what you want it to say, and change "phrase here" to the phrase that was listed there - $vbphrase[something]. (You can see the default template by clicking View Default.)

TravisWPaquin 09-12-2012 07:05 PM

I'm confused and I'm not sure how this would give me options on different sub-forums if it's one phrase only.

Lynne 09-12-2012 08:47 PM

Well, if you have several forums you want to do this on, you would expand the condition a bit. Or, you can write a plugin to do the same thing. Are you familiar with php coding at all?


All times are GMT. The time now is 01:16 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.01091 seconds
  • Memory Usage 1,729KB
  • 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)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete