Log in

View Full Version : Show Thread Enhancements - eTiKeT? 2015 Style Postbit - Postbit_legacy


eTiKeT?
12-01-2015, 10:00 PM
/#########################################/
/# Orijinal : eTiKeT? 2015 Style Postbit - Postbit_legacy (http://vbulletin.web.tr/showthread.php/6785-eTiKeTTM-2015-Style-Postbit-Postbit_legacy)
/# Developer: eTiKeT?
/# vBulletin Version : 4.2.3
/# Version : 1.1.0
/# Published : 2015
/# Demo :http://vbulletin.web.tr
/#########################################/

https://vborg.vbsupport.ru/attachment.php?attachmentid=153746&d=1449051252


Explanation;
=============What is this Postbit for ? The only reason for the creation of this Postbit is to change the style of the Default Vbulletin Postbit into the one which ,i believe , looks much better.Caution !
=============This Postbit is designed complately based on the Vbulletin Default Postbit. Thus , it does not support extra added features!. If you have a forum which includes such extra features, I will explain how to add them into postbit in the thread. But it is your job to apply it.

If you install it carefully by following to instructions, there would not be any issue

If you have a Custom Designed Postbit, I would highly recommend to take its backup.
Installation
=============
Step 1. Open postbit_ip is your theme template and replace it with the following codes in.
<vb:if condition="$show['ip']">
<div class="vw-buton-sagsinir">
<img class="inline" src="{vb:stylevar imgdir_button}/ip-40b.png" alt="{vb:rawphrase ip}" title="{vb:rawphrase ip}: {vb:raw post.ip}" /></div>
<vb:else />
<div class="vw-buton-sagsinir">
<a class="fa-ikon fa-ikon-sinir fa-warning fa-location-arrow ip" href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=getip&amp;p={vb:raw post.postid}" title="{vb:rawphrase ip}: {vb:raw post.ip}">&nbsp;
</a>
</div>
</vb:if>

Step 2. Open postbit_onlinestatus is your theme template and replace it with the following codes in.



<vb:if condition="$onlinestatus==0">
<i class="fa-ikon fa-ikon-sinir fa-circle wv-offline" title="{vb:rawphrase x_is_offline, {vb:raw user.username}}"></i>
<vb:elseif condition="$onlinestatus==1" />
<i class="fa-ikon fa-ikon-sinir fa-circle wv-online" title="{vb:rawphrase x_is_online_now, {vb:raw user.username}}"></i>
<vb:elseif condition="$onlinestatus==2" />
<i class="fa-ikon fa-ikon-sinir fa-circle wv-invisible" title="{vb:rawphrase x_is_invisible, {vb:raw user.username}}"></i>
</vb:if>

Step 3.If you use blog !
Open blog_postbit_blog_this_post is your theme template and replace it with the following codes in.


<div class="vw-buton-sagsinir">
<a class="fa-ikon fa-ikon-sinir fa-clone blog" href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog_post.php?{vb:raw session.sessionurl}do=newblog&amp;p={vb:raw post.postid}"> {vb:rawphrase blog_this_post}</a></div>

Step 4. Open then postbit_legacy of the same theme, replace all the codes with the ones below:
postbit_legacy.txt (available in the attachment)Step 5. Open then additional.css of the same theme, replace all the codes with the ones below:
additional.css (available in the attachment)Step 6:Download the attachment, And upload the folder named postbit_font to the forum_root


For Turkish: eTiKeT? 2015 Style Postbit - Postbit_legacy (http://vbulletin.web.tr/showthread.php/6785-eTiKeTTM-2015-Style-Postbit-Postbit_legacy)
Thanks if you are using the system (https://vborg.vbsupport.ru/showpost.php?p=2559592&postcount=2)


Mark as Installed

eTiKeT?
12-02-2015, 08:18 AM
Thanks if you are using the system.
================================== Step 1. Open post_thanks_button template of your default theme, replace all the codes with the ones below :
<a href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&amp;p={vb:raw post.postid}&amp;securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groans_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="fa-ikon fa-ikon-sinir fa-thumbs-o-up post_thanks_button ">{vb:rawphrase post_thanks_thanks}</a>

<span class="seperator" id="post_thanks_separator_{vb:raw post.postid}" <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if>>&nbsp;</span>
Step 2.Open post_thanks_postbit template of your default theme, replace all the codes with the ones below :
<div class="postbody"<vb:if condition="$vboptions['legacypostbit']"> style="margin-{vb:stylevar left}: 0"</vb:if>>
<div class="postrow">
<vb:if condition="$bbuserinfo['usergroupid'] == 5 || $post['show_thanks_remove_option']">
<div class="smallfont" style="float:{vb:stylevar right}">
<vb:if condition="$bbuserinfo['usergroupid'] == 5">
<a href="post_thanks.php?do=post_thanks_remove_all&amp;p={vb:ra w post.postid}"<vb:if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_all({vb:raw post.postid}, <vb:if condition="$vboptions['post_groans_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove}</a>
</vb:if>
<vb:if condition="$bbuserinfo['usergroupid'] == 5 && $post['show_thanks_remove_option']">
|
</vb:if>
<vb:if condition="$post['show_thanks_remove_option']">
<a href="post_thanks.php?do=post_thanks_remove_user&amp;p={vb:r aw post.postid}"<vb:if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user({vb:raw post.postid}, <vb:if condition="$vboptions['post_groans_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove_user}</a>
</vb:if>
</div>
</vb:if>
<h2 class="<vb:if condition="!$vboptions['legacypostbit']">post</vb:if>title">
<vb:if condition="$post['post_thanks_amount'] == 1">
<i class="fa-ikon fa-ikon-sinir fa-thumbs-o-up vw-bigikon "></i> {vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
<vb:else />
<i class="fa-ikon fa-ikon-sinir fa-thumbs-o-up vw-bigikon "></i>{vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
</vb:if>
</h2>
<!--COLLAPSE-->
<vb:if condition="$vboptions['collapse_on']==0">

<div class="content">
<div class="post_thanks_bit_{vb:raw post.postid}">
<blockquote class="postcontent restore">
{vb:raw post.post_thanks_bit}
</blockquote>
</div>
</div>
</div>
</div>
<hr />

</vb:if>

<vb:if condition="$vboptions['collapse_on']==1">
<style type="text/css">
.msg_head {
padding: 5px 10px;
cursor: pointer;
position: relative;
margin:1px;
}
</style>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
//hide the all of the element with class msg_body
$(".post_thanks_bit_{vb:raw post.postid}").hide();
//toggle the componenet with class msg_body
$(".msg_head").click(function()
{
$(this).next(".post_thanks_bit_{vb:raw post.postid}").slideToggle(600);
});
});
</script>
<div class="content">
<p class="msg_head"><img src="{vb:raw vboptions.bburl}/images/misc/collapse.jpg"</p>
<div class="post_thanks_bit_{vb:raw post.postid}">
<blockquote class="postcontent restore">
{vb:raw post.post_thanks_bit}
</blockquote>
</div>
</div>
</div>
</div>
<hr /></vb:if>
<!--END COLLAPSE-->
Step 3.Open post_thanks_postbit_info template of your default theme, replace all the codes with the ones below :

<vb:if condition="$post['userid']">
<!-- Thanks -->
<vb:if condition="$post['post_thanks_thanked_times'] == 1">
<tr><td class="legacystats"> <dt>Thanked:</dt><dd> 1</dd> </td></tr>
<vb:else />
<tr><td class="legacystats"><dt>Thanked</dt><dd> {vb:raw post.post_thanks_thanked_times}</dd></td></tr>
</vb:if>
<!-- /Thanks -->
</vb:if>

nookta
12-02-2015, 04:35 PM
Good ;) thank you @eTiKeT™

netr0n
12-02-2015, 11:33 PM
Perfect postbit. Thank you bro. :)

socialteenz
12-04-2015, 05:35 AM
Glad to see people still contributing, thank you bro. Your post bit were the favorites of my clients.

Rodrigo.
12-13-2015, 04:16 PM
Hello work IN vb 4.2.0????

Dave
12-13-2015, 05:07 PM
Hello work IN vb 4.2.0????

As far as I know, vBulletin didn't really make a lot of changes regarding the userinfo postbit across the different versions. So yes, it should work fine. Worst case scenario you have to revert the changes.

elsa23
02-16-2017, 01:33 PM
Thank you @eTiKeT?
Can you please make changes for DBTech Post Thanks https://vborg.vbsupport.ru/external/2017/04/2.gif
https://vborg.vbsupport.ru/showthread.php?t=243510

seb5594
03-15-2017, 08:56 AM
Thank you eTiKeT for this postbit.

Edit: Would also like to know how to integrate the DBTech Advanced Post Thanks / Likes Buttons into this postbit

seb5594
04-08-2017, 10:44 PM
Thank you @eTiKeT?
Can you please make changes for DBTech Post Thanks https://vborg.vbsupport.ru/external/2017/04/2.gif
https://vborg.vbsupport.ru/showthread.php?t=243510

I tried to implement DBTech's Advanced Post Thanks Like into this postbit. I tried my best and thats the result:

https://vborg.vbsupport.ru/external/2017/04/14.png

I don't know how to add hover effect, which is used for all the other controls, but i hope someone else know how :rolleyes:

Edit following template: dbtech_thanks_postbit_entries_actionbit
Replace everything with that:

<span class="dbtech-thanks-button-control fa-ikon fa-ikon-sinir modera-ikon post_thanks_button" data-postid="{vb:var post.postid}" data-button="{vb:raw button.varname}" style="height:26px;" >
<a href="javascript://" <vb:if condition="$button['canclick']"> border-right: 1px solid rgba(127, 127, 127, 0.3); name="dbtech_thanks_button" data-postid="{vb:var post.postid}" data-button="{vb:raw button.varname}"</vb:if> style="background:url({vb:raw button.buttonimage}) no-repeat scroll transparent !important; height:26px; margin:0; padding:0 0 0 20px; vertical-align:middle;<vb:if condition="!$button['canclick']">cursor:default;</vb:if><vb:if condition="!$show['thanks_posfix']">padding-{vb:stylevar right}:4px;</vb:if>" title="{vb:raw button.title}">
<vb:if condition="!$vboptions['dbtech_thanks_notext'] AND $button['canclick']"> {vb:raw phrase}</vb:if>
</a>
<vb:if condition="$vboptions['dbtech_thanks_cloud_displaystyle'] == 2">
<span class="dbtech-thanks-bubble-flyout">
<!--<i></i>
<u></u>-->
<span class="dbtech-thanks-bubble-content clickcount" data-button="{vb:var button.varname}" data-postid="{vb:var post.postid}">{vb:number {vb:raw button.clickcount}}</span>
</span>
</vb:if>
</span>


If somebody can improve it, feel free to share it with us :D