vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)

ShawnV 12-30-2009 08:16 PM

Great mod, I'll wait for the postbitlegacy update.

Charlie98902 12-30-2009 08:16 PM

I want to move my thanks from next to the edit back to the left. Anyone know how to do this without losing current thanks?

dtommy79 12-30-2009 08:24 PM

I only have the thanks text and no thumbs image. What's the problem?

It's a clean install on default skin.

Charlie98902 12-30-2009 08:29 PM

There is another plugin you can make, Abe1 said but I have no ideal how to accomplish it?

I.am 12-30-2009 08:36 PM

Quote:

Originally Posted by dtommy79 (Post 1942849)
I only have the thanks text and no thumbs image. What's the problem?

It's a clean install on default skin.


Take a look:

Quote:

Originally Posted by rbu (Post 1942476)
If you are using Legacy...

post_thanks_box
Code:

<li class="postbitlegacy postbitim" id="post_thanks_box_{vb:raw post.postid}" style="top:-10px;<vb:if condition="!$post_thanks_box == 1"> display:none;</vb:if>">
        {vb:raw post_thanks_box}
</li>


post_thanks_javascript
Code:

<style type="text/css">
.postbitlegacy .postfoot .textcontrols a.quickreply, .postbitlegacy .postfoot .textcontrols a.post_thanks_button  {
        background: url(images/buttons/post_thanks.png) no-repeat transparent left;
        padding-left: 20px;
}
.postbitlegacy .postfoot .textcontrols a.quickreply:hover, .postbitlegacy .postfoot .textcontrols a.post_thanks_button:hover  {
        background: url(images/buttons/post_thanks-hover.png) no-repeat transparent left;
</style>


post_thanks_postbit
find <div class="postbody"> and change it to <div class="postbody" style="margin-left:0;">


M3xital 12-30-2009 08:37 PM

1 Attachment(s)
Great Mod!!
I have just a small issue, i use my forum with a style i downloaded from the Styles section here and in the postbit legacy the number of thanks is not aligned with the word "Thanks".
With the default style there is no problem.
see attachments.

Charlie98902 12-30-2009 08:44 PM

Yea formatting needs tweaked for postbit too.

Nadeemjp 12-30-2009 08:53 PM

gr8 hack, was waiting for this:)

vulture 12-30-2009 09:20 PM

Version 5.3 uses exactly the same database tables. To fix the error change to the following in products-post_thanks.xml

Code:

<installcode><![CDATA[$db->query_write("CREATE TABLE IF NOT EXISTS`". TABLE_PREFIX ."post_thanks` (

    `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,

    `userid` INT(10) NOT NULL,

    `username` VARCHAR(50) NOT NULL,

    `date` INT(10) NOT NULL,

    `postid` INT(10) NOT NULL)

    ");
]]></installcode>


This is the original error:

Quote:

Originally Posted by vulture (Post 1942590)
Getting the following error when upgrading from 5.3

Code:

Database error in vBulletin 4.0.0:

Invalid SQL:
ALTER TABLE `user` ADD `post_thanks_user_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;

MySQL Error  : Duplicate column name 'post_thanks_user_amount'
Error Number  : 1060
Classname    : vB_Database
MySQL Version : 5.0.41-community

Edit: v5.3 is disabled when I do the upgrade


dtommy79 12-30-2009 09:22 PM

OK, I have a custom skin and the thumbs image doesn't appear, only the text. I've made the suggested template modifications but it doesn't work.

Any idea?


All times are GMT. The time now is 05:57 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.03224 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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