![]() |
Direct Link to User's ACP Profile in Postbit for Admins
------------------------------------------------------------------------------>
Direct Link to User's ACP Profile in Postbit for Admins ~ A hack by N9ne // March 18th 2003 ~ Copyright N9ne 2003+ ------------------------------------------------------------------------------> ------------------------------------------------------------------------------> What does this hack do? ~ It adds a link in the postbit to only administrators. ~ Upon clicking the link, you are taken directly to the user's profile, in the adminCP. ~ This hack was created for convenience. ------------------------------------------------------------------------------> ------------------------------------------------------------------------------> What do i need to do to install this hack? ~ 3 file modifications [admin/functions.php and showthread.php] ~ One template modification [postbit] ~ Add one template [postbit_useradmin] ------------------------------------------------------------------------------> Screenshot in next post! |
Screenshot of link in postbit // Remember: You can place the link anywhere you want in the postbit!
|
Preeeetttty simple :p It's ok, I guess. :)
|
It's simple yes, but is that enough reason to reply to it stating that :rolleyes:
|
This can be (somewhat) done with phpinclude. Hacking just gives a cleaner resulting HTML.
|
Filburt, in your eyes, everything can be done in phpinclude :).
Wouldn't using phpinclude in this, and calling an extra template, add a query per page? |
is that the same link thats in the profile?
|
Yes, on the get info page, there's the administrative options link, this link that is put in the postbit has the same URL, except it's only viewable by administrators.
|
Nice little hack, N9ne. ;) I did this a while back using Logician's Dynamic Templates hack. No PHP files were harmed in the making of that hack. ;)
|
Quote:
No, it just makes messy HTML. |
Quote:
I'm not sure what you mean by when using phpinclude, it will create messy html, what do you mean by 'messy' html? |
My way would be to create variables that contain HTML comments and put them to the left and right of the HTML for the link, but the variables will be empty for usergroupids 5, 6, and 7 (smods, admins, and mods).
|
Oh I see now, quite messy...
|
Quote:
|
No, something like this (using PAPI because I'm lazy):
PHP Code:
Code:
$prelink <a href="...">...</a> $postlink |
Bah, stick with modifying files here, that's too unclean for my liking, + phpinclude modifying just isn't my thing :p
|
All this complaining :D
It's a good hack. I've had it on my site for a long time and it is a big time saver. |
Just a thought. I noticed you don't have
target="_blank" at the end of the link. I put that in mine when I did this a while back so all I had to do was close the window after an edit to get back to the post I came from instead of having to go through about 4 or 5 screens to get back to the post. |
Quote:
|
Nice Idea.. don't have to click on the Profile anymore to see the administration link! I will install this!
/me clicks on install |
All times are GMT. The time now is 06:37 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:
|