1
shibiru_mato
Re: getting values from xoops "users" table

hi zyspec,

i tried editing the /html/xoops/kernel/user.php and added the $this->initVar('user_viewtel', XOBJ_DTYPE_INT, 1, false); just as you said but i cant get the value still. to make things weird.... i made some experiment and edited the file like renaming the valid rows like 'user_viewemail' to 'user_viewemailtest' and i should expect that i cant get that value to the database on the user_editinfo.php but to my surprise, i can get the value of 'user_viewemail' though i renamed all of the appearances of that word on the file... so do you think i need to restart the server or what im doing is wrong?



2
shibiru_mato
Re: getting values from xoops "users" table

thank you this is very interesting.

however, i am a newbee in php, xoops and module creation. but i want to consider this. how about the usage of this class? if i want to use this on user_editprofile.php how can i get and set the values? is it the same? and more importantly, do i need to restart the server to apply this new class?

thank you again



3
shibiru_mato
Re: getting values from xoops "users" table

hi zyspec,

i tried editing the /html/xoops/kernel/user.php and added the $this->initVar('user_viewtel', XOBJ_DTYPE_INT, 1, false); just as you said but i cant get the value still. to make things weird.... i made some experiment and edited the file like renaming the valid rows like 'user_viewemail' to 'user_viewemailtest' and i should expect that i cant get that value to the database on the user_editinfo.php but to my surprise, i can get the value of 'user_viewemail' though i renamed all of the appearances of that word on the file... so do you think i need to restart the server or what im doing is wrong?



4
shibiru_mato
Re: getting values from xoops "users" table

yeah i added another column on users table to toggle whether to show or not the telephone number... just like what is happening on email field. and yes I want to add it on edit profile... when viewing profiles i would read this value to see if it is public or not, if its not public then i would not display it.

so i need to edit the core files right? as of now i only have access on the editing templates on the admin menu... so i needed to go to the file directly right?

anyway, i greatly appreciate your help man! thank you! i will definitely try this and inform you if it did well



5
shibiru_mato
getting values from xoops "users" table

Hi

i would like to make some of the users information private on users profile. currently we can make email addresses private by unchecking the checkbox. the same thing i would like to do with other personal information such as telephone and address.

I added a column in "users" table called "user_viewtel" for making telephone number private and made it NOT NULL with default value of 1(for make public)

I tried editing the user_edituser.html and tried accessing the value of the "user_viewtel" by using codes like
$thisUser->getShow('user_viewtel') and $actionForm->get('user_viewtel') but it doesnt display anything

can anybody have idea what other things i can do so i can access the new field on the page?

any help would be very appreciated




TopTop



Login

Who's Online

222 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 222


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