Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12424
Latest: serbenfiquista
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 40041
Total Topics: 7046
Most Online Today: 29
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 18
Total: 18

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

Started by bob « 1 2 3 » Bugs

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

+- Recent Topics

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

English British Translation file by HAL9000
January 17, 2020, 05:44:28 pm

Characters dispayed as boxes by SMFHacks
January 16, 2020, 07:21:51 am

Multiple adds where one used to be? by SMFHacks
January 07, 2020, 08:20:38 am

Ribbon Theme Logo Position by slizzie1986
January 06, 2020, 08:52:31 pm

System enhancement? by SMFHacks
January 03, 2020, 09:22:45 am

Pretty Url Pro Is it compatible with 7.2? by Rock Lee
January 01, 2020, 08:53:50 pm

SMF Cookie Change Compatibly by HDB
December 28, 2019, 03:33:49 pm

Powered by EzPortal