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.
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