Quote:
Originally Posted by Gemma
Not sure about the postbit part because I don't use that but to get the gamercard showing up on forumhome copy the contents of gxbl_headinclude into your headinclude template 
|
Gemma,
I want to get the stats displayed on the forum like CAG CheechDogg did on his website here:

Link:
http://www.cagclan.com/community/forum.php
Is this the "headinclude" you are talking about?
If so, I need to take the entire contents of "gxbl_headinclude" and copy it directly into my "headinclude", right?
Here are the contents of "gxbl_headinclude":
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>
Here is the contents of MY "headinclude":
Code:
<meta http-equiv="Content-Type" content="text/html; charset={vb:stylevar charset}" />
<meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="{vb:raw vboptions.bburl}" />
<base href="{vb:raw basepath}" /><!--[if IE]></base><![endif]-->
<meta name="generator" content="vBulletin {vb:raw vboptions.templateversion}" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<vb:if condition="$stylevar['favicon']">
<link rel="Shortcut Icon" href="{vb:stylevar favicon}" type="image/x-icon" />
</vb:if>
<vb:if condition="$show['threadinfo']">
<vb:elseif condition="$show['foruminfo']" />
<meta name="keywords" content="{vb:raw foruminfo.title_clean}, {vb:raw vboptions.keywords}" />
<meta name="description" content="<vb:if condition="$pagenumber > 1">{vb:rawphrase page_x, {vb:raw pagenumber}}-</vb:if>{vb:raw foruminfo.description_clean}" />
<vb:else />
<meta name="keywords" content="{vb:raw vboptions.keywords}" />
<meta name="description" content="{vb:raw vboptions.description}" />
</vb:if>
<vb:if condition="$show['fb_opengraph']">
{vb:raw facebook_opengraph}
</vb:if>
<vb:if condition="$show['remoteyui']">
<vb:if condition="$show['remoteyuicombo']">
<script type="text/javascript" src="{vb:stylevar yuicombopath}?{vb:stylevar yuiversion}/build/yuiloader-dom-event/yuiloader-dom-event.js&{vb:stylevar yuiversion}/build/connection/connection-min.js"></script>
<vb:else />
<script type="text/javascript" src="{vb:stylevar yuipath}/yuiloader-dom-event/yuiloader-dom-event.js"></script>
</vb:if>
</vb:if>
<script type="text/javascript">
<!--
if (typeof YAHOO === 'undefined') // Load ALL YUI Local
{
document.write('<script type="text/javascript" src="clientscript/yui/yuiloader-dom-event/yuiloader-dom-event.js?v={vb:raw vboptions.simpleversion}"><\/script>');
document.write('<script type="text/javascript" src="clientscript/yui/connection/connection-min.js?v={vb:raw vboptions.simpleversion}"><\/script>');
var yuipath = 'clientscript/yui';
var yuicombopath = '';
var remoteyui = false;
}
else // Load Rest of YUI remotely (where possible)
{
var yuipath = '{vb:stylevar yuipath}';
var yuicombopath = '{vb:stylevar yuicombopath}';
var remoteyui = true;
if (!yuicombopath)
{
document.write('<script type="text/javascript" src="{vb:stylevar yuipath}/connection/connection-min.js?v={vb:raw vboptions.simpleversion}"><\/script>');
}
}
var SESSIONURL = "{vb:raw session.sessionurl_js}";
var SECURITYTOKEN = "{vb:raw bbuserinfo.securitytoken}";
var IMGDIR_MISC = "{vb:stylevar imgdir_misc}";
var IMGDIR_BUTTON = "{vb:stylevar imgdir_button}";
var vb_disable_ajax = parseInt("{vb:raw vboptions.disable_ajax}", 10);
var SIMPLEVERSION = "{vb:raw vboptions.simpleversion}";
var BBURL = "{vb:raw vboptions.bburl}";
var LOGGEDIN = {vb:raw bbuserinfo.userid} > 0 ? true : false;
var THIS_SCRIPT = "{vb:raw this_script}";
var RELPATH = "{vb:raw relpath}";
var PATHS = {
forum : "{vb:raw vboptions.vbforum_url}",
cms : "{vb:raw vboptions.vbcms_url}",
blog : "{vb:raw vboptions.vbblog_url}"
};
var AJAXBASEURL = "{vb:raw ajaxbaseurl}";
// -->
</script>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>
{vb:raw template_hook.headinclude_javascript}
<vb:if condition="$vboptions['externalrss']">
<link rel="alternate" type="application/rss+xml" title="{vb:raw vboptions.bbtitle} {vb:rawphrase rss_feed}" href="{vb:raw vboptions.bburl}/external.php?type=RSS2" />
<vb:if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="{vb:raw vboptions.bbtitle} - {vb:raw foruminfo.title_clean} - {vb:rawphrase rss_feed}" href="{vb:raw vboptions.bburl}/external.php?type=RSS2&forumids={vb:raw foruminfo.forumid}" />
</vb:if>
</vb:if>
<vb:if condition="$vboptions['storecssasfile']">
{vb:cssfile main-rollup.css}
{vb:raw template_hook.custom_css_links}
<vb:else />
{vb:cssfile bbcode.css,editor.css,popupmenu.css,reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css{vb:raw template_hook.custom_css_list}}
</vb:if>
<!--[if lt IE 8]>
{vb:cssfile popupmenu-ie.css,vbulletin-ie.css,vbulletin-chrome-ie.css,vbulletin-formcontrols-ie.css,editor-ie.css}
<![endif]-->
{vb:raw template_hook.headinclude_css}
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
<script type="text/javascript" src="jscripts/tw7s_notifications/jquery-1.4.2.js"></script>
<script type="text/javascript" src="jscripts/tw7s_notifications/jquery.jgrowl.js"></script>
<link href="jscripts/tw7s_notifications/jquery.jgrowl.css" rel="stylesheet" type="text/css"/>
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
Where in MY "headinclude" do I put the entire contents of "gxbl_headinclude" to get the same results as CAG CheechDogg had on his website, as seen up above?
Sorry I'm being so descriptive, but I tried doing just this and nothing showed up on my forum page like what is on his website. Am I doing something wrong? Is the fault with the theme I am using?
Any help from anyone would be greatly appreciated. I'm at my wits end trying to get this on my forum home.
Thanks guys