Skip to Content Skip to Menu

Changing Avatar in code

  • duronl
  • duronl
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
18 years 2 months ago #21477 by duronl
Changing Avatar in code was created by duronl
Hey,

I got a qeustion.

I want to change the avatar of users.
instead of letting them upload there own
i want to use a gamercard if members filled in the gamertag field.

I got a working script wich shows a members gamercard when logged in so i know wich code to use.
i know what i need to edit cb.core.php.

what i need to know is how or what can i delete to let the cb.core.php to work.

And what to enter as default or an if when users dont got a gamertag....

this is the code i use to show gamercards of logged in users.

<?php
/**
* @version 1.0 $
* @package CB Gamercard
* @copyright (C) 2006 Luuk Ros | www.globalxboxcommunity.com
* @license www.gnu.org/copyleft/gpl.html GNU/GPL
* @This module will show the gamercard of registered users in Community Builder.
* @ you only got to make a field called Gamertag, the image is refering to that.
*/

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
global $my;

$query = "SELECT cb_gamertag FROM #__comprofiler WHERE id = ". $my->id;
$database->setQuery( $query );
$cb_fieldvalue = htmlspecialchars($database->loadResult());



?>
<img src=" my.livecard.net/xbox/ .png" scrolling="no" frameBorder="0" height="55" width="220">


Any one got any pointers or idees

Post edited by: duronl, at: 2006/09/25 01:21

Founder of Stampgasten.nl & globalxboxcommunity.com
Check: www.stampgasten.nl | www.globalxboxcommunity.com

Please Log in or Create an account to join the conversation.

  • duronl
  • duronl
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
18 years 2 months ago #22044 by duronl
Replied by duronl on topic Re:Changing Avatar in code
Kick (A)

Founder of Stampgasten.nl & globalxboxcommunity.com
Check: www.stampgasten.nl | www.globalxboxcommunity.com

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum