Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.217
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Xfire block help
Xfire block help

6 Replies / 1825 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Blocks

View previous topic :: View next topic


scope1234
Reputation: 80.7 Add RepSubtract Rep
votes: 2
Local time: 12:58 AM
Location: United Kingdom
uk.gif

Stand-by Stand-by
Stand-by Stand-by

0.58 posts per day
Medals: 0

Joined: Nov 06, 2009
Last Visit: 02 Jan 2012
Posts: 482
Points: 35419 

Post Xfire block help Posted: Thu Jan 28, 2010 7:22 am

Shop Purchases:
Battlefield 2 Splash Screen

ok im trying to make a block that will copy your xfire list into you block on the site using XML i can seem to get it to work it is say no content available can someone try and convert the code or correct it please il will also release it as a block when finished and tested code below

Code:
<table border="1">
<?php

if (!defined('BLOCK_FILE') ) {
Header("location: ../index.php");
die();
}

function getXfireClanList() {
//
// CHANGE CLAN LINK
$requestAddress = "http://www.xfire.com/xml/touchofdeath/clan_members/";
//
// EXAMPLE
// http://www.xfire.com/communities/touchofdeath/
// is
// http://www.xfire.com/xml/touchofdeath/clan_members/
//
$xml_str = file_get_contents($requestAddress,0);
$xml = new SimplexmlElement($xml_str);
$count = 0;
echo '<div id="xfireclanlist">';
foreach($xml->roster as $item) {
foreach($item->member as $new) {
echo '<tr>';
echo '<td><img src="http://miniprofile.xfire.com/bg/sh/type/4/' .$new->username . '.png"';
echo ' alt="' .$new->status . '" title="' .$new->displayname . ' is ' .$new->status . '" border="0"></td>';
echo '<td><input type="text" value=" ' .$new->displayname . ' " size="20" readonly="readonly"></form></td>';
echo '<td> ' .$new->username . ' </td>';
echo '<td><a href="http://www.xfire.com/profile/' .$new->username . '/" target="_blank">More Info</a></td>';
echo '</tr>';
}
}
echo '</div>';
}
getXfireClanList();
?>
</table>
 

 
View user's profileSend private messageMSN Messenger Reply with quote

Ped
Reputation: 63.4 Add RepSubtract Rep
votes: 35
Local time: 1:58 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 09 Feb 2012
Posts: 4461
Points: 181063 

Post Re: Xfire block help Posted: Thu Jan 28, 2010 8:58 am

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

For blocks you have to use "content" not "echo"

try using the block maker >> http://www.clanthemes.com/php-nuke-tools-Block.html

Also have you been to http://www.xfire.com/xml/touchofdeath/clan_members/

If you look in our downloads there is a XFire block and module already
 

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

scope1234
Reputation: 80.7 Add RepSubtract Rep
votes: 2
Local time: 12:58 AM
Location: United Kingdom
uk.gif

Stand-by Stand-by
Stand-by Stand-by

0.58 posts per day
Medals: 0

Joined: Nov 06, 2009
Last Visit: 02 Jan 2012
Posts: 482
Points: 35419 

Post Re: Xfire block help Posted: Thu Jan 28, 2010 11:06 am

Shop Purchases:
Battlefield 2 Splash Screen

im actually making a modifyed block of the one you are looking at it is for a constant upto date roster i hope to have it ready asap
 

 
View user's profileSend private messageMSN Messenger Reply with quote


scope1234
Reputation: 80.7 Add RepSubtract Rep
votes: 2
Local time: 12:58 AM
Location: United Kingdom
uk.gif

Stand-by Stand-by
Stand-by Stand-by

0.58 posts per day
Medals: 0

Joined: Nov 06, 2009
Last Visit: 02 Jan 2012
Posts: 482
Points: 35419 

Post Re: Xfire block help Posted: Fri Jan 29, 2010 10:58 am

Shop Purchases:
Battlefield 2 Splash Screen

ok it works thanks ped
 

 
View user's profileSend private messageMSN Messenger Reply with quote

scope1234
Reputation: 80.7 Add RepSubtract Rep
votes: 2
Local time: 12:58 AM
Location: United Kingdom
uk.gif

Stand-by Stand-by
Stand-by Stand-by

0.58 posts per day
Medals: 0

Joined: Nov 06, 2009
Last Visit: 02 Jan 2012
Posts: 482
Points: 35419 

Post Xfire block help Posted: Fri Jan 29, 2010 11:23 am

Shop Purchases:
Battlefield 2 Splash Screen

OK I'm now making it into a module on raven nuke 2.3 i have the language files and i have made the page but it wont show on my modules page here is the code:

Code:
<?php
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
/**********************************/
/* Configuration */
/* */
/* You can change this: */
/* $index = 0; (right side off) */
/**********************************/
$index = 1; //Turn on side blocks
/**********************************/
include_once('header.php');
   
OpenTable();

function getXfireClanList() {
//
// CHANGE CLAN LINK
$requestAddress = "http://www.xfire.com/xml/touchofdeath/clan_members/";
//
// EXAMPLE
// http://www.xfire.com/communities/touchofdeath/
// is
// http://www.xfire.com/xml/touchofdeath/clan_members/
//
$xml_str = file_get_contents($requestAddress,0);
$xml = new SimplexmlElement($xml_str);
$count = 0;
content '<div id="xfireclanlist">';
foreach($xml->roster as $item) {
foreach($item->member as $new) {
content '<tr>';
content '<td><img src="http://miniprofile.xfire.com/bg/sh/type/4/' .$new->username . '.png"';
content ' alt="' .$new->status . '" title="' .$new->displayname . ' is ' .$new->status . '" border="0"></td>';
content '<td><input type="text" value=" ' .$new->displayname . ' " size="20" readonly="readonly"></form></td>';
content '<td> ' .$new->username . ' </td>';
content '<td><a href="http://www.xfire.com/profile/' .$new->username . '/" target="_blank">More Info</a></td>';
content '</tr>';
}
}
content '</div>';
}
getXfireClanList();
}

CloseTable();
include("footer.php");
?>



any idea?

Scope
 

 
View user's profileSend private messageMSN Messenger Reply with quote

Ped
Reputation: 63.4 Add RepSubtract Rep
votes: 35
Local time: 1:58 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 09 Feb 2012
Posts: 4461
Points: 181063 

Post Re: Xfire block help Posted: Fri Jan 29, 2010 12:51 pm

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

if its a module then the contents need to be echo

echo = modules

content = blocks
 

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


scope1234
Reputation: 80.7 Add RepSubtract Rep
votes: 2
Local time: 12:58 AM
Location: United Kingdom
uk.gif

Stand-by Stand-by
Stand-by Stand-by

0.58 posts per day
Medals: 0

Joined: Nov 06, 2009
Last Visit: 02 Jan 2012
Posts: 482
Points: 35419 

Post Re: Xfire block help Posted: Fri Jan 29, 2010 3:40 pm

Shop Purchases:
Battlefield 2 Splash Screen

ok thanks
 

 
View user's profileSend private messageMSN Messenger Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Blocks


 
6 Replies / 1825 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 can download files in this forum