MyBB Hacks

Full Version: Problem with Thread Prefix (not display style)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to order a forum for prefixes and I Edit Settings Default Forum Ordinations select "Thread Prefix (not display style)" I go to the forum and does not make any changes ... I have xThreads v1.53, I hope I can help, greetings ...
Gah, bug.  Thanks for pointing out.

If you want to fix it, open up inc/xthreads/xt_forumdhooks.php
Find and delete:

PHP Code:
		if(!isset($mybb->input['sortby']) && !empty($forum['defaultsortby']))
			$mybb->input['sortby'] = $forum['defaultsortby'];

Then find:

PHP Code:
if($fid < 1 || !($forum = get_forum($fid))) return;

Add below:

PHP Code:
	if(!isset($mybb->input['sortby']) && !empty($forum['defaultsortby']))
		$mybb->input['sortby'] = $forum['defaultsortby'];

(07-04-2012 08:27 PM)ZiNgA BuRgA Wrote: [ -> ]Gah, bug.  Thanks for pointing out.

If you want to fix it, open up inc/xthreads/xt_forumdhooks.php
Find and delete:

PHP Code:
		if(!isset($mybb->input['sortby']) && !empty($forum['defaultsortby']))
			$mybb->input['sortby'] = $forum['defaultsortby'];

Then find:

PHP Code:
if($fid < 1 || !($forum = get_forum($fid))) return;

Add below:

PHP Code:
	if(!isset($mybb->input['sortby']) && !empty($forum['defaultsortby']))
		$mybb->input['sortby'] = $forum['defaultsortby'];


Zinga thank you very much I made the changes to the file and it worked wonderfully
Reference URL's