PDA

View Full Version : Miscellaneous Hacks - Display Userid in Postbit/Postbit_Legecy & MemberInfo


Mastar
12 Jul 2006, 02:56
Hope Other's Find This Useful.

Display a Clickable Userid in Postbit/Postbit_Legecy & MemberInfo For Admins and Mods (vBulletin 3.5 / 3.6)

Update: v1.01
Added permission for Smods & Mods.



Please Click Install (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=120964)

Mastar
12 Jul 2006, 03:01
*Clicks Install!!*

Scooterpig
12 Jul 2006, 06:25
Does this ID show for everyone or just for Admin please?

Pathor
12 Jul 2006, 10:32
Only Admins.

Snake
12 Jul 2006, 14:19
Thanks!

Scooterpig
13 Jul 2006, 11:12
Thanks for that...installed..:)

Barteken
17 Aug 2006, 23:52
reserved

acco
18 Aug 2006, 14:24
Thanks installed :)

Could this hack be intergrated to show UserID in the members list?

ChaoticMageDDC
14 Sep 2006, 16:29
Very useful thanks!

Mike-D
17 Sep 2006, 20:53
Does this ID show for everyone or just for Admin please?Yep. Only Admins like Pathor said. Because of this...

<if condition="$bbuserinfo[usergroupid]==6">

Just in case if you're interested of <if condition...>... see Pathor's great Conditional Info (http://www.vbulletin-germany.com/forum/showthread.php?t=24195) and Tutorial :up: It's always worth a view! -Mike

oberheimhaven
18 Sep 2006, 19:02
Installed
Thxs for the great hack very useful!!
MarkAnthony

Mastar
08 Oct 2006, 17:14
Your welcome!

krazycivik
07 Nov 2006, 06:54
awsome hack thank you installed..

Smoothie
07 Nov 2006, 16:04
Just in case if you're interested of <if condition...>... see Pathor's great Conditional Info (http://www.vbulletin-germany.com/forum/showthread.php?t=24195) and Tutorial :up: It's always worth a view! -MikeWhere's the english version?

rjmjr69
02 Feb 2007, 09:19
Can this be added with vb plaza installed? I looked at the code and found SOME of it in membersinfo. But the line doesn't match exactly

This is what I have that matches the most information

<if condition="$userinfo['usertitle']"><div class="smallfont" <if condition="$userinfo['titlestyle']">style="$userinfo[titlestyle]"</if>>$userinfo[usertitle]</div></if>
<!-- vbPlaza end -->

Mastar
03 Feb 2007, 13:59
Can this be added with vb plaza installed? I looked at the code and found SOME of it in membersinfo. But the line doesn't match exactly

This is what I have that matches the most information

<if condition="$userinfo['usertitle']"><div class="smallfont" <if condition="$userinfo['titlestyle']">style="$userinfo[titlestyle]"</if>>$userinfo[usertitle]</div></if>
<!-- vbPlaza end -->


It probably can I don't use vb Plaza so there is no way of testing but you can insert the code there and see where it shows up and adjust to suite.

Mastar
08 Feb 2007, 18:40
Thanks installed :)

Could this hack be intergrated to show UserID in the members list?


Yes, check it out here:
http://www.vbulletin.org/forum/showthread.php?p=1177703#post1177703

wpeloquin
12 Feb 2007, 01:41
I changed
<!-- USERID -->
<if condition="$bbuserinfo[usergroupid]==6">
<a class="smallfont" href="admincp/user.php?do=edit&u=$post[userid]">$vbphrase[userid]:$post[userid]</a>
</if>
<!-- END USERID -->

to this:

<!-- USERID -->
<if condition="$bbuserinfo[usergroupid]==6">
<a class="smallfont" href="$admincpdir/user.php?do=edit&u=$post[userid]">$vbphrase[userid]:$post[userid]</a>
</if>
<!-- END USERID -->

for users who have changed the path of their admincp

Mastar
01 Mar 2007, 01:10
I changed
<!-- USERID -->
<if condition="$bbuserinfo[usergroupid]==6">
<a class="smallfont" href="admincp/user.php?do=edit&u=$post[userid]">$vbphrase[userid]:$post[userid]</a>
</if>
<!-- END USERID -->

to this:

<!-- USERID -->
<if condition="$bbuserinfo[usergroupid]==6">
<a class="smallfont" href="$admincpdir/user.php?do=edit&u=$post[userid]">$vbphrase[userid]:$post[userid]</a>
</if>
<!-- END USERID -->

for users who have changed the path of their admincp

Thank you!

wpeloquin
03 Mar 2007, 18:29
not a problem :)

pollon
08 Mar 2007, 19:31
hi!
I would like other usergroups to see the user ID. so i want the user ID not to link anywhere.
how can I do it?

aquariumpros
08 Mar 2007, 19:37
hi!
I would like other usergroups to see the user ID. how can I do it?

Add the usergroups to this line :

<if condition="$bbuserinfo[usergroupid]==6">

MThornback
09 Mar 2007, 01:23
Can this be added with vb plaza installed? I looked at the code and found SOME of it in membersinfo. But the line doesn't match exactly

This is what I have that matches the most information

<if condition="$userinfo['usertitle']"><div class="smallfont" <if condition="$userinfo['titlestyle']">style="$userinfo[titlestyle]"</if>>$userinfo[usertitle]</div></if>
<!-- vbPlaza end -->


All that bit you posted does is allow VBPlaza to apply colour and font changes etc... if you add this authors code after <!-- vbPlaza end --> it should appear as intended without a problem providing there are no open template conditions above it to interfere :)

rjmjr69
09 Mar 2007, 02:37
All that bit you posted does is allow VBPlaza to apply colour and font changes etc... if you add this authors code after <!-- vbPlaza end --> it should appear as intended without a problem providing there are no open template conditions above it to interfere :)

Thank you. Got it figured out and did it exactly how you exlained. But with the recent security issues I had to uninstall the plaza for now.

rolfw1
20 May 2007, 09:41
Very useful, thanks very much. :)

changed the postbit code slightly to centre the text (for appearance sake)

@ aquariumpros. Thanks for that, now use <if condition="is_member_of($bbuserinfo, 2, 7, 10)"> and gives access to mods and a special group. :)

Mastar
20 May 2007, 13:27
Thanks!

rolfw1
23 May 2007, 21:14
Thanks again, just added the update, now lets the mods view the member information. Is it possible to point the mods to the complete mod cpanel page with the user loaded, as at the moment it only points to the user information and no sidebar with function controls, so even if they get there, they can't do anything with the information.

Mastar
23 May 2007, 21:23
Thanks again, just added the update, now lets the mods view the member information, is it possible to point the mods to the complete mod cpanel page, as at the moment it only points to the user information and no sidebar with function controls, so even if they get there, they can't do anything with the information.

Gonna look into it, thanks!

Andyucs
30 May 2007, 18:30
Clicks Installed

Nice 1

dannylin3000
03 Jun 2007, 02:07
i have a custom field for my users to enter their nickname - was wondering if you know how to show their nickname instead of their username?

periphrastic
22 Sep 2007, 04:56
installed & thank you - however, when i click on the ID, i'm taken to a 'page not found' screen ? could you advise on this? thanks

Mastar
22 Sep 2007, 05:05
installed & thank you - however, when i click on the ID, i'm taken to a 'page not found' screen ? could you advise on this? thanks

Try changing this line:

<a class="smallfont" href="$admincpdir/user.php?do=edit&u=$post[userid]">$post[userid]</a>

<a class="smallfont" href="admincp/user.php?do=edit&u=$post[userid]">$post[userid]</a>

Assuming you are logged in as an admin.