The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Latest Members?
Hello,
is there any possibility to show the latest members at vB5? ... could make a php module with a query of the latest (eg 5) members. ...if it is safe enough? ...or could do it by a widget/ mod. Have no idea how to do that. :-( Could anybody help me with one of this? Thanks in advance. |
#2
|
||||
|
||||
Yes. What do you actually need help with? How much PHP do you know?
|
#3
|
|||
|
|||
Quote:
thank you for your quick reply. My PHP-Knowlege is not that good. Reading and edit a existing code is not a big deal, but write one by my self is a little to much for me. I looked into the member.php and widget_memberslist and try to get a code sniped to edit it into order by desc - limit 5 or something like that. Unfortunately I didn't find anything that helped me. A big question for me is also if it is safe to make a php module in Site Edit with a DB query inside or rather how xould I use the db query within vB. So I think I need a lot of help Edit: Find a example at vBulletin.com that helps me a little... http://www.vbulletin.com/forum/forum...-or-php-widget Hopfully vB5 is working like this too... But it would be fine to have a latest-member-module to choose in "Edit site". Try to make a php-module and call for help if I need it :-) --------------- Added [DATE]1409605624[/DATE] at [TIME]1409605624[/TIME] --------------- Ok, this is my idea or some code I edit from the Mod "Member Liste for VB5" (Thanks to the Developer wdwms) But it shows nothing so I need your help! PHP Code:
Thanks a lot!!! |
#4
|
||||
|
||||
Um...yikes. No. Won't help debug this...I appreciate my sanity too much...and this is a mess.
I'll put something together. Won't be tomorrow, Thursday at the earliest. You're on a later version of vBulletin, I assume (hope?). |
#5
|
|||
|
|||
Hi,
the Forum runs on VB 5 if you mean it with you assume Iam on a later version of vBulletin?! That would be great! |
#6
|
||||
|
||||
Quote:
I've attached an addon that creates the new widget type. It depends on having the memberlist API, which was added sometime in vBulletin 5's later life. (Sorry about the template name. By the time I noticed it, it was too late) |
2 благодарности(ей) от: | ||
Ivan Beser, tbworld |
#7
|
|||
|
|||
Thank you very much!!!
That's amazing! I run 5.1.3 now and it works fine! Is there any way to buy you a beer? :up: |
#8
|
||||
|
||||
Glad it's working for you.
|
#9
|
|||
|
|||
Have a related problem when I try to edit and use your code.
I want to display all users where was online the latest 24 hours. How could I set the "TIMENOW - $userinfo[lastvisit] < 86400" in your code as a "where"-value to the array? Could you help me with that? |
#10
|
||||
|
||||
Quote:
There's nothing in that code to accept a "where" SQL clause. You'd have to change the backend code a bit to accept it. Can't do it from the template code. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|