vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - Display Userid in Postbit/Postbit_Legecy & MemberInfo (https://vborg.vbsupport.ru/showthread.php?t=120964)

Mastar 07-11-2006 10:00 PM

Display Userid in Postbit/Postbit_Legecy & MemberInfo
 
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.




Mastar 07-12-2006 02:01 AM

*Clicks Install!!*

Scooterpig 07-12-2006 05:25 AM

Does this ID show for everyone or just for Admin please?

Pathor 07-12-2006 09:32 AM

Only Admins.

Snake 07-12-2006 01:19 PM

Thanks!

Scooterpig 07-13-2006 10:12 AM

Thanks for that...installed..:)

Barteken 08-17-2006 10:52 PM

reserved

acco 08-18-2006 01:24 PM

Thanks installed :)

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

ChaoticMageDDC 09-14-2006 03:29 PM

Very useful thanks!

Mike-D 09-17-2006 07:53 PM

Quote:

Originally Posted by Scooterpig
Does this ID show for everyone or just for Admin please?

Yep. Only Admins like Pathor said. Because of this...

Code:

<if condition="$bbuserinfo[usergroupid]==6">
Just in case if you're interested of <if condition...>... see Pathor's great Conditional Info and Tutorial :up: It's always worth a view! -Mike

oberheimhaven 09-18-2006 06:02 PM

Installed
Thxs for the great hack very useful!!
MarkAnthony

Mastar 10-08-2006 04:14 PM

Your welcome!

krazycivik 11-07-2006 05:54 AM

awsome hack thank you installed..

Smoothie 11-07-2006 03:04 PM

Quote:

Just in case if you're interested of <if condition...>... see Pathor's great Conditional Info and Tutorial :up: It's always worth a view! -Mike
Where's the english version?

rjmjr69 02-02-2007 08:19 AM

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 02-03-2007 12:59 PM

Quote:

Originally Posted by rjmjr69 (Post 1172809)
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 02-08-2007 05:40 PM

Quote:

Originally Posted by acco (Post 1055031)
Thanks installed :)

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


Yes, check it out here:
https://vborg.vbsupport.ru/showthrea...03#post1177703

wpeloquin 02-12-2007 12:41 AM

I changed
Code:

<!-- 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:
Code:

<!-- 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 03-01-2007 12:10 AM

Quote:

Originally Posted by wpeloquin (Post 1180313)
I changed
Code:

<!-- 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:
Code:

<!-- 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-03-2007 05:29 PM

not a problem :)

pollon 03-08-2007 06:31 PM

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 03-08-2007 06:37 PM

Quote:

Originally Posted by pollon (Post 1199006)
hi!
I would like other usergroups to see the user ID. how can I do it?

Add the usergroups to this line :

PHP Code:

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


MThornback 03-09-2007 12:23 AM

Quote:

Originally Posted by rjmjr69 (Post 1172809)
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 03-09-2007 01:37 AM

Quote:

Originally Posted by MThornback (Post 1199227)
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 05-20-2007 08:41 AM

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 05-20-2007 12:27 PM

Thanks!

rolfw1 05-23-2007 08:14 PM

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 05-23-2007 08:23 PM

Quote:

Originally Posted by rolfw1 (Post 1253437)
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 05-30-2007 05:30 PM

Clicks Installed

Nice 1

dannylin3000 06-03-2007 01:07 AM

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 09-22-2007 03:56 AM

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 09-22-2007 04:05 AM

Quote:

Originally Posted by periphrastic (Post 1344324)
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:

Code:

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

<a class="smallfont" href="admincp/user.php?do=edit&u=$post[userid]">$post[userid]</a>
Assuming you are logged in as an admin.


All times are GMT. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01288 seconds
  • Memory Usage 1,788KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete