The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Memberlist Display
My memberlist is hundreds of pages long because it shows members from 9 years ago who meet the post count criteria. I am hoping that a simple plugin could change that so that it shows members who meet the post criteria but have also been active over the past year. This would drastically cut down on the number of people shown. I realize an advanced search can be done to refine the search criteria but I am optimistic that this could be easily achieved as a default setting via a plugin. Does anyone know how to achieve this? I ran several searches here, on vb.com as well as google and came up with nothing.
Thanks for your time. |
#2
|
|||
|
|||
Just a "dirty" solution which means to manually edit the memberlist.php (repeating it on any vB upgrade). With a text editor (like Notepad) open the file memberlist.php. On line 375 you'll see:
Code:
$condition .= ' AND posts >= ' . $vbulletin->options['memberlistposts']; Code:
$timecondition = time() - (365 * 24 * 60 *60); Code:
$condition .= ' AND posts >= ' . $vbulletin->options['memberlistposts']; Code:
$condition .= ' AND posts >= ' . $vbulletin->options['memberlistposts'] .' AND lastactivity >= $timecondition'; Finally upload memberlist.php to your vb installation. Chris |
Благодарность от: | ||
Rich |
#3
|
||||
|
||||
It shows an error Chris.
Quote:
|
#4
|
|||
|
|||
Quote:
--------------- Added [DATE]1358271095[/DATE] at [TIME]1358271095[/TIME] --------------- How you added '' ? Must be '.$timecondition.' |
#5
|
||||
|
||||
The las line should be:
$condition .= ' AND posts >= ' . $vbulletin->options['memberlistposts'] .' AND lastactivity >=' $timecondition; ??? |
#6
|
|||
|
|||
Rich,
You also need to edit line 174. Replace: Code:
$condition = '1=1'; Code:
$timecondition = time() - (365 * 24 * 60 *60); $condition = '1=1 AND lastactivity >= '.$timecondition; Quote:
Code:
$condition .= ' AND posts >= ' . $vbulletin->options['memberlistposts'] .' AND lastactivity >='. $timecondition; ...or... $condition .= ' AND posts >= ' . $vbulletin->options['memberlistposts'] .' AND lastactivity >=' .$timecondition.''; |
#7
|
||||
|
||||
Thank you Chris. That did the trick!
Btw, this is what I did before I posted the issue: Code:
$condition .= ' AND posts >= ' . $vbulletin->options['memberlistposts'] .' AND lastactivity >= "$timecondition"'; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|