vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - gXboxLive - Xbox Live Leaderboard (https://vborg.vbsupport.ru/showthread.php?t=243493)

Hippy 09-13-2012 03:35 PM

Question, I went five plus pages back and only see one mention of a blank Page but it wasn't the thread / posts it was the main leader board Page.
Also you said it worked before in the last version. Did you mean with vb3 or?

JAnders 09-13-2012 04:43 PM

sorry yeah on v3.7 i just updated to v4.

i did a search and here's some posts of users who complained about the blank page in the post bit:


https://vborg.vbsupport.ru/showpost....&postcount=409

https://vborg.vbsupport.ru/showpost....&postcount=287

https://vborg.vbsupport.ru/showpost....9&postcount=87


i did read thru and didn't see a fix on any of the posts

Hippy 09-13-2012 05:18 PM

Thanks this was before I made the plugin to render the game card. So I now know its something else. I have it working on a live Site I manage and the test Site on the same server same copy of the db and it's getting that white Page, it's just a possess of a limitation... Will figure it out....

Ross L 09-13-2012 05:36 PM

Quote:

Originally Posted by Hippy (Post 2364945)
post me your
gxbl_bit temlate

seems like something is missing

Thanks for that my gxbl_bit template is below:

Code:

<tr <vb:if condition="$player['gamertagid'] == $highlight['gamertagid']">class="gxblhighlight" id="currentPost"</vb:if>>
        <td style="padding-left:5px;">
                <vb:if condition="in_array($player['rank'], array('1','2','3'))"><img class="inlineimg" border="0" src="{vb:stylevar imgdir_misc}/gxboxlive/silk/award_star_<vb:if condition="$player['rank'] == '1'">gold<vb:else /><vb:if condition="$player['rank'] == '2'">silver<vb:else />bronze</vb:if></vb:if>_2.png" alt="{vb:rawphrase gxbl_rank}: {vb:raw player.rank}" /></vb:if> {vb:raw player.rank}<sup>{vb:raw player.ranksuff}</sup>
        </td>
        <td nowrap="nowrap" style="padding-left:10px;">
                <a href="member.php?u={vb:raw player.userid}">{vb:raw player.username}</a>
        </td>
        <td nowrap="nowrap" style="padding-left:10px;">
                <a href="http://live.xbox.com/en-US/MyXbox/Profile?gamertag={vb:raw player.gamertag}" target="_blank">{vb:raw player.gamertag}</a>
        </td>
        <td style="padding-left:25px;">
                <acronym title="{vb:rawphrase gxbl_last_updated}: {vb:raw updated.date} {vb:raw updated.time}" style="border-bottom:1px dotted;">{vb:raw player.score}</acronym>
        </td>
        <td style="padding-left:10px;">
                {vb:raw player.games}
        </td>
            <td class="padding" style="padding-left:30px; padding-top:5px;">
                                <a href="http://gamercard.xbox.com/en-us/{vb:raw player.gamertag}.card" target="_blank" onmouseover="gXBL_show('gamercard','{vb:raw player.gamertag}');" onmouseout="return gXBL_hide();"><img border="0" width="20" height="20" src="{vb:raw player.avatar}" style="border: 1px solid <vb:if condition="$player['gold'] == '1'">gold<vb:else />silver</vb:if>;" /></a>
                <a href="http://avatar.xboxlive.com/avatar/{vb:raw player.gamertag}/avatar-body.png" target="_blank" onmouseover="gXBL_show('nxeavatar','{vb:raw player.gamertag}');" onmouseout="return gXBL_hide();"><img border="0" width="20" height="20" src="http://avatar.xboxlive.com/avatar/{vb:raw player.gamertag}/avatarpic-s.png" style="border: 1px solid <vb:if condition="$player['gold'] == '1'">gold<vb:else />silver</vb:if>;" /></a>
        <vb:if condition="$show['gxbl_message'] == '1'"><a href="http://live.xbox.com/en-US/MessageCenter/Compose?gamertag={vb:raw player.gamertag}" target="_blank"><img class="inlineimg" border="0" src="{vb:stylevar imgdir_misc}/gxboxlive/silk/email_link.png" alt="{vb:rawphrase gxbl_message_x_friend, {vb:raw player.gamertag}}" /></a></vb:if>               
                <vb:if condition="$show['gxbl_friend'] == '1'"><a href="http://live.xbox.com/en-US/MyXbox/Profile?gamertag={vb:raw player.gamertag}" target="_blank" onClick="return confirm('{vb:rawphrase gxbl_confirm_x_friend, {vb:raw player.gamertag}}');"><img class="inlineimg" border="0" src="{vb:stylevar imgdir_misc}/gxboxlive/silk/group_link.png" alt="{vb:rawphrase gxbl_add_x_friend, {vb:raw player.gamertag}}" /></a></vb:if>
        </td>
</tr>


Hippy 09-13-2012 09:55 PM

@JAnders
what version of mysql and apache2

@Ross L

change that template to this

over write yours

Code:

<tr <vb:if condition="$player['gamertagid'] == $highlight['gamertagid']">class="gxblhighlight" id="currentPost"</vb:if>>
        <td class="padding">
                <vb:if condition="in_array($player['rank'], array('1','2','3'))"><img class="inlineimg" border="0" src="{vb:stylevar imgdir_misc}/gxboxlive/silk/award_star_<vb:if condition="$player['rank'] == '1'">gold<vb:else /><vb:if condition="$player['rank'] == '2'">silver<vb:else />bronze</vb:if></vb:if>_2.png" alt="{vb:rawphrase gxbl_rank}: {vb:raw player.rank}" /></vb:if> {vb:raw player.rank}<sup>{vb:raw player.ranksuff}</sup>
        </td>
        <td nowrap="nowrap" class="padding">
                <a href="member.php?u={vb:raw player.userid}">{vb:raw player.username}</a>
        </td>
        <td nowrap="nowrap" class="padding">
                <a href="http://live.xbox.com/en-US/MyXbox/Profile?gamertag={vb:raw player.gamertag}" target="_blank">{vb:raw player.gamertag}</a>
        </td>
        <td nowrap="nowrap" class="padding">
                <vb:if condition="$show['gxbl_message'] == '1'"><a href="http://live.xbox.com/en-US/Messages?gamertag=vb:raw player.gamertag}" target="_blank"><img class="inlineimg" border="0" src="{vb:stylevar imgdir_misc}/gxboxlive/silk/email_link.png" alt="{vb:rawphrase gxbl_message_x_friend, {vb:raw player.gamertag}}" /></a></vb:if>               
                <vb:if condition="$show['gxbl_friend'] == '1'"><a href="http://live.xbox.com/en-US/MyXbox/Profile?gamertag={vb:raw player.gamertag}" target="_blank" onClick="return confirm('{vb:rawphrase gxbl_confirm_x_friend, {vb:raw player.gamertag}}');"><img class="inlineimg" border="0" src="{vb:stylevar imgdir_misc}/gxboxlive/silk/group_link.png" alt="{vb:rawphrase gxbl_add_x_friend, {vb:raw player.gamertag}}" /></a></vb:if>
                <a href="http://gamercard.xbox.com/en-us/{vb:raw player.gamertag}.card" target="_blank" onmouseover="gXBL_show('gamercard','{vb:raw player.gamertag}');" onmouseout="return gXBL_hide();"><img border="0" width="20" height="20" src="{vb:raw player.avatar}" style="border: 1px solid <vb:if condition="$player['gold'] == '1'">gold<vb:else />silver</vb:if>;" /></a>
                <a href="http://avatar.xboxlive.com/avatar/{vb:raw player.gamertag}/avatar-body.png" target="_blank" onmouseover="gXBL_show('nxeavatar','{vb:raw player.gamertag}');" onmouseout="return gXBL_hide();"><img border="0" width="20" height="20" src="http://avatar.xboxlive.com/avatar/{vb:raw player.gamertag}/avatarpic-s.png" style="border: 1px solid <vb:if condition="$player['gold'] == '1'">gold<vb:else />silver</vb:if>;" /></a>
        </td>
        <td class="padding">
                <acronym title="{vb:rawphrase gxbl_last_updated}: {vb:raw updated.date} {vb:raw updated.time}">{vb:raw player.score}</acronym>
        </td>
        <td class="padding"><div class="xblrep"><div class="Stats">{vb:raw player.reputation}</div></div></td>
        <td class="padding">
                {vb:raw player.games}
        </td>
</tr>


and your GXBL template


Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" <vb:if condition="!is_browser('ie') OR is_browser('ie',8)"> dir="{vb:stylevar textdirection}"</vb:if> lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
{vb:raw gxbl_headinclude}
<title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
        <vb:if condition="$includecss">
                <vb:each from="includecss" value="file">
                <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}{vb:raw file}.css" />
                </vb:each>
        </vb:if>
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}

<vb:if condition="$show['pagenav']">
<div id="pagination_top" style="float:{vb:stylevar right};">
        {vb:raw pagenav}
</div>
</vb:if>

<div class="block">
        <div class="blockhead">
                {vb:rawphrase gxboxlive_title}
                <a class="textcontrol" href="profile.php?do=editprofile#cfield_{vb:raw vboptions.gxbl_user_field}" rel="nofollow" style="margin-top:-3px;">{vb:rawphrase gxbl_addtag}</a>
        </div>
       
        <div class="blockbody formcontrols">
                <table width="100%">
                        <tr class="columnsort">
                                <th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=s&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_rank}<vb:if condition="$sortfield == 's'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
                                <th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=n&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_username}<vb:if condition="$sortfield == 'n'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
                                <th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=gt&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_gamertag}<vb:if condition="$sortfield == 'gt'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
                                <th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=gt&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_zone}<vb:if condition="$sortfield == 'gt'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
                                <th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=s&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_score}<vb:if condition="$sortfield == 's'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>
                                <th><a href="gxboxlive.php?page={vb:raw pagenumber}&sortfield=r&sortorder={vb:raw oppositesort}" class="blocksubhead" style="text-align:left;">{vb:rawphrase reputation}<vb:if condition="$sortfield == 'r'"> <img class="sortarrow" src="{vb:stylevar imgdir_button}/sortarrow-{vb:raw oppositesort}.png" alt="{vb:rawphrase reverse_sort_order}" border="0" /></vb:if></a></th>                                <th class="blocksubhead" style="text-align:left;">{vb:rawphrase gxbl_lastgames}</th>
                        </tr>
                        {vb:raw gxbl_bit}
                </table>
        </div>
</div>

<vb:if condition="$show['pagenav']">
<div id="pagination_bottom" style="float:{vb:stylevar right};">
        {vb:raw pagenav}
</div>
</vb:if>

<vb:if condition="$gxbl_stats">
<br />

{vb:raw gxbl_stats}
</vb:if>

{vb:raw footer}

</body>
</html>


JAnders 09-14-2012 01:46 AM

mysql 5.0 PHP Version 5.3.14

JAnders 09-15-2012 05:47 AM

so I broke down and created my own custom code to add to the postbit_legacy template so it would display the gamertag.

with the below code it will show the gamertag name and a thumb of the avatar if you hoover on each it will show the actual image and if you click on the gt it will take you to the compose message screen on xbox.live.com

Code:

        <!-- xbox live gt -->
<div>
        <vb:if condition="$post['field9']"><fieldset><legend>XBox LIVE Gamercard</legend>
<a href="http://avatar.xboxlive.com/avatar/{vb:raw post.field9}/avatar-body.png" target="_blank" onmouseover="gXBL_show('nxeavatar','{vb:raw post.field9}');" onmouseout="return gXBL_hide();"><img border="0" width="20" height="20" src="http://avatar.xboxlive.com/avatar/{vb:raw post.field9}/avatarpic-s.png" style="border: 1px solid gold;" /></a>
<a href="https://live.xbox.com/en-US/Messages?gamertag={vb:raw post.field9}" target="_blank" onmouseover="gXBL_show('gamercard','{vb:raw post.field9}');" onmouseout="return gXBL_hide();">{vb:raw post.field9}</a></vb:if>
</fieldset>
</div> 
          <!-- endxbox live gt -->

i usually place it right below the post.posts portion on the template. but you may want to play around and use it where you want.


if you're using the eTiKeT™ 2011 Posbit_legacy - Postbit modification for the threads then use the code like this:


Code:

        <!-- xbox live gt -->
<div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
        <vb:if condition="$post['field9']"><fieldset><legend>XBox LIVE Gamercard</legend>
<a href="http://avatar.xboxlive.com/avatar/{vb:raw post.field9}/avatar-body.png" target="_blank" onmouseover="gXBL_show('nxeavatar','{vb:raw post.field9}');" onmouseout="return gXBL_hide();"><img border="0" width="20" height="20" src="http://avatar.xboxlive.com/avatar/{vb:raw post.field9}/avatarpic-s.png" style="border: 1px solid gold;" /></a>
<a href="https://live.xbox.com/en-US/Messages?gamertag={vb:raw post.field9}" target="_blank" onmouseover="gXBL_show('gamercard','{vb:raw post.field9}');" onmouseout="return gXBL_hide();">{vb:raw post.field9}</a></vb:if>
</fieldset>
</div> 
          <!-- endxbox live gt -->


JAnders 09-15-2012 05:48 AM

thanks hippy for all your help and I hope figure out what the issue is with the blank page.

thedarkroom 09-16-2012 06:07 AM

installed https://vborg.vbsupport.ru/showthread.php?t=247698 template, but when i activate the mod breaks the forum, can someone help me? vbulletin version 4.2 patch 2

TheSupportForum 09-16-2012 07:02 AM

Quote:

Originally Posted by thedarkroom (Post 2365836)
installed https://vborg.vbsupport.ru/showthread.php?t=247698 template, but when i activate the mod breaks the forum, can someone help me? vbulletin version 4.2 patch 2

that style is meant for 4.0.2 not 4.2.0


All times are GMT. The time now is 11:23 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.01748 seconds
  • Memory Usage 1,804KB
  • 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
  • (5)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
  • (2)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