vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   v3arcade Who's Online in the Arcade? (https://vborg.vbsupport.ru/showthread.php?t=101880)

evenmonkeys 12-28-2005 05:56 AM

My What's Going On boxes are empty. Should they be? O_o

Currently Active Users: ( members and guests)
Games: , Categories:

The arcade champ is working.

Oblivion Knight 12-28-2005 07:44 AM

Looks like you forgot to edit or upload your edited arcade.php file.

evenmonkeys 12-29-2005 08:38 PM

Oh wow... I'm an idiot. Thanks!

Tralala 02-04-2006 11:43 AM

Just installed, looks great and works perfectly. Thanks!

However, it is reporting I have 14 categories. I really only have 11 distinct ones. Any way for it to not include "All," "Random," and "Favorites?"

Raydar 02-06-2006 03:31 PM

Hi Oblivion Knight,

Thanks for all your great work.

I have managed to mess something up somewhere.

I tried to install the champion hack and then the Who's online in the arcade hack and now I can't seem to get it to work.

The champion hack worked at first. When I tried to install the Who's Online Hack the arcade stopped working. So I uploaded a saved version of my arcade_main template and a saved version of my arcade.php so that the arcade is back online. I have gone through the install instructions again for the Champion hack but I can't get it to work anymore.

Could you or someone else here just compare this with their own arcade_main template code and let me know if this has errors somewhere. I have added the code for the Champion hack here but not the Who's Online Hack.

This is my template code

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <!-- end no cache headers -->
        $headinclude
        <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase> - $vbphrase[arcade]</title>

$arcade_headinclude

<style type="text/css">
.newsdate_alt1
{
        background: $stylevar[tcat_bgcolor];
        color: $stylevar[page_bgcolor];
        font: bold 10px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
        text-align: right;
}
.newsdate_alt2
{
        background: $stylevar[tcat_bgcolor];
        color: $stylevar[page_bgcolor];
        font: bold 10px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
        text-align: right;
}
.userinfopanel {
        position: absolute;
        z-index: 1000;
        filter:alpha(opacity=$vboptions[popupopacity]);
        opacity: $vboptions[popupopacityalt];
        -moz-opacity: $vboptions[popupopacityalt];
}
</style>

<script language="javascript">

var editorstring;
var activeid;
var activecontent;

function getObj(name)
{
 if (document.getElementById)
 {
          this.obj = document.getElementById(name);
          this.style = document.getElementById(name).style;
 }
 else if (document.all)
 {
          this.obj = document.all[name];
          this.style = document.all[name].style;
 }
 else if (document.layers)
 {
          if (document.layers[name])
          {
                  this.obj = document.layers[name];
                  this.style = document.layers[name];
          }
          else
          {
            this.obj = document.layers.testP.layers[name];
            this.style = document.layers.testP.layers[name];
          }
 }
}

function findPosX(obj)
{
        var curleft = 0;
        if (obj.offsetParent)
        {
                while (obj.offsetParent)
                {
                        curleft += obj.offsetLeft
                        obj = obj.offsetParent;
                }
        }
        else if (obj.x)
                curleft += obj.x;
        return curleft;
}

function findPosY(obj)
{
        var curtop = 0;
        if (obj.offsetParent)
        {
                while (obj.offsetParent)
                {
                        curtop += obj.offsetTop
                        obj = obj.offsetParent;
                }
        }
        else if (obj.y)
                curtop += obj.y;
        return curtop;
}

function show_userinfo(obj, lyr, userid)
{
        var newX = findPosX(obj);
        var newY = findPosY(obj);
        var x = new getObj(lyr);
        x.style.top = newY + 20 + 'px';
        x.style.left = newX + 'px';

        xml = new vB_AJAX_Handler(true);
        xml.onreadystatechange(infoprocess);


        sendstring = "xml.send('arcade.php', 'do=userinfosearch&userid=" + userid + "');";

        setTimeout(sendstring, $vboptions[hoverdelay]);

        document.getElementById('userpanel').innerHTML = '';
        document.getElementById('userpanel').style.visibility = 'visible';

        obj.onmouseout = function() {
                clearTimeout();
                document.getElementById('userpanel').style.visibility = 'hidden';
        }
}

function kill_panel()
{
        document.getElementById('userpanel').style.visibility = 'hidden';
}


function infoprocess()
{
        if (xml.handler.readyState == 4 && xml.handler.status == 200 && xml.handler.responseText)
        {
                document.getElementById('userpanel').innerHTML = xml.handler.responseText;
        }
}
</script>

</head>
<body>
$header
$navbar

<script type="text/javascript">
window.onload=function(){
if(!NiftyCheck())
    return;
        Rounded("div#whiterounded","all","$stylevar[alt1_bgcolor]","$stylevar[page_bgcolor]","smooth");
        Rounded("div#tabs","tl tr","$stylevar[page_bgcolor]","$stylevar[alt1_bgcolor]","small");
        Rounded("div.minitab","tl tr","$stylevar[alt1_bgcolor]","$stylevar[alt2_bgcolor]", "smooth");
        Rounded("div#minitab_active","tl tr","$stylevar[alt1_bgcolor]","$stylevar[tcat_bgcolor]", "smooth");
        Rounded("div.newsdate_alt1","tl","$stylevar[alt1_bgcolor]","$stylevar[tcat_bgcolor]","small");
        Rounded("div.newsdate_alt2","tl","$stylevar[alt2_bgcolor]","$stylevar[tcat_bgcolor]","small");
}

</script>

$ajaxinclude
<div class="userinfopanel" id="userpanel"></div>

<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td valign="top">

$welcomearea

<br />

<if condition="$challengebits">
<!-- challenges -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="center">$vbphrase[pending_challenges]</td>
</tr>
$challengebits
</table>
<!-- /challenges -->
<br />
</if>
<if condition="$vboptions['dispchamps'] == '1'">
<!-- arcade king(s) -->
<if condition="$mhsusername">

                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-top:3px">
                        <tr align="center">
                                <td class="thead" valign="middle" width="30%" nowrap="nowrap"><img src="$vboptions[arcadeimages]/king1.gif" alt="$vbphrase[arcade_champ]" class="inlineimg" border="0" /> $vbphrase[arcade_champ]:</td>
                                <td class="alt1" valign="middle" width="70%"><span class="smallfont"><phrase 1="$mhsusername" 2="$mosthigh" 3="$mhsuser">$vbphrase[x_with_y_titles]</phrase></span></td>
                        </tr>
                        </table>

<br />
</if>

<if condition="$mhsarray">

                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-top:3px">
                        <tr align="center">
                                <td class="thead" valign="middle" width="30%" nowrap="nowrap"><img src="$vboptions[arcadeimages]/king1.gif" alt="$vbphrase[arcade_champs]" class="inlineimg" border="0" /> $vbphrase[arcade_champs]:</td>
                                <td class="alt1" valign="middle" width="70%"><span class="smallfont"><phrase 1="$mhsarray" 2="$mosthigh" 3="$mhsuser">$vbphrase[x_with_y_titles_array]</phrase></span></td>
                        </tr>
                        </table>

<br />
</if>
<!-- / arcade king(s) -->
<else />
<br />
</if>
<if condition="$vboptions['dispchamps'] == '1'">
<!-- arcade king(s) -->
<if condition="$mhsusername">

                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-top:3px">
                        <tr align="center">
                                <td class="thead" valign="middle" width="30%" nowrap="nowrap"><img src="$vboptions[arcadeimages]/king1.gif" alt="$vbphrase[arcade_champ]" class="inlineimg" border="0" /> $vbphrase[arcade_champ]:</td>
                                <td class="alt1" valign="middle" width="70%"><span class="smallfont"><phrase 1="$mhsusername" 2="$mosthigh" 3="$mhsuser">$vbphrase[x_with_y_titles]</phrase></span></td>
                        </tr>
                        </table>

<br />
</if>

<if condition="$mhsarray">

                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-top:3px">
                        <tr align="center">
                                <td class="thead" valign="middle" width="30%" nowrap="nowrap"><img src="$vboptions[arcadeimages]/king1.gif" alt="$vbphrase[arcade_champs]" class="inlineimg" border="0" /> $vbphrase[arcade_champs]:</td>
                                <td class="alt1" valign="middle" width="70%"><span class="smallfont"><phrase 1="$mhsarray" 2="$mosthigh" 3="$mhsuser">$vbphrase[x_with_y_titles_array]</phrase></span></td>
                        </tr>
                        </table>

<br />
</if>
<!-- / arcade king(s) -->
<else />
<br />
</if>
<table cellpadding="0" cellspacing="0" align="center"><tr><td>
        <div id="tabs" class="alt1">
                <table cellpadding="2" cellspacing="0" style="margin: 0px 2px 0px 2px"><tr>
                                $gamecategories
                </tr></table>
        </div>
</td></tr></table>

<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr align="center">
          <td class="tcat" colspan="4">
            $vbphrase[arcadegames]<if condition="$categoryid"> - $categoryname</if>
          </td>
        </tr>
               
        <tr align="center">
          <td class="thead" align="left" width="100%">
<div style="float: right">$vbphrase[category] / $vbphrase[rating]</div>
<div style="padding-left: 74px">$vbphrase[game]</div>
</td>
          <td class="thead" width="100" nowrap>$vbphrase[champion]</td>
          <td class="thead" width="100" nowrap>$vbphrase[personalbest]</td>
        </tr>
</thead>
<tbody>
<if condition="$gamebits">
        $gamebits
<else />
        <tr><td class="alt1" colspan="3"><div align="center">$vbphrase[nogames]</div></td></tr>
</if>
</tbody>
</table>
<!-- /main -->

<if condition="$show['pagenav']">
<br />
$pagenav
</if>


</td>

<!-- spacer -->
<td valign="top" width="10">&nbsp;</td>
<!-- /spacer -->

<td valign="top" width="200">

<!-- right area -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr align="center">
          <td class="thead" width="200"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('loggedinas')"><img id="collapseimg_loggedinas" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_loggedinas].gif" alt="" border="0" /></a>$vbphrase[loggedinas]</td>
        </tr>
</thead>
<tbody id="collapseobj_loggedinas" style="$vbcollapse[collapseobj_loggedinas]">
        <tr align="center">
          <td class="alt1">
                $playerbox
          </td>
        </tr>
</tbody>
<thead>
        <tr align="center">
          <td class="thead" width="200"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('gamesearch')"><img id="collapseimg_gamesearch" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_gamesearch].gif" alt="" border="0" /></a>$vbphrase[gamesearch]</td>
        </tr>
</thead>
<tbody id="collapseobj_gamesearch" style="$vbcollapse[collapseobj_gamesearch]">
        <tr align="center">
          <td class="alt1">
                <input type="text" class="bginput" name="gamestring" onKeyUp="gamesearch(this.value)" />
          </td>
        </tr>
        <tr>
          <td class="alt1" style="padding: 0px">
<div id="searchtable">
<div class="smallfont" style="padding: 4px">$vbphrase[searchresultsappearbelow]</div>
</div>
          </td>
        </tr>
</tbody>
<thead>
        <tr align="center">
          <td class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newsandevents')"><img id="collapseimg_newsandevents" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_newsandevents].gif" alt="" border="0" /></a>$vbphrase[newsandevents]</td>
        </tr>
</thead>
<tbody id="collapseobj_newsandevents" style="$vbcollapse[collapseobj_newsandevents]">
        <tr align="center">
          <td class="alt1" valign="top" style="padding: 0px">
                  <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
                  $newsbits
                  </table>
          </td>
        </tr>
</tbody>
<if condition="$mcbits">
<thead>
        <tr align="center">
          <td class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('challenges')"><img id="collapseimg_challenges" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_challenges].gif" alt="" border="0" /></a>$vbphrase[recent_challenges]</td>
        </tr>
</thead>
<tbody id="collapseobj_challenges" style="$vbcollapse[collapseobj_challenges]">
<tr><td style="padding: 0px">

<table cellpadding="2" cellspacing="0" width="100%">
        $mcbits
</table>

</td></tr>
</tbody>
</if>
<thead>
        <tr align="center">
          <td class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('viewingmode')"><img id="collapseimg_viewingmode" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_viewingmode].gif" alt="" border="0" /></a>$vbphrase[viewingmode]</td>
        </tr>
</thead>
<tbody id="collapseobj_viewingmode" style="$vbcollapse[collapseobj_viewingmode]">
        <tr align="center">
          <td class="alt1" style="padding: 0px">
         
          <table cellpadding="4" cellspacing="0" width="100%"><tr>
          <td width="50%" align="right" class="alt1">
                  <div style="float:left"><img src="$vboptions[arcadeimages]/slim$barstatus[1].gif" border="0" /></div>
               
                <if condition="$barstatus[0]">
                        <span class="smallfont"><a href="arcade.php?barsize=1<if condition="$categoryid">&categoryid=$categoryid</if>">Miniature Mode</a></span>
                <else />
                        <span class="smallfont"><em>Miniature Mode</em></span>
                </if>
               
                </td>
                <td width="50%" class="alt2" align="left">
                <div style="float:right"><img src="$vboptions[arcadeimages]/thick$barstatus[0].gif" border="0" /></div>
               
                <if condition="$barstatus[1]">
                        <span class="smallfont"><a href="arcade.php?barsize=0<if condition="$categoryid">&categoryid=$categoryid</if>">Standard Mode</a></span>
                <else />
                        <span class="smallfont"><em>Standard Mode</em></span>
                </if>
                </td>
                </tr></table>
               
          </td>
        </tr>
</tbody>
       
</table>
<!-- /right area-->

</td>
</tr></table>
$footer
</body>
</html>

Thanks In Advance

Reg

forumsoup.com 02-07-2006 09:06 PM

I put this on my site, love it, and clicked installed. Thanks!

Oblivion Knight 02-21-2006 08:18 AM

Quote:

Originally Posted by Tralala
However, it is reporting I have 14 categories. I really only have 11 distinct ones. Any way for it to not include "All," "Random," and "Favorites?"

Sorry for the late reply.

Yes, find this line of code in arcade.php:
Code:

        $catcount = $db->num_rows($categories) + 2;
Replace it with:
Code:

        $catcount = $db->num_rows($categories) - 1;
That should do the trick for you..

Oblivion Knight 02-21-2006 08:24 AM

@Reg Car:

Hello Reg, sorry to hear of your trouble installing these 2 addons together. My advise to you would be to start from a fresh Arcade setup if you haven't installed too many addons for it, install the Champion(s) addon first without performing the template edits, and then proceed to install the Who's Online addon.

If this doesn't work, I can't really advise much else without taking a look for myself.

Tralala 02-21-2006 12:22 PM

Quote:

Originally Posted by Oblivion Knight
Sorry for the late reply.

Yes, find this line of code in arcade.php:
Code:

        $catcount = $db->num_rows($categories) + 2;
Replace it with:
Code:

        $catcount = $db->num_rows($categories) - 1;
That should do the trick for you..

Worked perfectly (and makes sense, too.) Thanks so much!

glorify 02-28-2006 01:33 PM

I love the mod and it's awsome for folks who don't have a sidebar. When switching viewing modes, there is always a ton of blank space at the bottom if you do use the standard layout.

I changed it up a tad to place the info in the sidebar. I did NOT use the Arcade Champion portion in this, but it would be easilly done.

Install the mod as OBK intended until you get to the template edits. Then--

In arcade_main find:
Code:

<span class="smallfont"><em>Standard Mode</em></span>
                </if>
                </td>
                </tr></table>
               
          </td>
        </tr>
</tbody>

Add Under:
Code:

<thead>
        <tr align="center">
          <td class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('arcadeusers')"><img id="collapseimg_arcadeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_arcadeusers].gif" alt="" border="0" /></a>Active Players: $totalviewing</td>
        </tr>
</thead>
<tbody id="collapseobj_arcadeusers" style="$vbcollapse[collapseobj_arcadeusers]">
<tr>
<td class="alt1" align="center"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></span></td>
        </tr>
        <tr>
                <td class="alt2"><span class="smallfont">$activeusers</span></td>
        </tr>
</tbody>
<thead>
        <tr align="center">
          <td class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('arcadestats')"><img id="collapseimg_arcadestats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_arcadestats].gif" alt="" border="0" /></a>Arcade Statistics</td>
        </tr>
</thead>
<tbody id="collapseobj_arcadestats" style="$vbcollapse[collapseobj_arcadestats]">
<tr>
<td class="alt1"><span class="smallfont">$vbphrase[games]: $gcount, $vbphrase[categories]: $catcount</div><div class="smallfont"><phrase 1="arcade.php?$session[sessionurl]do=play&amp;gameid=$newgameid" 2="$newgame">$vbphrase[arcade_newgame]</phrase></div></td>
        </tr>
</tbody>

In arcade_play, find
Code:

<img src="$vboptions[arcadeimages]/backtip.gif" border="0" />
          </td>
        </tr>
       
</tbody>

Add Under
Code:

<thead>
        <tr align="center">
          <td class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('arcadeusers')"><img id="collapseimg_arcadeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_arcadeusers].gif" alt="" border="0" /></a>Members Playing: $totalviewing</td>
        </tr>
</thead>
<tbody id="collapseobj_arcadeusers" style="$vbcollapse[collapseobj_arcadeusers]">
<tr>
<td class="thead" align="center"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></span></td>
        </tr>
        <tr>
                <td class="alt1" align="center"><span class="smallfont">$activeusers</span></td>
        </tr>
</tbody>

Screens attached. Enjoy :)


All times are GMT. The time now is 01:44 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.01323 seconds
  • Memory Usage 1,854KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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