Announcement

Collapse
No announcement yet.

[RELEASE vB2.0] Custom Avatars as Files

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

  • #61
    Tried to install into Final Release... but got stuck while editing functions.php....

    The lines to replace are not matching the installation description....

    Will there be any update on the hack for the Final????

    It would be really nice to get it working, currently Avatars on our Forums are disabled due to traffic but i'd like to offer this to our users.

    Comment


    • #62
      Originally posted by Kier
      Yes, All avatar options that are present when using the standard mySQL avatar system are still present

      where would you change the max size at?

      Comment


      • #63
        Originally posted by Sven
        Tried to install into Final Release... but got stuck while editing functions.php....

        The lines to replace are not matching the installation description....

        Will there be any update on the hack for the Final????

        Yeah, I would like to know the instructions for installing into 2.0 Gold as well. Can anyone help?

        Comment


        • #64
          just wanted to note works dandy with the 2.0.0 release. read to re-tweak the files but all is happy once again.

          Great Hack, many thanks

          http://forums.sobservers.com

          Comment


          • #65
            Hey PeterS, cool site! where did you get that cool news fader?

            Comment


            • #66
              is it difficult to implement avatar categories?

              sorry if i'm off topic,
              but i was wondering..
              if i have lets say 600 avatars
              wouldn't it be nice to have categories like:
              Male avatars,
              female avatars
              simpson avatars
              ,,,, avatars..

              with about 80 each...

              would be user and server friendly...

              or am I wrong???

              Luc

              Comment


              • #67
                What are the ramifications -- I am a Newbie owner of VB

                If I install this hack for example, what are the risks? I assume if a 2.1 version came out I would have to reinstall? Would it affect say converting from 2.0 to 2.1 down the road?

                Sorry if this is a dumb question. I just don't want to sprint before I walk with VB.

                Comment


                • #68
                  as announced in the Suggestions & Feedback Thread the Hack will be part of the next version....

                  But still:
                  I need some Instructions for this hack to get it installed in vB2.0.0...
                  Is there anybody who successfully installed it in the final release and could tell me what to do?

                  Comment


                  • #69
                    Me too!

                    Ditto...I would like to install it into V2.0 final.

                    Comment


                    • #70
                      Originally posted by PeterS
                      just wanted to note works dandy with the 2.0.0 release. read to re-tweak the files but all is happy once again.

                      Great Hack, many thanks

                      http://forums.sobservers.com
                      great the next hack i need to add
                      :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                      :: Nginx SPDY SSL - World Flags Demo [video results]
                      :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                      Comment


                      • #71
                        What does Read to re-tweak mean?

                        Comment


                        • #72
                          Can someone..

                          Answer Sven and my questions? Thanks.

                          Comment


                          • #73
                            So here's a bit of the problem:
                            admin/functions.php as per instructions:
                            PHP Code:
                            function getavatarurl($userid) {
                              global 
                            $DB_site,$session;

                              if (
                            $avatarinfo=$DB_site->query_first("SELECT user.avatarid,avatarpath,NOT ISNULL(avatardata) AS hascustom FROM user LEFT JOIN avatar ON avatar.avatarid=user.avatarid LEFT JOIN customavatar ON customavatar.userid=user.userid WHERE user.userid='$userid'")) {
                                if (
                            $avatarinfo[avatarpath]!="") {
                                  return 
                            $avatarinfo[avatarpath];
                                } else if (
                            $avatarinfo['hascustom']) {
                                  return 
                            "avatar.php?s=$session[sessionhash]&userid=$userid"

                            admin/functions.php in vB2.0.0 Final Release:
                            PHP Code:
                            function getavatarurl($userid) {
                              global 
                            $DB_site,$session;

                              if (
                            $avatarinfo=$DB_site->query_first("SELECT user.avatarid,avatarpath,NOT ISNULL(avatardata) AS hascustom,customavatar.dateline
                                                                     FROM user
                                                                     LEFT JOIN avatar ON avatar.avatarid=user.avatarid
                                                                     LEFT JOIN customavatar ON customavatar.userid=user.userid
                                                                     WHERE user.userid='
                            $userid'")) {
                                if (
                            $avatarinfo[avatarpath]!="") {
                                  return 
                            $avatarinfo[avatarpath];
                                } else if (
                            $avatarinfo['hascustom']) {
                                  return 
                            "avatar.php?userid=$userid&dateline=$avatarinfo[dateline]";
                                } else {
                                  return 
                            '';
                                }
                              }

                            You see that tiny differences?
                            So is there anyone out there who could tell me what to do?

                            Comment


                            • #74
                              tx Kier
                              works with 2.0.0 release also

                              functions.php

                              find:

                              PHP Code:
                              function getavatarurl($userid) {
                                global 
                              $DB_site,$session;

                                if (
                              $avatarinfo=$DB_site->query_first("SELECT user.avatarid,avatarpath,NOT ISNULL(avatardata) AS hascustom,customavatar.dateline
                                                                       FROM user
                                                                       LEFT JOIN avatar ON avatar.avatarid=user.avatarid
                                                                       LEFT JOIN customavatar ON customavatar.userid=user.userid
                                                                       WHERE user.userid='
                              $userid'")) {
                                  if (
                              $avatarinfo[avatarpath]!="") {
                                    return 
                              $avatarinfo[avatarpath];
                                  } else if (
                              $avatarinfo['hascustom']) {
                                    return 
                              "avatar.php?userid=$userid&dateline=$avatarinfo[dateline]";
                                  } else {
                                    return 
                              '';
                                  }
                                }

                              replace with:

                              PHP Code:
                              function getavatarurl($userid) {
                                global 
                              $DB_site,$session,$usefileavatar;


                                if (
                              $avatarinfo=$DB_site->query_first("SELECT user.avatarid,avatarpath,avatarrevision,NOT ISNULL(avatardata) AS hascustom,customavatar.dateline
                                                                       FROM user
                                                                       LEFT JOIN avatar ON avatar.avatarid=user.avatarid
                                                                       LEFT JOIN customavatar ON customavatar.userid=user.userid
                                                                       WHERE user.userid='
                              $userid'")) {
                                  if (
                              $avatarinfo[avatarpath]!="") {
                                    return 
                              $avatarinfo[avatarpath];
                                  if (
                              $usefileavatar) return "custom_avatars/avatar$userid"."_$avatarinfo[avatarrevision].gif";
                                          else return 
                              "avatar.php?userid=$userid";
                                  }
                                }

                              Last edited by nuno; Sun 27th May '01, 8:07am.
                              You're my Prince of Peace
                              And I will live my life for You

                              Comment


                              • #75
                                sven the code looks the same .. it just appears I got to it and broke the sql up into multiple lines which I have a habit of doing.

                                Comment

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