Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11911
Latest: laurnsyers01
New This Month: 12
New This Week: 0
New Today: 0
Stats
Total Posts: 37890
Total Topics: 6667
Most Online Today: 81
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 80
Total: 80

Author Topic: In a source file, how do I prompt guests that they are not allowed to enter  (Read 449 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • SMF Store Customer
  • Hero Member
  • *****
  • Posts: 579
    • View Profile
    • Biology Forums - For All Your Science Needs
Let's say I made an action=XXX

and the source file XXX.php

In the source file, I want to do a check to see if they are logged in before continuing the code. How would I do that?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14029
    • View Profile
Use function disables execution past that point prompts for login
is_not_guest();

Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline shuban

  • SMF Store Customer
  • Hero Member
  • *****
  • Posts: 579
    • View Profile
    • Biology Forums - For All Your Science Needs
Thanks

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3722 Views
Last post July 04, 2012, 02:33:37 pm
by SMFHacks
5 Replies
2482 Views
Last post October 01, 2012, 07:06:51 pm
by SMFHacks
3 Replies
1750 Views
Last post September 06, 2014, 03:16:26 pm
by SMFHacks
2 Replies
1338 Views
Last post September 14, 2014, 11:17:58 am
by Doughboy99
2 Replies
1692 Views
Last post September 21, 2014, 02:27:29 pm
by shuban

+- Recent Topics

RSS Feed killed my forum by hippieboy123
April 18, 2017, 07:39:26 am

Is there a converter than converts all files found in topics of a specific board by SMFHacks
April 13, 2017, 02:46:18 pm

Sidebar Image width by hippieboy123
April 12, 2017, 01:32:00 pm

I run a Custom Theme and have many Test Failed - What to do? by SMFHacks
April 11, 2017, 05:12:15 pm

Daughter menus by Labradoodle-360
April 08, 2017, 05:37:22 pm

Lost my copyright removal when I converted forum to SSL by Nova
April 08, 2017, 01:19:50 pm

With .htaccess, how do I redirect an action to another action by shuban
April 06, 2017, 11:45:50 pm

Newsletter Pro errors in log by SMFHacks
April 03, 2017, 04:54:40 pm

Random Image Block code by landyvlad
March 30, 2017, 02:54:32 am

Upgrade Account - Download SMF Gallery Pro by mrsclaudio
March 29, 2017, 10:14:11 am

Powered by EzPortal