vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Icon next to posts that links to user profile (for admins) ??? (https://vborg.vbsupport.ru/showthread.php?t=164697)

z0diac 12-08-2007 05:39 PM

Icon next to posts that links to user profile (for admins) ???
 
Is there a mod that will put an icon next to each post linking to the admin page of that user's profile? (for quick user editing)

Right now I've got to copy the user's name, open a new tab, log in to admin page, click users, click search, enter username.

If there was a ONE-CLICK way to get there available to admins/mods next to each user's post, it would be VERY helpful.

Mark.B 12-08-2007 06:00 PM

You could put this somewhere in the postbit or postbit_legacy template:
Code:

<if condition="$show['admincplink']">
<a href="admincp/user.php?$session[sessionurl]do=edit&u=$post[userid]" target="_blank">User Admin</a>
</if>

I haven't tested this, but it should work. It will open the user's admin page in a new window, and will only be visible to admins.

If you don't want it to open a new window, remove target="_blank".

z0diac 12-08-2007 06:41 PM

THanks! (I'm just not sure where to insert it - the first spot I tried, it said it would cause some fatal error if I continued saving postbit so I chickened out and removed it :)

There *was* a mod for this posted a few days ago, I just can't seem to find it. (??)

Mark.B 12-08-2007 08:53 PM

Quote:

Originally Posted by z0diac (Post 1397508)
THanks! (I'm just not sure where to insert it - the first spot I tried, it said it would cause some fatal error if I continued saving postbit so I chickened out and removed it :)

There *was* a mod for this posted a few days ago, I just can't seem to find it. (??)

I've tested and corrected the code....couple of unnecessary apostrophes were causing that error. It *should* work now.

z0diac 12-08-2007 10:11 PM

Awesome! Seems to work great.

PS: any idea where it should be inserted so it's located to the RIGHT of the line that shows ..

USERNAME [online/offline status icon] [UserAdmin Link here]

I'm trying different areas but keep putting it into part of postbit that wants to give me errors if I continue with the change.

--------------- Added [DATE]1197159375[/DATE] at [TIME]1197159375[/TIME] ---------------

IGNORE last post! Found the correct spot for it.

Thank you VERY much. This will save SOO much time doing quick user edits.


All times are GMT. The time now is 04:53 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
  • Page Generation 0.02086 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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