Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 365
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 214
Total: 214

Author Topic: Applicant able to log into gallery even though they are not activated in forum  (Read 7385 times)

0 Members and 1 Guest are viewing this topic.

Applicant able to log into gallery even though they are not activated in forum. I think once they have applied and have a username and password, it gives them access to the gallery, which it shouldn't until they are approved and activated in the forum.

Hotfix try this open Sources/Gallery.php
Find around line 75
Code: [Select]
// Load the language files
if (loadlanguage('Gallery') == false)
loadLanguage('Gallery','english');
Add after
Code: [Select]
// check user is activated
global $user_info, $user_settings;
if ($user_info['id'] && (($user_settings['is_activated'] != 1)))
{
falal_error($txt['cannot_smfgallery_view'], false);
}
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/

Thanks for the reply with code. I copied/pasted it where you directed, except I only find a gallery2.php. Is this the right file? (public_html/smf/sources/gallery2.php)
Also, is there a typo in the error line?
Do I need to reboot something for it to take effect?
« Last Edit: September 27, 2025, 02:56:34 pm by rickk »

That is right file and location. No typos.. should be good to go.
IF you using gallery lite line number might be different.

No reboot required.
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/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4654 Views
Last post October 12, 2008, 07:25:52 pm
by SMFHacks
2 Replies
6292 Views
Last post December 21, 2008, 11:40:53 am
by weightman
3 Replies
5110 Views
Last post August 30, 2010, 11:36:55 am
by SMFHacks
3 Replies
6087 Views
Last post April 20, 2012, 05:23:20 pm
by SMFHacks
1 Replies
3899 Views
Last post September 08, 2014, 07:48:59 am
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 ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal