Announcement

Collapse
No announcement yet.

New postbit buttons for IP, Report

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

  • New postbit buttons for IP, Report

    I don't like the text links in the message that show you the IP or are used to report the post. Therefore, I've made both of them into buttons, like the buttons to edit post, quote post, etc. Also, I've moved them to the same area as the other buttons.

    I've made two new buttons in the POSTBIT BUTTONS.psd file from the vBulletin Graphics Development kit. This is a Photoshop file that will allow you to easily recolor the buttons to suit your site. The important part is that the outlines for the two new buttons are there. I've attached that file to this post.

    The process to recolor the graphic is beyond the scope of this message. You can get that info elsewhere, if you need it. In the following instructions, I have assumed you've saved the IP button as ip.gif and the report button as report.gif.

    To convert the "logged" text link (for IPs) to a button link, edit your postbit_ip_hidden template to look like this:
    PHP Code:
    <a href="postings.php?s=$session[sessionhash]&action=getip&postid=$post[postid]"><img src="{ imagesfolder }/ip.gif" border="0" alt="IP Logged"></a
    Now, to move the ip button to the same area as the edit and quote buttons, as well as to convert the report text link to the button link, you need to edit your postbit template.

    Find:
    PHP Code:
    <p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p
    And completely delete all of that.

    Further down in the template, find:
    PHP Code:
    <a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{ imagesfolder }/quote.gif" border="0" alt="Reply w/Quote"></a
    After that, add:
    PHP Code:
    <a href="report.php?s=$session[sessionhash]&postid=$post[postid]"><img src="{ imagesfolder }/report.gif" border="0" alt="Report this post to a moderator"></a>$post[iplogged
    Example: http://www.jjr512.com/forums/showthr...threadid=22075


    (Make sure to remove the spaces from inside the "{ imagesfolder }" bits!)
    -Justin "JJR512" Rebbert
    JJR512.com: Chat about anything!

  • #2
    Of course I forgot to actually attach the file. d'Oh!
    -Justin "JJR512" Rebbert
    JJR512.com: Chat about anything!

    Comment


    • #3
      cool man that looks sweet

      ill try it out!

      thanx!

      Comment


      • #4
        Just used this method, great job, worked like a charm. I made a few simple modifications like placing the ip to the right of quote and report to the left of edit. But none the less, thanks!
        Board of the Month: November
        Websites: Pixeljunction , vBulletin.org
        Button Sets: XP and Aqua Button sets! FREE!
        vB Customization: My sig is now vbulletin compliant. Contact me to make yours compliant too!

        Comment


        • #5
          Thanks I had already created a custom report button but it was plane with no icon, with this I made a nice lil button. Only problem I had was the text was a little lite in color against the stock gradient. Thanks Again!
          http://www.tchracing.com/forums/live...h_live_sig.jpg

          Comment


          • #6
            Hey JJR512

            I really think you should enter your site in the monthly "best site" competition - I would definately second it.
            Email: [email protected]
            Site: Under Construction

            Comment


            • #7
              Re: New postbit buttons for IP, Report

              Originally posted by JJR512
              (Make sure to remove the spaces from inside the "{ imagesfolder }" bits!)
              Whoops, forgot that the first time through.
              FWC
              White Sox Interactive Forums

              Comment

              Loading...
              Working...
              X