Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vbBux / vbPlaza
1.5.4 Arcade integration Details »»
1.5.4 Arcade integration
Version: , by FROGGYJ FROGGYJ is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-27-2006 Last Update: Never Installs: 0
 
No support by the author.

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.

Download Now

File Type: (21.4 KB, 44 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-27-2006, 01:47 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can u look at template thats displaying that, it seems to have an error, and paste it here onto this thread.

-CMX
Reply With Quote
  #3  
Old 03-27-2006, 04:54 PM
FROGGYJ FROGGYJ is offline
 
Join Date: Sep 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hrm not sure what template it is....

arcade_main

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>

<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>
Reply With Quote
  #4  
Old 03-27-2006, 07:07 PM
forte's Avatar
forte forte is offline
 
Join Date: Jul 2005
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post the arcade_game_bit_slim template.
Reply With Quote
  #5  
Old 03-27-2006, 09:15 PM
FROGGYJ FROGGYJ is offline
 
Join Date: Sep 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Code:
<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?
Reply With Quote
  #6  
Old 03-29-2006, 04:47 PM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

happened to me also with the alternative display....so i binned it, and stuck with the original.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:12 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04103 seconds
  • Memory Usage 2,296KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete