Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 XThread error!: SHOWTHREAD IN GALLERY
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #8
RE: XThread error!: SHOWTHREAD IN GALLERY
Hi Glas - have you tried viewing as a user rather than as the admin?

Also, this is my template :

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tr>
		<td class="thead">
			<div class="float_right smalltext">
				{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
			</div>
			<strong>{$thread['subject']}</strong> <small>by <a href="{$post['profilelink_plain']}">{$post['username']}</a></small>
		</td>
	</tr>
	<tbody>
		<tr>
			<td class="trow2 post_content {$unapproved_shade}">
				<div style="text-align: center; margin-bottom: 0.5em; margin-top: 0.5em;">
{$GLOBALS['threadfields']['gal_img']['value']}
				</div>
				
                        {$post['message']}
                        <br />
                        <br />
                       &nbsp;<div class="author">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>
				<div class="post_body" id="pid_{$post['pid']}">
					
				</div>
			</td>
		</tr>
	</tbody>
</table>


Its slightly different to yours on the link to the globals for the image. What it will be is that in horizontal view you cant see it, and in classic view you can. In order to use the layout with just {$GLOBALS['threadfields']['gal_img']['value']} in it you need to have the image settings in the custom thread fields. Alternatively, you can just change the postbit template in to match the Classic settings -

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tr>
		<td class="thead">
			<div class="float_right smalltext">
				{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
			</div>
			<strong>{$thread['subject']}</strong> <small>by <a href="{$post['profilelink_plain']}">{$post['username']}</a></small>
		</td>
	</tr>

		<tr>
			<td class="trow2 post_content {$unapproved_shade}">
				<div style="text-align: center; margin-bottom: 0.5em; margin-top: 0.5em;">
<a href="{$GLOBALS['threadfields']['gal_img']['url']}"><img src="{$GLOBALS['threadfields']['gal_img']['url']}" alt="image" width="{$GLOBALS['threadfields']['gal_img']['dims']['w']}" height="{$GLOBALS['threadfields']['gal_img']['dims']['h']}" /></a>
				</div>
                        {$post['message']}
                        <br />
                        <br />
                       &nbsp;<div class="author">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>
				<div class="post_body" id="pid_{$post['pid']}">
					
				</div>
			</td>
		</tr>

</table



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 11-16-2010 04:27 AM by leefish.)
11-16-2010 04:02 AM
Visit this user's website 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 - leefish - 11-16-2010 04:02 AM

 Standard Tools
Forum Jump: