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)

djbaxter 02-19-2010 09:17 PM

Quote:

Originally Posted by traffiking (Post 1984037)
Hey ABE!!

How you go about changing the font size of "The Following User Says Thank You to USERNAME For This Useful Post:" and the usernames display??

Default size is a little too big and annoying...

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.

Or, if you don't need to change the font, just edit the phrase to make it shorter, e.g., "Thanks for this post from" or "Thanks from".

s0lidgr0und 02-19-2010 11:51 PM

Quote:

Originally Posted by djbaxter (Post 1986833)
Or, if you don't need to change the font, just edit the phrase to make it shorter, e.g., "Thanks for this post from" or "Thanks from".

$vbphrase[post_thanks_user_says]

djbaxter 02-20-2010 12:09 AM

Quote:

Originally Posted by s0lidgr0und (Post 1986943)
$vbphrase[post_thanks_user_says]

Actually, there are two, one for a single thank you and one for multiple thank you's:
  • post_thanks_user_says
  • post_thanks_users_say
Ypu'll probably want to edit both of them to ensure consistency.

grc 02-20-2010 12:15 AM

Quote:

Originally Posted by djbaxter (Post 1986833)
Or, if you don't need to change the font, just edit the phrase to make it shorter, e.g., "Thanks for this post from" or "Thanks from".

No doubt it's in the eye of the beholder, but even one character in that line takes up as much vertical space on the display as the entire phrase.

However, making the font smaller makes a big difference in the amount of vertical space being used.

Ramsesx 02-20-2010 08:38 AM

I didn't read all posts so I'll just let you know this hack is causing an error on thread inline moderation, see here.

Faizan 02-20-2010 04:43 PM

thanks

djbaxter 02-20-2010 04:54 PM

Quote:

Originally Posted by Faizan (Post 1987446)
thanks

Don't post just to say "thanks"... click the frickin' button! :D

BizAdventure 02-21-2010 08:44 AM

Recently did an upgrade from 3.8.4 to 4.0.2 - and do you know what the biggest concern was to my community? WHERE IS THE THANKS BUTTON! HA!

So, the only issue I have? I came here too late to see you post that we shouldn't UNINSTALL when upgrading and only disable - well TOO LATE.

So my question - I still have access to the old database - and the forums - is there a way for me to grab the data from the old thanks numbers and import them to the new?

Probably whistling dixie, I know.

JHUMON 02-21-2010 09:42 AM

I got database error any one can help ?

"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.44', 1, 'asad', '', 'post.dateline', 'DESC', 0.18184, 1, '22221,22220,22219,19605,18700,18699,18698,18696,1 8694,18692,18688,18073,11556,11386,8325', 1266751116, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:837;s:4: \"asad\";}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\";}}', '7a441afce973ea1b1482efd0f0b335c1');

MySQL Error : Table 'jhumon_vbulletin.search' doesn't exist
Error Number : 1146
Request Date : Sunday, February 21st 2010 @ 05:18:36 AM
Error Date : Sunday, February 21st 2010 @ 05:18:36 AM
Script : http://www.****.com/post_thanks.php?do=findthanks&u=837
Referrer :
IP Address : 66.249.71.44
Username : Unregistered
Classname : vB_Database
MySQL Version :

"

Bisha 02-21-2010 09:59 AM

Quote:

Originally Posted by JHUMON (Post 1987903)
I got database error any one can help ?

"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.44', 1, 'asad', '', 'post.dateline', 'DESC', 0.18184, 1, '22221,22220,22219,19605,18700,18699,18698,18696,1 8694,18692,18688,18073,11556,11386,8325', 1266751116, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:837;s:4: \"asad\";}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\";}}', '7a441afce973ea1b1482efd0f0b335c1');

MySQL Error : Table 'jhumon_vbulletin.search' doesn't exist
Error Number : 1146
Request Date : Sunday, February 21st 2010 @ 05:18:36 AM
Error Date : Sunday, February 21st 2010 @ 05:18:36 AM
Script : http://www.****.com/post_thanks.php?do=findthanks&u=837
Referrer :
IP Address : 66.249.71.44
Username : Unregistered
Classname : vB_Database
MySQL Version :

"

Same error here! Any solution^

JHUMON 02-22-2010 03:09 AM

any one have ? any sol please ?

TonicWater 02-22-2010 03:46 PM

one question. where can i edit the font size of the "...say thank you" sentence?

Michael Tsai 02-24-2010 03:58 AM

Installed and works fine, thanks!

Kolbi 02-24-2010 05:18 AM

Quote:

Originally Posted by Michael Tsai (Post 1990118)
Installed and works fine, thanks!

Without any MySQL issues? :)

mrdexx 02-24-2010 06:54 AM

Does anyone know how to edit the plugin so that the:

"The following user has..." part of the thanks appears to the LEFT of the User(s) who did the thanking as opposed to ABOVE it (looks kind of sloppy when the rest of the forum has user info to the left of the messages)

Cheers

meonet 02-24-2010 09:01 AM

Quote:

Originally Posted by Bisha (Post 1984684)
Remove FLOAT from css file!

Where I can find it sorry?

edit

solved Thanks

Michael Tsai 02-24-2010 12:43 PM

This is a fantastic mods, thanks again.

tiengnhat 02-24-2010 01:02 PM

I have an error.
Code:

Could not find phrase 'post_thanks'
Can you tell me for fix it?
Thanks you!

motorola 02-24-2010 03:37 PM

Very nice :)
Installed! Thank you

jGas 02-24-2010 06:34 PM

it works great ;) thanks abe

TonicWater 02-24-2010 08:01 PM

please. can you tell me where i can make the "font size" smaller of the info who gave a thanks?

grc 02-25-2010 12:09 AM

Quote:

Originally Posted by TonicWater (Post 1988856)
one question. where can i edit the font size of the "...say thank you" sentence?

Your post is post #572 in this thread ... take a look at post #560.

tini_lam 02-25-2010 01:28 AM

Quote:

Originally Posted by JHUMON (Post 1987903)
I got database error any one can help ?

"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.44', 1, 'asad', '', 'post.dateline', 'DESC', 0.18184, 1, '22221,22220,22219,19605,18700,18699,18698,18696,1 8694,18692,18688,18073,11556,11386,8325', 1266751116, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:837;s:4: \"asad\";}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\";}}', '7a441afce973ea1b1482efd0f0b335c1');

MySQL Error : Table 'jhumon_vbulletin.search' doesn't exist
Error Number : 1146
Request Date : Sunday, February 21st 2010 @ 05:18:36 AM
Error Date : Sunday, February 21st 2010 @ 05:18:36 AM
Script : http://www.****.com/post_thanks.php?do=findthanks&u=837
Referrer :
IP Address : 66.249.71.44
Username : Unregistered
Classname : vB_Database
MySQL Version :

"

create table 'search' to solve problems

fionix 02-25-2010 04:25 AM

Quote:

Originally Posted by tini_lam (Post 1990876)
create table 'search' to solve problems

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.

fionix 02-25-2010 04:42 AM

Okay I figured out what the problem was, the old post_thanks.php (from a previous version) could not be overwritten by the new one!

Michael Tsai 02-25-2010 11:19 AM

Worked fine till now, thanks again!:up::up::up:

min0taur 02-25-2010 01:12 PM

Is there any chance to add hide hack?

archet1337 02-25-2010 04:28 PM

When I click the Thanks button I get this message:

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

Any advice on what to do?

Bisha 02-25-2010 06:20 PM

Quote:

Originally Posted by tini_lam (Post 1990876)
create table 'search' to solve problems

but we need also some atributes!

Kolbi 02-25-2010 06:42 PM

Quote:

Originally Posted by fionix (Post 1990967)
Okay I figured out what the problem was, the old post_thanks.php (from a previous version) could not be overwritten by the new one!

My post_thanks.php was overwritten but I get MySQL issues, too.

Does this:
Quote:

create table 'search' to solve problems
resolve the issues?

mokonzi 02-26-2010 07:12 AM

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.

reimic 02-26-2010 07:19 AM

Quote:

Originally Posted by archet1337 (Post 1991357)
When I click the Thanks button I get this message:

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

Any advice on what to do?

Same error here!

archet1337 02-26-2010 08:03 PM

Quote:

Originally Posted by archet1337 (Post 1991357)
When I click the Thanks button I get this message:

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

Any advice on what to do?

This is really putting me off. I've tried everything I can think of and still no go..

Must be someone that knows how to fix this?

Any help is much appreciated :)

archet1337 02-26-2010 11:49 PM

Doh, I'm such an arse..:erm:

No wonder I get the error message, I'm trying to thank a guest poster and obviously I can't thank someone that doesn't exist..

djbaxter 02-26-2010 11:54 PM

Quote:

Originally Posted by archet1337 (Post 1992434)
Doh, I'm such an arse..:erm:

No wonder I get the error message, I'm trying to thank a guest poster and obviously I can't thank someone that doesn't exist..

Actually, with the right drugs you can... but nobody else would be able to see it. :)

archet1337 02-27-2010 12:03 AM

Quote:

Originally Posted by djbaxter (Post 1992437)
Actually, with the right drugs you can... but nobody else would be able to see it. :)

It would be pretty neat to be able to hide the Thanks button on guest posts. Any idea on how to do that?

djbaxter 02-27-2010 12:29 AM

It should just be a matter of a vb conditional (you can learn about that at vbulletin.com). I don't allow Guest posts but if you used something like this

PHP Code:

<vb:if condition="!in_array($bbuserinfo[usergroupid],array(2,5,6,7))">

{
code to display Thanks button}

</
vb:if> 

it should work.

Play with it...

archet1337 02-27-2010 12:47 AM

I've been playing around with it for a while now, and it removed the button from the guest posts, but unfortunately it removes it from the registered ones as well. I've checked the usergroup id's and they match yours.

djbaxter 02-27-2010 01:06 AM

Sorry. Try this instead:

Code:

<vb:if condition="in_array($bbuserinfo[usergroupid],array(2,5,6,7))">

{code to display Thanks button}

</vb:if>

The "!" in the first code block in my previous post says "if NOT in array" which is the opposite of what you want (I think - it's Fried-day after a long week and I am truly fried).

archet1337 02-27-2010 01:10 AM

Thanks a lot. Seems to be working fine :)


All times are GMT. The time now is 12:23 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.03648 seconds
  • Memory Usage 1,841KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (19)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