Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: kattara - helmikuu 20, 2012, 06:53:54 IP

Otsikko: Guests cannot view attachments message
Kirjoitti: kattara - helmikuu 20, 2012, 06:53:54 IP
Hey all,

I'm not sure where to post this question (either in the 2.x board or here)...  But here's what I'm looking for.

When guests browse my forum, they no longer see the message "Guests cannot view attachments", etc.  Has this feature disappeared from 2.0.2?  And if so, is there a mod for it?  Right now, when guests view my forum, they just think people have forgotten to attach the files since it doesn't warn then or anything.

And yes, I've searched the forum, but couldn't find the answer...  :(

What I want is a message telling guests they cannot view the attachments.
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: kat - helmikuu 21, 2012, 07:40:36 AP
How does this look?

http://custom.simplemachines.org/mods/index.php?mod=1180

It should work with your version, if you read this post:

http://www.simplemachines.org/community/index.php?topic=239124.msg3158103#msg3158103

and install it under emulation.

But, in case it causes problems, read my sig, before you install it, woncha? ;)
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: kattara - helmikuu 21, 2012, 05:53:59 IP
Lainaus käyttäjältä: K@ - helmikuu 21, 2012, 07:40:36 AP
How does this look?

http://custom.simplemachines.org/mods/index.php?mod=1180

It should work with your version, if you read this post:

http://www.simplemachines.org/community/index.php?topic=239124.msg3158103#msg3158103

and install it under emulation.

But, in case it causes problems, read my sig, before you install it, woncha? ;)

Love your sig!  ;)

Thanks, I'm gonna try it.  I'll report back...
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: kattara - helmikuu 21, 2012, 06:44:11 IP
OK, I tried installing that, and it doesn't work.  I can't read any posts, it just gives me errors.  I've attached two screenshots.  First one is when I'm browsing as a guest.  Second is when I'm logged in.
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: kat - helmikuu 22, 2012, 07:51:14 AP
What happens if you use the SMF default theme?
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: Kays - helmikuu 22, 2012, 07:59:59 AP
Hi, line 568 should be: </div>';

Changing that might give an error further down. If it does add the following just before the line causing the error. It should probably be after a curly brace "}"


       echo '


Or just attach that file to a post. :)
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: kattara - helmikuu 22, 2012, 05:57:04 IP
Lainaus käyttäjältä: Kays - helmikuu 22, 2012, 07:59:59 AP
Hi, line 568 should be: </div>';

Changing that might give an error further down. If it does add the following just before the line causing the error. It should probably be after a curly brace "}"


       echo '


Or just attach that file to a post. :)

Which file?
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: kattara - helmikuu 22, 2012, 05:57:47 IP
Lainaus käyttäjältä: K@ - helmikuu 22, 2012, 07:51:14 AP
What happens if you use the SMF default theme?

I don't think I have the default theme anymore?  We only use the New_Balance theme...
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: Kays - helmikuu 22, 2012, 06:51:35 IP
The file is shown in the second image which displays the error. Display.template.php in the new balance theme around line 569.
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: kattara - helmikuu 24, 2012, 06:29:41 IP
Lainaus käyttäjältä: Kays - helmikuu 22, 2012, 06:51:35 IP
The file is shown in the second image which displays the error. Display.template.php in the new balance theme around line 569.

Ohhh!  That file!  Lol.  OK.  Here it is!  :)
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: kat - helmikuu 25, 2012, 10:17:36 AP
Line 569 is just

</div>

So, as suggested, I've changed it to:

</div>';

and attached it.

Let's see how it goes. ;)
Otsikko: Re: Guests cannot view attachments message
Kirjoitti: kattara - helmikuu 25, 2012, 05:09:34 IP
No... that didn't work.  :(  Here's what it looks like now...