Customizing SMF > Modifications and Packages
Attachments Positioning
quake101:
Link to Mod
ATTACHMENTS POSITIONING v1.2
By Quake101
Link to Mod | Comment On This Mod | Donate
Introduction
The mod adds the ability to position your attachments in your post using [attachment=1] bbcode
Where 1 is the first attachment in that post.
It is ONLY possible to position attachments which are tied to that POST only.
Features
o Adds [attachment=n] bbcode to position attachments within the post (where n is the number of the attachment in the post, eg first = 1, second = 2)
o Adds [Insert Attachment 1] next to each attachment/upload box to insert the bbcode.
o The default listing of attachments at the bottom of the post is unaffected.
o Text string is shown as alternative when quoted or in code
o Error Text string shown for invalid/missing/deleted attachments
o Reloads the attachments for Ajax Editing
o Text string shown in place of attachment for Recent posts/Previewing and Topic&Reply History
There are no admin settings with this mod. To disable the mod you must uninstall it.
Installation
Simply install the package to install this modification on the SMF Default Core theme.
Manual edits will be required for other themes.
This mod is compatible with SMF 1.1.x and SMF 2.0 Beta 3 Public only.
Donate
Has this modification helped you? Support the developer by Donating
Support
Please use the modification thread for support with this modification.
Changelog
0.5 BETA - 27th October 2007
o Initial release per request
1.0 - 30th October 2007
o First PUBLIC release
1.1 - 1st December 2007
o Fixed [Insert] link number
1.2 - 13 April 2008
o Fixed displaying of image attachments twice that use [attachment=n] bbcode
o Made 2.0 Beta 3 Public compatible
o Added Portuguese & Brazilian language support (Thanks joomlamz)
kissa:
Hi
Nice to see that someone, was willing to improve this mod.
Hav you fixed anything yet, or is this just the same version KarlBenson did?
quake101:
--- Quote from: kissa on April 11, 2008, 06:27:59 AM ---Hi
Nice to see that someone, was willing to improve this mod.
Hav you fixed anything yet, or is this just the same version KarlBenson did?
--- End quote ---
Kissa,
I just took over this mod from karlbenson and I'm currently working on the next release. This is the same version that karlbenson did, just released under my name. I hope to have the double displaying of image attachments fixed in the next release. I currently don't have a time line of when I'll have this fixed, but I'm hoping for 1/2 weeks. :)
Joomlamz:
nice
i translate portuguese & brazilian...
Thank you
--- Code: ---<file name="$themedir/languages/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attachment'] = ' [ Anexo] ';
$txt['attachment_nopermission'] = ' [ Atalho: Você não está autorizado a visualizar anexos ] ';
$txt['attachment_invalid'] = ' [ Atalho inválido ou não existe ] ';
$txt['attachment_disabled'] = ' [ Anexos Desabilitados ] ';
$txt['attachment_insert'] = 'Inserir Atalho';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.portuguese-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attachment'] = ' [ Anexo ] ';
$txt['attachment_nopermission'] = ' [Atalho: Você não está autorizado a visualizar anexos ] ';
$txt['attachment_invalid'] = ' [ Atalho inválido ou não existe ] ';
$txt['attachment_disabled'] = ' [ Anexos Desabilitados ] ';
$txt['attachment_insert'] = 'Inserir Atalho';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attachment'] = ' [ Anexo] ';
$txt['attachment_nopermission'] = ' [ Atalho: Você não está autorizado a visualizar anexos ] ';
$txt['attachment_invalid'] = ' [ Atalho inválido ou não existe ] ';
$txt['attachment_disabled'] = ' [ Anexos Desabilitados ] ';
$txt['attachment_insert'] = 'Inserir Atalho';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attachment'] = ' [ Anexo ] ';
$txt['attachment_nopermission'] = ' [Atalho: Você não está autorizado a visualizar anexos ] ';
$txt['attachment_invalid'] = ' [ Atalho inválido ou não existe ] ';
$txt['attachment_disabled'] = ' [ Anexos Desabilitados ] ';
$txt['attachment_insert'] = 'Inserir Atalho';
]]></add>
</operation>
</file>
--- End code ---
Jacque:
Can't wait for the double display fix.
Plans for 2.0 compatibility?
Navigation
[0] Message Index
[#] Next page
Go to full version