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^


All times are GMT. The time now is 05:12 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.03666 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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