Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12350
Latest: cl4ude327
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 40055
Total Topics: 7053
Most Online Today: 44
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 34
Total: 34

Author Topic: Guests can't see message index..  (Read 5564 times)

0 Members and 1 Guest are viewing this topic.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Guests can't see message index..
« on: February 21, 2013, 12:02:59 pm »
.. they get asked to register. This despite "Allow guests to browse the forum" being checked in Features and Options and all the boards in question being set to allow Guests to access the board.

Bizzarrely they can click on the Last Post in the board index and that will alllow them to view that topic.

With your help I've made custom edits to My message index template for Ad Seller and Classifieds and I'm wondering if I've broken guest access somewhere?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: Guests can't see message index..
« Reply #1 on: February 21, 2013, 01:32:03 pm »
Screenshot?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Guests can't see message index..
« Reply #2 on: February 21, 2013, 03:07:54 pm »
Here it is. Accessing Board Index and Post is fine, it is Message Index that gives the problem.

MessageIndexTemplate.php included.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Guests can't see message index..
« Reply #3 on: February 21, 2013, 03:38:05 pm »
Found it!

This had been inserted in the template amongst Ad Seller code. Not sure where it came from as it isn't there in the original version of the file.

Code: [Select]
// Guests will get a notice!

if ($context['user']['is_guest']){
echo '<div class="catbg" style="margin: 20px; padding: 10px; text-align: center; "> Please <a href="'.$scripturl.'?action=join">register</a> or <a href="'.$scripturl.'?action=login">login</a> to view this board.</div>';
     }
else{ [Ad seller code was here]
}
« Last Edit: February 21, 2013, 04:10:53 pm by amwebby »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: Guests can't see message index..
« Reply #4 on: February 21, 2013, 03:42:27 pm »
Cool glade you found it.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Guests can't see message index..
« Reply #5 on: February 21, 2013, 03:44:01 pm »
Weird though. Do you recognise it? As I say, it isn't in the original backup file.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: Guests can't see message index..
« Reply #6 on: February 21, 2013, 04:10:23 pm »
I don't recognize that code.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Guests can't see message index..
« Reply #7 on: February 21, 2013, 04:11:44 pm »
OK. The hunt continues...

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
2798 Views
Last post February 16, 2008, 06:34:30 am
by Canwolf
3 Replies
1979 Views
Last post July 27, 2011, 09:16:41 am
by SMFHacks
2 Replies
1558 Views
Last post September 22, 2011, 05:02:08 pm
by OSU Searles
guests bidding

Started by bob « 1 2 3 » Bugs

35 Replies
16287 Views
Last post August 22, 2012, 07:33:18 am
by SMFHacks
5 Replies
2191 Views
Last post November 30, 2014, 01:19:12 pm
by SMFHacks

+- Recent Topics

Error message with latest SMF 2.1 Github build by Hatshepsut
February 28, 2020, 08:04:45 pm

Cannot install Gallery Pro on SMF 2.1 RC2 by SMFHacks
February 27, 2020, 07:30:15 am

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Stripe Integration by SMFHacks
February 08, 2020, 10:55:29 pm

SMF Store 4.0 Released by SMFHacks
January 26, 2020, 12:11:56 pm

Order of photos by D4611001
January 21, 2020, 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

Powered by EzPortal