Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Kays on September 22, 2009, 10:48:36 PM

Title: Hide Linked Images
Post by: Kays on September 22, 2009, 10:48:36 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2140)

Adds an option in the member's profile to change all posted images either into links or to hide them. Hidden images still can be viewed.

Supported Languages
English
English-utf8
English_British
English British-utf8
Portuguese
Portuguese-utf8

Added language strings. Translations are welcome

$txt['display_img_method'] = 'Method to display images in posts and PMs';
$txt['display_img_prompt'] = 'Click to view posted image';
$txt['display_img_show'] = 'Show images';
$txt['display_img_hide'] = 'Hide images';
$txt['display_img_links'] = 'Show as links';


1.0.0 Initial release
1.0.1 Added Portuguese (Thanks to Joomlamz)
Title: Re: Hide Linked Images
Post by: Apllicmz on September 22, 2009, 11:43:08 PM
thank nice work
good mod
Update portuguese

<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">   
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
$txt['display_img_method'] = 'M&eacute;todo para mostrar as imagens em mensagens e PMs';
$txt['display_img_prompt'] = 'Cl&iacute;que aqui para ver a imagem no poste';
$txt['display_img_show'] = 'Mostrar imagems';
$txt['display_img_hide'] = 'Esconder imagems';
$txt['display_img_links'] = 'Mostrar os links';
]]></add>
        </operation>
    </file>
   
    <file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">   
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
$txt['display_img_method'] = 'M&eacute;todo para mostrar as imagens em mensagens e PMs';
$txt['display_img_prompt'] = 'Cl&iacute;que aqui para ver a imagem no poste';
$txt['display_img_show'] = 'Mostrar imagems';
$txt['display_img_hide'] = 'Esconder imagems';
$txt['display_img_links'] = 'Mostrar os links';
]]></add>
        </operation>
    </file>
Title: Re: Hide Linked Images
Post by: Kays on September 23, 2009, 08:34:02 PM
Thanks Joomlamz  :)

I've updated the package.
Title: Re: Hide Linked Images
Post by: Apllicmz on September 23, 2009, 11:33:00 PM
i try to active
i dont see...can tell me..
Title: Re: Hide Linked Images
Post by: Kays on September 24, 2009, 07:39:53 AM
Can you see the options in your profile or are the choices blank?
Title: Re: Hide Linked Images
Post by: Arantor on September 24, 2009, 07:58:01 AM
Don't forget there is a Portuguese_brazilian language setup too.

Btw, nice mod!
Title: Re: Hide Linked Images
Post by: Sudhakar Arjunan on September 26, 2009, 02:44:22 PM
Hi Kays,

good work.

will it work with smf - media gallery
Title: Re: Hide Linked Images
Post by: Kays on September 26, 2009, 03:21:53 PM
Thanks, I don't think it will work with SMF Media Gallery since it parses the message body.

Any word on your problem Joomlamz ?
Title: Re: Hide Linked Images
Post by: chanman on October 14, 2009, 02:56:32 AM
Great mod. Been looking for this for a long time.
Do you think there is a way to add a hide smilies as well?
Title: Re: Hide Linked Images
Post by: Kays on October 14, 2009, 07:58:49 AM
Thanks. :)

Hiding smilies might not be that difficult. But I think it should be a seperate mod.
Title: Re: Hide Linked Images
Post by: Antes on October 14, 2009, 01:21:54 PM
Hmm looking so nice :)

Turkish Translate :)
$txt['display_img_method'] = 'İletilerde ve ÖMlarda resimlerin gösterilme metodu';
$txt['display_img_prompt'] = 'Gönderilmiş resmi görmek için tıklayın';
$txt['display_img_show'] = 'Resimleri göster';
$txt['display_img_hide'] = 'Resimleri sakla';
$txt['display_img_links'] = 'Link olarak göster';
Title: Re: Hide Linked Images
Post by: Kays on October 15, 2009, 10:31:26 AM
Thanks Antes. :)

Is that turkish or turkish-utf8 ?
Title: Re: Hide Linked Images
Post by: JamesWC on May 20, 2010, 06:43:35 AM
How would I edit this to work with the Highslide Image Viewer (http://custom.simplemachines.org/mods/index.php?mod=1450) mod? That's a different kind of image tag which displays clickable thumbnails, and they're not hidden by this Hide Linked Images mod.

I'm using SMF 1.1.10. Thanks!