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)

mike8823 03-26-2012 11:56 AM

I have downloaded the Thanks button and tried to install and now I am getting an error at the top of the page
(Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: post_thanks_navbar_search in [path]/includes/functions.php on line 4330
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1403) : eval()'d code on line 95)


Help please..

BrightStar 03-26-2012 02:56 PM

1 Attachment(s)
I am not using any mod. Just tweaked it myself part of it.

Thanks

Hippy 03-26-2012 03:49 PM

Code:

<div class="post_field">
is your doing?
you also did it to the
Code:

<div class="post_field">{vb:raw template_hook.postbit_userinfo_right_after_posts}</div>
this is what this mod is using to display there..
you edited the flag mod and the gender mod in the template
what you can do is remove that from the hook and add it to the
post_thanks_postbit_info template as so
Code:

<div class="post_field">
<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></div>

or make a new hook leave the other like you have it use what i posted above as well
or add the code to the new hook and leave the template stock

if other mods or even vb are using the same hook this is what i seen happen you need to do that edit manually to the others as well..

this is why I suggest a new hook so you don't have to

GeorgeEcuador 03-26-2012 05:49 PM

I let him just say thank received.

BrightStar 03-26-2012 06:39 PM

Hippy you are absolutely right, all these changes which you have pointed have been made by me. I do appreciate what you have written and I understand that modifying the templates and adding <div class="post_field"> has cause issues.

I am struggling to understand what is hook and how do I make a new hook so I avoid all these problems?

Hippy 03-26-2012 07:32 PM

ok I'm glad you understand a little so I don't mind going a little farther
go into your admincp
styles & templates
find postbit_legacy template in the styles you have (if more than one)
open it up
now search for (your edit)
Code:

<div class="post_field">{vb:raw template_hook.postbit_userinfo_right_after_posts}</div>
right under it add
Code:

<div class="post_field">{vb:raw template_hook.postbit_userinfo_post_thanks}</div>
if your going to use the stock template!
if your going to use the template I posted above then just add

Code:

{vb:raw template_hook.postbit_userinfo_post_thanks}
and use the template posted above

now still in admincp
go to Plugins & products > click on plugin manager
find your Product : Post Thank You Hack "plugin" there are 10 hook locations
the one that says "postbit_display_complete"
in the hook location column under

product : Post Thank You Hack

click edit..
search for this line

Code:

$template_hook['postbit_userinfo_right_after_posts'] .= $templater->render();
replace it with

Code:

$template_hook['postbit_userinfo_post_thanks'] .= $templater->render();
save it

you should be all good...

I hope this helps

wildheart 03-27-2012 02:13 PM

Thanks for this great hack and thanks Hippy, you know for what. ;)

Is there a way to make the block that appears under the post smaller?

jadeboy7 04-01-2012 03:35 PM

Quote:

Originally Posted by wildheart (Post 2313846)
Thanks for this great hack and thanks Hippy, you know for what. ;)

Is there a way to make the block that appears under the post smaller?

I believe this should help with that.

cstreater 04-01-2012 03:49 PM

So, Abe hasn't been online since June of 2010, it's marked as unsupported, and to get it working you have to read and put together a lot of posts in this thread and patch various files. On top of that it still isn't fully functional.

I guess where I'm going with this, is I'm wondering if someone can officially take it over and start a new thread where everything is consolidated into one post with a single download?

This is one of the most widely used plug-ins of any forums, and I think it would be painful to let it go, especially on a 5 million member forum.

jadeboy7 04-01-2012 03:57 PM

Quote:

Originally Posted by cstreater (Post 2315780)
So, Abe hasn't been online since June of 2010, it's marked as unsupported, and to get it working you have to read and put together a lot of posts in this thread and patch various files. On top of that it still isn't fully functional.

I guess where I'm going with this, is I'm wondering if someone can officially take it over and start a new thread where everything is consolidated into one post with a single download?

This is one of the most widely used plug-ins of any forums, and I think it would be painful to let it go, especially on a 5 million member forum.

I think all the most updated information can be found in this post.


All times are GMT. The time now is 11:21 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.05308 seconds
  • Memory Usage 1,756KB
  • 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
  • (8)bbcode_code_printable
  • (2)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