Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11845
Latest: SamoanOnion
New This Month: 6
New This Week: 0
New Today: 0
Stats
Total Posts: 42472
Total Topics: 7406
Most Online Today: 127
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 64
Total: 64

Author Topic: Guests can't see message index..  (Read 6960 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: 16109
    • 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: 16109
    • 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: 16109
    • 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
9 Replies
10556 Views
Last post January 11, 2008, 10:08:01 pm
by Sweetwater
3 Replies
2554 Views
Last post July 27, 2011, 09:16:41 am
by SMFHacks
2 Replies
2052 Views
Last post September 22, 2011, 05:02:08 pm
by OSU Searles
guests bidding

Started by bob « 1 2 3 » Bugs

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

+- Recent Topics

"Custom title" badge by SMFHacks
September 24, 2022, 07:09:22 pm

Category Selection by Anmer
September 18, 2022, 02:40:06 am

Setting a single free download. by Zaphod
September 12, 2022, 10:18:45 pm

Error message "Data too long for column 'ipaddress' at row 1" by SMFHacks
September 12, 2022, 08:49:02 am

SMF to SMF bridge via WP by SMFHacks
September 11, 2022, 09:44:30 am

Video player included by SMFHacks
September 06, 2022, 10:26:27 pm

Upload hangs / doesn't complete by SMFHacks
August 28, 2022, 08:36:21 am

[Feature Request] Admin Sales Alert by Shades
August 25, 2022, 06:41:00 pm

Portal Block by SMFHacks
August 23, 2022, 12:42:22 pm

Question about undoing a rating by SMFHacks
August 22, 2022, 04:31:50 pm

Powered by EzPortal