Mmspires

Add new...
 
Added a discussion 

I am new to developing in una and would like some help finding where I can find the code variables for me to be able to get logged in users name, age etc. in code

  • 624
    • You can use this sample code:

      $oProfile = BxDolProfile::getInstance();
      $o = BxDolContentInfo::getObjectInstance($oProfile->getModule());
      print_r($o->getContentInfo($oProfile->getContentId()));


      💓0 😆0 😲0 😥0 😠0 0
      Not logged in users can't 'Comments Post'.
      Added a discussion 

      I am using the credits module, on the dashboard menu it show total number of credits the user has. How can I get that to show the total number of credits in other places of the site. What code do I need to use when making other menus that will also show number of credits


      • 620
        • This is the part of the account menu and to be placed as block it will require a custom mod.

          💓0 😆0 😲0 😥0 😠0 0
          • how can I just show text on a page that gives credit balance total

            💓0 😆0 😲0 😥0 😠0 0
            • You need to have a custom mod drawing the block with the following service call code:

              BxDolService::call('bx_credits', 'get_profile_balance');

              and then add this block to your page.

              💓0 😆0 😲0 😥0 😠0 0
              Not logged in users can't 'Comments Post'.
              Added a discussion 

              When you stroll my site profiles the profile shows 2 times..  



              • 592
                • Hello Mmspires !

                  Please specify - which version of UNA do you have, how many members are there and on what URL you met this trouble?

                  💓0 😆0 😲0 😥0 😠0 0
                  • Version 11

                    13 members

                    if you look at this profile and scroll down you will see that while scrolling you see the profile twice

                    findfriends (.) me/ mike

                    💓0 😆0 😲0 😥0 😠0 0
                    Not logged in users can't 'Comments Post'.
                    Achievements

                    Ninja

                    Total points: 359

                    91.1 point(s) to reach
                    Info
                    Location:
                    Lancaster, OH, United States
                    Gender:
                    Man
                    Friends count:
                    Followers count:
                    Full Name:
                    Mmspires
                    Membership
                    Standard
                    Mmspires Discussions
                    •  ·  624
                    •  · 
                    I am new to developing in una and would like some help finding where I can find the code variables f…
                    •  · 
                    •  · 
                    •  · You can use this sample code:$oProfile = BxDolProfile::getInstance(); $o = BxDolContentInfo::getObj…
                    •  ·  620
                    •  · 
                    I am using the credits module, on the dashboard menu it show total number of credits the user has. H…
                    •  · 
                    •  · 
                    •  · You need to have a custom mod drawing the block with the following service call code:BxDolService::c…
                    •  ·  592
                    •  · 
                    When you stroll my site profiles the profile shows 2 times..  
                    •  · 
                    •  · 
                    •  · Version 1113 membersif you look at this profile and scroll down you will see that while scrolling yo…

                    UNA - Network Infrastructure for Communities

                    Close