The Arcive of vBulletin Modifications Site. |
|
Info Box when starting new thread Details »»
|
|||||||||||||||||||||||||
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> 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>
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
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
COol Thanks
|
|
#3
|
|||
|
|||
|
great idea
|
|
#4
|
||||
|
||||
|
Nice, but very invalid XHTML:
1. You can't have breaks (nor any other tag) between a closed and an open Listelement. So it has to look like this: Code:
<li>Rule 1: <br />Make sure that..... <br />and please do not... <br />oh and you should never </li> <li>Rule 2: . . . Code:
<br /> |
|
#5
|
|||
|
|||
|
how could i use this to display in only one forum
![]() edit: found the code Code:
<if condition="in_array($forumid, array(x, y, z))"> |
|
#6
|
||||
|
||||
|
Can this be done on a per-forum basis? I have many forums wth completely different rules. I would love to have this display the forum rules before a post is made.
|
|
#7
|
||||
|
||||
|
is there a way so we can make this a plugin?
|
|
#8
|
|||
|
|||
|
Quote:
See my post above yours for the code to do it per forum. |
|
#9
|
||||
|
||||
|
Quote:
|
|
#10
|
|||
|
|||
|
Quote:
and before you ask. i can not do it. this is just how i was able to get such a Info Box into my forum
|
![]() |
|
|