Clan Adverts

Sponsors

Latest Product

User Box

Anonymous
54.197.65.82
Nickname:

Password:

Security Code
Security Code
Type Security Code


www.clanthemes.com :: View topic - Black ops theme flash banner mod
Black ops theme flash banner mod

6 Replies / 2197 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » General Topics

View previous topic :: View next topic


dmccart
Reputation: 9.2 Add RepSubtract Rep
Local time: 5:19 AM

ireland.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: May 13, 2010
Last Visit: 28 Mar 2011
Posts: 9
Points: 4241 

Post Black ops theme flash banner mod Posted: Tue Mar 01, 2011 5:56 pm

Shop Purchases:
Call of Duty Black Ops Xtreme Theme

Would it be possible to mod the black ops theme centre block flash banner to show gametracker banners? Would it be a simple matter of changing the path in the XML file to our GT banner? Thanks.
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 65.9 Add RepSubtract Rep
votes: 37
Local time: 5:19 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.40 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 11 Jan 2014
Posts: 4141
Points: 211499 

Post Re: Black ops theme flash banner mod Posted: Tue Mar 01, 2011 7:51 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

not sure, doesn't the GT banner pull info from there server ? I dont think it will work TBH, no harm in trying though is there
 

 
View user's profileSend private messageSend e-mail Reply with quote

dmccart
Reputation: 9.2 Add RepSubtract Rep
Local time: 5:19 AM

ireland.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: May 13, 2010
Last Visit: 28 Mar 2011
Posts: 9
Points: 4241 

Post Black ops theme flash banner mod Posted: Tue Mar 01, 2011 8:56 pm

Shop Purchases:
Call of Duty Black Ops Xtreme Theme

One of our guys in the clan got it to work, its 560x95

http://www.hunterkillers.org/includes/GTS_banners/HK_GTS.swf

But it won't work in a centre block Sad I tried use an object element, in the CKEditor (small icon with an F) and the embed tags. Here's the xml file and the swf script.

Code:


// set random # variables - each must be 0 for first 'while' loop below
var randomNum = 0;
var randomNumLast = 0;

// parent container
var container_mc = this.createEmptyMovieClip("container",0);
// movie clip containers
container_mc.createEmptyMovieClip("loader1_mc",2);
container_mc.createEmptyMovieClip("loader2_mc",1);

// preload watcher
this.createEmptyMovieClip("watcher_mc",100);

// load xml
images_xml = new XML();
images_xml.ignoreWhite=true;
images_xml.onLoad = parse;
images_xml.load("images.xml");

function parse(success) {
if (success) {
 imageArray = new Array();
 var root = this.firstChild;
 _global.numPause = Number(this.firstChild.attributes.timer * 1000);
 _global.order = this.firstChild.attributes.order;
 _global.looping = this.firstChild.attributes.looping;
 _global.fadetime = Number(this.firstChild.attributes.fadetime);
 _global.xpos = Number(this.firstChild.attributes.xpos);
 _global.ypos = Number(this.firstChild.attributes.ypos);
 var imageNode = root.lastChild;
 var s=0;
 while (imageNode.nodeName != null) {
 imageData = new Object;
 imageData.path = imageNode.attributes.path;
 imageArray[s]=imageData;
 imageNode = imageNode.previousSibling;
 s++;
 }
 // place parent container
 container_mc._x = _global.xpos;
 container_mc._y = _global.ypos;
 // parse array
 imageArray.reverse();
 imageGen(imageArray);
} else {
 trace('problem');
}
}

// depth swapping
function swapPlace(clip,num) {
eval(clip).swapDepths(eval("container_mc.loader"+num+"_mc"));
}

function loadImages(data,num) {
if (i==undefined || i == 2) {
 i=2;
 createLoader(i,data,num);
 i=1;
} else if (i==1) {
 createLoader(i,data,num);
 i=2;
}
}
function createLoader(i,data,num) {
thisLoader=eval("container_mc.loader"+i+"_mc");
thisLoader._alpha=0;
thisLoader.loadMovie(data[num].path);
watcher_mc.onEnterFrame=function () {
 var picLoaded = thisLoader.getBytesLoaded();
 var picBytes = thisLoader.getBytesTotal();
 if (isNaN(picBytes) || picBytes < 4) {
 return;
 }
 if (picLoaded / picBytes >= 1) {
 swapPlace("container_mc.loader2_mc",1);
 alphaTween = new mx.transitions.Tween(thisLoader, "_alpha", mx.transitions.easing.Regular.easeOut,0,100,_global.fadetime,true);
 timerInterval = setInterval(imageGen,_global.numPause,data);
 delete this.onEnterFrame;
 }
}
}
function imageGen(data) {
// random, or sequential?
if (_global.order=="random") {
 // choose random # between 0 and total number of images
 while (randomNum == randomNumLast) {
 randomNum = Math.floor(Math.random() * data.length);
 trace(randomNum);
 }
 loadImages(data,randomNum);
 randomNumLast = randomNum;
} else if (_global.order=="sequential") {
 // start at 0, increment to total number of images, then drop back to zero when done
 if (p==undefined || p==data.length && _global.looping=="yes") { p=0; } else { break; }
 loadImages(data,p);
 p++;
} else {
 trace ("order attribute in xml isn't correct - must specify either 'random' or 'sequential'");
}
clearInterval(timerInterval);
}
stop();


Code:

- <gallery timer="8" order="sequential" fadetime="2" looping="yes" xpos="0" ypos="0">
  <image path="http://cache.www.gametracker.com/server_info/174.34.163.252:17567/b_560_95_1.png" />
  <image path="http://cache.www.gametracker.com/server_info/174.34.163.251:28960/b_560_95_1.png" />
  <image path="http://cache.www.gametracker.com/server_info/174.34.163.243:28930/b_560_95_1.png" />
  <image path="http://cache.www.gametracker.com/server_info/174.34.163.252:10030/b_560_95_1.png" />
  <image path="http://cache.www.gametracker.com/server_info/174.34.163.245:19567/b_560_95_1.png" />
  <image path="http://cache.www.gametracker.com/server_info/174.34.163.247:19567/b_560_95_1.png" />
  <image path="http://cache.www.gametracker.com/server_info/174.34.163.254:7675/b_560_95_1.png" />
  <image path="http://cache.www.gametracker.com/server_info/173.199.104.122:3074/b_560_95_1.png" />
  <image path="http://cache.www.gametracker.com/server_info/8.6.77.169:3164/b_560_95_1.png" />
  <image path="http://cache.www.gametracker.com/server_info/8.2.120.72:3164/b_560_95_1.png" />
  </gallery>
 

 
View user's profileSend private message Reply with quote


Ped
Reputation: 65.9 Add RepSubtract Rep
votes: 37
Local time: 5:19 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.40 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 11 Jan 2014
Posts: 4141
Points: 211499 

Post Re: Black ops theme flash banner mod Posted: Tue Mar 01, 2011 9:07 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Your going to have to put that in a block on its own

Use the block creator >> http://www.clanthemes.com/php-nuke-tools-Block.html
 

 
View user's profileSend private messageSend e-mail Reply with quote

dmccart
Reputation: 9.2 Add RepSubtract Rep
Local time: 5:19 AM

ireland.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: May 13, 2010
Last Visit: 28 Mar 2011
Posts: 9
Points: 4241 

Post Re: Black ops theme flash banner mod Posted: Tue Mar 01, 2011 11:03 pm

Shop Purchases:
Call of Duty Black Ops Xtreme Theme

Just put the http://www.hunterkillers.org/includes/GTS_banners/HK_GTS.swf
In the Block Creator? If so I tried it and it didn't work.
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 65.9 Add RepSubtract Rep
votes: 37
Local time: 5:19 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.40 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 11 Jan 2014
Posts: 4141
Points: 211499 

Post Black ops theme flash banner mod Posted: Wed Mar 02, 2011 8:26 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

This is will only work for your theme because the flash files are already included in your theme

put this code into a .txt file called block-GT-Stats.txt then rename it from .txt to .php so you end up with a PHP file called block-GT-Stats.php

Open it up in a program such as notepad++ and paste this code into it (this is how you insert flash files into websites by the way)

[code:1:1a03c13f84]<?php

if (eregi("block-GT-Stats.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}

$content = "<div align=\"center\">\n";
$content .= " <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"560\" height=\"95\"> ";
$content .= " <param name=\"movie\" value=\"http://www.hunterkillers.org/includes/GTS_banners/HK_GTS.swf\" /> ";
$content .= " <param name=\"quality\" value=\"high\" /> ";
$content .= " <param name=\"wmode\" value=\"transparent\" />";
$content .= " <param name=\"menu\" value=\"false\" /> ";
$content .= " <param name=\"swfversion\" value=\"8.0.35.0\" /> ";
$content .= " <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don
 

 
View user's profileSend private messageSend e-mail Reply with quote


dmccart
Reputation: 9.2 Add RepSubtract Rep
Local time: 5:19 AM

ireland.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: May 13, 2010
Last Visit: 28 Mar 2011
Posts: 9
Points: 4241 

Post Re: Black ops theme flash banner mod Posted: Thu Mar 03, 2011 2:14 pm

Shop Purchases:
Call of Duty Black Ops Xtreme Theme

Thanks man, I think there's some problem with and flash trying to display the banners from the xml which is coming from gametracker. It just won't work Sad

Its fine when the banners are local.
 

 
View user's profileSend private message Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index General Topics


 
6 Replies / 2197 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum