Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
AboutToday - Bring RSS Feeds and Daily Events to Your Site! Details »»
AboutToday - Bring RSS Feeds and Daily Events to Your Site!
Version: 2.0.4, by CyberRanger CyberRanger is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 02-05-2006 Last Update: 08-01-2006 Installs: 249
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

What is AboutToday?

AboutToday provides a central place to bring daily items of interest to your forum visitors. It includes two main components: an RSS Reader System and Local Events database System.

Please NOTE: This mod has been modified for vb ver 3.6.4. It should work on vb ver 3.5.4 and 3.6.x.
  1. An RSS Reader system where the admin can enter RSS feeds that will then be displayed on the page. RSS feeds can be set to AUTOMATICALLY create threads or be set so that users can easily create a thread from a feed.. Feeds can be read via fopen or cURL.





    The RSS Feeds are fully intergrated with vbAdvanced and could actually be placed anywhere you want!!
  2. A database system that can hold unlimited categories of "AboutToday" events. For example, you could have a history category (like a Today in History) with sub-categories for different eras in history. Or, you could have a daily joke or software tip of the day, etc.

    The "Add Event" feature is intended to help you if you want for example - Sports: Today in History. With the vb calendar, you cannot have categories and you are restricted with how far back the dates can go.




    So with the "Add Event" feature, you could have a category tree like:
    • Hockey
      • Professional
      • College
      • High School
    • Football
      • American Football
      • The Rest of the World (Soccer)
    • Baseball

    with the normal calendar feature, you cannot have categories. And with "Add Event" you can have any date. So, if you want an event like "Jan 1, 132 B.C. - the first ball was invented", you can do that. But, that isn't possible in the normal calendar. Also, the events in "Add Event" are fully searchable.

Installation

Copy the following files to your server in the forums directory:
abouttoday.php
includes/class.csv.php
includes/class_abouttoday.php
includes/cron/cron_abouttoday.php
includes/xml/bitfield_abouttoday.xml
includes/xml/cpnav_abouttoday.xml
admincp/abouttodayadmin.php
From the admincp, import the product file product-abouttoday.xml (Manage Products - Add/Import Product).

REFRESH your admincp window. You should now see a listing in the left column of the admincp for "AboutToday".

Getting Started

NOTE - if this is a new install, a Yahoo RSS Feed and CNN Entertainment Feed have been automatically added to give you a feel for how the product looks.

If you plan to use the RSS Feeds:

1. From the admincp, select AboutToday - RSS Feeds. Add an RSS Feed.
2. From the admincp, select Usergroups - Usergroup Manager. Add permissions so the Administrator group can use the product.
3. From your forum directory, bring up the file abouttoday.php.
4. If you want the feeds to AUTOMATICALLY create threads, go to admincp - abouttoday - settings. There you must set the userid of the account to use to create the thread. Then, edit the RSS Feed with the forumid of where the threads for that feed should be created!

If you plan to create your own "today in history" type of database:

1. From the admincp, select AboutToday - Categories. Add a category.
2. From your forum directory, bring up the file abouttoday.php. "Add" your first event to the category you have created!

Version Status
I've tested this product extensively but ... use this totally at your own risk!

Credits
I learned a lot about how to code this and used a lot of the code from what Ron1n did with ecDownloads. What I've learned from his code while helping to support ecDownloads has been invaluable.

Sites Using this Product
Visit www.armchairgeneral.com to see this product in action.

Click Install!
Please Click Install if you are using this product. Thanks!

Show Your Support

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

Comments
  #712  
Old 04-08-2007, 08:15 AM
YabbaDabba YabbaDabba is offline
 
Join Date: May 2004
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

About half way done reading the comments in here. <<phew>>

Congratulations on such a great add-on and the wonderful support. :up:

I see most of my concerns have been mentioned before, so just count my comments as checkmarks on the "ideas" list.

RE: the broken article displays, at least one of them is due to the double quotes issue. I will try your fix.

I have another that breaks on this line: "Amigos de los Ni?os"

The ? causes the rest of the article and the rest of the feed to disappear.

I can send you more info if you need it.
Reply With Quote
  #713  
Old 04-08-2007, 09:38 PM
YabbaDabba YabbaDabba is offline
 
Join Date: May 2004
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YabbaDabba View Post
RE: the broken article displays, at least one of them is due to the double quotes issue. I will try your fix.
I guess the problem I am seeing is a variation that hasn't been addressed yet. The article/feed is broken when I'm looking at a particular feed in abouttoday.php.

Removed "html_entity_decode" but that didn't have any visible affect on the article display.
Went the extra mile and did:
1 - deleted feed with double quotes.
2 - forced update
3 - updated abouttoday.php with your fix
4 - added same feed (with double quotes)
5 - forced update

Display in abouttoday.php Summary View was the same, i.e., the article terminated at the first double quote.

And just to be clear, these uni-sex double quotes (") are okay and these directional quotes (“ and ”) are not.
Not sure what characters these (“ and ”) are, perhaps Unicode 201C and 201D?

I also have some weirdness like Let?€™s displayed in the articles.
It is in the feed as Let’s (a right single quote?) and vB RSS Mgr displays it as Let’s (also a right single quote?).

Any suggestions or pointers?

This is the last hurdle before I can release this for use on our forums.
A multi-byte(?) character in one article can screwup not only AT's handling of the article, but AT's handling of its feed (and on occasion, a neighboring feed as well).
Reply With Quote
  #714  
Old 04-09-2007, 04:10 AM
YabbaDabba YabbaDabba is offline
 
Join Date: May 2004
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't like the "Talk About It" button at the end of headline because different headline lengths made the button's position look random.

I wanted to move the "Talk About It" button to the bottom-right of the article cell in abouttoday.php. That way, when displaying multiple articles from a feed, all the buttons would line up neatly.

The Talk ABout It button is defined in template histtd_talkit_bit and called in abouttoday.php via $talkitlink at about line 1975.

First remove $talkitlink from its present position next to the title:

OLD:
Code:
$dmainx .= "<tr valign=\"top\"><td class=\"alt1\" valign=\"top\" align=\"left\" width=\"100%\"><ul><li><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\">" .$rss_channel["ITEMS"][$i]["TITLE"]. "</a>".$talkitlink;
NEW:
Code:
$dmainx .= "<tr valign=\"top\"><td class=\"alt1\" valign=\"top\" align=\"left\" width=\"100%\"><ul><li><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\">" .$rss_channel["ITEMS"][$i]["TITLE"]. "</a>";

And move it to a new position at about line 1682

OLD:
Code:
$dmainx .= "<br />".iif($maxlengthevent>0,substr($rss_channel["ITEMS"][$i]["DESCRIPTION"],0,$maxlengthevent)." ...[<a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\">more</a>]",$rss_channel["ITEMS"][$i]["DESCRIPTION"]) . "</li></ul></td></tr>";
NEW:
Code:
$dmainx .= "<br />".iif($maxlengthevent>0,substr($rss_channel["ITEMS"][$i]["DESCRIPTION"],0,$maxlengthevent)." ...[<a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\">more</a>]",$rss_channel["ITEMS"][$i]["DESCRIPTION"]) . "</li></ul><div align=\"RIGHT\">$talkitlink</div></td></tr>";
where RIGHT can be LEFT or CENTER also.

In the final, I also took out the ul and li tags, but that's just my preference.

The result is much cleaner looking to my eye.
Reply With Quote
  #715  
Old 04-09-2007, 06:19 PM
YabbaDabba YabbaDabba is offline
 
Join Date: May 2004
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These were recommended to me. I am simply passing them on should anyone find them useful.

A tutorial on character code issues
http://www.cs.tut.fi/~jkorpela/chars.html
Excellent

Character Sets / Character Encoding Issues
http://www.phpwact.org/php/i18n/charsets
Pretty good overview of common issues but some gaps in coverage.
Has good list of resources at end too.
Reply With Quote
  #716  
Old 04-11-2007, 07:56 PM
ForumDrop ForumDrop is offline
 
Join Date: Nov 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed this on one of our Forums, but I keep getting this error code:

XML Error: not well-formed (invalid token) at Line 1

Thoughts?
Reply With Quote
  #717  
Old 04-11-2007, 08:50 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YabbaDabba View Post
These were recommended to me. I am simply passing them on should anyone find them useful.
Thanks for the detailed comments. I really need to recode a lot of this. As you can see, it's been a long time since I did an update. Now, just to find some time!
Reply With Quote
  #718  
Old 04-11-2007, 08:51 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForumDrop View Post
Just installed this on one of our Forums, but I keep getting this error code:

XML Error: not well-formed (invalid token) at Line 1

Thoughts?
At what point do you see that error? If it's for a specific feed, what's the feed? If on install, I'd suggest you re-download the zip file, extract it, and re-upload all the files to your server and re-import the product.
Reply With Quote
  #719  
Old 04-17-2007, 05:52 AM
YabbaDabba YabbaDabba is offline
 
Join Date: May 2004
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CyberRanger View Post
I really need to recode a lot of this. As you can see, it's been a long time since I did an update. Now, just to find some time!
If I may be so bold, I would suggest that the next priority/release should be:

1 - Handle feeds well
This includes "odd" double byte characters in feeds (e.g., “, ”, ?).

This is so critical, I'd ask that this be done before anything else is touched. Make this change and AT becomes instantly useable.
Reply With Quote
  #720  
Old 04-18-2007, 11:08 AM
mccollin mccollin is offline
 
Join Date: Jul 2003
Location: North Carolina, USA
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've had this installed for a long time, and all of a sudden it has started generating the following error - "XML error: junk after document element at line 2". Anyone else run into this, or have an idea what could be causing it?
Reply With Quote
  #721  
Old 04-18-2007, 11:10 AM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mccollin View Post
I've had this installed for a long time, and all of a sudden it has started generating the following error - "XML error: junk after document element at line 2". Anyone else run into this, or have an idea what could be causing it?
One of your feeds is providing invalid data. Take the url of each feed and pull it up in your browser. The bad feed should become evident. You can also disable a feed in turn, force an RSS Update as you disable each one, until the error stops.
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 03:38 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.05107 seconds
  • Memory Usage 2,330KB
  • 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
  • (5)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
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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