vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=165673)

sarum 10-11-2008 06:05 PM

Quote:

Originally Posted by redlabour (Post 1642801)
After Years using both (Thanks and Groan) i have now uninstalled both of them.

In fact for me and a lot of other Admins it makes no sence to use the Post Thanks Hack without the Groan Hack and Groan was not updated for a long Time now.

I have send some PMs about this to Abe1 and everytime i get the same Answer that he will updated the Groan Hack soon. But nothing happens ..... :(

if the thank you hack was installed on this forum,, id give you a thanks
i too would like to see the groan hack updated as would hundreds of others..

but the author is doing this for nothing so i cant really complain..

but if your reading this author./.. please update your groan hack :)

egelist 10-11-2008 06:10 PM

Merhaba,
Arkadaşlar bu eklentiyi ekledim hatta upgrade ettim, teşekkürler butonu çıkmıyo, default tema kullanıyorum.extradan template editlemesi yapmadım, nerde hata var :S yardımlarınız için şimdiden teşekkür ederim

nbaphenom 10-11-2008 06:40 PM

At the top of the page it says
Warning: Invalid argument supplied for foreach() in [path]/includes/functions_post_thanks.php on line 222

then it says vbulletin message .
Unable to add cookies, header already sent.
File: /homepages/5/d210752282/htdocs/includes/class_core.php
Line: 3243

Is it becuase the thread has gotten to big . Help this is important its stopping people from viewing the thread .

Boosted Panda 10-11-2008 11:51 PM

Works on 3.8 Beta BTW.

NathanLedet 10-11-2008 11:54 PM

Looked in template postbit and didn't see how to do this, so I appreciate the help...

How can I move the Thanks button to the left of all of the other buttons rather than the right side? Thanks

JohnSilver 10-12-2008 06:01 PM

Quote:

Originally Posted by adamenty (Post 1637938)
This may be to do with your hosting if it is uploading maybe you have used your memory limit

do you mean i have set maximum memory limit?

p/s: to anyone ..pls help me solve this installation problem. The problem is while the installation process, the page keep uploading for unlimited hours. Pls help me..i really need this hack :(

Fangs404 10-13-2008 01:58 AM

We're using this mod, and I quite like it. I have a question, though. In every forum I've seen that had a thanks mod, hitting thanks bumped the thread. I don't see an option for that. How easy would that be to add in as an option?

Masiello 10-13-2008 07:14 AM

1 Attachment(s)
Hello,
I need to make div around the below phrases shows in a postbit
Quote:

Thanks: 1
Thanked 1 Time in 1 Post
see screenshot for the example please.

Masiello 10-13-2008 07:33 AM

Quote:

Originally Posted by redlabour (Post 1642801)
After Years using both (Thanks and Groan) i have now uninstalled both of them.

In fact for me and a lot of other Admins it makes no sence to use the Post Thanks Hack without the Groan Hack and Groan was not updated for a long Time now.

I have send some PMs about this to Abe1 and everytime i get the same Answer that he will updated the Groan Hack soon. But nothing happens ..... :(

He have updated today!

mariocaz 10-14-2008 03:54 AM

Very nice Mod, thank you!!!

Fangs404 10-14-2008 05:28 AM

Quote:

Originally Posted by Fangs404 (Post 1643778)
We're using this mod, and I quite like it. I have a question, though. In every forum I've seen that had a thanks mod, hitting thanks bumped the thread. I don't see an option for that. How easy would that be to add in as an option?

If anyone's curious, I figured this out myself using the Bump Threads mod. It's very simply to make hitting thanks bump the thread.

First, open post_thanks.php. Find this line:

PHP Code:

if ($_REQUEST['do'] == 'post_thanks_add'

Inside that if block, find this line:

PHP Code:

if ($using_ajax

Right above that line, add this small chunk of code:

PHP Code:

$threadman =& datamanager_init('Thread'$vbulletinERRTYPE_ARRAY'threadpost');
$threadman->set_existing($threadinfo);
$threadman->set('lastpost'TIMENOW);
$threadman->save(); 

The thread will now be bumped to the top upon hitting thanks. :)

A note to the mod writer: this is a handy feature, and it'd be trivial to add an option in the admin panel to enable/disable the bumping of threads upon hitting thanks. Love the plugin. :)

[edit]
By the way, I'm on a 3.7.3 PL1 install for what it's worth.

theOZer 10-14-2008 04:13 PM

Thank you, Fangs404. Great input for this thread; thanks for sharing this code.

BucWiLd 10-14-2008 10:24 PM

anybody know where to get other thanks you buttons?

subnet_rx 10-15-2008 01:19 AM

Quote:

Originally Posted by bluidkiti (Post 1637839)
Members at my board are reporting a problem also. This is the error message they report:



Even though they receive the message, it still posts their thanks. I agree with the above:



because I really like this mod.

Same thing here, need a solution.

bryanb 10-15-2008 07:53 AM

Quick question: How do I search for "most thanked user" for a certain period of time? Let's say - most thanked member of October etc.

And "Most Thanked Post" - that would be great.

Trying to figure this out but can't do it.

Please advise - thanks!

bluidkiti 10-15-2008 11:10 AM

Quote:

Originally Posted by NathanLedet (Post 1642999)
Looked in template postbit and didn't see how to do this, so I appreciate the help...

How can I move the Thanks button to the left of all of the other buttons rather than the right side? Thanks

To move thank button to the left of the edit button:

in postbit_legacy find $template_hook[postbit_controls]

move it from current position to above <if condition="$post['editlink']"> .

Should look like below when moved:
<!-- controls -->
$template_hook[postbit_controls]
<if condition="$post['editlink']">

JackFranklin 10-15-2008 03:15 PM

I hope you can help me!

Before uninstalling your product (I mucked it up) I did a complete back up of the table which holds the records, so that when I reinstalled I could add the records to the DB. I have done this but it is still not displaying. It still displays 0 everywhere. Do you know why this is?

EDIT - I rebuilt all the thread info and it works - thanks.

Stagehandspace 10-15-2008 10:21 PM

Just installed the Mod and it appeared right away.

Started searching on how to add my button. I found the recent post on how to move the button but I did not have any luck on how to add it.

Could someone assist me please with adding my own custom button.

Thank You In Advance

(Marked as Installed)

Stagehand

brvheart 10-16-2008 01:12 PM

This works great in one of my styles, but the other it is missing the postbit thanks - can I add $postthanks where I want it show up?

I added this from the 3.5.x hack and it worked, but I did not know if that was the right way to do it in the custom style-

Quote:

<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->

shahryar_neo 10-17-2008 05:36 AM

1 Attachment(s)
same thing here :

Quote:

# Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?

# If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation

but i know where is the problem because i had Post Thank You Hack version 7.6 and it's good but after that want to upgrade i overwrite the new javascript file with older and this is the problem . does anybody have "post_thanks.js" file from 7.6 ?

===================

My Problem Solved ! Just Download the older version from attachments and downgrade to that version ( replace the javascript file and upload xml file ( overwrite = Enable ) in Admin CP ...

Thanks

imk 10-18-2008 02:28 PM

fullhelp.com/forum

^the thanked stuff is showing in my postbit, but there is no button on the posts to thank peaople?

any help

imk 10-18-2008 09:48 PM

??????

stamos2003 10-19-2008 07:43 AM

any chance to let the hide hack work with this again? :-/

UKBusinessLive 10-19-2008 07:54 AM

Quote:

Originally Posted by imk (Post 1647691)
fullhelp.com/forum

^the thanked stuff is showing in my postbit, but there is no button on the posts to thank peaople?

any help

I had this and you need to change the option in the admin CP, for the number of post people need to view the thanks button, i changed mine to 1 from 0

Hope this helps, the reason i remember it was because i'd been trying all week to figure it out :o

imk 10-19-2008 12:39 PM

solved cheers

imk 10-19-2008 12:46 PM

could somone please tell me and show me the code edit i need to just show the

Thanked: and the number of times in my postbit

nothing else.....

korny 10-19-2008 05:31 PM

I am looking to see if this hack has to have the user actually post and click the thank you button to see the thread starters post? I want the users to have to actually post.

redlabour 10-19-2008 05:50 PM

1 Attachment(s)
Bug:

Watch the Screenshot (RED) - how to fix this to get this in a normal order?

Or please add a own Category in Quicklinks for Thanks and Groan.

And the Links do not work on vBadvanced installed in / and not in /forum/ because they are still not using the complete Path.

Suggestion:

Please add a Option to deactivate the Quicklink in AdminCP.

imk 10-19-2008 06:14 PM

??????????

redlabour 10-19-2008 06:41 PM

Quote:

Originally Posted by imk (Post 1648426)
??????????

Any Questions?

imk 10-19-2008 10:06 PM

could somone please tell me and show me the code edit i need to just show the

Thanked: and the number of times in my postbit

nothing else.....

realmr 10-20-2008 08:08 AM

is it possible to display all thanked users below the last post I have set only 1 thank per thread option

Gn_Snake 10-20-2008 11:27 AM

Quote:

Originally Posted by Gn_Snake (Post 1625114)
Hi for all,
i have one problem, when I receive thanks and click over to the notification me it does not visualize the page of thanks but the visualize the page thread subscribe ...any idea ???
I have installed Vbexperience.

Thanks

anyone can help me solve this?

Boosted Panda 10-20-2008 03:31 PM

1 Attachment(s)
Hey everyone I can help out a bit here since I have modified the thanks system a bit on my forum.

For people wanting to change the phrases:

Goto the Phrase Manager -> Search Phrases -> "thanked"
post_thanks_times_posts

The standard phrase is: Thanked {1} Times in {2} Posts

If you want to remove the Thanked: X in X posts... replace the phrase with: Thank: {1}

What this will do is display

Thanks: X

Looks much better in my opinion.

Now to post JUST the Thanks part in the post bit and none of the other garbage here is the code below.

PHP Code:

<a href="post_thanks.php?$session[sessionurl]do=post_thanks_add&amp;p=$post[postid]&amp;securitytoken=$bbuserinfo[securitytoken]id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"onclick="return post_thanks_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>);"</if> <if condition="$display_thanks_image == 'none'">style="display:none"</if> rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]border="0" /></a

I attached a screen shot. The thanks are labeled "treats" on my forum.

AteNa 10-24-2008 07:32 AM

Hey ...

I've just installed Post Thank You Hack ...

But there is a problem ... i can use it ...

What does it mean :

Warning: require_once(/srv/www/vhosts/forum/forum/includes/functions_post_thanks.php): failed to open stream: No such file or directory in /includes/class_postbit.php(268) : eval()'d code on line 7
Fatal error: require_once(): Failed opening required '/srv/www/vhosts/forum/forum/includes/functions_post_thanks.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/forum/forum/includes/class_postbit.php(268) : eval()'d code on line 7


What should i do ??

ArnyVee 10-24-2008 06:16 PM

I've been using this mod on my 3.7.1 for the longest with no issues at all :D

But today, I tried to install it on my 3.7.3 'test' forum to make sure that it's working and it doesn't seem to be working. I'm getting a 'link' with the word "thanks" rather than the image. And, when I click on it, it doesn't add anything to the "thanked" count and there is no 'thanked' box that shows.

Is there a fix for this that anyone knows about?

germinus 10-24-2008 08:35 PM

I find it highly amuseing that every post asking for help with security token errors gets completely ignored, I take it this mod is now out of date?

redlabour 10-24-2008 08:39 PM

Quote:

Originally Posted by redlabour (Post 1648409)
Bug:

Watch the Screenshot (RED) - how to fix this to get this in a normal order?

Or please add a own Category in Quicklinks for Thanks and Groan.

And the Links do not work on vBadvanced installed in / and not in /forum/ because they are still not using the complete Path.

Suggestion:

Please add a Option to deactivate the Quicklink in AdminCP.

Any Support???

germinus 10-24-2008 08:54 PM

I dont think the author is offering support for this mod anymore

redlabour 10-24-2008 09:23 PM

Abe1 is a little bit slower then others. Send him a PM - most the Times he react at this Point.


All times are GMT. The time now is 10:51 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.02812 seconds
  • Memory Usage 1,850KB
  • 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_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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