Page 1 of 1

Attachment in Preview, but not there after posting

Posted: Mon Aug 20, 2007 3:27 pm
by chriscobbs
Hello,

I'm having a problem with this mod. I'm pretty sure I followed the directions completely.

I can see the attachment in the preview, but it's not there after I post the message.

Any help is greatly appreciated.

Thanks,
Chris

Re: Attachment in Preview, but not there after posting

Posted: Thu Aug 23, 2007 3:05 pm
by chriscobbs
My viewtopic file.

Re: Attachment in Preview, but not there after posting

Posted: Fri Aug 24, 2007 12:02 am
by DavidIQ
There's a screen, the your message has been posted one, that can be skipped by using a redirect mod. Do you have anything like this installed?

Re: Attachment in Preview, but not there after posting

Posted: Fri Aug 24, 2007 7:38 am
by chriscobbs
DavidIQ wrote:There's a screen, the your message has been posted one, that can be skipped by using a redirect mod. Do you have anything like this installed?
Thanks for the reply. I've only installed ravens-antispam and a different template. I made all of the changes to my current template and not subSliver.

Re: Attachment in Preview, but not there after posting

Posted: Fri Aug 24, 2007 8:36 am
by DavidIQ
Then post a link to your forum so I can help you further and provide a test account.

Re: Attachment in Preview, but not there after posting

Posted: Fri Aug 24, 2007 10:43 am
by chriscobbs

Re: Attachment in Preview, but not there after posting

Posted: Fri Aug 24, 2007 9:07 pm
by DavidIQ
You missed all of these edits to viewtopic.php:

Code: Select all

# 
#-----[ FIND ]---------------------------------------------
# around line 152
		AND f.forum_id = t.forum_id
		$order_sql";

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
attach_setup_viewtopic_auth($order_sql, $sql);

# 
#-----[ FIND ]---------------------------------------------
# around line 587
$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '<br />';

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
attach_build_auth_levels($is_auth, $s_auth_can);

# 
#-----[ FIND ]---------------------------------------------
# around line 817
//
// Update the topic view counter

# 
#-----[ BEFORE, ADD ]---------------------------------------
# 
init_display_post_attachments($forum_topic_data['topic_attachment']);

Re: Attachment in Preview, but not there after posting

Posted: Mon Aug 27, 2007 1:13 pm
by chriscobbs
Thanks. It now works.