vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Custom: DB Thanks/Like Mod Edit (https://vborg.vbsupport.ru/showthread.php?t=262060)

Eplexx 04-14-2011 10:00 PM

Custom: DB Thanks/Like Mod Edit
 
1 Attachment(s)
I've modded the [DBTech] Advanced Post Thanks / Like v1 (vB3) [AJAX] plugin to my personal preference. I'm posting the stuff here so others can enjoy it as well :).

What it looks like:
http://screensnapr.com/e/gA49kg.png

What you need:

[DBTech] Advanced Post Thanks / Like v1 (vB3) [AJAX]

Install the plugin above.

Template mods:

1. Add this code to additional css, the first box not the second additional css box:
Code:

}
.buttons {
display:inline;
}
.buttons a {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:9px;
font-weight:bold;
display: block;
padding:5px 21px;
background:#777777;
color:#000000;
float:left;
text-align:center;
border-top:1px solid  #000000;
border-right:1px solid #000000;
border-bottom:1px solid #000000;
border-left:1px solid #000000;
}
.buttons a:hover {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:9px;
font-weight:bold;
background:#aaaaaa;
color:#000000;
border-top:1px solid #000000;
border-right:1px solid #000000;
border-bottom:1px solid #000000;
border-left:1px solid #000000;
}

2. Goto: dbtech_thanks_postbit and delete all the code.

3. Goto: dbtech_thanks_postbit_entries and replace all the code below.
Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
        <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px padding-$stylevar[right]: 6px">
                {$vbphrase[dbtech_thanks_post_thanks_like]}
        </td>
</tr>
<tr valign="top">       
        <td class="alt1" id="dbtech_thanks_wrapper_{$post[postid]}" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">       
                <if condition="$thanks OR $likes">
                <if condition="$thanks">
                <div class="smallfont" style="width:100%;">
                        <if condition="$otherthanks">
                                <phrase 1="$thanks" 2="$otherthanks" 3="$session[sessionurl]" 4="$post[postid]">$vbphrase[dbtech_thanks_x_thanked_y_others]</phrase>
                        <else />
                                <phrase 1="$thanks">$vbphrase[dbtech_thanks_x_thanked]</phrase>
                        </if>
                </div>
                </if>
               
                <if condition="$likes">
                <div class="smallfont" style="width:100%;">
                        <if condition="$otherlikes">
                                <phrase 1="$likes" 2="$otherlikes" 3="$session[sessionurl]" 4="$post[postid]">$vbphrase[dbtech_thanks_x_liked_y_others]</phrase>
                        <else />
                                <phrase 1="$likes">$vbphrase[dbtech_thanks_x_liked]</phrase>
                        </if>
                </div>
                </if>
                </if>
        </td>
<tr valign="top">               
<if condition="$show[dbtech_thanks_thanks] OR $show[dbtech_thanks_like]">
                <div id="dbtech_thanks_status_{$post[postid]}" style="display:inline">&nbsp;</div>
        </div>
        </if>
       
<script type="text/javascript">
        <!--
        var Thanks{$post[postid]} = new Thanks_Obj();
        Thanks{$post[postid]}.init('{$post[postid]}');
        // -->
        </script>
</tr>
</table>

4. Goto: dbtech_thanks_postbit_entries_replacement2 and replace all the code below.
Code:

        <if condition="$show[dbtech_thanks_thanks] OR $show[dbtech_thanks_like]">
        <div class="smallfont">
                <div style="display:inline">
                <if condition="$show[dbtech_thanks_thanks]"><span id="dbtech_thanks_thanks_{$post[postid]}"><a href="javascript://" onClick="Thanks{$post[postid]}.ajax_call('thanks');"> {$vbphrase[dbtech_thank_this_post]}</a></span></if>
               
                <if condition="$show[dbtech_thanks_like]"><span id="dbtech_thanks_like_{$post[postid]}"><a href="javascript://" onClick="Thanks{$post[postid]}.ajax_call('like');"> {$vbphrase[dbtech_like_this_post]}</a></span></if>
                </div>
                <div id="dbtech_thanks_status_{$post[postid]}" style="display:inline">&nbsp;</div>
        </div>
        </if>

5. Goto: postbit or postbit_legacy and post the code below wherever you'd like the liked and thanked numbers to be.
Code:

<div><strong>{$vbphrase[dbtech_thanks_liked]}:</strong> <phrase 1="$post[dbtech_thanks_liked]">{$vbphrase[dbtech_thanks_x_times]}</phrase></div>
<div><strong>{$vbphrase[dbtech_thanks_thanked]}:</strong> <phrase 1="$post[dbtech_thanks_thanked]">{$vbphrase[dbtech_thanks_x_times]}</phrase></div>

6. Goto: postbit or postbit_legacy and post the code below wherever you'd like the "say thanks" and "like this" buttons to be.
Code:

<if condition="$show[dbtech_thanks_thanks]"><span id="dbtech_thanks_thanks_{$post[postid]}"><div class="buttons"><a href="javascript://" onClick="Thanks{$post[postid]}.ajax_call('thanks');">Say Thanks</a></div></span></if>
               
                <if condition="$show[dbtech_thanks_like]"><span id="dbtech_thanks_like_{$post[postid]}"><div class="buttons"><a href="javascript://" onClick="Thanks{$post[postid]}.ajax_call('like');">Like This</a></div></span></if>

If you have any issues just tell me and I'm down to help.

gamerzhut 04-15-2011 05:00 PM

Thanks much.

Installed & rated *****

dothanhtrung 04-16-2011 04:17 PM

dbtech_thanks_postbit_entries_replacement2
where is it? i don't see it

Eplexx 04-16-2011 04:41 PM

Quote:

Originally Posted by dothanhtrung (Post 2185316)
dbtech_thanks_postbit_entries_replacement2
where is it? i don't see it

Look here:
https://vborg.vbsupport.ru/

You need the mod installed.

FRANKTHETANK 2 04-23-2011 02:33 AM

I dont have that template either.what do we do?

dothanhtrung 05-24-2011 04:09 PM

1 Attachment(s)
Quote:

Originally Posted by Eplexx (Post 2185329)
Look here:
http://screensnapr.com/e/nP29c3.png

You need the mod installed.

i have n't dbtech_thanks_postbit_entries_replacement2
you can see in the attachment

drsli 05-25-2011 04:02 PM

Neither the recent lite- nor the recent pro-thanks/like-addon reveils the "dbtech_thanks_postbit_entries_replacement2"-template. So I guess, that this mod relies on a former version.

grey_goose 05-30-2011 01:08 AM

Love the idea, unfortunately it doesn't work with the current version. I get an "invalid response".

Eplexx 11-25-2011 05:23 AM

I suppose I shall update this at some point.

matrex722 11-10-2012 12:40 PM

nice work >> thanks


All times are GMT. The time now is 01:53 AM.

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.01177 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete