41
jilong
Re: Registration Extra fields?
  • 2007/1/18 14:09

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


Actually i did all this,but the registration page only show me a step title without any field for me to fill in.

Quote:
1. I go to "premission" set all field to visible to everyone.

2. I go to "Registration Step", i add in 2 step Personal information and Education information

3. I go to "Field", click into every field and set assign it to show in registration form step.

4. Create the redirect in userinfo.php
[quote]
$uid = intval($_GET['uid']);
if ($uid <= 0) {
redirect_header('index.php', 3, _US_SELECTNG);
exit();

}
redirect_header(XOOPS_URL.'/modules/smartprofile/userinfo.php?uid='.$uid, 0, 'Redirecting To Profile');
header('Location: '.XOOPS_URL.'/modules/smartprofile/userinfo.php?uid='.$uid);
exit();



5. Edit the user menu 'edit account' url in root/modules/system/templates/blocks/system_blocks_user.html
Quote:

a href="<{$xoops_url}/modules/smartprofile/edituser.php"> <{$block.lang_editaccount}></ a>



6. Edit the user menu 'edit account' url in root/modules/system/templates/blocks/system_block_login.html
Quote:

a href="<{$xoops_url}>/modules/smartprofile/register.php"><{$block.lang_registernow}></a>



42
jilong
Re: Registration Extra fields?
  • 2007/1/18 10:20

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


hi sinablack,

Another question to ask you, do you know which file to change the smartprofile edit page template? because my full application details have about 4 A4 paper long to fill in, it is very long apge, so i think to change it to 2 category per row like ordiginal view profiles page.

i open all the template file but not sure which one is for edit page. =.=

Quote:

my registration form still not work, but nevermind i do it in another way. user still can use the ordiginal form to register, but view and edit profile will redirect to smartprofile to update their complete set information. Thank you very much for your help



43
jilong
Re: Registration Extra fields?
  • 2007/1/17 18:58

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


yes, sinablack you really help and i learn a lot from you, thanks again.

i think this is the last thing to ask. do you know how to show all the unfill field on profiles? i think to display all so that member will know which information they are not yet fill in.



44
jilong
how to display all field in profile include blank field
  • 2007/1/17 18:17

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


I think when member click view profile, all field will show out event thourgh the field is blank, else member might not know which field they haven't fill in yet.



45
jilong
Re: Registration Extra fields?
  • 2007/1/17 17:48

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


Quote:

sorry that i forgot to give you the path!!
modules/system/templates/blocks/system_block_user.html
on line 10 you have to change the line into:


already added, but the registration form still not show, but i could edit the profiles.

Quote:
and about your second question i think it should be like this


seen like not this files to edit. i even delete this file from host the profiles still show....hm...



46
jilong
Re: Registration Extra fields?
  • 2007/1/17 14:06

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


Quote:
well dear jilong you have to change some lines in system template to change the edituser file paths from from {xoops_root_path} to smart profile and make smart profile the default user editor.


which files is that? the file under modules/system/templates/****.html?


Quote:
and to showing those fields , you have to give permissions by admin side


yes, i got it. this one forgot to set premission ^^

do you know how to change the smartprofile display? i would like to change it display 1 category per row, now defualt it show 2 category per row.

i change the smartprofile_userinfo.html

<div style="width: 48%; float: left; padding: 0px 5px 10px 0px;<{if $catcount % 2 == 0}> clear: left;<{/if}>">
            <
table class="outer" cellpadding="4" cellspacing="1">
                <
tr>
                  <
th colspan="2" align="center"><{$category.cat_title}></th>
                </
tr>
                <{foreach 
item=field from=$category.fields}>
                    <
tr>
                        <
td class="head"><{$field.title}></td>
                        <
td class="even"><{$field.value}></td>
                    </
tr>
                <{/foreach}>
            </
table>
        </
div>

to

<div style="width: 90%; float: left; padding: 0px 5px 10px 0px;">
            <
table width="100%" class="outer" cellpadding="2" cellspacing="1">
                <
tr>
                  <
th colspan="2" align="center"><{$category.cat_title}></th>
                </
tr>
                <{foreach 
item=field from=$category.fields}>
                    <
tr>
                        <
td class="head"><{$field.title}></td>
                        <
td class="even"><{$field.value}></td>
                    </
tr>
                <{/foreach}>
            </
table><br />
        </
div>


it still show in 2 category per row*/



47
jilong
Re: Registration Extra fields?
  • 2007/1/17 10:42

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


Thanks sinablack, another problem the new field i added and fill in edit page are not show in my user profile.

now i can edit my profile using smartprofile, indlude new field added by smartprofile, but ht registration form showing in blank page and the userprofile page are not show the new added information which already fill in.



48
jilong
Re: Registration Extra fields?
  • 2007/1/15 14:42

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


I also would like to know this, is it because i dont have this password field and get the blank page?



49
jilong
Re: Registration Extra fields?
  • 2007/1/15 2:41

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


Quote:

vaughan wrote:
make sure you have set visibility in the permissions page in the admin (it's a select box at top, select visibility then set the permissions for each field.)

to be safe choose to save data after the 1st step, and then let the users continue on to steps 1 & 2 etc..


I am sure already set the visibility :
from : is visible for - Everyone viewing a profile of - Everyone
....

and i only keep 1 step for registration, but i still get the blank page. =.=

when i use ordiginal register form to register, after login i try to edit / view profile it suggest to redirect me to smartprofiles module and the profile were show in category. just only the registration form don't why hiding itself...

vaughan, i have send you my demo site url, when you free can you please visit my site have a look?
thanks



50
jilong
Re: Registration Extra fields?
  • 2007/1/14 19:35

  • jilong

  • Just popping in

  • Posts: 61

  • Since: 2007/1/10


i have send you my site link to your PM. maybe you can have a look.

thanks




TopTop
« 1 2 3 4 (5) 6 »



Login

Who's Online

132 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 132


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits