Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Info Box when starting new thread Details »»
Info Box when starting new thread
Version: 1.00, by Avalon111 Avalon111 is offline
Developer Last Online: Jul 2007 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-20-2006 Last Update: Never Installs: 32
Template Edits
 
No support by the author.

This small modification will add a Info Box that is shown when a new thread is started.

It can be used to "remember" the users to follow the posting guidelines.

open admincp:
styles & templates -> Style Manager -> edit templates -> New posting templates -> newthread

look for:
Code:
<tr>
	<td class="tcat">
		<span class="smallfont" style="float:$stylevar[right]"><strong>$vbphrase[forum]</strong>: <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a></span>
		$vbphrase[post_new_thread]
	</td>
</tr>
below add your code
Code:
<tr>
	<td class="panelsurround">
<div class="panel">

<b><font size="4">Important:</font></b>

<ul>
<li>Rule 1:</li>
<li>Rule 2:</li>
<li>Rule 3:</li>
</ul>

If you do not follow this advice your post will be ignored or deleted.
	</td>
</tr>
If you want multiple lines under the Rules i.e.
  • Rule 1:
    Make sure that.....
    and please do not...
    oh and you should never
  • Rule 2:
    Make sure that.....
    and please do not...
    oh and you should never

you have to use </br> at the point you want the text to start in a new line.

i.e.
Code:
<tr>
	<td class="panelsurround">
<div class="panel">

<b><font size="4">Important:</font></b>

<ul>
<li>Rule 1:</li>
 </br>Make sure that.....
 </br>and please do not...
 </br>oh and you should never
<li>Rule 2:</li>
 </br>Make sure that.....
 </br>and please do not...
 </br>oh and you should never
<li>Rule 3:</li>
 </br>Make sure that.....
 </br>and please do not...
 </br>oh and you should never
</ul>

If you do not follow this advice your post will be ignored or deleted.
	</td>
</tr>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-23-2006, 03:26 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the reply. This is useless to me, but maybe helpful to others.
Reply With Quote
  #13  
Old 06-28-2006, 07:19 PM
SHalliday's Avatar
SHalliday SHalliday is offline
 
Join Date: Jan 2002
Location: Norwalk, CT
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I needed. Thank you very much, as I "click Install"
Reply With Quote
  #14  
Old 07-01-2006, 05:08 PM
Hornbone Hornbone is offline
 
Join Date: Jun 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love it, very helpful!
Reply With Quote
  #15  
Old 07-26-2006, 05:41 AM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we set specific forums for this to be set up in?

I have a development subforum that would benefit greatly from this but it wouldn't really be useful anywhere else on my forums.
Reply With Quote
  #16  
Old 07-26-2006, 05:48 AM
Avalon111 Avalon111 is offline
 
Join Date: Dec 2004
Location: Austria
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zeroality
Can we set specific forums for this to be set up in?
as it only is a simple template edit -> NO

maybe a advanced coder can take this a few steps further

but you can try this -> post#5
Reply With Quote
  #17  
Old 07-27-2006, 05:34 AM
chkdgate's Avatar
chkdgate chkdgate is offline
 
Join Date: Jun 2006
Location: US
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very simple and effective. Thank you. *installed*
Reply With Quote
  #18  
Old 08-05-2006, 01:09 PM
JD210 JD210 is offline
 
Join Date: Dec 2004
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice. Is it possible to use this for posting Replys as well?
Reply With Quote
  #19  
Old 09-29-2006, 02:53 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very helpful - thanx for the sharing - hits install

Jacquii.
Reply With Quote
  #20  
Old 10-10-2006, 11:51 AM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very useful addition...thanks mate.
Reply With Quote
  #21  
Old 10-17-2006, 01:34 PM
simalert simalert is offline
 
Join Date: Jan 2006
Location: UK
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JD210
Very nice. Is it possible to use this for posting Replys as well?
Yes, I've set that up on my own forum so you get a different notice for new threads and one for replies.

Simlpy search for this code instead in the Newreply template
Code:
<td class="tcat">
		<span class="smallfont" style="float:$stylevar[right]"><strong>$vbphrase[thread]</strong>: <a href="showthread.php?$session[sessionurl]t=$threadinfo[threadid]">$threadinfo[title]</a></span>
		$vbphrase[reply_to_thread]
	</td>
</tr>
and paste your new code under that.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:02 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.09743 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete