Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Daily Game - Posts a new flash game to your vBulletin every day Details »»
Daily Game - Posts a new flash game to your vBulletin every day
Version: 2.1, by DailyGame DailyGame is offline
Developer Last Online: Jan 2011 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 01-11-2010 Last Update: 08-11-2010 Installs: 79
Uses Plugins
Additional Files Translations  
No support by the author.

Daily Game posts a new flash game to your vBulletin once per day in a new thread. Daily Game will help your vBulletin by:
  • Starting up conversations on slow days
  • Increasing retention since users are playing on your forum
  • Help you get links and improve SEO (flash games get a lot of links!)
  • Make you money! Use your own ad code to display an ad while the flash game is loading. These pre-roll ads get very high eCPM!

Install time: 5 minutes
Installation difficulty: Easy
Demo: http://www.playedonline.com/forum/showthread.php?t=40

Updated to version 1.5 : No manual template modifications and title and content customization

Updated to version 2.1 : simple_xml support is no longer required, enabled bbcodes on the game thread, support for switched off boards.

Installation instructions
  1. Upload add_daily_game.php to the vBulletin root directory
  2. Import the product XML file (Plugins & Products -> Manage Products - > [Add/Import Product])
  3. Configure the Daily Game settings under vBulletin Options -> vBulletin Options -> Daily Game:
    • Set ?Enabled? to Yes
    • Visit www.playedonline.com/register_vbulletin to register (input your forum's url and your email) and get a shared key for authentication.
    • Configure which userid will post the daily games (input 0 for guest)
    • Choose a forum for Daily Game
    • Customise the title (useful for non-English forums) or leave blank for default
    • Enable or disable description and instructions
    • Paste ad code (e.g. AdSense) to show a pre-roll ad before the game starts (optional, leave empty to show no ads)
    • Click the Test link you got in the registration e-mail to post a test daily game (you can delete the test post after you verify that it works)
    • You're done! A daily game will be posted on your forum every day at 3am EST.
  4. Optional : if you switch off your vBulletin from time to time you can make sure the games are posted even if the board is off by making those small changes:
    • Add the following code to /includes/functions.php
      PHP Code:
      function endswith($string$test) {
          
      $strlen strlen($string);
          
      $testlen strlen($test);
          if (
      $testlen $strlen) return false;
          return 
      substr_compare($string$test, -$testlen) === 0;

    • In global.php find the line
      PHP Code:
      if (!$vbulletin->options['bbactive'] AND THIS_SCRIPT != 'login'
      and replace with
      PHP Code:
      if (!$vbulletin->options['bbactive'] AND THIS_SCRIPT != 'login' AND !endswith($_SERVER["SCRIPT_NAME"], '/add_daily_game.php')) 

Download Now

File Type: php add_daily_game.php (7.0 KB, 162 views)
File Type: xml product-daily_game.xml (5.1 KB, 158 views)

Screenshots

File Type: jpg sand castle.jpg (96.6 KB, 0 views)
File Type: jpg settings.jpg (82.0 KB, 0 views)

Show Your Support

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

Comments
  #22  
Old 01-13-2010, 05:38 PM
kokoboten kokoboten is offline
 
Join Date: Dec 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you using the postbit_legacy template by any chance?
In that case I guess you will need to make the same changes as in the code above
Reply With Quote
  #23  
Old 01-13-2010, 05:45 PM
chris&barb chris&barb is offline
 
Join Date: Sep 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, postbit screenshot attached
Reply With Quote
  #24  
Old 01-13-2010, 06:16 PM
DailyGame DailyGame is offline
 
Join Date: Jan 2010
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chris&barb View Post
no, postbit screenshot attached
What he means is that your vBulletin might be configured to use the postbit legacy template in which case you should edit the postpit_legacy template the same way you edited the postbit template.
Reply With Quote
  #25  
Old 01-13-2010, 06:27 PM
chris&barb chris&barb is offline
 
Join Date: Sep 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok ill look at it
Reply With Quote
  #26  
Old 01-13-2010, 06:37 PM
chris&barb chris&barb is offline
 
Join Date: Sep 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DailyGame View Post
What he means is that your vBulletin might be configured to use the postbit legacy template in which case you should edit the postpit_legacy template the same way you edited the postbit template.
Ok says it working now after i edited all styles postbit legacy templates.

Thanks!
Reply With Quote
  #27  
Old 01-13-2010, 06:38 PM
kokoboten kokoboten is offline
 
Join Date: Dec 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good job
Reply With Quote
  #28  
Old 01-14-2010, 04:07 PM
Itchy Nips's Avatar
Itchy Nips Itchy Nips is offline
 
Join Date: Jun 2009
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great. got my daily game this morning.
Reply With Quote
  #29  
Old 01-16-2010, 03:12 AM
Forumi Shqiptar's Avatar
Forumi Shqiptar Forumi Shqiptar is offline
 
Join Date: Aug 2005
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged for the time being will check it at a later date but looks good
Reply With Quote
  #30  
Old 01-16-2010, 02:42 PM
chris&barb chris&barb is offline
 
Join Date: Sep 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working just fine for me
Reply With Quote
  #31  
Old 01-19-2010, 09:51 AM
DailyGame DailyGame is offline
 
Join Date: Jan 2010
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all

We have updated the mod - now it has more customization options and doesn't require manual template edits.

If you wish to upgrade to the new version you should download the attached files, replace add_daily_game.php and import the product xml file (after removing the previous version). Make sure you have the shared key before the update.

If you still need help post a reply here or send a PM - we will gladly assist
Reply With Quote
Reply

Thread Tools

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 05:15 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.07375 seconds
  • Memory Usage 2,340KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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
  • (5)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete