Forums

AEC, CB and CF

Tom0 10 Dec, 2008
Hi,

I am making a membership fitness site at the moment, and getting community builder and aec to work nicely together took a little fiddling (I couldnt seem to get it to work at all with the J-login). Now I really would like to replace the CB registration with a nice CF registration,this seems possible and I have got the form appearing nicely (and followed all the tutorials about linking in with CB) but when the 'register new user' button is clicked, and the user chooses their subscription, AEC still redirects to the CB registration page not the CF one.

I have seen this thread: http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=10494&p=10521&hilit=aec#p10521 which says that getting the three to work together may be tricky, but wondered if anyone else had managed to get it working? Would really appreciate any help as the alternative I can see is hacking the CB registration form to make my other questions (health status etc) look acceptable!!

Thanks a lot,
Tom
GreyHead 10 Dec, 2008
Hi Tom,

Sounds like this requires an AEC hack to redirect. Have you tried using a custom SEF URL? That might do it too.

Bob
Tom0 10 Dec, 2008
Hi Bob,

Thanks for the quick reply!

Do you mean inside the AEC module files? Iv had a look but cant see anywhere which does the redirect... my hacking skills definitely need some work!

I dont have any SEF options turned on at the moment (the site is still very much in development).

Tom
Max_admin 10 Dec, 2008
Hi Tom,

a code like this in the template index.php file will solve it:


if(JRequest::getVar('task') == 'register')$mainframe->redirect('chronoform link');


I'm not sure about the task name!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Tom0 11 Dec, 2008
Hi Max,

Thanks for the reply, I tried that and sure enough it redirects to the new login! When users complete this it correctly adds entries to the _users and _comprofiler tables, so that bit is working fine.

However it doesnt pass the subscription details accross to aec, Iv tried putting the aec hacks into the form code and changing the form urls to index.php?option=com_acctexp which is the url you see after 1) choosing membership type and 2) completing the (cb) registration form. This is another confirmation page which has user details and chosen membership type, and from here it takes you to the payment gateway (paypal etc). I think their are probably a load of post variables that are hidden passing along these membership options - is there any way to see these?

If you have any ideas Im keen to keep searching but Im running out of ideas now!

Thanks a lot,
Tom
Max_admin 12 Dec, 2008
Hi Tom,

I'm sorry but I have no idea how to transfer data to AEC, changing the action URL will disable all CF functions too!

regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Tom0 12 Dec, 2008
Yeh I discovered that!

I think its a bit beyond me, so (just for info) ive opted to add another field into _users which stores whether they have completed this questionnaire and then hack the cb registration so users are blocked initially, then when they login if they are blocked and havent completed the questionnaire it will redirect them to it (a nice looking cf!) and unblock them on successful completion.

Thanks for the help though and a really nice component.

One suggestion though, adding radio buttons using the wizard and requiring one puts the "one-required" class(?) in the first option box, meaning (in my case) when you tab past the yes to get to the no the validation message pops up straight away even though you havent got past the question. I moved all of these one-required's to the last field and I think it works a little better.

All the best,
Tom
Max_admin 12 Dec, 2008
Thanks Tom for sharing this, btw, adding an extra field to the users table may raise some problems! 🙄

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Tom0 12 Dec, 2008
Hmm yes I imagined it might, any examples when/where exactly (other than migrating/updating joomla install)?

I think i'll press on and get it working as a process anyway and then can change the databasing later. (The exact process is still in legal debate!)

All the best,
Tom
Max_admin 13 Dec, 2008
Hi Tom,

no idea, I think if you edited the JUser class while doing this then all will be fine as long as all the code executed is done the clean Joomla codespace way!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.