UKBusinessLive
12-26-2008, 10:00 PM
This Day in History
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...
https://vborg.vbsupport.ru/external/2008/12/10.png
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...
https://vborg.vbsupport.ru/external/2008/12/11.png
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
<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-->
If you want to add it within your forum, as a category type of insertion, just go to your ACP >Forums & Moderators > Add New Forum
In the title add : This Day In History
In the discription add the code below..
<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-->
Remember under Posting options select "NO" to "Act as Forum" This will keep it as a standalone category style.
*****************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
https://vborg.vbsupport.ru/external/2008/12/8.png
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
<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>
if you come up with alternative uses, feel free to share them here ;)
Thats it
Enjoy :D
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...
https://vborg.vbsupport.ru/external/2008/12/10.png
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...
https://vborg.vbsupport.ru/external/2008/12/11.png
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
<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-->
If you want to add it within your forum, as a category type of insertion, just go to your ACP >Forums & Moderators > Add New Forum
In the title add : This Day In History
In the discription add the code below..
<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-->
Remember under Posting options select "NO" to "Act as Forum" This will keep it as a standalone category style.
*****************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
https://vborg.vbsupport.ru/external/2008/12/8.png
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
<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>
if you come up with alternative uses, feel free to share them here ;)
Thats it
Enjoy :D