Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 XThread error!: SHOWTHREAD IN GALLERY
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #28
RE: XThread error!: SHOWTHREAD IN GALLERY
(12-06-2010 08:23 AM)ZiNgA BuRgA Wrote:  Quickly scanning the code it looks like this will be a tricky one to do.
I'll have a bit of a think.

EDIT: I can't seem to access the thread whilst logged in.
Anyway, maybe suggest to him this:

I don't really like this solution, but it may work (untested).  Maybe he's already done something like this:

PHP Code:
    if (empty($postbit_backup))
    {
        $postbit_backup = $templates->cache['postbit'];
        $postbit_classic_backup = $templates->cache['postbit_classic'];
    }

Maybe change to:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
    static $restore_postbit = null;
    if (empty($postbit_backup) || $restore_postbit)
    {
        $viewmode = ($mybb->settings['postlayout'] == 'classic' ? '_classic':'');
        $restore_postbit = (
            !isset($restore_postbit)
            && isset($templates->cache['postbit_first'.$viewmode])
            && $templates->cache['postbit_first'.$viewmode] == $templates->cache['postbit'.$viewmode]
        );
        $postbit_backup = $templates->cache['postbit'];
        $postbit_classic_backup = $templates->cache['postbit_classic'];
    }


I may try that. Glas, could you please replace those lines with what Zinga has suggested? Let me know if it works please.
12-15-2010 04:26 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: XThread error!: SHOWTHREAD IN GALLERY - Pirata Nervo - 12-15-2010 04:26 AM

 Standard Tools
Forum Jump: