Announcement

Collapse
No announcement yet.

[RE-RELEASED vB2.0.1] Upgraded Signature-Editor w/ Preview

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

  • [RE-RELEASED vB2.0.1] Upgraded Signature-Editor w/ Preview

    Credit goes to AA and Fryzid for their original hack found here: http://www.vbulletin.com/forum/showt...threadid=12282

    HACK UPDATE:
    I have updated this hack a bit with my fix above and some other additions as you'll see below.

    Additions
    1. Adds new 'navbar' to header
    2. Adds Control Panel navbar to header
    3. Adds smilies window to signature editor
    4. Centralized Signature Limit Variable at top of script as an option.
    5. Ability to allow "Administrators" to have different siganture length.
    6. Fixes Bad_Madman's vbcode additon
    7. Cleans up HTML a bit

    Screenshot


    Directions
    The attached file contains the following new items:
    - '_editsignature' template
    - sedit.php

    Upgrading: Just replace the old template and php script with the new ones
    First Time Install: Read the modified install.txt

    07/29/01 6:19AM EST - First attachment had bad files. Please re-download.
    Last edited by VirtueTech; Sun 29 Jul '01, 3:31am.
    PaintballCity.com
    VB Board of the Month: October

  • #2
    I think your attachement isn't good ... because the file is equal to the original hack

    Comment


    • #3
      DOH!

      I updated the ZIP file please re-download.
      PaintballCity.com
      VB Board of the Month: October

      Comment


      • #4
        James,

        Nice job!
        Rob

        Comment


        • #5
          hrmmm...i cant get it to work. where exactly am i supposed to put that sedit.php file? first i had it in my public_html folder, then moved it to my forums folder, then my admin folder......???

          Comment


          • #6
            Put it again in your forum folder.

            Comment


            • #7
              got it to work....but for some reason i had to put sedit.php in my public_html folder to get it to work....not my forums folder
              Last edited by GB; Sun 29 Jul '01, 9:53am.

              Comment


              • #8
                A small additional hack for all who want replace the signature box through a link to signature editor

                NEWS
                30.07.01 ATTENTION!!! ALL PEOPLE WHO HAVE INSTALLED THE HACK HAVE TO UPDATE IT FROM THIS THREAD, OR THE SIGNATURE WILL BE BLANK, AFTER EDITING THE PROFILE

                DEMO


                HACK
                edit modifyprofile template
                Step 1
                delete link - delete <a href="sedit.php?s=$session[sessionhash]&action=show">Signature-Editor</a>

                Step 2
                if you want to replace the signature box through a text link - read Step2-a
                if you want to replace the signature box through a image link - read Step2-b (image called editor.gif should be located in your /images/ derictory)

                substep a
                replace:
                <td bgcolor="#DFDFDF"><textarea name="signature" rows="6" cols="40">$bbuserinfo[signature]</textarea>

                with:
                <td bgcolor="#DFDFDF" align="center"><inout type=hidden name="signature" value="$bbuserinfo[signature]"><a href=sedit.php?s=$session[sessionhash]&action=show>Signature Editor</a>

                substep b
                <td bgcolor="#DFDFDF"><textarea name="signature" rows="6" cols="40">$bbuserinfo[signature]</textarea>

                with
                <td bgcolor="#DFDFDF" align="center"><inout type=hidden name="signature" value="$bbuserinfo[signature]"><a href="sedit.php?s=$session[sessionhash]&action=show"><img border=0 src="./images/editor.gif"></a>


                ENYOJ
                Last edited by Stasik; Mon 30 Jul '01, 4:03am.

                Comment


                • #9
                  Thanks RobAC

                  GB - I'm not sure why you would have to do that.
                  PaintballCity.com
                  VB Board of the Month: October

                  Comment


                  • #10
                    @Stasik:
                    Don't forget to edit the update query to the database, otherwise your signatur will get blank, when you just edit the profile!!!
                    The Sisko
                    SciFi-Forum.de

                    Comment


                    • #11
                      Really nice update

                      Comment


                      • #12
                        Originally posted by The_Sisko
                        @Stasik:
                        Don't forget to edit the update query to the database, otherwise your signatur will get blank, when you just edit the profile!!!
                        ups... i`ll modify it
                        Last edited by Stasik; Mon 30 Jul '01, 3:59am.

                        Comment


                        • #13
                          New Addition - 08/01/01

                          After seeing what Stasik did with the button I wanted to it to my site, but I added
                          a little change to show the signature on the "modify profile" template along
                          with the button. This borrows code from the original sedit.php hack.

                          Check it out:


                          Here's how to do it:
                          In member.php find:
                          PHP Code:
                          $signature=htmlspecialchars($bbuserinfo[signature]); 
                          And AFTER it add:
                          PHP Code:
                          $signaturepreview=bbcodeparse($signature,0,$allowsmilies); // preview 
                          Next open your modifyprofile template

                          Replace::
                          PHP Code:
                          <tr>
                              <
                          td bgcolor="#DFDFDF" valign="top"><b><normalfont>Signature:</normalfont></b><br>
                              <
                          smallfont>Optional signature you may use to appear at bottom of your posts.</smallfont>
                                  <
                          p><smallfont>HTML code is $htmlonoff<br>
                                  <
                          a href="misc.php?s=$session[sessionhash]&action=bbcode">vB Code</Ais $bbcodeonoff<br>
                                  [
                          imgcode is $imgcodeonoff<br>
                                  <
                          a href="misc.php?s=$session[sessionhash]&action=showsmilies">Smilies</aare $smiliesonoff
                                  
                          </smallfont></p></td>
                              <
                          td bgcolor="#DFDFDF"><textarea name="signature" rows="6" cols="40">$bbuserinfo[signature]</textarea></td>
                          </
                          tr
                          With:
                          PHP Code:
                          <tr>
                              <
                          td bgcolor="#8080A6" colspan="2"><normalfont color="#EEEEFF" class="thtcolor"><b>Signature Preview</b> - </normalfont><smallfont color="white">Optional signature you may use to appear at bottom of your posts.</smallfont> </td>
                          </
                          tr>
                          <
                          tr>
                              <
                          td bgcolor="#DFDFDF" valign="top"><blockquote>$signaturepreview</blockquote></td>
                              <
                          td bgcolor="#DFDFDF" align="center"><a href="sedit.php?s=$session[sessionhash]&action=show"><img src="images/edit_sig.gif" width="122" height="23" border="0"></a></td>
                          </
                          tr
                          and copy the attached image for your "edit signature" button. If you want to change
                          the color all you need to do is "colorize" the image and change the HUE.


                          I hope you like it.
                          Last edited by VirtueTech; Thu 2 Aug '01, 9:16am.
                          PaintballCity.com
                          VB Board of the Month: October

                          Comment


                          • #14
                            That is a nice hack VirtueTech...just adding the latest addition with the button, but I get a parse error in the member.php after I add your change. This may be because I am using vB2.0.3??


                            Also, your specified colours in the template would be better off replaced with the vB colour variables ({ tableheadbgcolor}, etc) to integrate with any style set.



                            Edit...I just noticed that the vB will swap those variables for the current colour values when called from a post.....how about adding this infor to your original .zip??
                            Last edited by Phil; Mon 6 Aug '01, 2:48am.
                            TheGenomeCollective - Home ::: TheGenomeCollective - Forums

                            Comment


                            • #15
                              I have not tried this hack with vb2.0.3 yet sorry. When I upgrade I will post here.

                              As for your idea...I will add that.
                              PaintballCity.com
                              VB Board of the Month: October

                              Comment

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