vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Rules when you open a new thread (https://vborg.vbsupport.ru/showthread.php?t=212738)

cionfs 05-02-2009 10:00 PM

Rules when you open a new thread
 
1 Attachment(s)
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>

For add new rules add a new line with the code

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.

Cionfs of Cionfs'Forum CMS

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

Quote:

Originally Posted by Manoel J?nior (Post 1803591)
Not functionally for me.

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

cionfs 05-04-2009 12:02 PM

Quote:

Originally Posted by Manoel J?nior (Post 1803591)
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

Code:

<if condition="in_array($forum['forumid'], array(X,X,X,X))">
and after code
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
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>


cionfs 05-15-2009 01:57 PM

Quote:

Originally Posted by Markos (Post 1811179)
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.

Quote:

Originally Posted by Markos (Post 1811179)
and whare do i put the code so it only shows in serting forums

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>

:)

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:

Quote:

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

Code:

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

code

</if>
</if>


Frondy 06-16-2009 11:53 AM

Quote:

Originally Posted by cionfs (Post 1830603)
For members in first post

Code:

<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

Quote:

Originally Posted by vithorius (Post 1848514)
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

Quote:

Originally Posted by cionfs (Post 1848519)
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

Quote:

Originally Posted by vithorius (Post 1849057)
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

Quote:

Originally Posted by cionfs (Post 1849114)
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

Quote:

Originally Posted by vithorius (Post 1849797)
Yes, that's it! It simply does not appear! :( :confused:

Try with this code

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 ?


All times are GMT. The time now is 06:19 AM.

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.01287 seconds
  • Memory Usage 1,782KB
  • 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
  • (10)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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