vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Add custom text to "new thread" on specific forum (https://vborg.vbsupport.ru/showthread.php?t=282316)

Lucas79 05-02-2012 10:13 AM

Add custom text to "new thread" on specific forum
 
Hi All,

I've done some searching, but can't seem to find what I am looking for.

It seems quite easy to add custom text to the "Post New Thread" section, but what I want/need is a custom text on 1 specific Forum. In our case I'd like to add a text in our "Sales" forum with specific rules for selling stuff.

Anyone has any idea how to accomplish this (easy :D) ?

We use vbulletin 4.1.12.

Thanks in advance and kind regards,

Lucas

kh99 05-02-2012 10:20 AM

So it sounds like you know how you would add text by editing the newthread template? Then you would just need to surround your new text by if tags, and check the forum id, like:

Code:

<vb:if condition="$forumid == X">
Rules for sales forum
</vb:if>


of course you would change X to the actual id number of your Sales forum.

Lucas79 05-02-2012 02:26 PM

Thanks! Just the answer I was looking for.

I am still kinda new to vbulletin, so sometimes the simplest of problems still elude me. :o

Going to work on some nice "Sales rules" now.

It is Ducth, but this is how it looks like now: (http://www.type-r.nl/newthread.php?do=newthread&f=62)

Thanks again, and kind regards,

Lucas

shabsta 07-27-2012 05:06 PM

Quote:

Originally Posted by kh99 (Post 2325483)
So it sounds like you know how you would add text by editing the newthread template? Then you would just need to surround your new text by if tags, and check the forum id, like:

Code:

<vb:if condition="$forumid == X">
Rules for sales forum
</vb:if>


of course you would change X to the actual id number of your Sales forum.

can you advise as to which file needs to be edited or where inside the admin cp i navigate to, to find the template?


All times are GMT. The time now is 07:39 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.01542 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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