Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4342
Latest: eva
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 44312
Total Topics: 7676
Most Online Today: 513
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 313
Total: 313

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

0 Members and 0 Guests are viewing this topic.

Guests can't see message index..
« on: »
.. 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?

Re: Guests can't see message index..
« Reply #1 on: »
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/

Re: Guests can't see message index..
« Reply #2 on: »
Here it is. Accessing Board Index and Post is fine, it is Message Index that gives the problem.

MessageIndexTemplate.php included.

Re: Guests can't see message index..
« Reply #3 on: »
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 »

Re: Guests can't see message index..
« Reply #4 on: »
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/

Re: Guests can't see message index..
« Reply #5 on: »
Weird though. Do you recognise it? As I say, it isn't in the original backup file.

Re: Guests can't see message index..
« Reply #6 on: »
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/

Re: Guests can't see message index..
« Reply #7 on: »
OK. The hunt continues...

 

Related Topics

  Subject / Started by Replies Last post
9 Replies
13885 Views
Last post January 11, 2008, 10:08:01 pm
by Sweetwater
3 Replies
5425 Views
Last post July 27, 2011, 09:16:41 am
by SMFHacks
2 Replies
2958 Views
Last post September 22, 2011, 05:02:08 pm
by OSU Searles
guests bidding

Started by bob « 1 2 3 » Bugs

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

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as &#39; in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal