The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
UKBL ~This Day In History ~ Changes Daily Details »» | |||||||||||||||||||||||||||||||||
UKBL ~This Day In History ~ Changes Daily
Developer Last Online: Feb 2012
UKBL ~This Day In History ~ Changes Daily This Day in History, Add this to your Forum for some really cool content that changes Daily Just a Little hack here which you can add to your Forums, Give you a bit of content which changes daily, Should keep your members amused. You can use this code in a variety of places, If you want it at the top of your forum you can add it to your header like below... or if you want to be a bit creative you can make a new category and add the code to the discription field, this is great if you want to break up your forum like this... Content changes daily and your members can read up more about the Day in History directly at the http://www.thefreedictionary.com/ site. So lets do it...... If you want to add the code to your header, or footer, simply go to your ACP > Style Manager > Your Style and add this to either the Header or Footer Code:
<DIV ALIGN=CENTER> <!--This Day in History by TheFreeDictionary.com--> <div style="width:750px;position:relative;background-color:;padding:4px"> <div style="font:bold 15pt '';color:#000000">This Day in History</div> <style> #TodaysHistory {width:100%;border:none;background-color:} #TodaysHistory H3 {margin-top:0px;font:bold 12pt '';color:#000000} #TodaysHistory TD {font:normal 10pt '';color:#000000} #TodaysHistory A {color:#0000FF} </style> <script language="javascript" src="http://img.tfd.com/daily/history-top.js?0"></script> <div style="font:normal 8pt '';color:#000000"> </div></div> <!--end of This Day in History--> In the title add : This Day In History In the discription add the code below.. Code:
<DIV ALIGN=CENTER> <!--This Day in History by TheFreeDictionary.com--> <div style="width:750px;position:relative;background-color:#FFFFFF"> <div style="font:bold 15pt '';color:#000000"></div> <style> #TodaysHistory {width:100%;border:none;background-color:} #TodaysHistory H3 {margin-top:0px;font:bold 12pt '';color:#000000} #TodaysHistory TD {font:normal 10pt '';color:#000000} #TodaysHistory A {color:#0000FF} </style> <script language="javascript" src="http://img.tfd.com/daily/history-top.js?0"></script> <div style="font:normal 8pt '';color:#000000"> </div></div> <!--end of This Day in History--> *****************UPDATE********************** If you wanted to add this as an insertion after each 1st post you could use the code below (See picture ) This will show it after each 1st post in threads Just go to your ACP> Style Manager> Your Style> Edit Templates> Forum Display Template> Postbit Template > (then your chosen Positbit ~ either plain postbit or legecy) Add this code to the very end of your postbit template Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">This Day in History</td> </tr> <tr> <td class="alt1" align="center"> <!--This Day in History by TheFreeDictionary.com--> <div style="width:750px;position:relative;background-color:;padding:4px"> <div style="font:bold 15pt '';color:#000000">This Day in History</div> <style> #TodaysHistory {width:100%;border:none;background-color:} #TodaysHistory H3 {margin-top:0px;font:bold 12pt '';color:#000000} #TodaysHistory TD {font:normal 10pt '';color:#000000} #TodaysHistory A {color:#0000FF} </style> <script language="javascript" src="http://img.tfd.com/daily/history-top.js?0"></script> <div style="font:normal 8pt '';color:#000000"> </div> <!--end of This Day in History--> </if> </td> </tr> </table> </div> $spacer_close </if> Thats it Enjoy Screenshots
Show Your Support
|
Comments |
#22
|
|||
|
|||
Of course thats what its made for
|
#23
|
||||
|
||||
Great mod, thanks for releasing this!
On my site however I decided to add it to the bottom of the 'Whats Going On?' box. See sample screen shot attached. If you'd like to do the same you'll need to edit your FORUMHOME template. 1.) AdminCP->Style Manager->Edit Templates->FORUMHOME Look for: HTML Code:
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div> </td> </tr> </tbody> </if> $template_hook[forumhome_wgo_pos5] 2.) After paste: HTML Code:
<tbody> <tr> <td class="thead" colspan="2"> Daily Soup </td> </tr> </tbody> <tr> <td class="alt2"><img src="$stylevar[imgdir_misc]/calendar.gif" /></td> <td class="alt1" width="100%"> <div class="smallfont"> <DIV ALIGN=CENTER> <!--This Day in History by TheFreeDictionary.com--> <div style="width:750px;position:relative;background-color:;padding:4px"> <div style="font:bold 15pt '';color:#000000">This Day in History</div> <style> #TodaysHistory {width:100%;border:none;background-color:} #TodaysHistory H3 {margin-top:0px;font:bold 12pt '';color:#000000} #TodaysHistory TD {font:normal 10pt '';color:#000000} #TodaysHistory A {color:#0000FF} </style> <script language="javascript" src="http://img.tfd.com/daily/history-top.js?0"></script> <div style="font:normal 8pt '';color:#000000"> </div></div> <!--end of This Day in History--> </div> </td> </tr> </tbody> $template_hook[forumhome_wgo_pos6] |
#24
|
|||
|
|||
Now that looks Great
Thanks for sharing :up: |
#25
|
|||
|
|||
Quote:
excellent! I used your method! To the author, Cheers! |
#26
|
||||
|
||||
No problem at all, glad you like it!
|
#27
|
|||
|
|||
In the Postbit code one there is an extra </if> statement in there...also when i use the quick reply it doesnt work right
|
#28
|
|||
|
|||
thnx for this is looking great
marked as installed. was wondering about the same thing also.... is a bit annoying for the users to revert back to our place. Quote:
|
#29
|
|||
|
|||
Quote:
We need to add Code:
target="_blank" so find this line in the code Code:
<script language="javascript" src="http://img.tfd.com/daily/history-top.js?0"></script> Code:
<script language="javascript" src="http://img.tfd.com/daily/history-top.js?0" target="_blank" ></script> Code:
target="_blank" |
#30
|
|||
|
|||
Also if i put this under the first post in every thread...it wont work for firefox users when you use the quick reply
|
#31
|
||||
|
||||
nice!! thanks
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|