PDA

View Full Version : 1.5.4 Arcade integration


FROGGYJ
03-27-2006, 01:47 AM
Just noticed in my arcade things look funny, see attached. I am not charging people to play games, but I do want them to earn points for being champs.

CMX_CMGSCCC
03-27-2006, 01:47 PM
Can u look at template thats displaying that, it seems to have an error, and paste it here onto this thread.

-CMX

FROGGYJ
03-27-2006, 04:54 PM
hrm not sure what template it is....

arcade_main

$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.visibil ity = 'visible';

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

function kill_panel()
{
document.getElementById('userpanel').style.visibil ity = '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>

<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="$vboptions[gamesperrow]">
$vbphrase[arcadegames]
</td>
</tr>

<tr align="center">
<td class="thead" colspan="$vboptions[gamesperrow]" align="left" width="100%">$vbphrase[games_in_cat]: $gamecount</td>
</tr>
</thead>
<tbody>
<if condition="$gamebits">
$gamebits
<else />
<tr><td class="alt1"><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
<div class="smallfont"><strong><a href="$vboptions[bburl]/arcade.php?$session[sessionurl]do=lboard">[ $vbphrase[leader_board] ]</a></strong></div>
</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>

<br />
<!-- what's going on? -->
<table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%">
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('arcade_wol')">
<img id="collapseimg_arcade_wol" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_arcade_wol].gif" alt="" border="0" /></a>
<a href="online.php">$vbphrase[currently_active_users]</a>: $totalviewing (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_arcade_wol" style="$vbcollapse[collapseobj_arcade_wol]">
<tr>
<td class="alt2" align="center"><a href="online.php"><img src="$stylevar[imgdir_misc]/whos_online.gif" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$activeusers</div></td>
</tr>
</tbody>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('arcade_stats')">
<img id="collapseimg_arcade_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_arcade_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[hometitle]">$vbphrase[x_arcade_statistics]</phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_arcade_stats" style="$vbcollapse[collapseobj_arcade_stats]">
<tr>
<td class="alt2" align="center"><img src="$stylevar[imgdir_misc]/stats.gif" /></td>
<td class="alt1"><div 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>
<if condition="$vboptions['dispchamps'] == '1'">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('arcade_champ')">
<img id="collapseimg_arcade_champ" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_arcade_champ].gif" alt="" border="0" /></a>
<if condition="$mhsusername">$vbphrase[arcade_champ]<else /><if condition="$mhsarray">$vbphrase[arcade_champs]</if></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_arcade_champ" style="$vbcollapse[collapseobj_arcade_champ]">
<tr>
<td class="alt2" align="center"><img src="$vboptions[arcadeimages]/king1.gif" border="0" alt="" /></td>
<td class="alt1"><div class="smallfont"><if condition="$mhsusername"><phrase 1="$mhsusername" 2="$mosthigh" 3="$mhsuser">$vbphrase[x_with_y_titles]</phrase><else /><if condition="$mhsarray"><phrase 1="$mhsarray" 2="$mosthigh" 3="$mhsuser">$vbphrase[x_with_y_titles_array]</phrase></if></if></div></td>
</tr>
</tbody>
</if>
</table>
<!-- / what's going on? -->
$footer
</body>
</html>

forte
03-27-2006, 07:07 PM
Post the arcade_game_bit_slim template.

FROGGYJ
03-27-2006, 09:15 PM
ahh it might be cause I'm using the alternate layout...see below.

https://vborg.vbsupport.ru/showthread.php?t=99007


Here is the arcade_game_bit_slim

<td class="$bgclass" width="25%">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px; padding:0px 2px 2px 2px">
<legend><a href="arcade.php?do=play&amp;gameid=$game[gameid]"><strong>$game[title]</strong></a>&nbsp;<if condition="$show['fav']"><img src="$vboptions[arcadeimages]/subfav.gif" align="absmiddle" id="fav_$game[gameid]" class="point" onclick="dofav($game[gameid])" alt="$vbphrase[sub_favorite]" border="0" /><else /><img src="$vboptions[arcadeimages]/addfav.gif" align="absmiddle" id="fav_$game[gameid]" class="point" onclick="dofav($game[gameid])" alt="$vbphrase[add_favorite]" border="0" /></if></legend>
<div style="padding:0px 0px 0px 2px">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="$stylevar[left]" valign="middle" width="60" height="60">
<a href="arcade.php?do=play&amp;gameid=$game[gameid]"><img src="$vboptions[arcadeimages]/$game[stdimage]" style="border:1px dotted; border-color:#90939C" alt="$game[description]" width="50" height="50" /></a>
</td>


So if that's the case, do you know where I have to insert some code?

Gizmo5h1t3
03-29-2006, 04:47 PM
happened to me also with the alternative display....so i binned it, and stuck with the original.