Forums

Registration form

rodiusd 16 Aug, 2013
Hi,

followed the example from the FAQ and created a CF alternative "create account" form.

Also created the override in my template.

When I now click on the create account link then the CF form is correctly displayed but it takes up the whole width of my page. It don't take into account the left&right sidebars.

What I'm doing wrong here? Any ideas?
GreyHead 16 Aug, 2013
Hi rodiusd,

Impossible to say without seeing the form. This can be template CSS setting the input widths to 100% or just plain broken HTML or some problem with a CDD 'clear' or something else . . .

Bob
GreyHead 16 Aug, 2013
Hi rodiusd,

I don't see a ChronoForm on that page?

Found it - but I hate playing 'hunt the form'.

Your template CSS is setting the width to 100% at line 1270 of template.css
input[type="text"], input[type="password"], input[type="email"], input[type="url"], textarea {
    color: #C4C4C4;
    font-family: 'Goudy Bookletter 1911',Arial,'Arial Unicode MS',Helvetica,Sans-Serif;
    font-size: 13px;
    font-style: normal;
    font-weight: normal;
    letter-spacing: 1px;
    padding: 4px 0;
    text-shadow: none;
    width: 100%;
}

and there are no modules loading on that page.

There is a suggested fix in the FAQs I think.

Bob
rodiusd 16 Aug, 2013
Hi Bob,

the CF is displayed when you try to create an account in the right sidebar on the main page.

However I like to point that there is a page displayed but i don't find it in the back end to add other modules to it so that the sidebars would be complete.

There is the point where I'm totally lost.
GreyHead 16 Aug, 2013
Hi rodiusd,

If your modules are linked to menu items then you will need to assign the form page to a menu (it can be a 'hidden' menu that isn't actually displayed).

Bob
rodiusd 17 Aug, 2013
Hi Bob,

create a menu option who displays the CF.

It works when selecting this menuitem.

However when putting the CF form in the registration override
<?php
$mainframe =& JFactory::getApplication();
$mainframe->redirect('index.php?option=com_chronoforms&view=form&Itemid=312&lang=en');
?>

then the default joomla registration form is shown now.

Try to check on the forum&FAQ's and found the "How can I create a Joomla! Registration?". It has a download link in it but I get a 404 page.

So:
1. Any idea what I'm doing wrong so that i stll get the wrong page when to create an account.
2. How to get this PDF from the FAQ.


Danny
GreyHead 17 Aug, 2013
Hi rodiusd,

Joomla! SEF URLs are a mystery to me; have you tried using the form URL with the ItemId added?

I've fixed the link to the PDF download, thanks for pointing that out.

Bob
rodiusd 17 Aug, 2013
Hi Bob,

believe that this was already in the code of my last post.

I toke it from the url created when i clicked the menu item who give us the CF.

so i put this in the override but it still shows the joomla registration form when requesting to create an account.

Any other idea's
GreyHead 17 Aug, 2013
Hi rodiusd,

No that was an SEF URL in your last post, ChronoForms doesn't use view=form as far as I remember. Try the FrontEnd View URL from the Forms Manager.

Bob
rodiusd 17 Aug, 2013
Hi Bob,

replace it with the following:
<?php
$mainframe =& JFactory::getApplication();
$mainframe->redirect('index.php?option=com_chronoforms&chronoform=registration&lang=en');
?>

However it still is showing the Joomla!form when i request to "Create Account".
GreyHead 17 Aug, 2013
Hi rodiusd,

Where are you clicking 'Create account'? Would it help to make that a direct link?

Bob
rodiusd 17 Aug, 2013
Hi Bob,

I'm clicking the create account on the login module. Seems to me the most logic place.

The only way that I know to change this action is by an override. How could we in this override make it a direct link as you propose?
GreyHead 18 Aug, 2013
Hi rodiusd,

I can't see the site any longer. I think that this is a case where you have to work through logically to work out what is happening and how to handle it. I'm no expert in SEF URLs or template over-rides but I think that they should work correctly if you get the 'right' URLs and are over-riding the 'right' pages.

Bob
rodiusd 18 Aug, 2013
Hi Bob,

If you want the website active to check let me know.

Tryed a direct link without any success.

So I'm stuck on this patch. CF can't bring me nothing additional if I don't want to use visible menu item.

I'm sad😢 when I see thru which hoops you have to jump to deliver something. Believe that this world is not longer accepting dinosaurs like me.
GreyHead 19 Aug, 2013
Hi rodiusd,

I don't need the site active; I'm just trying to help you with a Joomla! problem. Please see my last post.

Bob
rodiusd 19 Aug, 2013
Hi Bob,

already posted this override:

<?php
$mainframe =& JFactory::getApplication();
$mainframe->redirect('index.php?option=com_chronoforms&chronoform=registration&lang=en');
?>



This is the URL that is used to launch the menu item.

So what could be wrong with this override to have a fall back on the original registration page of Joomla instead of the chronoform specified in it?
rodiusd 19 Aug, 2013
Hi Bob,

for as far I did some tests (with a lot of permutations), it seems that every problem is related to having a multilanguage site.

So if I carreful check the override it came all to an override to a menutitem# who is language depended.

As soon as is tryed to create a new account from the login module in another language the i was not getting the correct page when the menutiem# was not this of the site language at the moment.

When getting a wrongly displayed registration from i clicked the language flag, then the page was refreshed and displayed correctly. This I believe is the result of the associations setup for the menu item#.

Know this has nothing to do with CF but can't find anything on the web. allways been pointed back to CF or using another extention. So...

Do you know of a way to force the associations when doing the redirect?
rodiusd 19 Aug, 2013
Hi Bob,

like a hard-headed dinosaur i found a work-around.

As soon as I posted my last reply I searched to know how the site language could be found.

As we have three menus who are language depended I put one and one together and found the following override code to be working:
<?php
$mainframe =& JFactory::getApplication();
$lang = JFactory::getLanguage();
switch ($lang->getTag()) {
    case 'en_GB':
        $redirect_url  =  str_replace('&','&', 'index.php?option=com_chronoforms&view=form&Itemid=312&lang=en');
        break;
    case 'nl_NL':
        $redirect_url  =  str_replace('&','&', 'index.php?option=com_chronoforms&view=form&Itemid=313&lang=nl');
        break;
    case 'fr_FR':
        $redirect_url  =  str_replace('&','&', 'index.php?option=com_chronoforms&view=form&Itemid=314&lang=fr');
        break;
};
$mainframe->redirect($redirect_url);


Just needed to find the item# and connect them to the correct language and voila.

Maybe the code is not high tech but it works for me.

As a Belgian guy we must support different language and even in this modernized and world wide tech, often the language depended element seems to be lost or difficult to solve.

However I wish to thank you for the mental support to implement a CF in this way.

With your pointed questions you have driven this dinosaur to start thinking further again in a, for him, unpaved direction.

Have some questions about extending the CF registration form, but for the moment will try to find the solution myself.

Many thanks.
GreyHead 02 Sep, 2013
Hi rodisud,

Well found :-)

Here's a slightly simpler version of your code:
<?php
$mainframe =& JFactory::getApplication();
$lang = JFactory::getLanguage();
$tag = $lang->getTag();
$tag = substr($tag, 0, 2);
$redirect_url = 'index.php?option=com_chronoforms&view=form&Itemid=312&lang='.$tag;
$mainframe->redirect($redirect_url);
?>

Bob
This topic is locked and no more replies can be posted.