Attachment Notice

Started by live627, May 13, 2008, 01:32:13 AM

Previous topic - Next topic

live627

Link to Mod

Created By : Dragooon
Tested with : 1.1.5, 2.0.18
Name : Attachment Notice
Version : 1.1


Shows a notice under a post if it got attachment(s) and the user doesn't have permissions to view it


Changelog
Version 1.1
  • Update for SMF 2.0.18
Version 1.0
  • Initial release

Apllicmz

Good Work
Translate portuguese and Brazilian

Utf8
<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Attachment notice strings
$txt['num_disabled_attachments'] = 'N&atilde;o h&aacute; anexo (s), neste lugar e voc&ecirc; n&atilde;o pode visualizar ou fazer download';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Attachment notice strings
$txt['num_disabled_attachments'] = 'N&atilde;o h&aacute; anexo (s), neste lugar e voc&ecirc; n&atilde;o pode visualizar ou fazer download';
]]></add>
</operation>
</file>



Normal

</file>
<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Attachment notice strings
$txt['num_disabled_attachments'] = 'Não há anexo (s), neste lugar e você não pode visualizar ou fazer download';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Attachment notice strings
$txt['num_disabled_attachments'] = 'Não há anexo (s), neste lugar e você não pode visualizar ou fazer download';
]]></add>
</operation>
</file>



rumfa

#2
This is the whole package ready to install, but with additional Serbian languages "serbian-lat and serbian-utf8"  Enjoy.
Уживајте :П ...

Hopefully i'm am not violeting any mod rights...It's easier like this. ;)

уιℓмαz

Thanks for modification. I translated this into Turkish.

<file name="$languagedir/Modifications.turkish.php" error="skip">
   <operation>
      <search position="end" />
      <add><![CDATA[
// Attachment notice strings
$txt['num_disabled_attachments'] = 'Bu mesajda %s dosya eki mevcut ancak indirmeye yetkiniz yok.';
]]></add>
   </operation>
</file>


UTF-8 support
<file name="$languagedir/Modifications.turkish-utf8.php" error="skip">
   <operation>
      <search position="end" />
      <add><![CDATA[
// Attachment notice strings
$txt['num_disabled_attachments'] = 'Bu mesajda %s dosya eki mevcut ancak indirmeye yetkiniz yok.';
]]></add>
   </operation>
</file>

58tbird

Good idea - thank you!  Now visitors won't be confused, and it provides an opportunity to encourage membership.  ;)

marglar

This is exactly what I need, but I've installed it and can't seem to make it work.

It says it installed properly but I don't see any directions.

As a simple test, I have "Guest" set both view and post attachments turned off.

When I view a post with attachments, I don't see the message telling me that there are attachments available if I log in.

Can anyone help?

X3mE

Will there be a 2.0b4 version?
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



X3mE

Has anyone managed to get this running on 2.0b4?
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



darklord2

FANTASTIC!
The Smallest Usefull Mod ever...

Translated to Persian:


<file name="$languagedir/Modifications.persian.php">
<operation>
<search position="end" />
<add><![CDATA[
// Attachment notice strings
$txt['num_disabled_attachments'] = 'این مطلب حاوی %s پیوست می باشد، برای دریافت پیوست ها باید لاگین کنید.';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.persian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Attachment notice strings
$txt['num_disabled_attachments'] = 'این مطلب حاوی %s پیوست می باشد، برای دریافت پیوست ها باید لاگین کنید.';
]]></add>
</operation>
</file>
P30Experts: Persian PC Experts

X3mE

I still can't get it running od 2.0b4 :/
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Dragooon

@X3mE - Does it show a Test failed after Dispaly.template.php?

X3mE

Quote from: Dragooon on November 19, 2008, 08:34:46 AM
@X3mE - Does it show a Test failed after Dispaly.template.php?

Yes, it does.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Dragooon


X3mE

No, just the display.template.php file.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



X3mE

I've edited the installation script myself, replaced the search code in display.template.php and I can confirm it works on 2.0b4. Here is the modified package.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Dragooon

Thanks for that, I wasn't able to make out some time.

Phat^Trance

is it possible to ad a "register or login" link with the text? right now when a guest views a attachment they get this message:

There are 8 attachment(s) in this post which you cannot view or download
BlindVine.jpg
Bluez.jpg
HiResMesh.jpg
Knight of Silence.png


there would be  nice to have a text that says that they need to login or register to view the attachments, is that possible to add?

thx
Daily Mobile Blog:  http://dailymobile.se/
Daily iPhone Blog: http://dailyiphoneblog.com/
Daily Mobile forum: http://forum.dailymobile.se/

FragaCampos


Phat^Trance

Bumping this thread, still need help with this:


is it possible to ad a "register or login" link with the text? right now when a guest views a attachment they get this message:

There are 8 attachment(s) in this post which you cannot view or download
BlindVine.jpg
Bluez.jpg
HiResMesh.jpg
Knight of Silence.png


there would be  nice to have a text that says that they need to login or register to view the attachments, is that possible to add?

thx
Daily Mobile Blog:  http://dailymobile.se/
Daily iPhone Blog: http://dailyiphoneblog.com/
Daily Mobile forum: http://forum.dailymobile.se/

Apllicmz

when update dont forget
i see this erro



Advertisement: