vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - eTiKeT? 2015 Style Postbit - Postbit_legacy (https://vborg.vbsupport.ru/showthread.php?t=320957)

eTiKeT? 12-01-2015 10:00 PM

eTiKeT? 2015 Style Postbit - Postbit_legacy
 
1 Attachment(s)
/#########################################/
/# Orijinal : eTiKeT? 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/attachmen...6&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.
PHP Code:

 <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">
         <
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.


PHP Code:

 <vb:if condition="$onlinestatus==0">
    <
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" />
            <
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" />
           <
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.

PHP Code:

 <div class="vw-buton-sagsinir">
<
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:
Code:

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

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
Thanks if you are using the system


Mark as Installed

eTiKeT? 12-02-2015 08:18 AM

1 Attachment(s)
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 :
PHP Code:

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

 <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:raw 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:raw 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">
            <
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 />
            <
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 {
    
padding5px 10px;
    
cursorpointer;
    
positionrelative;
    
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">
<
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 :

PHP Code:

 <vb:if condition="$post['userid']">
    <!-- 
Thanks -->
<
vb:if condition="$post['post_thanks_thanked_times'] == 1">
<
tr><td class="legacystats"> <dt>Thanked:</dt><dd1</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

Quote:

Originally Posted by Rodrigo. (Post 2560330)
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

Quote:

Originally Posted by elsa23 (Post 2582453)
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:
Code:

<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


All times are GMT. The time now is 06:58 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01450 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete