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)

gamerzhut 03-01-2011 04:10 PM

Installed & rated *****

Hippy 03-01-2011 08:19 PM

Quote:

Originally Posted by AshMagic (Post 2168223)
I made those changes but the problem remains I'm afraid :( I have reverted the code back.

those 2 template changes have fixes in them..
never added to the mod..

you should add them back
will check out your template and peek at your site after you add them back

Gunturz 03-02-2011 07:00 AM

Quote:

Originally Posted by Hippy (Post 2167984)
here is a screen shot..
I think I know what the problem is

post your postbit_legacy template for me ..

I need to see the code..

meanwhile

replace your post_thanks_postbit_info template

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>

and replace your post_thanks_javascript template

Code:

<script type="text/javascript" src="clientscript/post_thanks.js"></script>

<style type="text/css">
.postbitlegacy .postfoot .textcontrols a.post_thanks_button, .postbit .postfoot .textcontrols a.post_thanks_button  {
        background: url({vb:stylevar imgdir_button}/post_thanks.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.post_thanks_button:hover, .postbit .postfoot .textcontrols a.post_thanks_button:hover  {
        background: url({vb:stylevar imgdir_button}/post_thanks-hover.png) no-repeat transparent {vb:stylevar left};
}
</style>


i think this could help the problem

at post_thanks_postbit_info template change "stylevar left" to "stylevar none"

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 none};">{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 none};">{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 none};">{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>


Munkholm 03-02-2011 10:29 AM

Quote:

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

2) No searching feature yet

When can we expect the search features to be included ? This script is really great, but I?d love to be able to search for the most thanked post of a given month... Don?t suppose there?s an easy way to accomplish that ? Thanks.

Hippy 03-02-2011 02:14 PM

Quote:

Originally Posted by Munkholm (Post 2168657)
When can we expect the search features to be included ? This script is really great, but I?d love to be able to search for the most thanked post of a given month... Don?t suppose there?s an easy way to accomplish that ? Thanks.

Developer Last Online: Jun 2010
I'm afraid we may never see it:(

Dakoom 03-02-2011 07:15 PM

As you know, is it possible to add "post thanks" also in vbulletin blog or other scripts?

AshMagic 03-02-2011 07:33 PM

Quote:

Originally Posted by Hippy (Post 2168391)
those 2 template changes have fixes in them..
never added to the mod..

you should add them back
will check out your template and peek at your site after you add them back

OK i've done it and put the code back that you posted. It's ready for you to look at..
Thanks for helping me with this :)

Hippy 03-02-2011 10:02 PM

need you to turn on Add Template Name in HTML Comments
in admincp
under general settings
set it to yes
thanks

Hippy 03-02-2011 10:48 PM

after you do that for me

check your
blog_postbit_entries_link
blog_postbit_blog_this_post
blog_postbit_blog_link
templates to see if they where edited or if the have <br />
in them

Dakoom 03-02-2011 11:38 PM

nobody that helps me? :(


All times are GMT. The time now is 06:32 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.02832 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_code_printable
  • (5)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