Jiggy 0 Report post Posted November 9, 2004 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
Jiggy 0 Report post Posted November 16, 2004 danke aber habe das Problem Selber gelöst hier der Mod Share this post Link to post