The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
In the getpostbit() function (functions.php), add a check like this:
Code:
if ($bbuserinfo['usergroupid']==6) { // set $postcount to a link with HTML } else { // set $postcount to a static number } |
#3
|
|||
|
|||
![]()
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 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|