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)

Cledus James 01-26-2012 06:52 PM

I'm having a issue with how the Reputation tab is being displayed on my gxboxlive.php page. Go here to see what I'm talking about:

http://www.suicide-kings.net/forums/gxboxlive.php

Anyone know how I cant ix this? Thanks for any input.

Hippy 01-26-2012 07:10 PM

gxbl_headinclude template
replace it with this
Code:

<script type="text/javascript" src="clientscript/overlib/overlib.js"></script>

<script type="text/javascript">
function gXBL_setcursor(type) {
        document.getElementsByTagName('body')[0].style.cursor = typeof type == 'undefined' ? 'default' : type;
        links = document.getElementsByTagName('a');
        for(i = 0; i < links.length; i++) links.item(i).style.cursor = typeof type == 'undefined' ? 'pointer' : type;
}

function gXBL_show( type, gamertag) {

        if(type == 'gamercard')
        {
                gXBL_setcursor('progress');

                var html = '<iframe onload="gXBL_setcursor();" src="http://gamercard.xbox.com/'+gamertag+'.card" scrolling="no" frameBorder="0" height="135" width="200">'+gamertag+'</iframe>';

                return overlib(html, BORDER, 0, FULLHTML, WIDTH, 204, HEIGHT, 140, VAUTO, HAUTO);
        }

        if(type == 'nxeavatar')
        {
                gXBL_setcursor('progress');

                var html = '<iframe onload="gXBL_setcursor();" src="http://avatar.xboxlive.com/avatar/'+gamertag+'/avatar-body.png" scrolling="no" frameBorder="0" height="300" width="150">'+gamertag+'</iframe>';

                return overlib(html, BORDER, 0, FULLHTML, WIDTH, 150, HEIGHT, 300, VAUTO, HAUTO);
        }

}

function gXBL_hide() {
        return nd();
}
</script>
<style type="text/css">
.gxblhighlight td {
        border:1px solid yellow;
}

div.xblrep .Stats
{
    float:left;
}


div.xblrep .Stats .Stat
{
    float:left;
    text-align:left;
}

div.xblrep .Stats  .Star
{
    float:left;
    width:12px;
    height:12px;
}

div.xblrep .Stats .Empty
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -10px no-repeat;
}

div.xblrep .Stats .Quarter
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -30px no-repeat;
}

div.xblrep .Stats .Half
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -50px no-repeat;
}

div.xblrep .Stats .ThreeQuarter
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -70px no-repeat;
}

div.xblrep .Stats .Full
{
    background:url("http://gamercard.xbox.com/Content/Gamercard/default/gamerCard_Icons.png") -10px -90px no-repeat;
}
</style>

and you GXBL
template with
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>


Cledus James 01-26-2012 08:05 PM

Thank you for your help Hippy. It worked.

Hippy 01-26-2012 11:12 PM

welcome

twigman1200 01-27-2012 12:15 AM

Cledus, how did you get yours to look so nice?

My alignment seems off for everything.
http://www.halo4news.net/forum/gxboxlive.php

And how do you get it to say Xbox Live instead of gXboxLive?

Hippy 01-27-2012 12:26 AM

admincp > language and phrase >
Search in Phrases >check > Phrase Text and Phrase Variable Name

search phrase for gXboxLive
choose "gxboxlive_vbnav" then click edit
and edit it to what ever you like
in your case you may want to change them all

Cyborg_delta1 01-27-2012 09:50 AM

Quote:

Originally Posted by Hippy (Post 2276664)
travis641 thats default

it needs to be changed to this

Code:

<a href="{vb:raw game.link}" target="_blank"><img border="0" width="32" height="32" src="{vb:raw game.image}" alt="{vb:raw game.title}: {vb:rawphrase gxbl_by_x_players, {vb:raw game.count}}" /></a>
enjoy

The code posted by Hippy is to fix gbxl_top_games template but you need to put

Code:

<a href="{vb:raw game.link}" target="_blank"><img class="inlineimg" border="0" width="20" height="20" src="{vb:raw game.image}" alt="{vb:raw game.title}" /></a>
into gxbl_bit_game if you use the _top_games code the icons come out to big. This code keeps the Icons there original size

Thanks to Hippy for all the help with out you dude I would of just uninstalled this and forgot about it :D

Gryphon thanks for the mod but please implement the fix's other wise you will get a VB noob trying to get this to work and fail :(

Hippy 01-27-2012 11:03 AM

thanks for pointing this out Cyborg_delta1 Cyborg_delta1

yes I forgot about that template

see I edited the xml file so my template are not red (showing edits) since I add the fixes right to the xml file and re-install so it's hard to remember what I edited

GamerPerfection 01-28-2012 10:55 AM

Quote:

Originally Posted by twigman1200 (Post 2292889)
Cledus, how did you get yours to look so nice?

My alignment seems off for everything.
http://www.halo4news.net/forum/gxboxlive.php

And how do you get it to say Xbox Live instead of gXboxLive?

I don't think Cledus did anything to his alignment in the columns, as the main difference between your site and Cledus's site is that Cledus has a fixed width site whereas yours is fluid. This means yours stretches across the page so the columns will spread but on Cledus's it is more squashed up and therefore the alignment looks as if it's more lined up when in reality it's not.

I noticed on some others that some last played games icons disappear, like mine for example: http://www.gamerperfection.com/gxboxlive.php they come and go randomly. Why is this? Does the Mod need a fix to stop this?

Hippy 01-28-2012 11:35 AM

thats all linked to xbox .. so I guess if they are not played in a certain amount of days they come off there list


All times are GMT. The time now is 11:07 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.01577 seconds
  • Memory Usage 1,768KB
  • 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
  • (4)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