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)

solson 01-29-2012 05:46 PM

Quote:

Originally Posted by Hippy (Post 2293809)
edit your post_thanks_postbit template

Thanks for the response! Could you tell me exactly what I should remove, if you wouldn't mind? I took a look at the code and it wasn't too clear to me what to take out. I don't want to ruin the mod by guessing and deleting code.

I don't want to function to disappear, but only to have the display portion of the "Thanks: x" be removed from the user profile field.

Thanks again.

Hippy 01-29-2012 07:04 PM

edit post_thanks_postbit_info template to do what you want and it should all be in the correct place
this needs to be removed since vb does not use this any longer
Code:

style="white-space:nowrap; display:inline; float:
so use this code and take out what you don't want to show as you did the other one..
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>{vb:rawphrase post_thanks_time_post}</dd>
    <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <dd >{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
    <vb:else />
        <dd>{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>


solson 01-29-2012 07:55 PM

Quote:

Originally Posted by Hippy (Post 2293937)
edit post_thanks_postbit_info template to do what you want and it should all be in the correct place
this needs to be removed since vb does not use this any longer
Code:

style="white-space:nowrap; display:inline; float:
so use this code and take out what you don't want to show as you did the other one..
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>{vb:rawphrase post_thanks_time_post}</dd>
    <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <dd >{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
    <vb:else />
        <dd>{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>


This fixed both of my original problems. Thanks much for taking the time....all is right in the world again. :cool:

diabolicds 02-01-2012 01:27 PM

Is hack goint to be updated for latest version of vbulletin ?

Maybe someone can help getting lots of Database errors from this mod so I disabled for the moment , if there is any fix for this it would be great thanks in advance here is error:

Quote:

Database error in vBulletin 4.1.10:

Invalid SQL:

REPLACE INTO vb_search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (0, 'ipxxx', 1, 'member', '', 'post.dateline', 'DESC', 0.03194, 1, '1181,1047,1006,991,603,24', 1328083433, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:3;s:5:\" member\";}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\";}}', '5d361a20a5b456577f4e80681ee2afb0da');

MySQL Error : Table 'mybase_bulletin.vb_search' doesn't exist
Error Number : 1146
Request Date : Wednesday, February 1st 2012 @ 09:03:53 AM
Error Date : Wednesday, February 1st 2012 @ 09:03:53 AM
Script : http://www.myweb.com/board/post_than...findthanks&u=3
Referrer :
IP Address : XXX
Username : Unregistered
Classname : vB_Database
MySQL Version :

ForceHSS 02-01-2012 02:45 PM

Quote:

Originally Posted by diabolicds (Post 2294956)
Is hack goint to be updated for latest version of vbulletin ?

Maybe someone can help getting lots of Database errors from this mod so I disabled for the moment , if there is any fix for this it would be great thanks in advance here is error:

there is a fix look over other posts and you will find it

michal72 02-01-2012 04:44 PM

Quote:

Originally Posted by Danai (Post 2293905)
Oh, sorry, was also going to ask if it was possible to move the "The following users thanked for this post" below the post to inside the post

See BirdOPrey5 soultion https://vborg.vbsupport.ru/showthread.php?t=266358 and posts #35, #36 and #49

Regards

Hippy 02-01-2012 10:24 PM

* hint ForceHSS sig

ForceHSS 02-02-2012 12:16 AM

Quote:

Originally Posted by Hippy (Post 2295173)
* hint ForceHSS sig

lol was not going to tell him

Hippy 02-02-2012 12:21 AM

Quote:

Originally Posted by ForceHSS (Post 2295198)
lol was not going to tell him

I had to .. was so obvious .. I read my @ss off
but it seems noone wants to even read a page or 2 before downloading a mod..

I always read the last few pages to see the issues for installing it ..

anyway.. all is good

Videx 02-02-2012 12:25 AM

Quote:

Originally Posted by ForceHSS (Post 2295198)
lol was not going to tell him

Ya really. I think everyone is doing all the noobs a disservice by simply giving them the answers. The standard response should be more along the lines of "Always read the entire thread before you install a modification. When you're finished, if you still have a question, first assure us you have done all the things recommended.". This teaches them a valuable lesson, and let's face it - nobody can actually disagree with the advice, as it's the stated policy of vb.org.


All times are GMT. The time now is 09:28 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.03067 seconds
  • Memory Usage 1,755KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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