Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Question mark problem
Post: RE: Question mark problem

Why allow a question mark in a username in the first place?
6,015 Views
5 Replies
03-19-2018, 05:05 PM
JayAdra
    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?
8,501 Views
7 Replies
02-28-2018, 11:06 PM
JayAdra
    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...
3,398 Views
2 Replies
11-16-2017, 06:41 PM
JayAdra
    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 = $this->db->get_where('u...
5,419 Views
2 Replies
10-15-2017, 06:43 AM
JayAdra
    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['...
12,417 Views
8 Replies
09-05-2017, 01:57 AM
JayAdra
    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?
12,417 Views
8 Replies
09-05-2017, 12:32 AM
JayAdra
    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!
20,494 Views
19 Replies
06-21-2017, 09:03 PM
JayAdra
    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 t...
20,494 Views
19 Replies
05-12-2017, 03:14 AM
JayAdra
    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.
20,494 Views
19 Replies
05-12-2017, 01:28 AM
JayAdra
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

Martin7483 Wrote: (05-12-2017, 12:14 AM) -- 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...
20,494 Views
19 Replies
05-12-2017, 12:52 AM
JayAdra
    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.
20,494 Views
19 Replies
05-11-2017, 11:36 PM
JayAdra
    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.
20,494 Views
19 Replies
05-11-2017, 07:41 PM
JayAdra
    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.
20,494 Views
19 Replies
05-10-2017, 11:16 PM
JayAdra
    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.
18,399 Views
8 Replies
05-10-2017, 07:03 PM
JayAdra
    Thread: Login to client account programatically
Post: RE: Login to client account programatically

Cheeky bump.
20,494 Views
19 Replies
05-08-2017, 11:15 PM
JayAdra
    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: -- --
14,096 Views
11 Replies
05-02-2017, 07:02 AM
JayAdra
    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: -- --
14,096 Views
11 Replies
05-02-2017, 06:20 AM
JayAdra
    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 funct...
6,243 Views
5 Replies
04-24-2017, 08:09 AM
JayAdra
    Thread: Which browser do you guys recommend?
Post: RE: Which browser do you guys recommend?

Firefox for general use. Chrome for dev.
144,445 Views
97 Replies
04-24-2017, 04:38 AM
JayAdra
    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); --
6,654 Views
3 Replies
04-23-2017, 01:47 AM
JayAdra

Theme © iAndrew 2016 - Forum software by © MyBB