Announcement

Collapse
No announcement yet.

[release vB 2.0.3] Signature Image System

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

  • [release vB 2.0.3] Signature Image System

    Signature Image Management System (file based)

    Updated: 2 Oct 2001, 2:24:06 AM BST

    This hack allows users to upload a image or images that they can then use as part of the thier signature. All uploaded images are private to the user that uploaded them.

    The hack requires that you have PHP 4.0.3 or newer for the upload functions to work correctly.
    The scripts can if enabled also prevent users from externally linking to the images they uploaded, please note this is done by HTTP_REFERER checking not all http servers or browsers support this however is more widely supported than Apache's mod_rewrite. Should you wish to stop deep linking then upload a image called badcontent.gif to your forums directory.

    Further more instructions are provided in how to get this hack to work if you are using vBulletin's standard sig editor or a advanced sig editor hack.

    Users of vBulletin's standard sig editor should follow the instructions in install_vbstandard.txt

    Users of a advanced sig editor should follow the instructions in install_advancededitor.txt

    Version 1.3 Updates
    - fixed display bug
    - added removal script to main package
    - added test template set


    Version 1.11 Updates
    - Image width & height checking
    - Extension checking
    - More useful error messages
    - Added a missing function

    Current Version 1.3
    Released 20th sept 2001

    Requirements:
    - vBulletin 2.0.3
    - PHP 4.0.3+ (this hack has not been tested on PHP 3.0.17, it may or may not work)

    Optional:
    - HTTP Server that supports HTTP_REFERER, (Apache 1.2+, IIS 4+)
    - badcontent.gif in your forum directory


    Screenshots can be found in the zip file.
    Last edited by dabean; Mon 1 Oct '01, 5:29pm.

  • #2
    Cool! But could you add support for mod_rewrite? Maybe have an option for one or the other in the Admin CP...or a seperate .php file and install file for each?
    Seriously! - The Definitive Home of All Things Serious
    Seriously! Forums

    To recieve support on these forums, enter your username here.

    Comment


    • #3
      umm, if you want to use mod_rewrite there is nothing stopping you just turn on the image serving option which disables the builtin referer checking and add sig.php to your mod_rewrite ruleset.

      Comment


      • #4
        When I wrote that I was a bit tired from classes...forgot how mod_rewrite worked, lol. Alroght, so that answers how to do it...just enable image serving
        Seriously! - The Definitive Home of All Things Serious
        Seriously! Forums

        To recieve support on these forums, enter your username here.

        Comment


        • #5
          The thing I was always concerned with giving the users the ability to show images in their signatures was the size of the image.

          Is there a way to use php to use the GD library to re-size the images to a default size?
          PaintballCity.com
          VB Board of the Month: October

          Comment


          • #6
            have error....

            cant even start the install script..

            Parse error: parse error in c:\program files\nusphere\apache\htdocs\upload\admin\sinstall.php on line 37

            this is the line
            $DB_site->query("INSERT INTO setting VALUES ( NULL, '60', 'Number of images stored per member', 'sigimagesstored', '2', 'The number of uploadable images that are to be stored for each member', '3', '1');");

            Comment


            • #7
              ack. I've fixed the install script and updated the zip file redownload it.

              The fixed version has sinstall.php dated: 21 September 2001, 03:26:32 AM

              Comment


              • #8
                same problem

                Parse error: parse error in /home/httpd/www/forums/admin/sinstall.php on line 37

                Comment


                • #9
                  Re: same problem

                  Originally posted by tkhjosh
                  Parse error: parse error in /home/httpd/www/forums/admin/sinstall.php on line 37
                  download the updated version, check it is the updated version by A) checking the time stamp on sinstall.php in winzip is 21 September 2001, 03:26:32 AM.

                  B) That the instructions have the version number 1.01

                  Comment


                  • #10
                    Re: [release vB 2.0.3] Signature Image System

                    Originally posted by dabean
                    Signature Image Management System (file based)

                    Updated: 21 Sep 2001, 03:26:32 AM BST

                    This hack allows users to upload a image or images that they can then use as part of the thier signature. All uploaded images are private to the user that uploaded them.

                    The hack requires that you have PHP 4.0.3 or newer for the upload functions to work correctly.
                    The scripts can if enabled also prevent users from externally linking to the images they uploaded, please note this is done by HTTP_REFERER checking not all http servers or browsers support this however is more widely supported than Apache's mod_rewrite. Should you wish to stop deep linking then upload a image called badcontent.gif to your forums directory.

                    Further more instructions are provided in how to get this hack to work if you are using vBulletin's standard sig editor or a advanced sig editor hack.

                    Users of vBulletin's standard sig editor should follow the instructions in install_vbstandard.txt

                    Users of a advanced sig editor should follow the instructions in install_advancededitor.txt

                    Version 1.01
                    Released 20th sept 2001

                    Requirements:
                    - vBulletin 2.0.3
                    - PHP 4.0.3+ (this hack has not been tested on PHP 3.0.17, it may or may not work)

                    Optional:
                    - HTTP Server that supports HTTP_REFERER, (Apache 1.2+, IIS 4+)
                    - badcontent.gif in your forum directory


                    Screenshots can be found in the zip file.

                    i downloaded from here but it does not work.

                    Comment


                    • #11
                      *sigh*

                      I've downloaded the zip myself to check the installer works fine it does.
                      Firstly delete the orginal sinstall.php from wherever you exracted and then from the server you uploaded it to. Now extract sinstall.php from the zip file then upload the new freshly extracted file.

                      If you still can't get it to work then download the file I've attatched to this post. This file is identical to installer in the zip file in allmost all repects (the page title is different is the only change).

                      Comment


                      • #12
                        I get an javascript error when I click on the image which I have uploaded:

                        Line 305:
                        Char: 2
                        Error: 'document.vbforum.message' is null or not an object
                        Code: 0
                        Refer: my site.


                        :/

                        Any ideas?
                        HP DL-380 G6, 2x E5520, 28GB RAM, 4x300GB SAS, VMWare ESXi
                        -
                        Unreal Tournament : Assault forums - irc://irc.utassault.net:6667 -

                        Comment


                        • #13
                          ack. Your using the standard sig editor right?

                          In the tamplate "sigimage_popup_images" change
                          PHP Code:
                          opener.document.vbform.message.value += "[img]sig.php?imageid="+sigtext+"[/img]"
                          to
                          PHP Code:
                          opener.document.vbform.signature.value += "[img]sig.php?imageid="+sigtext+"[/img]"
                          and in the "modifyprofile" template
                          PHP Code:
                              document.vbform.message.value += "[img]sig.php?imageid="+sigtext+"[/img]"
                              
                          document.vbform.message.focus(); 
                          to
                          PHP Code:
                              document.vbform.signature.value += "[img]sig.php?imageid="+sigtext+"[/img]"
                              
                          document.vbform.signature.focus(); 
                          The zip file has been updated to refect these changes.

                          Comment


                          • #14
                            how does it save the images?
                            based on username, or original file name?
                            what pervents users from large images, or large file sizes?
                            MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

                            Comment


                            • #15
                              Yeah mate, I a using the standard editor - I still get the Javascript error after making the changes above too
                              [quote']document.vbform.sigature' is null or is not an object[/quote]
                              HP DL-380 G6, 2x E5520, 28GB RAM, 4x300GB SAS, VMWare ESXi
                              -
                              Unreal Tournament : Assault forums - irc://irc.utassault.net:6667 -

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X