![]() |
User IDs to User Names
1 Attachment(s)
Doesn't seem anyone is interested in this... I'm hoping to spark an interest in someone who might find this useful information to have.
I have this little script that I downloaded here at vbulletin.org (see attached). It tells you what members are being ignored, and who they are being ignored by. I don't even need to know the "ignored by" part, but it's an added bonus. Two problems I have... I'd like to get this info into a template and I don't even know how to start... I'd like the userIDs (from the ignore lists) to actually be translated into the usernames. Anyone want to help? Thanks... |
1 Attachment(s)
This is what the output looks like currently...
|
Hi all, just bumping this up...
Here's me trying to convince someone with the know-how: it would be really useful information to have to see who your users consider to be "trouble makers" ... to know who they are ignoring. I tried to figure out how to get it into a template myself, or how to get the user IDs to convert over to usernames, and I couldn't do either -- I'm really a programming dummy! *begging* anyone? |
In that file, change this:
PHP Code:
PHP Code:
|
Thanks Boofo... but that didn't work :(
|
What are you trying to do exactly?
|
Boofo,
Ignore.php spits out a list of users who have people on their ignore list. Their ignore list is shown as a series of userID numbers. If there's more than 1, they are separated by a space. Look at the attached .gif above in my first reply... Part 1. I was the userIDs translated into usernames. Part 2. I was the whole thing in some kind of template. |
PHP Code:
|
Filburt,
Thank you so much for the help... Please pardon my php stupidity, but where exactly does your code go in the ignore.php script? I did try to figure it out, but couldn't get it to work. |
1 Attachment(s)
So I played with your idea, doctored the php and made a template.
Anyone can view this page. If the point is to humiliate those being ignored, we've succeeded. LOL If this is supposed to be for admins, we need to change the template and relocate the php file. Hope it helps. |
1 Attachment(s)
Name this template "ignored_members"
|
1 Attachment(s)
This is with a user ignored.
|
1 Attachment(s)
This is if no users are being ignored.
|
Noppid,
PERFECT! The way the permissions are on my board, this is only viewable by admins and mods (my users cannot view "who's online") which is why I added the permissions code that I did -- so regular members and guest just get the "no permission" template). Thanks so much!!!! Feel free to release it as a hack if you want -- others might find it userful. As for credits, I think Logician was the person who released the original ignore.php (though I'm not sure) |
1 Attachment(s)
I'm attaching my modified .php -- this helps make it look more like tables in other templates on your site... (just more aesthetically pleasing)
|
1 Attachment(s)
And these is the modified .txt file (for the template "ignored_members") that also makes it look more pleasing.
|
1 Attachment(s)
Screen shot of how it looks...
|
Nice job, glad it worked out.
|
All times are GMT. The time now is 04:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|