vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Add reminder text above quick reply form? (https://vborg.vbsupport.ru/showthread.php?t=246156)

kinkarso 07-08-2010 06:30 PM

Add reminder text above quick reply form?
 
Hi there,

I'm trying to add a reminder text above all quick-reply forms in a particular forum, to let my members know of the key rules for posting.

Does anyone know what a workable code for this would be?

Thanks!

eSekar 07-08-2010 06:56 PM

In SHOWTHREAD Template

Find:
PHP Code:

<vb:if condition="$show['quickreply']">
<
div id="qr_defaultcontainer" class="blockfoot floatcontainer qrcontainer<vb:if condition="$show['qr_require_click']"> qr_require_click</vb:if>"

Replace with:
PHP Code:

<vb:if condition="$show['quickreply']">
<
h4 align="center">
the key rules for posting<br />Another Line of the key rules for posting
</h4>
<
div id="qr_defaultcontainer" class="blockfoot floatcontainer qrcontainer<vb:if condition="$show['qr_require_click']"> qr_require_click</vb:if>"

.Change align="center" to left or right as you wish
.Change [ the key rules for posting<br />Another Line of the key rules for posting ] to whatever you want.

Results

Cheers.

kinkarso 07-08-2010 09:21 PM

Thanks! However, do you happen to know how I can have it only display across a particular forum? What would be the 'if' statement for that?

Thanks!
Donny

eSekar 07-08-2010 09:30 PM

Sure:
PHP Code:

<vb:if condition="in_array($forum['forumid'], array(5,2,23))">
<
h4 align="center">
the key rules for posting<br />Another Line of the key rules for posting
</h4>
</
vb:if> 

Change 5,2,23 to the forum ID's you want the content to appear on, feel free to add as many as you want in the same format.

Cheers.

kinkarso 07-08-2010 10:13 PM

That worked perfectly. Thanks again :).


All times are GMT. The time now is 11:12 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.01681 seconds
  • Memory Usage 1,727KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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