Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Problem with Thread Prefix (not display style)
InfraWorld Offline
Junior Member
**
Posts: 3
Joined: Mar 2012
Post: #1
Problem with Thread Prefix (not display style)
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 ...
07-04-2012 08:03 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Problem with Thread Prefix (not display style)
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'];


My Blog
07-04-2012 08:27 PM
Find all posts by this user Quote this message in a reply
InfraWorld Offline
Junior Member
**
Posts: 3
Joined: Mar 2012
Post: #3
RE: Problem with Thread Prefix (not display style)
(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
(This post was last modified: 07-05-2012 03:23 AM by InfraWorld.)
07-05-2012 03:23 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: