vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 06-14-2004, 09:16 AM
LoOnEyToOnZ LoOnEyToOnZ is offline
Junior Member
 
Join Date: Mar 2004
Posts: 24
Default Show richest members on CMPS ?

Im using uCash, how can i show the richest users on the frontpage of CMPS, on the right sideblock ?
  #2  
Old 06-16-2004, 07:29 AM
LoOnEyToOnZ LoOnEyToOnZ is offline
Junior Member
 
Join Date: Mar 2004
Posts: 24
Default Re: Show richest members on CMPS ?

Anyone ?
  #3  
Old 06-16-2004, 09:13 AM
Natch Natch is offline
Lurker in da house
 
Join Date: Jun 2004
Posts: 59
Arrow Re: Show richest members on CMPS ?

Should be simplicity itself ...

Make a new PHP module, which performs the query and retrieves the top 10 (or however many you like) richest members
PHP Code:
<?
    
require_once('./global.php');

    global 
$DB_site;

    
$result $DB_site->query("SELECT user.userid as userid, user.username as username, user.money as money FROM " TABLE_PREFIX ."user as user ORDER BY money LIMIT 10");
    while(
$hoarders $DB_site->fetch_array($result))
    {
        
$moneybagsbits.= "<tr><td><a href=\"member.php?userid=" $hoarders['userid'] . "\" title=\"Visit the palace of this rich user\">" $hoarders['username'] . "</a></td><td>" $hoarders['money'] . "</td></tr>\n";
    }
    
$moneybags "<tr><th>Richest User</th><th>Cash</th></tr>\n$moneybagsbits";

    eval(
'$home[$mods[\'modid\']][\'content\'] = "' fetch_template('adv_portal_moneybags') . '";');
?>
Then make a template called adv_portal_moneybags:
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder"width="100%">
	<tr>
		<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] Top uCash Holders</strong></span></td>
	</tr>
$moneybags
</table>
<br />
Now bear in mind that I know nothing about the structure of the uCash hack - I don't use it - but this theory should work ...

Then u need to install the module the same way you do any of the others ...
  #4  
Old 06-22-2004, 09:49 AM
Polo's Avatar
Polo Polo is offline
Senior Member
 
Join Date: Jun 2004
Posts: 823
Default Re: Show richest members on CMPS ?

anyone has tested this block? oh and can we see a screenshot?
  #5  
Old 07-04-2004, 12:02 AM
LoOnEyToOnZ LoOnEyToOnZ is offline
Junior Member
 
Join Date: Mar 2004
Posts: 24
Default Re: Show richest members on CMPS ?

I got this error when i used this module.....

Quote:
Database error in vBulletin 3.0.0:
Invalid SQL: SELECT user.userid as userid, user.username as username, user.money as money FROM user as user ORDER BY money LIMIT 10
mysql error: Unknown column 'user.money' in 'field list'
mysql error number: 1054
Date: Sunday 04th of July 2004 04:00:51 AM
Script: http://www.singaporesoccer.com/?
Referer: http://www.singaporesoccer.com/forum/index.php?
Username: Shawn
IP Address: 202.156.2.130
  #6  
Old 07-04-2004, 12:35 AM
Zachery's Avatar
Zachery Zachery is offline
Super Moderator
 
Join Date: Jan 2004
Posts: 3,157
Default Re: Show richest members on CMPS ?

Because youll need to adapt it for uCS ill see about getting some instructions for the next release
__________________
Zachery
vBadvanced Support & SysAdmin

  #7  
Old 07-30-2004, 11:36 AM
LoOnEyToOnZ LoOnEyToOnZ is offline
Junior Member
 
Join Date: Mar 2004
Posts: 24
Default Re: Show richest members on CMPS ?

Quote:
Originally Posted by Zachery
Because youll need to adapt it for uCS ill see about getting some instructions for the next release
Any luck with it ?
  #8  
Old 07-30-2004, 04:12 PM
Zachery's Avatar
Zachery Zachery is offline
Super Moderator
 
Join Date: Jan 2004
Posts: 3,157
Default Re: Show richest members on CMPS ?

Did you try requesting this at GeekyDesigns.com or the thread at vB.org? im no programer ;p that is matts department
__________________
Zachery
vBadvanced Support & SysAdmin

  #9  
Old 07-30-2004, 04:16 PM
Polo's Avatar
Polo Polo is offline
Senior Member
 
Join Date: Jun 2004
Posts: 823
Default Re: Show richest members on CMPS ?

Quote:
Originally Posted by Zachery
Did you try requesting this at GeekyDesigns.com or the thread at vB.org? im no programer ;p that is matts department
You dont code? what do you do then? just curious
__________________
God180.com <---------------------My heavily modified vBulletin board
  #10  
Old 07-30-2004, 04:37 PM
Zachery's Avatar
Zachery Zachery is offline
Super Moderator
 
Join Date: Jan 2004
Posts: 3,157
Default Re: Show richest members on CMPS ?

Templates, styles, small bits and peices of code in uCS, Managment
__________________
Zachery
vBadvanced Support & SysAdmin

  #11  
Old 07-30-2004, 04:49 PM
Polo's Avatar
Polo Polo is offline
Senior Member
 
Join Date: Jun 2004
Posts: 823
Default Re: Show richest members on CMPS ?

Cool... just getting to know you
__________________
God180.com <---------------------My heavily modified vBulletin board
  #12  
Old 08-11-2004, 07:48 PM
curetheitch curetheitch is offline
Junior Member
 
Join Date: Jul 2004
Posts: 14
Default Re: Show richest members on CMPS ?

Any updates on this?
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMPS Can't show Forum and Latest Topics on the same page george bray Bugs & Other Issues 3 09-12-2004 02:45 PM
Images show up on forum but not CMPS? DarknessDivine Troubleshooting / "How do I..." Questions 3 06-04-2004 02:57 PM


All times are GMT -4. The time now is 04:42 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.