Allow guests to View pages
I saw this same post for an earlier version of the script, but I have the latest version and I only want to make a handful of pages viewable by guests not logged in.
I tried to find a loggin section of code to edit but I'm lost as to how to make a few views. |
I don't have the script up right this moment but I think on the view files, on pages guests can't view, there is a line of code that says if user is not logged in display "Guests can't view this page please log in". I know lots of pages have that code somewhere :) Sorry I couldn't be more help! I'm out at the moment so can't get an example up.
|
I think that it only applies to earlier versions :/
|
To achieve this, you can add this line to your constructor method for the controller:
Code:
public function __construct(){ Code:
$this->access = "member"; |
Thanks so much, I've had a play around and gotten the pages available to guests, cheers!
|
To make it available for guests, just change this part $this->access = "member" to $this->access = "guest".
|
All times are GMT -5. The time now is 07:52 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.