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)

reimic 12-30-2009 01:23 PM

deleted

reimic 12-30-2009 01:27 PM

Quote:

Originally Posted by valendono (Post 1942483)
Its work ! Thanks.

it also helps for me! but there is still one problem. in some threats there is no thank you button. only a blank space. have you an idea?

Charlie98902 12-30-2009 01:45 PM

Quote:

Originally Posted by reimic (Post 1942503)
it also helps for me! but there is still one problem. in some threats there is no thank you button. only a blank space. have you an idea?

Are they your posts?

Cmangum 12-30-2009 01:45 PM

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/post_thanks.php on line 57.

I'm pretty sure I have everything from the upload file in the right places

abbasbsp 12-30-2009 02:02 PM

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

thanks. nice tip ....

mandingo 12-30-2009 02:29 PM

Quote:

Originally Posted by Charlie98902 (Post 1942352)
Thanks for the update. I did the template edit in the postbit to move it by the edit button however it is still at the default location instead of being by the edit button.

Quote:

Originally Posted by bluidkiti (Post 1942443)
I did what you said for moving the button over by the Edit button but the Thanks button didn't move. Any suggestions?

Make the template edit in postbit_legacy instead

elwachiman 12-30-2009 02:31 PM

The hack does not work with internet explorer, trying to put to thank the post puts it blank and send the user a quick response shows no thanks, uninstalled for now, besides changing the poer button Quick Response button to thank

Charlie98902 12-30-2009 02:36 PM

Quote:

Originally Posted by mandingo (Post 1942552)
Make the template edit in postbit_legacy instead

Thanks but I use the postbit and forgot to add and remove a template edit as I needed to.

dnk.it 12-30-2009 02:38 PM

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

this fix my problem as well, thanks :)

vulture 12-30-2009 02:45 PM

wrong error

DBStattoo 12-30-2009 03:10 PM

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

Nice thanks :D

reimic 12-30-2009 03:11 PM

Quote:

Originally Posted by Charlie98902 (Post 1942513)
Are they your posts?

Ok sorry. I am an idiot! ;)

DBStattoo 12-30-2009 03:11 PM

Nice hack install and nominate :up:

vulture 12-30-2009 03:15 PM

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

Charlie98902 12-30-2009 03:25 PM

Try removing all of the thank you hack and do a clean install of the newest version here. It's worth a shot.

vulture 12-30-2009 03:28 PM

Was thinking that but then I guess all users loose their thanks.

No big deal I guess. I'll backup the DB before I do that though!

Charlie98902 12-30-2009 03:32 PM

I am no coder but it is a shot in the dark. I agree with the loss of thanks my members lost the same too as I uninstalled the 3.8 version before I upgrade the forum but they understand too.

AdamSC 12-30-2009 03:46 PM

Hi there, thanks for the great post - I am trying to figure out how I can make this appear on a custom skin - what do I add and to which template file?

vulture 12-30-2009 03:48 PM

The install assumes that the relevant fields on the table don't exist. Is there not a way of checking to see if they already exist and skip?

Code:

<![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) "); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."post_thanks` ADD INDEX ( `postid` )"); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` ADD `post_thanks_user_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."post` ADD `post_thanks_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` ADD `post_thanks_thanked_posts` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` ADD `post_thanks_thanked_times` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");]]>

coloradomoms 12-30-2009 03:50 PM

Installed and Love it!

Is there a way to install this a second time to make it say "hugs" and track separately? Just curious. :)

ETA - I moved the postbit thingy to make the thanks go next to editpost, but its still under the avatars and stuff. No big deal, just curious as to why it isn't moving. I did the legacy thing and refreshed, cleared cache, etc. still didn't budge. I guess it just wants to hang out over there. ;)

g00gl3r 12-30-2009 03:59 PM

Brilliant, I've been waiting for this. It looks smart and works very well. Used it for years and the members love it! Well done you!

dtommy79 12-30-2009 04:14 PM

Quote:

Originally Posted by Abe1 (Post 1942486)
Do you have more then 1 style?

I have the same problem.

I did a fresh install of vb4, and a fresh install of post thanks hack and the thanks image doesn't show up, only the text.

TheLastSuperman 12-30-2009 04:16 PM

Please send updates for THIS 4.0 mod using this mods Update feature not your 3.8.x mod update feature... your confusing some members and falsely giving me update notices as well along with 24,000 others who many do not even own 4.0.

https://vborg.vbsupport.ru/showthrea...65673&page=127

Mike

I.am 12-30-2009 04:35 PM

Fixed db error and now all is perfect, thanks again Abe. ;)

Alibass 12-30-2009 04:43 PM

Super nice mod.... *installed* :)

LifesGreatestGift 12-30-2009 04:56 PM

Thanks for the updated mod. Work's beautifully. Installed.

http://www.TheWindows7Site.com

ForYou 12-30-2009 05:08 PM

there is no AJAX like before , when user click on thank buttom there is refresh the page then he will show his thanks , but before there is no refresh the page ,

how we can solve this problem ,

Regards

Charlie98902 12-30-2009 05:19 PM

Quote:

Originally Posted by Abe1 (Post 1942482)
They both move since they are both using that plugin. You can change the order that the plug-in execute though and get the thanx button to the left of the blog button. The plug-in name it something like postbit_complete.

I did the template edit to pull it over by the edit post but I do not want to figure out how to put blod button back are you working on a fix for this minor thing? If not how would I go about getting the thanks button and blog button back on the left agian like it is default?

Quote:

Originally Posted by ForYou (Post 1942698)
there is no AJAX like before , when user click on thank buttom there is refresh the page then he will show his thanks , but before there is no refresh the page ,

how we can solve this problem ,

Regards

There is no need to refresh when I hit thanks it shows I did almost immediately. I hated that refresh/load page in 3.8.

LoveStream 12-30-2009 05:30 PM

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

Great man, :up::)

steve1966 12-30-2009 05:45 PM

Installed today working fine over existing version thanks abe for updaing :)

Lovinmysailor 12-30-2009 05:53 PM

Installed. Thank you! This is one of the hacks my members and I missed the most!

Lovinmysailor 12-30-2009 06:08 PM

Quick question. Sorry if has already been answered. After I installed it I tried it out and I get the you do not have permission to do this. It only tells me this on some posts and not others and then it will go ahead and post anyways. How would you suggest I fix this? Thank you!

Also not that it really matters but I just wanted to let you know that the count is off by one. So if one person thanks a post it will say the following 3 people have found this useful.

Charlie98902 12-30-2009 06:23 PM

Quote:

Originally Posted by Abe1 (Post 1942482)
They both move since they are both using that plugin. You can change the order that the plug-in execute though and get the thanx button to the left of the blog button. The plug-in name it something like postbit_complete.

Can you elaborate please or post the plugin to add like you said here please?

Thanks

KristerSwe 12-30-2009 06:51 PM

Really great addon.... just a question.... can i use this for vb 4 suite ? or is it for the vb4 forum..

Thanks

Charlie98902 12-30-2009 06:56 PM

It is just a forum thanks mod not a blog or Article thanks mod.

fariborz khan 12-30-2009 06:58 PM

Quote:

Originally Posted by dnk.it (Post 1942380)
me too

Me Too

carrlos 12-30-2009 07:32 PM

I uninstalled the 3.x.x version before upgrading to 4.0.0. Is there anyway to recover the db tables from my backup without totally reverting to the backup? I don't want to revert because I will lose a week of posts, etc.

I know this requires some sort of copying and pasting of the tables from my backup (I restored it to a new db) then adding them to the current db. I just don't know how this is done and I don't know which tables are needed.

Thanks.

lolo? 12-30-2009 07:46 PM

very thanks best mode on vb :) install :)

chloe101 12-30-2009 08:10 PM

Thanks for upgrading this awesome hack. Nominated again of course.

Unfortunately, I also love Mosh's Panic Hack which works GREAT except that it wipes out VB's "Blog This Post" and also your "Post Thank You" hack. Both at the same time.

I'm not a programmer but my logic tells me you probably programmed your hack in such a way that it eases in next to something instead of totally taking a space.

Can you help me in any way with this unfortunate conflict because I need both your hacks for my users.

This is the conflict I'm getting

Here's with Panic Off

https://vborg.vbsupport.ru/

And now with Panic On

https://vborg.vbsupport.ru/


I'm using VB4 Suite with the blogs turned on. Thanks

Dream 12-30-2009 08:13 PM

Thanks Abe1, I would love to use the Groan hack on 4.0 as well. Thank you either way :)


All times are GMT. The time now is 10:48 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.04228 seconds
  • Memory Usage 1,839KB
  • 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
  • (10)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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