View Full Version : small request plz
SilverBoy
04 Apr 2001, 00:51
I wanna add numer of users of all titles to my index page, so can some one help me to do that ;) thx.
ex:
1 adminstrator
8 moderators
165 joniour member
78 member
15 senior member
and I wish I can add it too other php page too.
thx for help.
Good suggestion, SilverBoy! :)
Would certainly make a useful small hack for lots of vBulletin users out there.
Could someone please create this hack? Thank you! :D
SilverBoy
05 Apr 2001, 15:41
I want it plz make it to me.
SilverBoy
05 Apr 2001, 21:38
u are gentel man. ;)
Good luck with the hack, PeF! :)
SilverBoy
08 Apr 2001, 23:21
Iam still waiting ?????? :D
Add this code to the page you want to show the user totals on:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
...and then add $usertotals to an appropriate template.
Easy peasy :)
SilverBoy
09 Apr 2001, 11:43
I will try it and replay later, thx ;)
SilverBoy
09 Apr 2001, 12:04
thx Kier but I tried it on vb115 and work fine, but it is not what i want, I wanna to display usertitles not usergroups, sorry for bothering u but can u to modify it.;)
Replace Kier's SQL query with this:
SELECT user.usertitle, COUNT(userid) AS users
FROM user
GROUP BY user.usertitle
Hope this helps.
Lol Pef,don't forget that Kier is the better php coder's of the World (for vbulletin ;) )
SilverBoy
09 Apr 2001, 21:03
I have 4 users in my test board, and when I test it, it gived me a list without titles only numbers, and they was 3 numbers only, but I have 4 titles to those users, any help???:confused:
try the sql query if you have this.
SilverBoy
10 Apr 2001, 00:35
I didnt get ur meaning, sorry
Do you know if you have phpmyAdmin access to your site? If you have, run the SELECT statement I posted and see if you get the result you wanted.
SilverBoy
11 Apr 2001, 11:03
I checked in phpmyadmin and it was very nie, I think there are some modification in the rest of kier code to display every thing correctly in the index page, any help.
SilverBoy
12 Apr 2001, 12:15
can u do it with new select statment?
trilizio
12 Apr 2001, 20:10
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I think this might work
not 100% sure.
SilverBoy
14 Apr 2001, 14:20
it works fine now, thx for ur help all.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.