Log in

View Full Version : How Do I Get These extra Buttons?


john_robot
04-07-2006, 01:48 PM
Hi, I need some help with the extra buttons ( I already have buttons designed ) but not sure how to enable them with the VB
please check the sample image of the button system that I am talking about,

http://itsexpired.com/buttonset.gif

please guide me to enable it or do I have to do custom coding for this ?

let me know
Thank you

peterska2
04-07-2006, 01:53 PM
Those will be custom buttons for that site. The only way that you will get non-default buttons is to open photoshop, or other graphics package, and make your own, or pay someone else to make some for you.

john_robot
04-07-2006, 02:11 PM
Hi, Thank you but did you read my post ? I already have buttons designed
But no idea how to enabel them

peterska2
04-07-2006, 02:17 PM
Sorry, my bad. I totally misread it.

Save all the buttons as the same file name as the corresponding default ones, then you have two choices depending on your setup.

1. Overwrite the existing images on your server with the new ones; or
2. Create a new directory for the buttons, copy any remaining default ones into this new directory, upload your custom ones to there, and the in the Style Manager > All Style Settings set the path to the location of the new buttons directory (eg from images/buttons/ to myimages/buttons/).

If you use the first option, then you will need to omit to upload the images directories on future upgrades of vBulletin, and just upload any new images otherwise you will revert the images back to the default ones.

Again, sorry for the confusion, I just totally misread your post at first.

The modifications that you will need to your postbit_legacy template are as follows.

1. Find
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
Replace With<!-- buttons edit - colspan="2" -->
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" colspan="2">
<else />
<td class="alt1" id="td_post_$post[postid]" colspan="2">
</if>
<!-- buttons edit end -->


2. Find <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
&nbsp;
</td>Add Below<!-- buttons start -->
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[left]">
<else />
<td class="alt1" align="$stylevar[left]">
</if>
<if condition="$show['profile']">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$stylevar[imgdir_button]/profile.gif" alt="$vbphrase[view_public_profile]" border="0" /></a>
</if>
<if condition="$show['pmlink']">
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="$vbphrase[send_private_message_to_x]" border="0" /></phrase></a>
</if>
<if condition="$show['emaillink']">
<a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]"><img src="$stylevar[imgdir_button]/email.gif" alt="$vbphrase[send_email_to_x]" border="0" /></phrase></a>
</if>
<if condition="$show['homepage']">
<a href="$post[homepage]"><phrase 1="$post[username]"><img src="$stylevar[imgdir_button]/home.gif" alt="$vbphrase[visit_xs_homepage]" border="0" /></phrase></a>
</if>
<if condition="$show['search']">
<a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]"><img src="$stylevar[imgdir_button]/find.gif" alt="$vbphrase[find_more_posts_by_x]" border="0" /></phrase></a>
</if>
<if condition="$post['userid'] AND $show['member']">
<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]"><img src="$stylevar[imgdir_button]/buddy.gif" alt="$vbphrase[add_x_to_buddy_list]" border="0" /></phrase></a>
</if>


</td>
<!-- buttons end -->


Make sure that your images are called
profile.gif
sendpm.gif
email.gif
find.gif
home.gif
buddy.gif

Any problems, let me know.