vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   v3 Arcade - Games Arcade & Challenge System [vB 3.0.3] (https://vborg.vbsupport.ru/showthread.php?t=60377)

Warlord 07-31-2004 01:44 AM

Ok, after I read up on the last few pages I got it to work (seemingly) perfect on 3.0.3.

Great hack folks!

palerider 07-31-2004 07:50 AM

Quote:

Originally Posted by MaDCaT75
would you miss me if I killed myself too?

Nope, but go for it anyway Antioch

Barrikin 07-31-2004 02:17 PM

I'm running it on Vb303 Everything works good but the postbit.

Any clue why?

sarge0087 07-31-2004 02:57 PM

Does anyone have a solution to my problem?

sarge0087 08-02-2004 03:44 AM

What does extendsession do?

John 08-02-2004 06:45 PM

Updated the instructions to work with vBulletin 3.0.3, for those installing for the first time.

sarge0087 - extendsession prolongs the session of a user in vBulletin during gameplay, to stop them from being logged out automatically after they've been playing a game. (Which happens if a user isn't using cookies, for example.)

sarge0087 08-03-2004 12:14 AM

What exactly changed in the instructions?

Limey-YMR 08-03-2004 03:31 AM

Quote:

Originally Posted by eskay
Read the top two posts. This is the only thing thats wrong in 3.0.3 I found.

https://vborg.vbsupport.ru/showthrea...page=171&pp=15

I had a post to fix that prob the day after 3.0.3 came out -
https://vborg.vbsupport.ru/showpost....postcount=2448
(I installed 3.0.3 on a 900+ user live forum 1 hour after release!) <-- sucker for punishment!

Coyote75 08-03-2004 08:01 AM

how does one create the table?

lierduh 08-07-2004 03:22 AM

A mini hack to have the trophies displayed in two columns. With more and more games added, the forum members who have a lot of trophies can cause plenty of vertical space in the post header area, especially for forums using the new postbit. This mini-hack will display the trophies in two columns, put into consideration of even or odd number of trophies.


includes/functions_showthread.php

Find this

PHP Code:

    if ($arcadegeneral['awardson']==1) {
        foreach (
$awards as $key => $award) {
            if (
$award['userid']==$post['userid']) {
                eval(
'$post[\'arcadeawards\'] .= "' fetch_template('arcade_awards_bit') . '";');
            }
        }
    } 

Above code was inserted as the standard installation, replace it with

PHP Code:

        if ($arcadegeneral['awardson']==1) {
                if (!empty(
$awards))
                {
                        
$c 1;
                        
$post['arcadeawards'] = '<td width="100%"><table>';
                        foreach (
$awards as $key => $award) {
                                if (
$award['userid']==$post['userid']) {
                                        eval(
'$post[\'arcadeawards\'] .= "' fetch_template('arcade_awards_bit') . '";');
                                        
$c++;
                                }

                        }
                        
$c++;
                        if (
$c 2) {
                                
$post['arcadeawards'] .= "<td>&nbsp;</td></tr>";
                        }
                        
$post['arcadeawards'] = $post['arcadeawards'] . "</table></td>";
                }
        } 

(note the above code includes html tags, they should really be put into a template. So please regard this mini-hack as the quick and dirty hack)

Change arcade_awards_bit template to:

PHP Code:

<if condition="$c % 2"><tr>
<
td><if condition="$award[icon]!=''"><a href="arcade.php?do=play&gameid=$award[gameid]"><img src="$stylevar[imgdir_arcade]/$award[icon]alt="High Score: $award[highscore]align="absmiddle" border=0></a> </if><span class="smallfont">$award[gametitleChampion!</span></td>
<else />
<
td><if condition="$award[icon]!=''"><a href="arcade.php?do=play&gameid=$award[gameid]"><img src="$stylevar[imgdir_arcade]/$award[icon]alt="High Score: $award[highscore]align="absmiddle" border=0></a> </if><span class="smallfont">$award[gametitleChampion!</span></td></tr></if> 

Have I missed anything? I forgot about the way I implemented originally after upgrading to v3.0.3, so I had to restart again. Above are the notes I put down. I hope I have not missed anything.


All times are GMT. The time now is 05:29 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.04811 seconds
  • Memory Usage 1,772KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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