The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
I will try it soon thank YOU!!!!!!!!!!!!!!!!! hope it works..
|
#12
|
|||
|
|||
Parse error: syntax error, unexpected $end in
/includes/functions.php(2914) : eval()'d code on line 16 Any ideas? I'm on current version vb 3.6.2 I put it in the plugin manager ---- Product vbulletin Hook cache_ordered_forums Title Alpha sort subforums Exec order 5 [Use this field to enter the order in which code at the same hook will be executed.] Plugin PHP code [copied from RHSimard here] $forumcheck = end($vbulletin->forumcache); if (!$forumcheck['sorted']) { function forumsort($forum1, $forum2) { if ($forum1['displayorder'] == $forum2['displayorder']) { return strnatcasecmp($forum1['title_clean'], $forum2['title_clean']); } return ($forum1['displayorder'] < $forum2['displayorder']) ? -1 : 1; } uasort($vbulletin->forumcache, 'forumsort'); $lastforum = end($vbulletin->forumcache); Plugin is active Yes. RESULT Parse error: syntax error, unexpected $end in /includes/functions.php(2914) : eval()'d code on line 16 My vb is not installed in a folder named "forums" but I wouldn't have thought that affects this. When I tried Andreas code (after switching RMSimard's verson to inactive) it seemed to work fine - sight for sore eyes! until I moved off the page I'd refreshed to check other pages. I tried the main forums link in the breadcrumbs and got error below - also same stuff if I try to do a fresh login. Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php on line 3688 Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3688 Warning: end() [function.end]: Passed variable is not an array or object in /includes/functions.php(2914) : eval()'d code on line 1 Warning: uasort() [function.uasort]: The argument should be an array in /includes/functions.php(2914) : eval()'d code on line 8 Warning: end() [function.end]: Passed variable is not an array or object in /includes/functions.php(2914) : eval()'d code on line 9 Fatal error: Unsupported operand types in /includes/functions.php on line 2972 |
#13
|
|||
|
|||
I tried this under 3.6.3 and got wild error message:
Warnung: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php Line 3699 in functions.php, this one: Quote:
But here's another question: Can the plugin (once it works without producing errors) also be adjusted to sort subforums by latest post within the subforums? Would be great. Thanks! |
#14
|
|||
|
|||
Any new solution for sorting forums alphabetically?
|
#15
|
|||
|
|||
Bump
--------------- Added [DATE]1192647503[/DATE] at [TIME]1192647503[/TIME] --------------- Does anybody know how to sort threads in alphabetic order in VB 3.6, rather then having to manuelly set to sorting eg: 1, 2, 3, 4, 5 and so on...... |
#16
|
|||
|
|||
i will bump since i am still looking for this Addon:
Does anybody know how to sort threads in alphabetic order in VB 3.6, rather then having to manuelly set to sorting eg: 1, 2, 3, 4, 5 and so on...... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|