Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Posts: 19,118
Thanks Given: 2,351
Thanked 3,359 Times in 1,878 Posts
Hey Rudi,
I think this works as you requested (for Member Name searches only). Basically, I removed the search results LIMIT of 500 for all moderators (this was the easiest fix) and corrected some errors in the PHP (below) image:
Please let me know if you get the results you expect. I checked an it worked fine for me!
// Does not work as planned so just removed limit for mods in code frag in block below
1401 if(can_moderate() AND $vbulletin->GPC['searchbyyear'] >= 2000 AND $vbulletin->GPC['searchbyyear'] <= date("Y"))
1402 {
1403 $nl_query_limit = 'LIMIT 3000';
1404 $vbulletin->options['maxresults'] = 3000;
1405 }
1406 else
1407 {
1408 $nl_query_limit = 'LIMIT ' . $vbulletin->options['maxresults'];
1409 }
// Does not work as planned so just removed limit for mods in code frag in block below
Code:
2655 // trim results down to maximum $vbulletin->options[maxresults]
2656 if ($vbulletin->options['maxresults'] > 0 AND $numitems > $vbulletin->options['maxresults'] AND !can_moderate())
2657 {
2658 $clippedids = array();
2659 for ($i = 0; $i < $vbulletin->options['maxresults']; $i++)
2660 {
2661 $clippedids[] = $orderedids["$i"];
2662 }
2663 $orderedids =& $clippedids;
2664 $numitems = $vbulletin->options['maxresults'];
2665 }
HTML:
Code:
search_forums
Code:
<div style="margin:20px 0px 10px 0px;font-weight:bold;cursor:pointer;" ><span>Search by Year:</span><span style="cursor:pointer;margin-left:20px;color:indigo;" class="neo-toolbit" title="User Name Searches by Year in Posts Only. Please Search By User Name and Select Show Results by Posts (Below, Left)"><i class="fas fa-question-circle"></i></span></div>
<div style="padding:$stylevar[formspacer]px">
<div style="margin:0px 0px 10px 0px;display:none;">:</div>
<div id="by_year">
<input type="text" class="bginput form-control" name="searchbyyear" id="by_year_input" size="100" placeholder="Year in 20YY Format for User Name Searches in Posts"/>
</div>
</div>
Mon, 21 Jan 19 07:50:13 -0600 UserID: Neo logic : ["post.dateline >= 1514786400 AND post.dateline <= 1546322399","post.userid IN(302122047)"]
This query by you adds a field which you should not add, since my instructions were to set three fields (not four):
Code:
Mon, 21 Jan 19 07:51:02 -0600 UserID: RudiC logic : ["post.dateline >= 1357020000 AND post.dateline <= 1388555999","post.userid IN(302122047)","post.dateline > 1547992262"]
Mon, 21 Jan 19 07:51:22 -0600 UserID: RudiC logic : ["post.dateline >= 1357020000 AND post.dateline <= 1388555999","post.userid IN(302122047)","post.dateline < 1547992282"]
I really do not want to have to spend time testing every possible case where people do not follow my instructions (which are in the mouse over I provided over the "question-mark" icon). Just set the three fields and it works fine. I have tested it many times.
If you want to search by year, unlimited in results, I have provided you that capability as a Moderator!