vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   'Tip of the Day' toughts (https://vborg.vbsupport.ru/showthread.php?t=72961)

MrNase 12-16-2004 07:06 AM

'Tip of the Day' toughts
 
Hello,

I plan to make a modifiction where you can display something like 'Tip of the Day' on top of your forums.

Everything should be in a small box and it should contain small tips like 'Smileys make your posts look friendly' or 'You can use bbcode to format your posts'.

The tips should be displayed randomly. The only thing I worry is about the way how to save the entries... By now I plan to use a plain textfile which stores any tip:


Code:

This is tip number 1.
*********
This is tip number 2.
*********
I guess you know what tip this is.
*********


Do you think thats faster than a query? Remember: The tip is read out of the database or textfile everytime one reloads the forums. I plan to disable it for guests (or spiders) but Iam afraid of the server load.

Xenon 12-18-2004 12:54 PM

actually a tip of the day should just change once a day, so i'd save all tips into the db, and then run a vb cron once a day to store one tip into the datastore cache, and then just always access the cached value :)

MrNase 12-19-2004 05:10 PM

Well ok.. A tip of the day should actually change once a day :D

I plan to do some sort of random tip which changes from reload to reload :)

Boofo 12-20-2004 07:59 AM

Quote:

Originally Posted by MrNase
Well ok.. A tip of the day should actually change once a day :D

I plan to do some sort of random tip which changes from reload to reload :)

I do a 10 minute quote on my site and I use the db for it. It's fast and only one query every 10 minutes to insert it into the datastore and uses no query to read it. ;)


All times are GMT. The time now is 06:00 AM.

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.02722 seconds
  • Memory Usage 1,712KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete