View Full Version : Miscellaneous Hacks - Rules when you open a new thread
cionfs
05-02-2009, 10:00 PM
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:
<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>
For add new rules add a new line with the code
<li>Rules</li>
NB: Obviously, the text "Message:" always appear above the rules. To delete or modify the search for phrases.
Sample
https://vborg.vbsupport.ru/external/2009/05/158.jpg
PS: sorry for my english :D
Original modification in Italian version available here (http://www.cionfs.it/forum/vbulletin-e-vbseo-italia-vf19/guida-inserire-le-regole-di-scrittura-allapertura-di-un-nuovo-topic-vt5765.html).
Cionfs of Cionfs'Forum CMS (http://www.cionfs.it/forum/)
PS: Thanks to ctrlbrk for translation :)
Manoel J?nior
05-03-2009, 01:28 PM
Not functionally for me.
EidolonAH
05-04-2009, 11:12 AM
Brilliant, thank you.
tipoboy
05-04-2009, 11:55 AM
Not functionally for me.
in what way an explination of the problem may help :)
cionfs
05-04-2009, 12:02 PM
Not functionally for me.
vB version?
PhilG
05-09-2009, 12:14 AM
How would i make it show only for a certain forum?
cionfs
05-09-2009, 05:21 AM
You can use before code
<if condition="in_array($forum['forumid'], array(X,X,X,X))">
and after code
</if>
Change X with your forum's ID. :)
Markos
05-15-2009, 01:36 PM
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
<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>
cionfs
05-15-2009, 01:57 PM
hi i dont under stand whare i put this in the template can any one tell me ??
At the start of editor_toolbar_on template. Before all code.
and whare do i put the code so it only shows in serting forums
Use thid 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>
:)
Markos
05-15-2009, 01:59 PM
thanks very much that did the trick :)
ctrlbrk
06-15-2009, 09:52 AM
cionfs,
If I may -- here is a better English translation that you may wish to include for the installation instructions:
Many people have asked how to insert the rules when the members open a new thread.
Now how do you explain.
Open editor_toolbar_on template and add above all this code:
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:
---
HTH,
Mike
cionfs
06-15-2009, 10:04 AM
Thank you :)
Frondy
06-16-2009, 10:19 AM
Nice mod. I would like to enable this, but only for new member´s first post. Is it possible, and how?
Thanks
cionfs
06-16-2009, 10:32 AM
For members in first post
<if condition="$show['member']">
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
code
</if>
</if>
Frondy
06-16-2009, 11:53 AM
For members in first post
<if condition="$show['member']">
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
code
</if>
</if>
Thank you! :up:
Installed
vithorius
07-13-2009, 08:58 AM
Man, this would make an EXCELLENT installable product!
My idea:
To be able to define the 'rules' inside the AdminCP, on each Forum, on the "Forum Manager"
To be able to turn on (or off) only on the forums that we wish to turn it on (or off)...!
To be able to set individual 'rules' for each forum, according to what forum you set on the Forum Manager.
Last, but not least: THANK YOU FOR THIS HACK! :up: :up: :up:
vithorius
07-14-2009, 10:45 AM
I'm trying to install this hack on a v3.6.12 vBulletin board, but it is just not working...
I've get the following hack installed, and wonder if this the problem resides there, or if this hack is just not for v3.6.12...??? :confused:
Cyb - Prevent Newbies from Posting to Wrong Forum
https://vborg.vbsupport.ru/showthread.php?t=122994
Please HELP! :eek: :(
cionfs
07-14-2009, 10:59 AM
I'm trying to install this hack on a v3.6.12 vBulletin board, but it is just not working...
On the top Version: 3.8.x
vithorius
07-15-2009, 07:41 AM
On the top Version: 3.8.x
Yep... :(
Would it be difficult to implement it so it could work on v3.6.12? :confused:
Thank you! :up: :up:
cionfs
07-15-2009, 10:17 AM
Would it be difficult to implement it so it could work on v3.6.12? :confused:
Can you explain better the problem?
Does not appear?
vithorius
07-16-2009, 08:22 AM
Can you explain better the problem?
Does not appear?
Yes, that's it! It simply does not appear! :( :confused:
cionfs
07-16-2009, 04:22 PM
Yes, that's it! It simply does not appear! :( :confused:
Try with this code
<if condition="THIS_SCRIPT == 'newthread'">
<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>
Erica1977
03-09-2010, 12:06 PM
Thanks for this nice mod.
KDawg08
03-14-2010, 01:34 AM
Is there a way to set this DIFFERENTLY for each forum section?
pakdi
03-14-2010, 06:51 AM
Thank done...
Ichigo88
03-14-2010, 11:03 AM
Grazi cionfs ottima mod!^^
barcena
03-26-2010, 09:28 AM
Can we have this for 4.0.x ? That'll be awsome!.
cionfs
03-26-2010, 10:14 AM
Not for a moment.
See this: https://vborg.vbsupport.ru/showthread.php?t=221560 for adapting.
Artes_Marciales
03-04-2011, 01:29 PM
Amazing!!!
ramesh_umk3
07-19-2012, 02:19 AM
@ cionfs thx bro , working well , any chance in vb4 ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.