Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Jiggy

Anzeige der Userranks

Recommended Posts

Hi Jungs weiß jemand wie der Code lauten muss damit der Mod "Anzeige der Userranks" in IPB 2.0 leuft

der mod greift direct in das Root verzeichnis der Domian zu aber wie ihr ja alle wisst muss er auf das verzeichnis:

'style_images/{img_dir}/folder_team_icons' zugreifen

$idx = new mod_showRanks_func; 


class mod_showRanks_func

{ 

var $html; 

var $output; 



function mod_showRanks_func()

{

	global $print, $ibforums, $std, $DB;

	$ibforums->lang = $std->load_words($ibforums->lang, 'mod_showRanks_lang', $ibforums->lang_id );

	$this->html =  $std->load_template('mod_showRanks_skin');



	$this->output = $this->html->table_header();  


	$DB->query("SELECT * FROM ibf_titles ORDER BY posts");

	while($s = $DB->fetch_row()){

  $stars = "";

  // if the entry is numeric, show the pipes:

  if(is_numeric($s[pips])){

    for($i=1;$i<=$s[pips];$i++){

    $stars .= "<img src='".$ibforums->vars['img_url']."/pip.gif' border=0>";

           }

         }

         // if it isn´t numeric, it should be a filename, so show the image: 

         else{

           $stars = "<img src='{$ibforums->vars['TEAM_ICON_URL']}/$s[pips]' border='0'>";

           }

  $rank = $s[title];  

	$this->output .= $this->html->basic_html($s[posts], $stars, $rank); 

	} 


	$this->output .= $this->html->table_footer(); 


	$print->add_output("$this->output");

	$print->do_output( array( 'TITLE' => $ibforums->lang['page_title'], 'JS' => 0, NAV => array( $ibforums->lang['page_title'] ) ) );

} 

} 


?>

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×