![]() |
Link post number in postbit (Admin only)
Hi. Weeks ago I modified my postbit template (actually it wasn't a hack) to make the post counter link to search.php?action=finduser, just as done here....
But found an unacceptable increment of MySQL (and CPU) load.. I.e. most users started submitting searches.... :surprised So I had to remove that link. Now I would try again showing that link only to Admins. As said elsewhere, I'm not too good at template bits encapsulation, so would simply a tip how to start. Could someone give the trick ? Thanks |
In the getpostbit() function (functions.php), add a check like this:
Code:
if ($bbuserinfo['usergroupid']==6) { |
Yeah!
Thanks to your tip I quickly made this stupid hack: In functions.php, just before PHP Code:
PHP Code:
I replaced Posts: $post[posts] with Posts: $postslink... If that could be useful to somebody... Thanks again. Bye |
All times are GMT. The time now is 05:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|