vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom thread msg for designated boards (https://vborg.vbsupport.ru/showthread.php?t=68885)

ChessMess 08-30-2004 06:44 PM

Custom thread msg for designated boards
 
I'm looking for a mod or method that would allow me to put a small message at the top of the first post in every thread for select board(s) within my forum. This would be useful for boards where you wish to convey a disclaimer but don't want to stick it in a sticky message that might be missed or ignored. It would need to be added to the message dynamically to ensure changes to the message are shown real time and editing of the message would not allow removal of the text.

Is there a mod that does this, or might someone with the skills find it of enough worth to create it?

Milorad 08-31-2004 12:05 AM

is the message the same all the time? or should it be variable for every thread?

if the message is static, you could do the following:


1) Edit both the Postbit and Postbit_Legacy templates.

2) find:
HTML Code:

                <!-- message -->
                <div>$post[message]</div>
                <!-- / message -->


3) before that, insert the following:
HTML Code:

                <!-- message -->
                <if condition="$post['postcount'] == 1">
                        <if condition="$forumid==1 OR $forumid==2">
                                <div><strong>

                                Your Disclaimer Goes Here

                                </strong></div>
                                <br />
                        </if>
                </if>
                <!-- / message -->


Make sure you change the numbers for the ForumID to whichever forums you want your message to appear in.

Thats it... it will insert a bold message directly above your post, on the first post in every thread in those forums only.

obviously this is only any good if your message is not too dynamic... since its coded into your template :(

I can barely manage template mods, but I am no use to you if you need a more complex hack.


All times are GMT. The time now is 07:29 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.00947 seconds
  • Memory Usage 1,714KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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