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

Reply
 
Thread Tools
This Day In History ~ Changes Daily Details »»
This Day In History ~ Changes Daily
Version: 1.00, by UKBusinessLive UKBusinessLive is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.4 Rating:
Released: 12-26-2008 Last Update: Never Installs: 12
Template Edits
Re-useable Code Translations  
No support by the author.

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



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



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

Show Your Support

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

Comments
  #12  
Old 12-28-2008, 02:22 AM
James Argo's Avatar
James Argo James Argo is offline
 
Join Date: Jul 2007
Location: In my bassement...
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is verrry nice!!!

However, since my site is music related, I wonder if I can "pull" data from another source like:

http://www.thisdayinmusic.com/

http://datadragon.com/day/

Anyway, it's great mod indeed!
Reply With Quote
  #13  
Old 12-28-2008, 02:37 AM
GSeybold GSeybold is offline
 
Join Date: Dec 2007
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey James

let me know how that works. I would like to do the same if I can figure it out.
Reply With Quote
  #14  
Old 12-28-2008, 02:55 AM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by James Argo View Post
This is verrry nice!!!

However, since my site is music related, I wonder if I can "pull" data from another source like:

http://www.thisdayinmusic.com/

http://datadragon.com/day/

Anyway, it's great mod indeed!
You could use something like this http://www.newsniche.com/using-javas...isplay-rss.php

Take the RSS feeds from those sites and parse them through that program so they're html and it would be pretty much the same as this.

like here is one for your first link This Daily Music

Sorry to go off topic
Reply With Quote
  #15  
Old 12-28-2008, 06:16 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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



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

Enjoy
Reply With Quote
  #16  
Old 12-30-2008, 02:30 AM
James Argo's Avatar
James Argo James Argo is offline
 
Join Date: Jul 2007
Location: In my bassement...
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinL View Post
You could use something like this http://www.newsniche.com/using-javas...isplay-rss.php

Take the RSS feeds from those sites and parse them through that program so they're html and it would be pretty much the same as this.

like here is one for your first link This Daily Music

Sorry to go off topic
Thank you KevinL

* I clicked installed *
Reply With Quote
  #17  
Old 12-30-2008, 08:57 AM
steve1966 steve1966 is offline
 
Join Date: Dec 2007
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, just one thing i had to change the code because it aslo centered the Currently Active Users:

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--></div>
Reply With Quote
  #18  
Old 12-30-2008, 12:44 PM
Bio-Con Bio-Con is offline
 
Join Date: Aug 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is really cool, Thanks!
Reply With Quote
  #19  
Old 01-02-2009, 08:31 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bio-Con View Post
This is really cool, Thanks!
Thanks
Reply With Quote
  #20  
Old 01-08-2009, 02:15 PM
scottny scottny is offline
 
Join Date: Nov 2008
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I am new to all these adding things to the site but I like this. Is there anyway do you think that it could be changed to do all Disney information.
I run a Disney site and would love it to do "This day in History" for it.

If you think it can and you can walk me through it I would love it.

Thank you,

Scott
Reply With Quote
  #21  
Old 01-09-2009, 12:02 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scottny View Post
Ok I am new to all these adding things to the site but I like this. Is there anyway do you think that it could be changed to do all Disney information.
I run a Disney site and would love it to do "This day in History" for it.

If you think it can and you can walk me through it I would love it.

Thank you,

Scott

Hi Scottny

Thanks for your idea, however the information comes directly from the http://www.thefreedictionary.com/ site.
I have not control over the content unfortunately
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 08:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05529 seconds
  • Memory Usage 2,323KB
  • 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
  • (4)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
  • (3)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