Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Question mark problem
Post: RE: Question mark problem

Why allow a question mark in a username in the first place?
JayAdra General Help 5 2,831 03-19-2018, 05:05 PM
    Thread: CI 3.0.7 don't see APPPATH. Why?
Post: RE: CI 3.0.7 don't see APPPATH. Why?

Your path has all backslashes, until the end, where it has /Client.php. Maybe try using a backslash?
JayAdra General Help 7 4,363 02-28-2018, 11:06 PM
    Thread: Multiple table joins
Post: RE: Multiple table joins

Your joins are linking A.widgetID to B.tagID, whereas they need to be A.widgetID to B.widgetID (linking to the foreign key). Otherwise you'll be linking data arbitrarily. Try updating your joins to a...
JayAdra General Help 2 1,804 11-16-2017, 06:41 PM
    Thread: Split login fail condition in 2 conditions to cover “account inactive” case
Post: RE: Split login fail condition in 2 conditions to ...

This is because your first if statement is: PHP Code:if ($current_user) {  Which will return false for an inactive user, as your query is: PHP Code:$query = $thi...
JayAdra Lounge 2 3,119 10-15-2017, 06:43 AM
    Thread: All users with the same ip address, why?
Post: RE: All users with the same ip address, why?

I'm guessing you're running this app on your local machine then and connecting to it yourself? Because that's your local IP (localhost). How are you getting the IP? You should use either $_SERVER...
JayAdra General Help 8 7,857 09-05-2017, 01:57 AM
    Thread: All users with the same ip address, why?
Post: RE: All users with the same ip address, why?

How are you getting the user's IP address? Is the IP 127.0.0.1 or 192.168.0.1 or similar?
JayAdra General Help 8 7,857 09-05-2017, 12:32 AM
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

Appreciate the suggestion! Managed to implement something similar to this in my app without any issues. Thanks for the help!
JayAdra General Help 19 10,052 06-21-2017, 09:03 PM
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

Thanks for the suggestion, I'll look to see how much work that'll be to change the routing like that. I suppose that means it's not possible to change the session cookie domain to something other tha...
JayAdra General Help 19 10,052 05-12-2017, 03:14 AM
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

Using files session driver. Client DB has the user credentials for that subdomain. Master DB has my super admin user login.
JayAdra General Help 19 10,052 05-12-2017, 01:28 AM
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

(05-12-2017, 12:14 AM)Martin7483 Wrote: If only you as the super admin can access all accounts, why not just add an area on the main domain where you can view the info you want to view? It's not abo...
JayAdra General Help 19 10,052 05-12-2017, 12:52 AM
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

The client only logs in via the subdomain. There is a "super admin" area on the main domain for me, from which I want to be able to "login as" the user into their subdomain account.
JayAdra General Help 19 10,052 05-11-2017, 11:36 PM
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

No, they are all under one installation. Each subdomain is a separate DB though. The app looks at the subdomain, and uses that to connect to that account's DB.
JayAdra General Help 19 10,052 05-11-2017, 07:41 PM
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

Even trying with the native PHP functions, I can't get it to work :( Any other suggestions? I'm struggling with this one.
JayAdra General Help 19 10,052 05-10-2017, 11:16 PM
    Thread: Creating a referral url
Post: RE: Creating a referral url

Or you could generate a "referral code" and assign that to a user. That way, the URL doesn't give away what user it's for, and it still can be tracked against that user.
JayAdra General Help 8 9,863 05-10-2017, 07:03 PM
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

Cheeky bump.
JayAdra General Help 19 10,052 05-08-2017, 11:15 PM
    Thread: View that prints all the array $data['personas'] in a table html.
Post: RE: View that prints all the array $data['personas...

It means it's not an array, it's an object, so you need to access the property. Try this? PHP Code:<?php echo $personas[5]->UPDATE_DATE; ?>
JayAdra General Help 11 6,604 05-02-2017, 07:02 AM
    Thread: View that prints all the array $data['personas'] in a table html.
Post: RE: View that prints all the array $data['personas...

I'm not quite sure what you're wanting, but could you do this? PHP Code:<?php echo $personas[5][6]; ?>
JayAdra General Help 11 6,604 05-02-2017, 06:20 AM
    Thread: Create custom link url for users
Post: RE: Create custom link url for users

I feel like this would be fairly simple to do? You could generate a unique code to build your "referral link" for that user (e.g. http://www.mysite.com/refer/4Fg5GdXC45). In the controller function ...
JayAdra General Help 5 3,320 04-24-2017, 08:09 AM
    Thread: Which browser do you guys recommend?
Post: RE: Which browser do you guys recommend?

Firefox for general use. Chrome for dev.
JayAdra Lounge 81 55,070 04-24-2017, 04:38 AM
    Thread: How to call libraries in config file
Post: RE: How to call libraries in config file

Again, only use keys in the config arrays. In your view, simply call something like: PHP Code:$this->lang->line('placeholder_' . $key); 
JayAdra Libraries & Helpers 3 3,568 04-23-2017, 01:47 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.