By Jim Gribble on Tuesday, 04 February 2014
Posted in General
Replies 5
Likes 0
Views 1.1K
Votes 0
Almost done with our latest huge membership webite. It uses EasyBlog, EasySocial and EasyDiscuss. Thrilled with all.
Slight problem:
Each component has a system to force non-autnhorized users to log in if they ever get to a click which is off limits ("registered" permission level"). Each forced login page is a little different. Because there are so many different interactive components on this site, we are routing all logins to Improved Ajax Login and Register.
So what I'd like to do in each instance is to redirect forced login there. I assume it's just a matter of embedding my desired hyperlink into the appropriate php file. And I assume each of three php files are pretty similar since you probably based them all on EasyBlog.
May I get some guidance where to look?
Thanks again,
-Jim G.
Hello Jim,

There's no centralized place for this because the limit checks are made on the controller base. You need to identify the places that perform these redirects and add your own hacks accordingly.
·
Tuesday, 04 February 2014 02:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
I know I need to make my own hacks. Just was hoping that you or somebody else could quickly ID the file source, since you wrote the code. If this is asking too much, I understand.
Thanks,
-Jim G..
·
Tuesday, 04 February 2014 03:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jim,

There's no "easy way out" for this as you need to manually find the locations that you want and apply the hacks respectively I can't go through hundreds of files to find the codes for you as this will take quite a lot of time.
·
Tuesday, 04 February 2014 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, I thought someone might know, being very familiar with the code. Anyway I did find an easy workaround by simply redirecting the forced-login URL to our central registration page. Not elegant, but works fine.
Thanks,
-Jim G.
·
Tuesday, 04 February 2014 11:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jim,

Thanks for updating, yeah there's quite a number of places actually and I think your solution is the best way out as everything is handled in a single location Less maintenance nightmare.
·
Tuesday, 04 February 2014 11:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post