Log in

View Full Version : Icon next to posts that links to user profile (for admins) ???


z0diac
12-08-2007, 05:39 PM
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:

<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
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 1197159375 at 1197159375 ---------------

IGNORE last post! Found the correct spot for it.

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