View Single Post
  #16  
Old 03-24-2002, 04:01 PM
David Bott David Bott is offline
 
Join Date: Dec 2001
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi All...I run AVS Forum and TiVo Community.

The Ticker was custom made for our sites because some other ticker that was posted that I had seen a while back had some issues and caused load issues on the database server. Not to mention it had some small issues.

You see, with the users that we have...say 1000 people were running the ticker that hit the database every 3 mins....Well you can see the major issue that it would cause. (Yes, we could easily have that many if not more using it.) The issue was, people really liked it so we needed to come up with something.

We thus worked on a PHP script that runs as a cron job every 5 mins. This script does the lookup for the 25 most recent posts and puts them to a text file. Thus every 5 min this text file is replaced.

We then made the HTML page that runs a java script that reads this data. Thus we have ONE database lookup every 5 mins and all the page reloads just hit the text file which is nothing for the server to send down.

We are also developing an installed EXE file that does the same read. The reason we are doing that is because we want something that will stay on-top on a desktop and a browser window does not do that. We hope to have this done my months end.

The other issue with the coding in the PHP database call is that we needed to hard code out forums we did not want shown. Thus is not just something you can plug in.

I give all the credit to one of my mods who did the development on this. We worked back an fourth on it and finely got it like you see it.

I will see what we can do maybe about posting it. BUT...You will need to go though it and make all the changes needed for YOUR site. On a large site, this is really the only way this will work without killing the database. Remember, you will need to make a number of mods for it to work including setting up a cron job.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01038 seconds
  • Memory Usage 1,763KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete