Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 XThread error!: SHOWTHREAD IN GALLERY
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #26
RE: XThread error!: SHOWTHREAD IN GALLERY
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'];
    }


My Blog
(This post was last modified: 12-06-2010 04:21 PM by ZiNgA BuRgA.)
12-06-2010 08:23 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 - ZiNgA BuRgA - 12-06-2010 08:23 AM

 Standard Tools
Forum Jump: