PDA

View Full Version : New postbit buttons for IP, Report



JJR512
Sat 11th Aug '01, 2:21pm
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:

<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:

<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:

<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:

<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/showthread.php?s=&threadid=22075


(Make sure to remove the spaces from inside the "{ imagesfolder }" bits!)

JJR512
Sat 11th Aug '01, 2:23pm
Of course I forgot to actually attach the file. d'Oh! :D

Eternal_Dragon
Sat 11th Aug '01, 3:15pm
cool man that looks sweet

ill try it out!

thanx!

Sinecure
Wed 28th Nov '01, 9:35pm
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!

LuBi
Sat 1st Dec '01, 9:50am
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!

Kaizen
Sat 1st Dec '01, 1:02pm
Hey JJR512

I really think you should enter your site in the monthly "best site" competition - I would definately second it.

FWC
Wed 5th Dec '01, 1:20am
Originally posted by JJR512
(Make sure to remove the spaces from inside the "{ imagesfolder }" bits!) Whoops, forgot that the first time through. :)