Announcement

Collapse
No announcement yet.

Photo in profile ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Photo in profile ?

    Has anyone succesfully added the facility for a user to add a photo to their user's profile ? If so, how did you handle this ?

  • #2
    http://www.edevboards.com had it in 1.1x... and soon to put it into 2.0

    I had it on my board when it was 1.15 as well...
    But I'm not at liberty to tell... sorry

    Comment


    • #3
      It is in v2 as well
      http://www.edevboards.com/member.php...tinfo&userid=2

      Here is how I did it:
      Add a custom profile field for URL to picture.
      Just above this line in member.php:
      PHP Code:
      eval("dooutput(\"".gettemplate("getinfo")."\");"); 
      Add this:
      PHP Code:
      if ($userinfo[field8] == "") {
          
      $getinfo[picture] = "No Picture Available";
      } else {
          
      $getinfo[picture] = "<img src=\"$userinfo[field8]\" height=150>";

      Replacing field8 with whatever ID your field is. Then put $getinfo[picture] in the template somewhere.

      Hope that helps

      Comment


      • #4
        That guy on the pic looks familiar......It's me!

        Anyway I'd suggest you also add <a href....></a> to it so users can click on it so they can view the full non resized version of it...

        Comment


        • #5
          Wonderful Thanks James, i'll see if I can't get this up and running on 10 Tenths soon

          Comment


          • #6
            No Problem!

            Comment


            • #7
              Oh, excellent! I tried adding a new profile field, but it corrupted my database and gave me the following error:

              Database error in vBulletin Control Panel: Invalid SQL: INSERT INTO profilefield (profilefieldid,tit
              le,description,required,hidden,maxlength,size) VALUES (NULL,'Photograph URL','Why not post a
              photograph of yourself in your profile page ? (optional)',0,0,'100','100','')
              mysql error: Column count doesn't match value count at row 1
              mysql error number: 1136
              Date: Sunday 04th of March 2001 09:56:48 PM
              Script: /vb/admin/profilefield.php
              Referer: http://www.ten-tenths.com/vb/admin/p...?s=&action=add
              Now what ?

              Comment


              • #8
                i am quite keen but to include this in the database as well like avatars. I guess this is going to be a bit harder to do ... ):
                Christopher Padfield
                Web Based Helpdesk
                DeskPRO v3.0.3 Released - Download Demo Now!

                Comment


                • #9
                  That is something that I really hope Jelsoft will include in 2.01 - at least have it so there's the option there...

                  Comment


                  • #10
                    I might make a hack after v2 final is out for inclusion in the db.
                    Craig --> that is a bug - freddie posted a fix for it somewhere in the bugs forum.

                    Comment


                    • #11
                      huh? Isn't this a feature of 2.0?

                      Comment


                      • #12
                        No v2 has an Avatars feature - this is for a much larger picture. See the link I provided to my boards above for an example

                        Comment


                        • #13
                          Thanks James - i'll take a look for that fix.

                          I like the sound of that hack...

                          You mention Avatars though... possibilities there - our site does not and will not use them - i'll have to look into them a bit more

                          Comment


                          • #14
                            Originally posted by Craig Antill
                            You mention Avatars though... possibilities there - our site does not and will not use them - i'll have to look into them a bit more
                            We use the avatar feature and the only "avatars" allowed are photo profile pictures 65x65 pixels wide. If someone uses something that isn't a picture of themself, we delete it. It works really great with our getinfo template (I customized it quite a bit)

                            Comment


                            • #15
                              Craig
                              You could just turn on custom avatars and remove the image info from postbit. The avatars would then only show up on the user's profile and you would have what you were wanting.

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X