PDA

View Full Version : Admin Search Result ?


vietdjclub
07-08-2008, 09:41 AM
In search function. default setting for all group:


Search Results Posts Per Page : 25
Maximum Search Results to Return: 50


But i want to set it higher for special group like Admin group (it'smean if user search something from special user (admin) it will show more result than normal group):


Search Results Posts Per Page : 100
Maximum Search Results to Return: 300


Somebody can tell me how can i do it, please?

Thank you so much

Rocket_Man
09-12-2009, 11:41 AM
I would like this option as well.

Somebody up for it? :)

Lynne
09-12-2009, 02:29 PM
Just write a plugin and change those values for the usergroup:
if (is_member_of($vbulletin->userinfo, x, y, z))
{
$vbulletin->options['maxresults'] = '1000';
$variable for search results per page = 100';
}

Change x. y. z to the usergroups you want to change the value for. I didn't look up the variable name for search results per page - you can do that and then enter it there also.