41
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.

42
sinablack
Re: Registration Extra fields?
  • 2007/1/17 12:43

  • sinablack

  • Just popping in

  • Posts: 41

  • Since: 2007/1/12


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.
and to showing those fields , you have to give permissions by admin side.
Soon we must all face the choose between what is good to US and what is the truth!!!
300 the movie

43
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*/

44
sinablack
Re: Registration Extra fields?
  • 2007/1/17 15:12

  • sinablack

  • Just popping in

  • Posts: 41

  • Since: 2007/1/12


Quote:

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

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:
<a href="<{$xoops_url}>/modules/smartprofile/edituser.php"><{$block.lang_editaccount}></a>

*/
Soon we must all face the choose between what is good to US and what is the truth!!!
300 the movie

45
sinablack
Re: Registration Extra fields?
  • 2007/1/17 15:36

  • sinablack

  • Just popping in

  • Posts: 41

  • Since: 2007/1/12


and about your second question i think it should be like this
the default of that block:
<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>

and
the changed:
<div style="width: 48%; float: left; padding: 0px 5px 10px 0px;<{if $catcount % 1 == 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>
Soon we must all face the choose between what is good to US and what is the truth!!!
300 the movie

46
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...

47
sinablack
Re: Registration Extra fields?
  • 2007/1/17 18:26

  • sinablack

  • Just popping in

  • Posts: 41

  • Since: 2007/1/12


well it matter`s not
you have to do this actions to see the changes
amin menu-->Preferences Main-->General Settings-->Check templates for modifications ?
and turn it on yes for a while and refreshing in your browser to see the changes on that module, and after doing all this changes and seen the changes at the end you have to put
"Check templates for modifications ?" on no.
Soon we must all face the choose between what is good to US and what is the truth!!!
300 the movie

48
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.

49
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

50
vaughan
Re: Registration Extra fields?
  • 2007/1/18 11:28

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


there shouldn't be any need to edit templates..

the only template you really need to change is the system_block_login.html template & the usermenu template to change edituser.php to modules/smartprofile/edituser.php

and with regards to login block > register.php to modules/smartprofile/register.php

and 1 other edit to xoops_root/userinfo.php

all of those edits are found if you read the comments in the smartprofile news article on this site.

why make things harder for yourselves by not searching or reading the comments beforehand..

click here for the article

Login

Who's Online

211 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

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

Latest GitHub Commits