Advertisement:

Author Topic: Attachment Notice  (Read 17061 times)

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,281
  • Gender: Male
    • docsPT
Re: Attachment Notice
« Reply #20 on: September 07, 2010, 09:17:36 AM »
Any chance of updating this to 2.0 RC3, please?

Offline ehsizzup

  • Jr. Member
  • **
  • Posts: 149
    • LiveCall Investor Relations
Re: Attachment Notice
« Reply #21 on: November 09, 2010, 09:59:06 PM »
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

This can easily be accomplished by changing the language modification file(s) to read something like this.....

Code: [Select]
$txt['num_disabled_attachments'] = 'There are %s attachment(s) in this post which GUESTS cannot view or download.<br /><br /><font color="#444444">Please</font> <a href="' . $scripturl . '?action=login">login</a><font color="#444444"> if you are already a member or</font> <a href="' . $scripturl . '?action=register">register</a><font color="#444444"> to view attachments and unlock other advanced website features.</font><br /><br />';

I added the font color stuff, but you can kill that if you want.

Clear your SMF cache after that and you should be good to go.


PS.  Great mod.  Should be a standard feature.  Prevents confusion over missing attachments and motivates to join.
« Last Edit: December 11, 2010, 08:19:27 PM by ehsizzup »

Offline Neverhurry

  • Sophist Member
  • *****
  • Posts: 1,019
  • Life is compromise.
    • We love Slovakia!
Re: Attachment Notice
« Reply #22 on: November 14, 2010, 02:13:38 PM »
Any chance of updating this to 2.0 RC3, please?

Please, who can help to us to manually install to 2.0 rc3? Thanks.
I am using SMF 2.0.1, curve themes.

Offline fdr77

  • Jr. Member
  • **
  • Posts: 149
  • Gender: Male
  • Non può piovere per sempre
    • Discus Rewind
Re: Attachment Notice
« Reply #23 on: December 11, 2010, 06:01:37 PM »
Any chance of updating this to 2.0 RC3, please?

Please, who can help to us to manually install to 2.0 rc3? Thanks.
I too would for 2.0 rc4 :)

Offline 9083ja

  • Semi-Newbie
  • *
  • Posts: 32
Re: Attachment Notice
« Reply #24 on: August 09, 2011, 07:27:29 PM »
mod for 2.0 final ??

Offline Oldiesmann

  • Developer
  • SMF Super Hero
  • *
  • Posts: 24,814
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Attachment Notice
« Reply #25 on: September 11, 2011, 03:36:57 PM »
Only one minor change needed to make this work with 2.0 final. The template code that it searches for has changed slightly when we went to a more semantic style. I've attached a newer version in this post: http://www.simplemachines.org/community/index.php?msg=3158102
Michael Eshom
Webmaster / SMF Lead Developer
oldiesmann@simplemachines.org

Offline Arvacon

  • Semi-Newbie
  • *
  • Posts: 98
  • Gender: Male
    • ToolMachines.gr
Re: Attachment Notice
« Reply #26 on: January 12, 2014, 06:55:49 AM »
Ηι. This topic is indeed old now, but I was wondering if this mod can work with the last smf version as well, after some small modifications.
Is it possible?

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,474
    • ApplianceJunk.com
Re: Attachment Notice
« Reply #27 on: February 01, 2014, 07:10:50 PM »
I know this is a very old mod/topic but would like to see it updated for 2.0.7

Thanks,

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,474
    • ApplianceJunk.com
Re: Attachment Notice
« Reply #28 on: July 19, 2014, 07:18:26 PM »
2.0.8 now :(