vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - Daily Game - Posts a new flash game to your vBulletin every day (https://vborg.vbsupport.ru/showthread.php?t=232862)

DailyGame 01-11-2010 10:00 PM

Daily Game - Posts a new flash game to your vBulletin every day
 
1 Attachment(s)
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')) 


MrRem 01-12-2010 08:15 AM

Tagged. Looks promising.
Will wait on feedback though first :)

cykelmyggen 01-12-2010 02:57 PM

Looks real nice - any chance for a vB 4 release for this one?

scottct1 01-12-2010 03:14 PM

Installed, can't wait for my first game.

lazydesis 01-12-2010 04:05 PM

Looks very good.

However one question, where do all those ads come from? Can I put my own ads or are they coming from the actual sponsor of the game?

DailyGame 01-12-2010 06:51 PM

Quote:

Originally Posted by cykelmyggen (Post 1953602)
Looks real nice - any chance for a vB 4 release for this one?

Yes, soon.

Quote:

Originally Posted by lazyindian (Post 1953662)
Looks very good.

However one question, where do all those ads come from? Can I put my own ads or are they coming from the actual sponsor of the game?

In the demo link the first ad that you see before the game loads is up to you to configure. You can put a 300x250 ad code there or you can leave it blank and the game will load straight away with no delay.

The second ad that you see is part of the game itself. Some flash game developers put ads in their games to make money - that's just the price of free content. Both ads together run about 30 seconds and the game loads in the background while they display so normally they don't add any actual wait time for the user.

Hornstar 01-12-2010 09:07 PM

Interesting, Might give this a go. Thanks.

kokoboten 01-13-2010 09:43 AM

Could someone who tried the plugin give some feedback?

Itchy Nips 01-13-2010 10:59 AM

i have it installed but haven't gotten a daily game yet, which is my fault. I registered on your site but forgot to put "/forums"at the end of my link, so the daily game will not appear.

should I re-register or can you edit that yourself (on your site)?

DailyGame 01-13-2010 11:29 AM

Quote:

Originally Posted by Itchy Nips (Post 1954308)
should I re-register or can you edit that yourself (on your site)?

Re-registering would work but I just fixed it for you so there's no need. You can click the test link from the confirmation e-mail to make sure it works now.

Itchy Nips 01-13-2010 01:14 PM

thanks, i'll try it now.

update:
it works great. thanks!

chris&barb 01-13-2010 04:29 PM

Where exactly am i supposed to place the above code?

I found this
PHP Code:

<!-- message -->
<
div id="post_message_$post[postid]">
    
$ad_location[ad_showthread_firstpost_start]
    
$post[message]
</
div>
<!-- / 
message --> 

But im not sure what im supposed to replace with this
PHP Code:

<if condition="$thread[forumid] == $vboptions[daily_game_forum] AND $post[userid] == $vboptions[daily_game_poster]">
    
$post[pagetext]
<else />
    
$post[message]
</if> 

Does this go after something or do i actually replace something?

DailyGame 01-13-2010 04:33 PM

Replace:

PHP Code:

$post[message

With:

PHP Code:

<if condition="$thread[forumid] == $vboptions[daily_game_forum] AND $post[userid] == $vboptions[daily_game_poster]">
    
$post[pagetext]
<else />
    
$post[message]
</if> 


chris&barb 01-13-2010 04:41 PM

Forget it i found where to add the code but when i go to you site to test it says "Exception : 404 Not Found"

DailyGame 01-13-2010 04:51 PM

Quote:

Originally Posted by chris&barb (Post 1954623)
Forget it i found where to add the code but when i go to you site to test it says "Exception : 404 Not Found"

Did you upload the php file to your forum root?

chris&barb 01-13-2010 04:58 PM

Yes, i just tested again and now it says "The test game should now appear in your forum" but nothing shows. The user ID is set to mine and the forum to be posted in is our off topic forum

chris&barb 01-13-2010 05:11 PM

its working now! thanks ill give feedback in a few days

chris&barb 01-13-2010 05:15 PM

Sorry for yet another post but this is how the game shows up

http://www.reef-geeks.com/forums/gee...test-game.html

DailyGame 01-13-2010 05:21 PM

That means that your postbit template was not edited correctly. Did you replace $post[message] with
PHP Code:

<if condition="$thread[forumid] == $vboptions[daily_game_forum] AND $post[userid] == $vboptions[daily_game_poster]"
    
$post[pagetext
<else /> 
    
$post[message
</if> 


chris&barb 01-13-2010 05:28 PM

yes. this is what the whole section looks like

PHP Code:

<!-- message -->
        <
div id="post_message_$post[postid]">
            
$ad_location[ad_showthread_firstpost_start]
            <if 
condition="$thread[forumid] == $vboptions[daily_game_forum] AND $post[userid] == $vboptions[daily_game_poster]">
    
$post[pagetext]
<else />
    
$post[message]
</if>  
        </
div>
        <!-- / 
message --> 


kokoboten 01-13-2010 05:38 PM

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

chris&barb 01-13-2010 05:45 PM

1 Attachment(s)
no, postbit screenshot attached

DailyGame 01-13-2010 06:16 PM

Quote:

Originally Posted by chris&barb (Post 1954681)
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.

chris&barb 01-13-2010 06:27 PM

ok ill look at it

chris&barb 01-13-2010 06:37 PM

Quote:

Originally Posted by DailyGame (Post 1954711)
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!

kokoboten 01-13-2010 06:38 PM

good job

Itchy Nips 01-14-2010 04:07 PM

works great. got my daily game this morning.

Forumi Shqiptar 01-16-2010 03:12 AM

tagged for the time being will check it at a later date but looks good

chris&barb 01-16-2010 02:42 PM

Working just fine for me

DailyGame 01-19-2010 09:51 AM

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

TheInsaneManiac 01-26-2010 12:56 AM

Will google adsense work in the advertisement area?

DailyGame 01-26-2010 02:51 PM

Yes definitely, just make sure you comply Google's terms of service

Koroku 01-27-2010 05:28 AM

I added it, and we're having fun with it :)

http://forums.dats.us/forumdisplay.php?f=222

DailyGame 02-01-2010 08:29 AM

A new version is released - with more customization options and several fixes for the installation
Make sure to check it!

Prettyeyes4you 02-01-2010 08:19 PM

Trying this now on our test forum, very interested to see this

Thanks:up:

Itchy Nips 02-02-2010 11:15 AM

I noticed I didnt get a flash game today. We'll see if tomorrow its back to normal.

chris&barb 02-02-2010 12:06 PM

I havent gotten one for two days now. I guess we have to do the updates to start getting them again? Can you tell us what we are supposed to do with the update, just overwrite i guess?

Ski-Whiz 02-02-2010 06:22 PM

I'm using Akismet spam management and it keeps moderating my daily thread.

I have set the threshold which should be bypassing the spam scanning (per the spam settings), however it's still being scanned and moderated..

:(

iMageREAL 02-02-2010 07:57 PM

Quote:

Originally Posted by chris&barb (Post 1973008)
I havent gotten one for two days now. I guess we have to do the updates to start getting them again? Can you tell us what we are supposed to do with the update, just overwrite i guess?

Ya i hadnt recieved a game in a couple days either,i just upgraded now to the new release,see if i get one tonight now, i will post more feedback tomorow if i did

and thats all i did was overwrite the .php and .xml

weindians 02-02-2010 08:36 PM

i installed this... everything according to given steps... test link said "The test game should now appear in your forum".. but test games didnt appear... i given a suboforum in one of main forum sections.. i have root @ www.sitedomain.com and forum home @ www.sitedomain.com/forum/index.php.... i have the php file @ /forum/....will see in 24 hours..


All times are GMT. The time now is 07:01 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.01608 seconds
  • Memory Usage 1,843KB
  • 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
  • (9)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete