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)

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 --> 



All times are GMT. The time now is 11:14 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.02049 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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