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 reply to a thread (https://vborg.vbsupport.ru/showthread.php?t=212739)

cionfs 05-02-2009 10:00 PM

Rules when you reply to a thread
 
1 Attachment(s)
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:

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

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/157.jpg

PS: sorry for my english :D

Original modification in Italian version available here.

Cionfs of Cionfs'Forum CMS

avsunforum 05-03-2009 12:20 PM

nice thanks

gamerscms 05-03-2009 01:17 PM

Great mod thanks and installed :)

bokmade 05-03-2009 04:17 PM

Nice Hack, But If I want to show different rules in different forum ..

Any Idea How ..?

cionfs 05-03-2009 04:22 PM

Use this code

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 05-03-2009 05:50 PM

hello!

i put like this in my editor_toolbar_on template:

Code:

<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 05-03-2009 05:54 PM

Quote:

Originally Posted by cionfs (Post 1803741)
Use this code

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 05-03-2009 10:09 PM

Very good!!!, Thank you for taking the time to post this mod. Very helpful on my forum. Installed :)


All times are GMT. The time now is 02:36 PM.

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.01151 seconds
  • Memory Usage 1,731KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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