Forums Logo
 
Reply to this topicStart new topic
> D21-Board Panel Stats, Added Torrent Stats
Jaggi
post Aug 17 2006, 12:13 PM
Post #1


Administrator
***

Group: Project Developer
Posts: 350
Joined: 31-March 06
Member No.: 1



sorry on the delay but heres the code, rather easy but untested so someone giveme a heads up wink.gif .
Open sources/action_public/D2Mods/BPanel/bp.php

Find:

CODE

        if (strstr($cids, ',boardpanel,'))
        {
            $bpdata['fo'] = 'none';
            $bpdata['fc'] = 'show';
        }


Add After:

CODE

        //-----------------------------------------
        // Start of IPBTracker Modification
        //-----------------------------------------
        
        $this->ipsclass->DB->query("SELECT *
                                    FROM ".SQL_PREFIX."attachments
                                    WHERE attach_member_id ='".$this->ipsclass->member['id']."'
                                    AND `attach_ext` = 'torrent'");
        $bpdata['torrents'] = $this->ipsclass->DB->get_num_rows();

        $this->ipsclass->member['ratio'] = $this->ipsclass->ratio( $this->ipsclass->member['uploaded'], $this->ipsclass->member['downloaded'] );
        $this->ipsclass->member['uploaded'] = $this->ipsclass->size_format( $this->ipsclass->member['uploaded'] );
        $this->ipsclass->member['downloaded'] = $this->ipsclass->size_format( $this->ipsclass->member['downloaded'] );
        
        //-----------------------------------------
        // End of IPBTracker Modification
        //-----------------------------------------        


Open ACP HOME > Skin Manager Home > "your default skin" > Board Index > member_board_panel:

Add this where u want the stats to appear:

CODE

<font color=#008000>UL: {ipb.member['uploaded']} </font><br />
<font color=#0000FF>DL: {ipb.member['downloaded']} </font><br />
Ratio: {ipb.member['ratio']}<br />
Torrents Uploaded: {$data['torrents']}
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post
gollum
post Aug 17 2006, 03:13 PM
Post #2


Advanced Member
***

Group: Members
Posts: 63
Joined: 29-April 06
Member No.: 33



Thanks Jaggi! smile.gif
I'll test it out later today and report back.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post
gollum
post Aug 17 2006, 07:29 PM
Post #3


Advanced Member
***

Group: Members
Posts: 63
Joined: 29-April 06
Member No.: 33



ok, tried it out on my board..:
IPB Image
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post
Jaggi
post Aug 17 2006, 11:50 PM
Post #4


Administrator
***

Group: Project Developer
Posts: 350
Joined: 31-March 06
Member No.: 1



uh huh

edited tongue.gif. Replace the code.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post
gollum
post Aug 18 2006, 02:05 AM
Post #5


Advanced Member
***

Group: Members
Posts: 63
Joined: 29-April 06
Member No.: 33



QUOTE(Jaggi @ Aug 17 2006, 03:50 PM) *

uh huh

edited tongue.gif. Replace the code.

Thanks Jaggi!
works great now. smile.gif
IPB Image

This post has been edited by gollum: Aug 18 2006, 02:05 AM
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post
Jaggi
post Aug 19 2006, 02:21 AM
Post #6


Administrator
***

Group: Project Developer
Posts: 350
Joined: 31-March 06
Member No.: 1



nice gollum, post your html ppl might prefer it to mine which was just a quick one tbh.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post
gollum
post Aug 19 2006, 02:56 AM
Post #7


Advanced Member
***

Group: Members
Posts: 63
Joined: 29-April 06
Member No.: 33



QUOTE(Jaggi @ Aug 18 2006, 06:21 PM) *

nice gollum, post your html ppl might prefer it to mine which was just a quick one tbh.
here's the one i use on my site. smile.gif
CODE
UL: <strong><font color=#008000>{ipb.member['uploaded']} </font></strong> • DL: <strong><font color=#0000FF>{ipb.member['downloaded']} </font></strong> • Ratio: <strong>{ipb.member['ratio']}</strong><br />
You have uploaded <strong>{$data['torrents']}</strong> torrents to the site<br /><br />

which will look like:
IPB Image

This post has been edited by gollum: Aug 19 2006, 02:59 AM
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post
nightwisher
post Oct 3 2006, 02:55 PM
Post #8


Advanced Member
***

Group: Beta Tester
Posts: 66
Joined: 25-April 06
From: Bosnia
Member No.: 17



For up there i add just in the end <br />

Becouse have mix with other things on panel tongue.gif

CODE
<font color=#008000>UL: {ipb.member['uploaded']} </font><br />
<font color=#0000FF>DL: {ipb.member['downloaded']} </font><br />
Ratio: {ipb.member['ratio']}<br />
Torrents Uploaded: {$data['torrents']} <br />


Nice work

Thanks a lot
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
1 Members: OPPZeroCool

 

Lo-Fi Version 0.0841 sec    0.06    10 queries    GZIP Enabled
Time is now: 9th October 2006 - 11:37 PM