How do I remove the text that says "attached files" and the border around an attachment? Thanks.
remove "attached files" + border from attachments?
Collapse
X
-
Tags: None
-
You can do this by modifying the postbit template, here is how:
Open the template: postbit and find this code:
HTML Code:<if condition="$show['attachments']"> <!-- attachments --> <div style="padding:$stylevar[cellpadding]px"> <if condition="$show['thumbnailattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_thumbnails]</legend> <div style="padding:$stylevar[formspacer]px"> $post[thumbnailattachments] </div> </fieldset> </if> <if condition="$show['imageattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_images]</legend> <div style="padding:$stylevar[formspacer]px"> $post[imageattachments] </div> </fieldset> </if> <if condition="$show['imageattachmentlink']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_images]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[imageattachmentlinks] </table> </fieldset> </if> <if condition="$show['otherattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_files]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[otherattachments] </table> </fieldset> </if> <if condition="$show['moderatedattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attachments_pending_approval]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[moderatedattachments] </table> </fieldset> </if> </div> <!-- / attachments --> </if>
HTML Code:<if condition="$show['attachments']"> <!-- attachments --> <div style="padding:$stylevar[cellpadding]px"> <if condition="$show['thumbnailattachment']"> <div style="padding:$stylevar[formspacer]px"> $post[thumbnailattachments] </div> </if> <if condition="$show['imageattachment']"> <div style="padding:$stylevar[formspacer]px"> $post[imageattachments] </div> </if> <if condition="$show['imageattachmentlink']"> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[imageattachmentlinks] </table> </if> <if condition="$show['otherattachment']"> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[otherattachments] </table> </if> <if condition="$show['moderatedattachment']"> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[moderatedattachments] </table> </if> </div> <!-- / attachments --> </if>
done! -
Could you tell me which one? I cant find it. Thanks.
EDIT: Think you were adding the info as I replied. Thanks.
I know this is off topic but its driving me mad....I am trying to use code below in postbit to use a different layout for replies than the first post. However, it seems that $threadinfo['firstpostid'] is not defined as everything says "normal postbit" even the first post... any ideas?
<if condition="$post['postid'] == $threadinfo['firstpostid']">
first post bit in here
<else />
normal postbit here
</if>Comment
-
-
Originally posted by Floristry
<if condition="$post['postcount'] == '1'">Comment
-
Originally posted by ralphuk100Also - the code you provided for removing image attachments border does not do anything
Do you have the userinfo details on the left? (postbit_legacy)
And no, I don't know anything about rumours. What are their arguments why that isn't accurate?Comment
-
There was no argument for the postid thing. They just said it was not always accurate. Can find the thread ID and post it here if you want to comment on it?
What would userinfo details display? when joined and stuff like that? If so then no, I have removed it from this particular forum. Is there a way round it?Comment
-
Floris: Totally my fault on the lack of change with attachments. I managed to paste in the old code lol. Sorry. Thanks for the help.Comment
-
Well actually I do have another question Is there a way to stop multiple attachments showing up as links. I would like all attachments to display inline to thread when multiple like a single image does rather than convert to links. If it helps, we only allow gif/jpg/png uploads so we don't need the links ever (as you would if they were pdf files or any other extension not available to open in web browser. Thanks.Comment
-
Yeah - if I upload a single image it displays the image in the thread. However if I upload 2 images as attachments it shows them as links. I want it so that those 2, or 3,4,5 etc images would display inline like a single image does.Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment