Hello again. I want a way to login programmatically users when they login from specific devices via php. Do you have any proposal? Thanks in advance
This sounds like a custom solution. I suggest taking a look at application/controllers/Login.php to see how the login process works. It shows how to encrypt passwords, store cookies for login and more.
If you need more specifics, let me know!
Ok so you don’t have a dirty solution for that. Thanks. If I need something else I will send. Thanks
I have another question. If I want to embed the login page into another page outside your system do you have some advice on how to do it securely? Thanks in advance
You could try using an iframe of the login page. That would allow you to login to the system securely; the problem is it loads the full layout of the system which might cause design issues for you.
I want to secure my html5 jQuery app with your script. For example, for a membership, I want the homepage after login to display index1.html
Then for another membership, I want the the homepage after login to display index2.html….
Indeed these pages have to be hidden for non connected users.
Is your script can achieve this ?
You can create new pages for your app and hide them behind user login. When you say membership, are you referring to Premium Plans?
This is all possible, but it does require coding on your part to implement it. If you have knowledge of PHP it shouldn’t be too difficulty.
I have made a simple tutorial on how to create custom pages with PHP and CodeIgniter in the documentation: http://documentation.patchesoft.com/client/document/2/22
Hi! I need to set default homepage on some simple welcome page. Now the first time visitors go directly to login page, so what should I do in order to first time visitor can see, for example, some welcome page first? Of course without ruining base urls, home controller should stay as default, just some simple redirect to welcome page for not logged in users. Thanks!
Take a look at:
In the constructor, you’ll find this code:
You can change the redirect() method to a page of your choosing.
Let me know if that helps
Oh, I’ve overlooked this code somehow It helps, thanks a lot!
You can use our “AJAX” loading function which will just load the exact page you put in and not the surrounding layout.
Let me know if that helps!
Great! Thanks again
Trying to add an avatar for a member but getting an error regarding the dimensions. Can’t find anything in the documentation about the dimensions. Anyone know what size the images need to be?
The size is 80×80. In future update I’ll be either removing this restriction or allowing you to set your own! If you need me to change this, just send me an email and I’ll send you an updated file
Thanks, saw the previous comment suggesting it was 150×150 but it didn’t seem to work. Changing it to 80×80 works perfectly.
Also, is there some way to upgrade this to the “Content” version? I didn’t even notice that was available until I scrolled through the comments.
Unfortunately Envato doesn’t provide us with a way to upgrade licenses Apologies!
Mobile Layout?I have finally figured out how to get the layout I want, and setup a few custom pages. But, when I change the browser size or switch to a mobile device the original layout is displayed. Any idea where I would make those changes?
Did you remove the responsive.css file from the layout page? This file is responsible for changing the layout in mobile view.
I think I should have been more clear but I have found what I had overlooked already. Posting a response here in case anyone else is having the same problem.
I edited application/layout/layout.php to change the menu sidebar on the left of the dashboard. Works perfectly in standard desktop mode. When I switch to mobile it give me a completely different drop down menu. I see now that there is a separate div in layout.php for the responsive-menu-links. I made the edits to that section and it is working now.
When I did fresh install in localhost, I got this error
A PHP Error was encountered
Message: mkdir(): Invalid path
Line Number: 136
An uncaught Exception was encountered
Message: Session: Configured save path ’’ is not a directory, doesn’t exist or cannot be created.
Line Number: 138
This error can sometimes happen due to your Sessions save path not been writable on your webhost. Just modify the application/config/config.php file to change where you session data is being saved:
You can change the default setting from:
$config[‘sess_save_path’] = NULL;
$config[‘sess_save_path’] = APPPATH . ”/cisessions/”;
And then create a folder in your application/ folder called cisessions. Make sure this folder is not viewable by the public (CHMOD it) and place an empty index.php file inside it too.
If you need more help, I’ll be happy to fix it for you.
Let me know if you get it working or not
Thanks for the reply. But again an error
Message: Use of undefined constant ‘sess_save_path’ – assumed ‘‘sess_save_path’’
Line Number: 396
Can you send me an email with your config.php file so I can take a look? It looks like you might have missed off some code.
I have sent mail. Please help.
please find config file in below link
I replied to your email
Thanks for the great help. It worked on local server.
But may I know what you have changed?
And one more thing when I run it on server it shows the following error:
The requested URL /login was not found on this server.
Apache/2.4.18 (Ubuntu) Server at server.com Port 80
This comment is currently being reviewed.
It worked on Server. I enabled mod_rewrite.
Thanks again for your timely support.
You are missing responsive.css in styles folder.
example.com/styles/responsive.css giving an error
The file should be there. Have you checked the styles folder?
example.com/styles/responsive.css gives an error
yes. Theres is only in styles the following
layouts => Folder
login_layout.css => File
Oh I see what you mean. You can modify the login_layout.php file to include the responsive.css file:
And that should fix the issue. If you want help doing it, I can do it for you.
Fine. Thanks. Will this correct sidebar disappearance in mobile view?
There isn’t a sidebar in the mobile view. Only the dropdown menu which has a list of links for easier navigation in mobile view
OK. Got It. Thanks.
This is a prepurchase question but with the premium plans feature are you cinsidering ever adding restriction I.e. Plan 1 20 / logins per month but plan 2 unlimited per month or a way to connect it to an existing code igniter project where you can block modules for certain plans
Currently have no plans for this but I’ll add your feedback to our developer log so that I can consider it for future updates
Hello, I just had a client get this script – and when I install it I get = Username must be 3 characters at least!
this is when setting up the admin account
Can you send me an email with your license code please?
I’ve sent the email with my issue and another with the license info.
I can’t add new member.
Message: Undefined variable: fields
Line Number: 1521
Thanks for reporting that. Can you send me an email with your site details so I can investigate it? Let me know the version you’re trying to install and whether you’re upgrading or if it’s a clean installation.
I see this error:
You don’t have permission to access /login/ on this server.
Server unable to read htaccess file, denying access to be safe
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Please, help me.
Can you send me an email with your site URL and I can try take a look for you.
hi. pre-sale question. i already have a site up and i’m going to add premium pages soon. can i easily integrate your script with my existing site or do i need to rebuild using your system? also, what’s the difference with this script and the pro login content? thanks.
You would have to rebuild your system with this software if you were going to use it, since it probably uses a completely different setup to your current one.
Pro Login Content contains some extra features that help with creating pages. It’s for users who don’t have a lot of experience with PHP and don’t want to mess around with the code base to create content.
Hope that helps!
I have sent an email with some errors when installing script.
Thanks! I’ll get to you shortly
I’ll be on vacation during the next 2 weeks of July (14th-28th) so my response times to queries/questions/support may be a little late. I’ll still try to respond as quickly as possible, but just letting you all know about potential disruption over the next 2 weeks.
I’m now back from vacation Feel free to contact me with any questions or suggestions! Thanks!
Hello! Sorry for asking while you’re on vacation but I need to fix that asap. The question is about Google+ login. It works only from the second attempt, i.e. you press Google+ login button on the login page and then the page redirects you back on login screen ($client->getAccessToken() is false in Login controller and “else” condition works here). If you press the button second time right after that than you’ll be successfully logged in. Can you please give me a hint why this can happen? Thanks!
When setting up your Google+ login in the google API area, have you made sure the return URL is the one specified in the guide.
“For the Authorized redirect URI enter your domain name followed by /login/google_login so for example: http://www.example.com/login/google_login."
The reason you have to click twice is because when you login via google it is not returning you to verification URL.
Thanks for your reply. Yes, I specified the URL from the guide, but I have my app installed in the subfolder, so the URL looks like this: http://example.com/subfolder/login/google_login
What else can I check or try to fix this?
Are you making sure you’re using the correct URL? http://example.com is different to http://www.example.com/. You’ll need to use the one specified in the base_url in the config.php file.
Let me know if that helps at all.
Yep, I double checked the value in config.php and also site_url(“login/google_login”) returns exact the same value (http://example.com/subfolder/login/google_login). So the problem should be somewhere else. Maybe I can somehow hardcode the url in google_login() function or make something else to test it?
Can you send me a link with your site details/URL and I’ll take a look at it. Can you also send me a screenshot of the Google API developer area which lists the google_login URL. Feel free to use the Support Tab to email me.
Hi, I would like to know if the “members” can have their own login and their own “admin panel” And if me as owner I can upload PDF’s into their account
This sounds like something you would have to code in yourself as currently there is only one admin panel that is accessible by users who have the admin permissions.
But can I upload some PDF’s to each of those accounts
I want to upload PDF’s to each of those accounts, so they can access and see those PDF’s when they login into their own username
There isn’t a file upload system/file manager in Pro Login at the moment.
But can I go into each of those accounts, so I can manually add PDF’s links?
Add the links where exactly? There isn’t a place for adding links. If you mean the sidebar of the layout, you would have to code some custom script to be able to have links added for each different user as the layout is a simple HTML page which has links for everyone.
If my property manager manage 150 units and we want each unit to have their own login. But we will like to add some links (PDF’s) to their account if that’s possible with your system?
It sounds like you need a custom solution for your situation. Whilst it does provide a user system, there isn’t a way to add custom links for each account without programming something extra.
But I’m able to create 150 logins? with their own password?
I have 150 users that will have their own login user profile, and I just want to add a Google drive link into each individual account. Is that possible in your login system?
As mentioned, you can have 150 users with their own profile. Profiles are public, and other users can view them. There isn’t a place to put a PDF link however; you could put it on the profile but it would be public for all users to see.
Hope that helps
The notification system how does it work?
Whenever a user comments on another user’s profile, they’ll receive a notification of the event.
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Get it now and save up to $7
Deliver better projects faster. Photos, templates & courses
Unlimited downloads. Only $29/month
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work