PDA

View Full Version : Miscellaneous Hacks - Rules when you open a new thread


cionfs
03 May 2009, 13:08
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://www.vbulletin.org/forum/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
03 May 2009, 15:28
Not functionally for me.

EidolonAH
04 May 2009, 13:12
Brilliant, thank you.

tipoboy
04 May 2009, 13:55
Not functionally for me.

in what way an explination of the problem may help :)

cionfs
04 May 2009, 14:02
Not functionally for me.

vB version?

PhilG
09 May 2009, 02:14
How would i make it show only for a certain forum?

cionfs
09 May 2009, 07:21
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
15 May 2009, 15:36
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
15 May 2009, 15:57
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
15 May 2009, 15:59
thanks very much that did the trick :)

ctrlbrk
15 Jun 2009, 11:52
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
15 Jun 2009, 12:04
Thank you :)

Frondy
16 Jun 2009, 12:19
Nice mod. I would like to enable this, but only for new member´s first post. Is it possible, and how?


Thanks

cionfs
16 Jun 2009, 12:32
For members in first post


<if condition="$show['member']">
<if condition="$post[postcount] % $vboptions[maxposts] == 1">

code

</if>
</if>

Frondy
16 Jun 2009, 13:53
For members in first post


<if condition="$show['member']">
<if condition="$post[postcount] % $vboptions[maxposts] == 1">

code

</if>
</if>


Thank you! :up:

Installed

vithorius
13 Jul 2009, 10:58
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
14 Jul 2009, 12:45
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
http://www.vbulletin.org/forum/showthread.php?t=122994


Please HELP! :eek: :(

cionfs
14 Jul 2009, 12:59
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
15 Jul 2009, 09:41
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
15 Jul 2009, 12:17
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
16 Jul 2009, 10:22
Can you explain better the problem?
Does not appear?
Yes, that's it! It simply does not appear! :( :confused:

cionfs
16 Jul 2009, 18:22
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
09 Mar 2010, 14:06
Thanks for this nice mod.

KDawg08
14 Mar 2010, 03:34
Is there a way to set this DIFFERENTLY for each forum section?

pakdi
14 Mar 2010, 08:51
Thank done...

Ichigo88
14 Mar 2010, 13:03
Grazi cionfs ottima mod!^^

barcena
26 Mar 2010, 11:28
Can we have this for 4.0.x ? That'll be awsome!.

cionfs
26 Mar 2010, 12:14
Not for a moment.

See this: http://www.vbulletin.org/forum/showthread.php?t=221560 for adapting.

Artes_Marciales
04 Mar 2011, 15:29
Amazing!!!

ramesh_umk3
19 Jul 2012, 04:19
@ cionfs thx bro , working well , any chance in vb4 ?