MyBB Hacks

Full Version: xthreads error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(01-12-2011 07:32 PM)1master1 Wrote: [ -> ]found that the xthread custom field permissions are not synchronizing withe the default mybb permissions.
i had made some forums only viewable for awaiting activation members and they cannot see the threads inside it and had the thread description field installed.
now when they click on the forum name, it is giving the error which is in first post. i tried custom setting the permissions of the xthread field. but didnt worked.

Could you post the forum setting and the custom thread fields setting?
I can't reproduce it (MyBB 1.6).
Here are the settings screenshots, rateu

[attachment=362]
[attachment=363]
[attachment=364]
Still, I can't reproduce it with your setting.
What XThreads version you are using?
xthreads 1.32
Not quite sure whether this will solve your problem or not. Try to upgrade your XThreads version. XThreads already in v 1.337 now.
(01-12-2011 07:32 PM)1master1 Wrote: [ -> ]found that the xthread custom field permissions are not synchronizing withe the default mybb permissions.
It's not meant to.

It appears that the join is not being put into your query.
XThreads searches for the WHERE statement and part of it to replace it:

PHP Code:
                'WHERE t.fid=' => 'LEFT JOIN `'.$db->table_prefix.'threadfields_data` tfd ON t.tid=tfd.tid'.$sortjoin.' WHERE t.fid=',

You said you've done some core file edits.  Have you modified this query in forumdisplay.php in any way?

PHP Code:
    // Start Getting Threads
    $query = $db->query("
        SELECT t.*, p.displaystyle AS threadprefix, {$ratingadd}{$select_rating_user}t.username AS threadusername, u.username
        FROM ".TABLE_PREFIX."threads t
        LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid = t.uid){$select_voting}
        LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid = t.prefix)
        WHERE t.fid='$fid' $tuseronly $tvisibleonly $datecutsql2
        GROUP BY t.tid
        ORDER BY t.sticky DESC, {$t}{$sortfield} $sortordernow $sortfield2
        LIMIT $start, $perpage
    ");

nope. added the thread description field in "show thread" template. Other than that i didnt made any edits.
checked the forumdisplay file and the code is intact.
Please try disabling all other plugins then.
Alternatively, set up a completely clean test forum and document every single step you take after the install to reproduce the bug - I'll be able to see what happens from there.
though it is hard to disable each and every plugin as i have lots of plugins installed, i will work on localhost of my live board copy
Thanks.
Pages: 1 2 3
Reference URL's