We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18219
    • 826 Posts
    I took again the snippet created originally by VAX.
    I modified the structure of this code to make it evolve.

    In the version 0.2a-beta, this snippet display only the informations of WebUser.

    Install:
    - To use it, it is enough to create the directory “/assets/snippets/webuserinfo”
    - Unzip files and to place them in this directory
    - To create the snippet “WebUserInfo” and to place the contents of the file “snippet.webuserinfo.php”

    To place the code [!WebUserInfo!] in the document of reception of WebUser.

    Option:
    - &tpl = [ text ] : name of the chunk to use as the webuserinfo template
    - $snipPath = [ text ] : path of the folder to install a webuserinfo snippet
    Default: "assets/snippets/webuserinfo/"
    - &lang = [ text ] : Language to use [ english | french ] (you can add more by your self, see english.inc.php for example)


    todo:
    - To allow to modify informations by the WebUser

    Last edit : change word ’repertory’ by ’directory’
      Marc
      I'm French... Sorry for my bad English, I use ' Google Translator' or other... but that remains that tools wink
      • 2762
      • 1,198 Posts
      Nicola (Banzai) Reply #2, 20 years ago
      Tested - works great wink
        Free MODx Graphic resources and Templates www.tattoocms.it
        -----------------------------------------------------

        MODx IT  www.modx.it
        -----------------------------------------------------

        bubuna.com - Web & Multimedia Design
        • 2762
        • 1,198 Posts
        Nicola (Banzai) Reply #3, 20 years ago
        Quote from: Marc at Sep 03, 2006, 07:07 AM


        ......


        todo:
        - To allow to modify informations by the WebUser


        Should be nice to have the possibility to display and change the user photo grin
          Free MODx Graphic resources and Templates www.tattoocms.it
          -----------------------------------------------------

          MODx IT  www.modx.it
          -----------------------------------------------------

          bubuna.com - Web & Multimedia Design
          • 18219
          • 826 Posts
          Quote from: banzai at Sep 03, 2006, 07:51 AM

          Should be nice to have the possibility to display and change the user photo grin
          You can display user photo with this placeholder [+photo+] (in a balise <img src=[+photo+]... /> ) but you can’t change for a moment wink.
            Marc
            I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
            • 2762
            • 1,198 Posts
            Nicola (Banzai) Reply #5, 20 years ago
            Thanks Marc smiley works







            .....another little question grin:

            the placeholder [+gender+] diplay the numeric value (1,2) instead male or female.

            Thanks again wink
              Free MODx Graphic resources and Templates www.tattoocms.it
              -----------------------------------------------------

              MODx IT  www.modx.it
              -----------------------------------------------------

              bubuna.com - Web & Multimedia Design
              • 18219
              • 826 Posts
              Yes, I know this point. I will hold account for the next version of it.
              There exists some bugs: If the chunk is blank I do not have an error message.
              Thank for tests.
                Marc
                I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                • 21475
                • 80 Posts
                Thx, works great smiley
                Can’t wait to have the possibility to modify infos!
                Thx a lot laugh
                  • 2762
                  • 1,198 Posts
                  Nicola (Banzai) Reply #8, 20 years ago
                  any update for this nice snippet? smiley
                    Free MODx Graphic resources and Templates www.tattoocms.it
                    -----------------------------------------------------

                    MODx IT  www.modx.it
                    -----------------------------------------------------

                    bubuna.com - Web & Multimedia Design
                    • 18219
                    • 826 Posts
                    I must finish a site for my customer then I work on this snippet. There remain to me 2 to 3 working days wink
                      Marc
                      I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                      • 2762
                      • 1,198 Posts
                      Nicola (Banzai) Reply #10, 20 years ago
                      Quote from: Marc at Sep 11, 2006, 10:08 AM

                      I must finish a site for my customer then I work on this snippet. There remain to me 2 to 3 working days wink

                      Good news! thanks Marc wink
                        Free MODx Graphic resources and Templates www.tattoocms.it
                        -----------------------------------------------------

                        MODx IT  www.modx.it
                        -----------------------------------------------------

                        bubuna.com - Web & Multimedia Design