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)

archet1337 02-27-2010 02:22 AM

Gah.. this mod is haunting me :(

I'm having some trouble with getting
Code:

{vb:raw template_hook.postbit_userinfo_right_after_posts}
to look the same as the other ones. This is what it looks like:

https://vborg.vbsupport.ru/

How to fix this?

Edit: When someone has been thanked two times or more, it looks fine:

http://www.digi-tech.org/images/diverse/testing5.png

Supramania 02-27-2010 02:46 AM

Trying to install on 4.0.2pl1 getting "Importing Product, Please Wait..."

No errors in mysql log or apache log.

Never installs.

Any ideas?

grc 02-27-2010 05:26 PM

Quote:

Originally Posted by mokonzi (Post 1991826)
Abe, is there a way of reducing the height that thanks box displays underneath the post, as it is considerably larger than the 3.8 version?

Thanks for a great product, and the great support at getting it up and running for vB4.

I think the height of the thanks section is due to the large font being used. I posted my hack of the hack in post #560 of this thread. I don't know if anyone else tried it or not, but it makes quite a difference in screen vertical real estate being used on our forum.

wrestlepower 02-27-2010 06:11 PM

Still no fix for being taken back to the first page of threads upon thanking a post? Shame, becuase this has to be one of the most popular hacks on any vB forum, but Abe obviously has some issues preventing him from getting on to sort it.

Also, even though you are supposed t be able to serach users' thanks stats from their profiles, the option isn't there when you actually go to the profile.

mokonzi 02-27-2010 07:16 PM

Quote:

Originally Posted by grc (Post 1986809)
Since Abe seems to be busy with other things, I went ahead and hacked the font size on the "Following Users Say..." line on the forums.

Listen, I'm not a coder and all I can say is that it works on my forum -- follow at your own risk and be sure you can go backwards if needed.

Anyway...

In post_thanks_postbit find:
HTML Code:

<h2 class="<vb:if condition="!$vboptions['legacypostbit']">post</vb:if>title">
If you're using the legacy (vertical) postbit template: change the word "title" to "bitlegacy"

Otherwise change the word "title" to "content"

Again: I'm no coder - try it at your own risk.

Awesome grc, thanks for that tip. Been a headache trying to workout how to best change it. :)

TonicWater 02-27-2010 07:48 PM

i miss the "links" like "search for my thanks" on the user profil pages. i remember for 3.8.4 it was there.

Rob F 02-27-2010 09:46 PM

Quote:

Originally Posted by archet1337 (Post 1992525)
Gah.. this mod is haunting me :(

I'm having some trouble with getting

How to fix this?

Are you sure you edited all 3 lines of the code to align left? I had the same problem when first installing and then realised that I'd only reset the alignment for one of the 3 lines. Below is what I have in my post_thanks_postbit_info file and we've no alignment issues anymore :)

You want to set the 3 lines to be {vb:stylevar left}

Code:

<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>


archet1337 02-27-2010 10:32 PM

Quote:

Originally Posted by Rob F (Post 1993250)
Are you sure you edited all 3 lines of the code to align left? I had the same problem when first installing and then realised that I'd only reset the alignment for one of the 3 lines. Below is what I have in my post_thanks_postbit_info file and we've no alignment issues anymore :)

You want to set the 3 lines to be {vb:stylevar left}

Code:

<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>


Thank you very much!

Working like a charm. :)

Rob F 02-28-2010 08:13 AM

You're very welcome - glad to hear it fixed it for you :)

Diablotic 02-28-2010 09:55 AM

Where in database I can find number of thanks each user have?
After migrating from another script I would like to migrate 'thanks' as well but I cannot find this in the database. Please help.

robbiefritz 02-28-2010 01:09 PM

I browsed through but didn't see the question asked; Is there a way to get the number of thanks to show as reputation comments in the notifications? On v3.8.4 users would see a notification if they received new thanks. Do I have something on v4.0.2 turned off or not set correctly for this to work? Not too familiar with v4 yet.

Rob F 02-28-2010 02:18 PM

Quote:

Originally Posted by robbiefritz (Post 1993678)
I browsed through but didn't see the question asked; Is there a way to get the number of thanks to show as reputation comments in the notifications? On v3.8.4 users would see a notification if they received new thanks. Do I have something on v4.0.2 turned off or not set correctly for this to work? Not too familiar with v4 yet.

When setting it up in the AdminCP you can have it adding to a users reputation alright, but as yet there's no way to show it as comments or make it searchable.

AMG021 02-28-2010 02:43 PM

https://vborg.vbsupport.ru/external/2010/02/2.png

Can someone please help me align that?

archet1337 02-28-2010 03:02 PM

Quote:

Originally Posted by AMG021 (Post 1993749)
https://vborg.vbsupport.ru/external/2010/02/2.png

Can someone please help me align that?

Quote:

Originally Posted by Rob F (Post 1993250)
Are you sure you edited all 3 lines of the code to align left? I had the same problem when first installing and then realised that I'd only reset the alignment for one of the 3 lines. Below is what I have in my post_thanks_postbit_info file and we've no alignment issues anymore :)

You want to set the 3 lines to be {vb:stylevar left}

Code:

<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>


I had the same problem, this did the trick for me :)

AMG021 03-01-2010 01:28 AM

Quote:

Originally Posted by archet1337 (Post 1993768)
I had the same problem, this did the trick for me :)

Dude you are a genius! Thanks

tiengnhat 03-01-2010 01:57 AM

I have an error with this mod. Can you tell me about fix it?
Code:

Could not find phrase 'post_thanks'.
Thanks you!

nyunyu 03-01-2010 03:06 AM

Unfortunately I got this error when testing giving a thank.

Code:

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

tiga2 03-01-2010 06:55 AM

Thank you for this Hack!

How can I change the Format of the Thank you output?

Ex. "Thanked: 5"

Instead of Thanked 11 Times in 6 Posts?

mrdexx 03-01-2010 07:43 AM

Installed fine in vB 4.0.2, however the mod doesn't seem to be acknowledging that my forum is in Legacy mode?!

Shows "the following users..." stuff ABOVE the users instead of to the LEFT of the users (just like the profile info etc.

I checked the template info, and it seems like it should be working since my vB option is set to legacy mode...anyone know how to make it show to the LEFT and not ABOVE the users?

Example:
https://vborg.vbsupport.ru/external/2010/03/121.jpg

Also, I edited my postbit template as per Abe's instructions in his first post, but my "Thanks" button is still on the left side of the bar and NOT beside the edit button...no duplicate entries of the required code, and it is placed directly under the line he stated to...

Anyone got it that to work also?


Thanks!

tech4c 03-01-2010 11:41 AM

thanks

Database error in vBulletin 4.0.2:

Invalid SQL:

REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)


MySQL Error : Table 'database_name.search' doesn't exist
Error Number : 1146
Request Date : Monday, March 1st 2010 @ 08:35:49 AM
Error Date : Monday, March 1st 2010 @ 08:35:49 AM
Script : post_thanks.php?do=findthanks&u=133745
Referrer :
IP Address :

Classname : vB_Database

Casmos 03-01-2010 11:22 PM

When I trun on Hack get this, when try to view post. So what the secert
:o
Quote:

Database error in vBulletin 4.0.2:

Invalid SQL:
SELECT * FROM post_thanks WHERE postid IN (0Array) ORDER BY username ASC;

MySQL Error : Unknown column '0Array' in 'where clause'
Error Number : 1054
Request Date : Monday, March 1st 2010 @ 08:19:41 PM
Error Date : Monday, March 1st 2010 @ 08:19:42 PM
Script : http://gsmreport.dot5hosting.com/gsm...-FORUM&p=53052
Referrer : http://gsmreport.dot5hosting.com/gsm...3052#post53052
IP Address : 1xx.71.129.233
Username : ednacell
Classname : vB_Database
MySQL Version : 5.0.67-log

pozo 03-02-2010 12:10 AM

I need the option "thread new on thanks"... Is there any possibility to realise that? Thanks in advance, it would be amazing if you could provide me this setting... :up:

JHUMON 03-02-2010 03:01 AM

Quote:

Originally Posted by fionix (Post 1990961)
Get exactly the same error also if I disable this plugin for guest and unregistered users, the forum don't load.

Running VBulletin 4.02.

Good Idea.Let me try.

JHUMON 03-02-2010 09:14 AM

dosent work :( same error.

literatestylish 03-03-2010 04:42 PM

Where can you edit the padding size of the Thanks box below each post?

Supramania 03-03-2010 05:53 PM

Developer Last Online: Jan 2010

How long does a mod sit without support before it is declared abandoned?

grc 03-04-2010 12:08 AM

Quote:

Originally Posted by Supramania (Post 1996269)
Developer Last Online: Jan 2010

How long does a mod sit without support before it is declared abandoned?

Ha - I've taken longer vacations than that (well, once). I don't think it's time to call it "abandoned" yet. :)

Supramania 03-04-2010 01:22 AM

Quote:

Originally Posted by grc (Post 1996513)
Ha - I've taken longer vacations than that (well, once). I don't think it's time to call it "abandoned" yet. :)

I wouldn't either - I'm just wondering how long it takes for the vB.org staff to flag it. (I like this mod, I'd hate to see it go away)

RedHacker 03-04-2010 05:22 AM

Can change position of the Thanks Button...?

HansMuenchen 03-04-2010 05:39 AM

Hello,

can someone fix that here:

MySQL-Fehler : Table 'admin_cst.vb3_search' doesn't exist
Fehler-Nr. : 1146

Thnx for the help
Hans

archet1337 03-04-2010 05:48 AM

Quote:

Originally Posted by RedHacker (Post 1996662)
Can change position of the Thanks Button...?


Quote:

Originally Posted by Abe1 (Post 1942292)
A few things to note:

If you want to move the Thanx button to near the edit post button,
open template postbit
find
HTML Code:

{vb:raw template_hook.postbit_controls}
and move it under
HTML Code:

<span class="postcontrols">

You can of course insert the button anywhere you like.

RedHacker 03-04-2010 06:16 AM

Quote:

Originally Posted by archet1337 (Post 1996673)
You can of course insert the button anywhere you like.

Move this
Code:

<span class="postcontrols">
.....?

archet1337 03-04-2010 06:22 AM

Move this to where you want the button:

Code:

{vb:raw template_hook.postbit_controls}

robsta 03-04-2010 10:56 AM

MySQL-Fehler : Table 'admin_cst.vb3_search' doesn't exist
Fehler-Nr. : 1146

what can i do ?

War.Frog 03-04-2010 11:07 AM

Yay...I see Abe1 has come back! Welcome back Abe1! :D

Kolbi 03-04-2010 01:12 PM

Please fix some issues :D

RedHacker 03-05-2010 08:02 AM

Quote:

Originally Posted by archet1337 (Post 1996685)
Move this to where you want the button:

Code:

{vb:raw template_hook.postbit_controls}

Search to put before edit button...
Any help....?

Diablotic 03-05-2010 08:16 AM

1 Attachment(s)
Hi I wanted to change phrase "thanks" to another language (Polish in this case) but changing 'post_thanks_thanks' changes both phrases as per picture which does not make sense in Polish language. Is there a way of separating them so I can have different word for top and bottom bar?

Planet_Earth 03-05-2010 06:41 PM

hello, anyone having a problem with the Thanks Button Showing and then Not showing? have members saying and myself seeing that it comes and goes , we have to reload the page for it to show again... anyone know why this may be happen?
running 4.0.2 PL1
Sorry if I missed any post on this

relaxiha 03-05-2010 11:25 PM

Have a problem. Will search when the user posts the following message appears.

Code:

Database error in vBulletin 4.0.2:
 
Invalid SQL:
 
                        REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
                        VALUES (0, '66.249.71.47', 1, 'mary-khosh', '', 'post.dateline', 'DESC', 0.03733, 1, '76092,75664,75603,75173,74990,74986,74784,74728,74727,74726,74482,74456,74427,74184,74180,74124,73970,73950,73677,73637,73635,73630,73614,73609,73577,73562,73518,73512,73510,73449,73448,73447,73432,73360,73359,73358,73354,73287,73283,73175,73167,73152,72974,72972,72968,69110,56897,56688,56128,56014,55982,55908,55882,55881,55849,55820,55816,55809,55783,55782,55775,55684,55632,55605,55580,55574,55465,55171,55128,55119,54914,54756,54742,54699,54698,54697,54677,54676,54672,54671,54669,54636,54583,54563,54558,54525,54361,54249,52764,52553,52219,52161,52126,52125,52123,51909,51866,51865,51541,51516,51505,51472,51252,51158,51071,51037,50882,50878,50850,50849,50848,50847,50836,50828,50661,50595,50590,50059,49216,49179,49176,49145,49057,49044,49042,49036,48752,48712,48679,48675,48657,48651,48484,48354,48350,48349,48348,48347,47980,47863,47823,47804,47780,47549,47241,47170,46820,46800,46798,46734,46641,45906,45862,44314,37260,35878,33556,32700,30944,30089,28104,25137,22838,11157,11147,5738,2642,2640,2300,1991,443,436,16', 1267837097, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:10038;s:10:\"mary-khosh\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', 'd140fb34186735544b25c7ca8aec451c');
 
MySQL Error  : Table '********.search' doesn't exist
Error Number  : 1146
Request Date  : Saturday, March 6th 2010 @ 12:58:17 AM
Error Date    : Saturday, March 6th 2010 @ 12:58:18 AM
Script        : **********/forums/post_thanks.php?do=findthanks_user_gave&u=10038&language=vi
Referrer      :
IP Address    : ***************
Username      : ثبت نام نشده
Classname    : ***************
MySQL Version :

Code:

http://**********/forums/post_thanks.php?do=findthanks&u=10038&language=th
vb.search' doesn't exist

Please help to resolve this issue.


All times are GMT. The time now is 08:09 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.03778 seconds
  • Memory Usage 1,856KB
  • 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
  • (11)bbcode_code_printable
  • (3)bbcode_html_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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