Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12376
Latest: Printablecalendars
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 40220
Total Topics: 7084
Most Online Today: 91
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 65
Total: 65

Author Topic: Guests can't see message index..  (Read 5690 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: 15109
    • 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: 15109
    • 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: 15109
    • 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
2844 Views
Last post February 16, 2008, 06:34:30 am
by Canwolf
3 Replies
2011 Views
Last post July 27, 2011, 09:16:41 am
by SMFHacks
2 Replies
1587 Views
Last post September 22, 2011, 05:02:08 pm
by OSU Searles
guests bidding

Started by bob « 1 2 3 » Bugs

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

+- Recent Topics

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Powered by EzPortal