PDA

View Full Version : Miscellaneous Hacks - Rules when you reply to a thread


cionfs
03 May 2009, 13:11
Many people have asked how to insert the rules when the members reply (not in quick reply) to a thread.
Now how do you explain.

Open editor_toolbar_on template and add above all this code:


<if condition="THIS_SCRIPT == 'newreply'">
<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://www.vbulletin.org/forum/external/2009/05/157.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-quando-si-risponde-ad-una-discussione-vt5766.html).

Cionfs of Cionfs'Forum CMS (http://www.cionfs.it/forum/)

avsunforum
03 May 2009, 14:20
nice thanks

gamerscms
03 May 2009, 15:17
Great mod thanks and installed :)

bokmade
03 May 2009, 18:17
Nice Hack, But If I want to show different rules in different forum ..

Any Idea How ..?

cionfs
03 May 2009, 18:22
Use this code


<if condition="$forum[forumid] == X">
<if condition="THIS_SCRIPT == 'newreply'">
<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>


Change X with your forum ID. :)

macc
03 May 2009, 19:50
hello!

i put like this in my editor_toolbar_on template:

<if condition="THIS_SCRIPT == 'newthread'">
<if condition="$show['member']">
<strong>Hello $bbuserinfo[musername]! Your message here:</strong><br />
<ul>
<li><b> rule 1. </b></li>
<li><b> rule 2. </b></li>
<li><b> rule 3. </b></li>
</ul>
</if>
</if>
<else />
<if condition="THIS_SCRIPT == 'newreply'">
<if condition="$show['member']">
<strong>Hello $bbuserinfo[musername]! Your message here:</strong><br />
<ul>
<li><b> rule 4. </b></li>
<li><b> rule 5. </b></li>
<li><b> rule 6. </b></li>
</ul>
</if>
</if>

and it works ...
regards and thanks for mod
macc

bokmade
03 May 2009, 19:54
Use this code


<if condition="$forum[forumid] == X">
<if condition="THIS_SCRIPT == 'newreply'">
<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>


Change X with your forum ID. :)
Thanks ..

synseal
04 May 2009, 00:09
Very good!!!, Thank you for taking the time to post this mod. Very helpful on my forum. Installed :)