Da-Vinci
02-09-2011, 12:52 PM
Hi I've been trying to add some buttons to the right hand side of the postbit_legacy template in post 1, similar to VB.org in the Mods section.
I've installed the plugin, First Post On All Pages (https://vborg.vbsupport.ru/showthread.php?t=239282&page=4).
Which gives the option to use a custom template.
https://vborg.vbsupport.ru/attachment.php?attachmentid=115891&d=1271477494
First off I made a new custom template by simply copying the postbit_legacy template.
Next I added this to my additional.css template. (Also tried adding it to vbulletin.css and postbit.css)
.options
{
float:right;
text-align:center;
width:220px;
padding:10px;
border:5px solid gray;
margin:0px;
}
Hoping for a box floated on the right hand side of the first post.
then added this code into my new postbit_legacy_new template.
<div class="options">
<ul>
<li><a href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}">Thank the Poster</a>
</li>
<li><a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&noquote=1"
class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a></li>
</ul>
</div>
I may have got the location of the above code wrong in the template, but basically what happened was the 2 buttons were dropped below the post text and were aligned to the left, rather than the right also the Reply To Thread button displayed as the Closed Thread button.
https://vborg.vbsupport.ru/attachment.php?attachmentid=126546&stc=1&d=1297262897
I was also trying to use that are generated for Closed Thread Post New Thread and Reply To thread which I would still prefer to use, but I can always make some buttons to use if this is not an option..
Anyway, I hope I've explained myself properly and hope somebody can point me in the right direction to get this right.
Regards
I've installed the plugin, First Post On All Pages (https://vborg.vbsupport.ru/showthread.php?t=239282&page=4).
Which gives the option to use a custom template.
https://vborg.vbsupport.ru/attachment.php?attachmentid=115891&d=1271477494
First off I made a new custom template by simply copying the postbit_legacy template.
Next I added this to my additional.css template. (Also tried adding it to vbulletin.css and postbit.css)
.options
{
float:right;
text-align:center;
width:220px;
padding:10px;
border:5px solid gray;
margin:0px;
}
Hoping for a box floated on the right hand side of the first post.
then added this code into my new postbit_legacy_new template.
<div class="options">
<ul>
<li><a href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}">Thank the Poster</a>
</li>
<li><a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&noquote=1"
class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a></li>
</ul>
</div>
I may have got the location of the above code wrong in the template, but basically what happened was the 2 buttons were dropped below the post text and were aligned to the left, rather than the right also the Reply To Thread button displayed as the Closed Thread button.
https://vborg.vbsupport.ru/attachment.php?attachmentid=126546&stc=1&d=1297262897
I was also trying to use that are generated for Closed Thread Post New Thread and Reply To thread which I would still prefer to use, but I can always make some buttons to use if this is not an option..
Anyway, I hope I've explained myself properly and hope somebody can point me in the right direction to get this right.
Regards