*

ishan

  • ****
  • 126 posts
User Registration Dat Help
« on: October 01, 2018, 01:37:40 PM »
Hello ,

How do i display "User Registration date" ,"User ID Wise Listings" & "User Info/description" in cutom page ?

I have create custom page there i want to show "User id wise all listings" and that "user info" and "registration date" . So please help me, how can i use that ?

Thanks

*

MB Themes

Re: User Registration Dat Help
« Reply #1 on: October 01, 2018, 03:37:18 PM »
@ishan
You need to get it from database
Code: [Select]
$user = User::newInstance()->findByPrimaryKey( -- user id goes there -- );
echo $user['dt_reg_date'];
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: User Registration Dat Help
« Reply #2 on: October 01, 2018, 03:47:54 PM »
Hello,

Thanks, i have tried that user database code, but may be i have used wrong code, so can you mention full code, then i will use that,

I have 20 Users in my site, and i just want to display all 20 Users "Registration date" , "User Info", and " Users Listing" in custom page(those i have created from oc-admin.

in single table like :


S.no | User Name | Registration Date | User Info(description) | User Listings Title


Like above.

User name will not main, if username will not display then it will be ok for me. but other fields is very important for me.
« Last Edit: October 01, 2018, 04:13:57 PM by ishan »

*

MB Themes

Re: User Registration Dat Help
« Reply #3 on: October 01, 2018, 04:37:29 PM »
@ishan
First you have to know what are doing and how to achieve that, just asking will not bring you to that result.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: User Registration Dat Help
« Reply #4 on: October 02, 2018, 06:40:38 AM »
Hello,

Yes i just want to display all users details as per last mail

S.no | User Name | Registration Date | User Info(description) | User Listings Title


I describe here

In S.no : User ID will display, User name is not mandatory if username will display that will be good otherwise user profile picture will be display, User Info : here users description or "About Me" will display . User Listing Titles : its also optional, if users Max 5 listing title will display that will be good.


I just want to display Table of users, where we will show users details. when user details will display on custom page then its look like database.

That page look like Database of users. In future i will use more things on that page. like User Membership Active plan, and more. but these main motive to display.

*

ishan

  • ****
  • 126 posts
Re: User Registration Dat Help
« Reply #5 on: October 03, 2018, 09:01:12 AM »
Dear Osclasspoint team,

Please provide me good solution and code for that then i will complete my page.

Thanks

*

MB Themes

Re: User Registration Dat Help
« Reply #6 on: October 03, 2018, 09:10:22 AM »
@ishan
We provide support, not coding, based on your description there is nothing to help, you want someone to do your job... in such case look for developer instead.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: User Registration Dat Help
« Reply #7 on: October 03, 2018, 12:19:46 PM »
i am not saying full code. i just want to say, for show the user description, registration date on custom page. thats it i dont want full code. i know this is public forum so no one provide full code for that. actually i just share my work with you. so thats why i have mention everything.

Please provide on User Description and Registration Date print on custom page. Then i will do my work.

Thanks

*

ishan

  • ****
  • 126 posts
Re: User Registration Dat Help
« Reply #8 on: October 03, 2018, 02:44:25 PM »
please sir help me, only your team will help me for that custom page. Please guide me.

*

ishan

  • ****
  • 126 posts
Re: User Registration Dat Help
« Reply #9 on: October 04, 2018, 01:40:35 PM »
Sir,

please help me, you just guide me, how to display User Description, and User Registration Date on Custom page, Then i will use that on my custom page. Please

*

MB Themes

Re: User Registration Dat Help
« Reply #10 on: October 04, 2018, 03:21:39 PM »
@ishan
You have to learn PHP basics, we provide support, not guide how to do development  ???
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: User Registration Dat Help
« Reply #11 on: October 05, 2018, 07:08:29 AM »
 
Code: [Select]
<?php
   $user 
User::newInstance()->findByPrimaryKey(10);
   
?>



for print : <?php echo $user['dt_reg_date']; ?>


And registration date display in custom page, thank you so much, and please also tell me about description, i think description also display from same

I use for user description :
Code: [Select]
<?php echo $user['s_info']; ?> but no description display . so please correct me, what i do for display user description .

*

MB Themes

Re: User Registration Dat Help
« Reply #12 on: October 05, 2018, 07:59:57 AM »
@ishan
print_r($user) and look what fields are there
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: User Registration Dat Help
« Reply #13 on: October 05, 2018, 10:41:04 AM »
No sir, there are display that user all info . so as per that i have seen

Code: [Select]
[locale] => Array
        (
            [en_US] => Array
                (
                    [fk_i_user_id] =>6
                    [fk_c_locale_code] => en_US
                    [s_info] => User Description Detail
                )

        )

So s_info is relate to user info. . So how can i use that for user description ?

*

MB Themes

Re: User Registration Dat Help
« Reply #14 on: October 05, 2018, 01:52:44 PM »
@ishan
Do not try to do something, if you have no idea what to do... it does not make sense
Code: [Select]
echo $user['locale'][osc_current_user_locale()]['s_info'];
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots