We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Split join page (into 2 Steps) | Forum

ca47
ca47 Jan 6 '13
Hello, 

is it possible to split the join page into 2 steps? At the first (main) page you have the basic stuff (like username, password, email). At the 2nd page you have maybe the real name, gender, birthday, avatar.


For example the page http://www.a6.pl (by aron) 


Can anybody help me? Thanks a lot!

The Forum post is edited by ca47 Jan 6 '13
Jam
Jam Jan 6 '13
hello nice site- can you tell me what theme you used?.. you can invite members from my site www.jammyx.in

Alia Team
Alia Jan 6 '13
Ca47, seems like Aron just added new account types. You can't see them, but under the "Select Account Type" he has 3 options. One is "Standard" and the other two ones are empty and are invisible.

So if you would like to have registration page divided into several pages, just add a new account type in yoursitename.com/admin/questions/edit-account-type. Once the new account type is added registration page will get divided into two stages: base questions and exclusive questions.

All you will have left to do is to dig into html and css files of the "Select Account Type" drop down to make the second account type invisible.

ca47
ca47 Jan 7 '13
Ok thanks. The new account-type thing worked :) 


But which file and what exactly i have to edit to remove the "account type" drop down?


Thanks.

Alia Team
Alia Jan 7 '13
ca47   what about removing "Select Account Type" field completely from .html files since you don't seem to need it?

The file to remove this field from "Join" page is  join_index.html (ow_system_plugin/base/views/controllers).

Please note that editing .html files is custom code modification and you are doing it at your own risk.

ca47
ca47 Jan 10 '13
Quote from Aliia ca47   what about removing "Select Account Type" field completely from .html files since you don't seem to need it?

The file to remove this field from "Join" page is  join_index.html (ow_system_plugin/base/views/controllers).

Please note that editing .html files is custom code modification and you are doing it at your own risk.


Hello,

I tried to modify anything in join_index.html but for some reason it have no effect on any block at the join page. Im just scratching my head about this issue. Maybe you can make a short description of what I exactly have to remove/change? 


Thank you.

matt
matt Jan 12 '13
Hi ca47,

I tried this too, but I screwed up my join page. I tried removing... this from ow_system_plugin/base/views/controllers

<table class="ow_table_1 ow_form">
            {if $diaplayAccountType==true}
            <tr class="{cycle values='ow_alt1,ow_alt2'} ow_tr_first ow_tr_last">
                <td class="ow_label">
                    {label name='accountType'}
                </td>
                <td class="ow_value ow_center">
                    {input name='accountType'}
                    <div style="height:1px;"></div>
                    {error name='accountType'}
                </td>
                <td class="ow_desc">
                    {question_description_lang name="accountType"}
                </td>
            </tr>

Anyone can make a pointer?







Nirmalya Ghosh
Nirmalya Ghosh Jan 12 '13
Can you please tell me what exactly do you want to edit? I can help. PM me.
matt
matt Jan 12 '13
"what about removing "Select Account Type" field completely from .html files since you don't seem to need it?

The file to remove this field from "Join" page is  join_index.html (ow_system_plugin/base/views/controllers).

Please note that editing .html files is custom code modification and you are doing it at your own risk."

^^^ This is what I am trying to achieve. Seems not in community spirit to do this by PM. Rather, we can share tips here to inform whole community.
Nirmalya Ghosh
Nirmalya Ghosh Jan 12 '13

I thought that you wouldn't like to share what you wanted to do. No problem with me because I would like to share how to do it with anyone.

 

Anways Matt, let me have a look and then I would let you know bro.

matt
matt Jan 12 '13
Thanks for thinking of me. The thread is already public, so no worries from me :)

Cheers,

m
ca47
ca47 Jan 13 '13
@Nirmalya Ghosh

Please help me 2


thanx

Nirmalya Ghosh
Nirmalya Ghosh Jan 13 '13

Go to join_index.html and find this part

 

 

{if $diaplayAccountType==true}

            <tr>

                <td class="ow_label">

                    {label name='accountType'}

                </td>

                <td class="ow_value ow_center">

                    {input name='accountType'}

                    <br class="ow_no_height" />

                    {error name='accountType'}

                </td>

                <td class="ow_desc">

                    {question_description_lang name="accountType"}

                </td>

            </tr>

            <tr><td colspan="3"> </td></tr>

            {/if}

 

 

 

 

Replace it with this

 

 

<!--

{if $diaplayAccountType==true}

            <tr>

                <td class="ow_label">

                    {label name='accountType'}

                </td>

                <td class="ow_value ow_center">

                    {input name='accountType'}

                    <br class="ow_no_height" />

                    {error name='accountType'}

                </td>

                <td class="ow_desc">

                    {question_description_lang name="accountType"}

                </td>

            </tr>

            <tr><td colspan="3"> </td></tr>

            {/if}

-->

 

 

 

 

 

 

Tell me if this worked or not...

Nirmalya Ghosh
Nirmalya Ghosh Jan 13 '13
If this didn't work, then try commenting it out from join.php also...but be sure to create a backup of your files before you edit anything.
ca47
ca47 Jan 13 '13
didn't work the first way. Sorry, I really dont have an idea of php. What I have to comment out in join.php?


Thanks

Nirmalya Ghosh
Nirmalya Ghosh Jan 13 '13
Try commenting out the account_type variable from the join.php bro.
matt
matt Jan 14 '13
The above hotfix produces this error...

"TypeError: element.input is null"

Thanks for you help,

m
Alia Team
Alia Jan 14 '13
ca47, following steps should do the trick for you. Please note, that as I told before this is custom code modification and what you do,  you do at your own risk:

1. ow_system_plugins/base/controllers/join.php
find following piece of code :
  if ( $this->displayAccountType )
        {
            $joinAccountType = new Selectbox('accountType');
            $joinAccountType->setLabel(OW::getLanguage()->text('base', 'questions_question_account_type_label'));
            $joinAccountType->setRequired();
            $joinAccountType->setOptions($accounts);
            $joinAccountType->setValue($this->accountType);
            $joinAccountType->setHasInvitation(false);

            $this->addElement($joinAccountType);
        }


And comment out ( using /* and */ ) this line: $this->addElement($joinAccountType); 

So you should have:

  if ( $this->displayAccountType )
        {
            $joinAccountType = new Selectbox('accountType');
            $joinAccountType->setLabel(OW::getLanguage()->text('base', 'questions_question_account_type_label'));
            $joinAccountType->setRequired();
            $joinAccountType->setOptions($accounts);
            $joinAccountType->setValue($this->accountType);
            $joinAccountType->setHasInvitation(false);

            /*$this->addElement($joinAccountType); */
        }


2. After that comment out ( using {* and *} ) the code bellow in ow_system_plugins/base/views/controllers/join_index.html :

 {* {if $
displayAccountType==true}
            {<tr class="{cycle values='ow_alt1,ow_alt2'} ow_tr_first ow_tr_last">
                <td class="ow_label">
                    {label name='accountType'}
                </td>
                <td class="ow_value ow_center">
                    {input name='accountType'}
                    <div style="height:1px;"></div>
                    {error name='accountType'}
                </td>
                <td class="ow_desc">
                    {question_description_lang name="accountType"}
                </td>
            </tr>
            <tr class="ow_tr_delimiter"><td></td></tr>
            {/if} *}


Alia Team
Alia Jan 14 '13
Topic was moved from General Questions.
ca47
ca47 Jan 14 '13
Quote from Aliia ca47, following steps should do the trick for you. Please note, that as I told before this is custom code modification and what you do,  you do at your own risk:

1. ow_system_plugins/base/controllers/join.php
find following piece of code :
  if ( $this->displayAccountType )
        {
            $joinAccountType = new Selectbox('accountType');
            $joinAccountType->setLabel(OW::getLanguage()->text('base', 'questions_question_account_type_label'));
            $joinAccountType->setRequired();
            $joinAccountType->setOptions($accounts);
            $joinAccountType->setValue($this->accountType);
            $joinAccountType->setHasInvitation(false);

            $this->addElement($joinAccountType);
        }


And comment out ( using /* and */ ) this line: $this->addElement($joinAccountType); 

So you should have:

  if ( $this->displayAccountType )
        {
            $joinAccountType = new Selectbox('accountType');
            $joinAccountType->setLabel(OW::getLanguage()->text('base', 'questions_question_account_type_label'));
            $joinAccountType->setRequired();
            $joinAccountType->setOptions($accounts);
            $joinAccountType->setValue($this->accountType);
            $joinAccountType->setHasInvitation(false);

            /*$this->addElement($joinAccountType); */
        }


2. After that comment out ( using {* and *} ) the code bellow in ow_system_plugins/base/views/controllers/join_index.html :

 {* {if $
displayAccountType==true}
            {<tr class="{cycle values='ow_alt1,ow_alt2'} ow_tr_first ow_tr_last">
                <td class="ow_label">
                    {label name='accountType'}
                </td>
                <td class="ow_value ow_center">
                    {input name='accountType'}
                    <div style="height:1px;"></div>
                    {error name='accountType'}
                </td>
                <td class="ow_desc">
                    {question_description_lang name="accountType"}
                </td>
            </tr>
            <tr class="ow_tr_delimiter"><td></td></tr>
            {/if} *}



Doesnt work. causing an error
The Forum post is edited by Daisy Nov 5 '14
Pages: 1 2 »