vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - UKBL ~This Day In History ~ Changes Daily (https://vborg.vbsupport.ru/showthread.php?t=199924)

UKBusinessLive 12-26-2008 10:00 PM

UKBL ~This Day In History ~ Changes Daily
 
1 Attachment(s)
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...

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

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-->

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..

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-->

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

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>

if you come up with alternative uses, feel free to share them here ;)

Thats it

Enjoy :D

UKBusinessLive 12-27-2008 05:46 PM

:D Reserved :D

Forum Lover 12-27-2008 07:59 PM

Cool.. was there a way to put Quotation of the Day and Today's Birthday too? :)

UKBusinessLive 12-27-2008 08:03 PM

Quote:

Originally Posted by Forum Lover (Post 1695025)
Cool.. was there a way to put Quotation of the Day and Today's Birthday too? :)

yes there is, Its basically the same idea, have a play with it

adhmwagde 12-27-2008 08:29 PM

great work :)

UKBusinessLive 12-28-2008 06:13 PM

Just updated with additional code to make it as 2nd post of each thread

https://vborg.vbsupport.ru/external/2008/12/8.png

Might be useful to use it as a sponsored advert, by adding a text ad to the bottom of the code ??

Enjoy :D

SgtTechHead 12-29-2008 11:28 PM

Nice work! I used it to create a template module for use on vBadvanced CMPS.

UKBusinessLive 12-30-2008 08:22 AM

Quote:

Originally Posted by SgtTechHead (Post 1696842)
Nice work! I used it to create a template module for use on vBadvanced CMPS.

brilliant idea, how about a link ?? ;)

SgtTechHead 12-30-2008 01:28 PM

Quote:

Originally Posted by UKBusinessLive (Post 1697022)
brilliant idea, how about a link ?? ;)

http://www.sgttech.us/home

You'll find it towards the bottom of the page ;)

I edited the css tags to match my style.

UKBusinessLive 12-30-2008 05:59 PM

that is so cool, brilliant :D


All times are GMT. The time now is 12:46 PM.

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.02030 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete