The Arcive of vBulletin Modifications Site. |
|
Rules when you open a new thread Details »»
|
|||||||||||||||||||||||||
Many people have asked how to insert rules that can be displayed when the member starts a new thread.
In style manager, open the editor templates -> editor_toolbar_on. At the very top of the file, above the line $vBeditTemplate[clientscript], insert this code: Code:
<if condition="THIS_SCRIPT == 'newthread'"> <if condition="$show['member']"> <strong>Hello $bbuserinfo[username]! We ask that you follow these simple rules:</strong><br /> <ul> <li>First rules. </li> <li>Second rules. </li> <li>Third rules. </li> </ul> </if> </if> Code:
<li>Rules</li> Sample ![]() PS: sorry for my english ![]() Original modification in Italian version available here. Cionfs of Cionfs'Forum CMS PS: Thanks to ctrlbrk for translation ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Not functionally for me.
|
|
#3
|
|||
|
|||
|
Brilliant, thank you.
|
|
#4
|
||||
|
||||
|
in what way an explination of the problem may help
|
|
#5
|
||||
|
||||
|
|
|
#6
|
|||
|
|||
|
How would i make it show only for a certain forum?
|
|
#7
|
||||
|
||||
|
You can use before code
Code:
<if condition="in_array($forum['forumid'], array(X,X,X,X))"> Code:
</if>
|
|
#8
|
|||
|
|||
|
hi i dont under stand whare i put this in the template can any one tell me ??
and whare do i put the code so it only shows in serting forums Code:
<if condition="in_array($forum['forumid'], array(104,108,102,308,27,106,107,109,294,263))"> Code:
<if condition="THIS_SCRIPT == 'newthread'"> <if condition="$show['member']"> <strong>Hello $bbuserinfo[username]! We ask that you follow these simple rules:</strong><br /> <ul> <li>First rules. </li> <li>Second rules. </li> <li>Third rules. </li> </ul> </if> </if> |
|
#9
|
||||
|
||||
|
Quote:
Use thid code. Code:
<if condition="in_array($forum['forumid'], array(104,108,102,308,27,106,107,109,294,263))"> <if condition="THIS_SCRIPT == 'newthread'"> <if condition="$show['member']"> <strong>Hello $bbuserinfo[username]! We ask that you follow these simple rules:</strong><br /> <ul> <li>First rules. </li> <li>Second rules. </li> <li>Third rules. </li> </ul> </if> </if> </if>
|
|
#10
|
|||
|
|||
|
thanks very much that did the trick
|
![]() |
|
|