![]() |
Swapping 'lastpost' for 'dateline' in a php script throws error in tags.php
I've been trying to change the sort order in the tags search results. Lynne suggested a look at the ..\vb\search\searchcontroller\tag.php file, which has this at the bottom:
Code:
{ FROM ". TABLE_PREFIX . "tagcontent as tagcontent WHERE tagid = " . $equals['tag'] . " ORDER BY dateline DESC LIMIT 20000"; But if I change 'dateline' to 'lastpost' I get this error when I run a tag search, which is based on tags.php in public_html folder: Code:
Database error in vBulletin 4.1.3: Code:
private $sorts = array('dateline', 'contenttypeid', 'contentid'); https://vborg.vbsupport.ru/external/2011/06/63.png |
Maybe try replacing the sql with:
Code:
$sql = " |
kh99 -
You. Are. Awesome! Thank you! |
All times are GMT. The time now is 04:51 AM. |
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:
|