Mmspires

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

  • 677
    • 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


      • 669
        • 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..  



              • 641
                • 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'.

                    UNA - Network Infrastructure for Communities

                    Close