vb.org Archive

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

Abe1 03-20-2007 10:13 PM

Quote:

Originally Posted by Cybernetec (Post 1207201)
Not sure if this was mentioned before... I have latest BETA installed and all seems to work fine except when you look at user info in PMs - all counters shows "0". This works fine in posts.

Thanks!

Will be fixed in next release.

Abe1 03-20-2007 10:14 PM

Quote:

Originally Posted by ShayOUU (Post 1208056)
I installed it but the template changes didn't seem to take effect,

What template additions need to be made so I can do them myself?

Go through the install.txt file

Surviver 03-21-2007 04:48 AM

Hello, there seems to be a small bug: Ich i klick thanks an reload the Page, the Thanks Button is shown up.

I fixed it:

In the plugin postbit_display_start, find:
PHP Code:

    else if (can_thank_this_post($this->post$this->thread['isdeleted']))
    {
        
$display_image '';
    } 

and replace with:
PHP Code:

    else if (can_thank_this_post($this->post$this->thread['isdeleted']) AND !thanked_already($this->post$thanks))
    {
        
$display_image '';
    } 

Greetings Surviver

Abe1 03-21-2007 12:21 PM

Quote:

Originally Posted by Surviver (Post 1208557)
Hello, there seems to be a small bug: Ich i klick thanks an reload the Page, the Thanks Button is shown up.

I fixed it:

In the plugin postbit_display_start, find:
PHP Code:

    else if (can_thank_this_post($this->post$this->thread['isdeleted']))
    {
        
$display_image '';
    } 

and replace with:
PHP Code:

    else if (can_thank_this_post($this->post$this->thread['isdeleted']) AND !thanked_already($this->post$thanks))
    {
        
$display_image '';
    } 

Greetings Surviver

I see where the problem is. If you have it disabled to delete thanks then it will let you use the thanks button.

Will be fixed in next release.

mauro1947 03-21-2007 04:54 PM

Quote:

Originally Posted by Cybernetec (Post 1208123)
This is not bug. Re-do template edits.

I re did the templates edit, but the problem still there.
Can you help me?
Thanks
Bye!

defetzer 03-21-2007 06:51 PM

First,my english is not good.

How can i disable the Ajax Feature of this Mod?
What would have to be changed in the code?
Not for the whole forum,only for this hack!

Thank you.

jackstraw01 03-21-2007 10:56 PM

I have done all edits, now I am trying to upload the xml, but it won't upload. I enabled global plugins as well.

Could this be a permissions issue?

jackstraw01 03-21-2007 11:26 PM

Ok, I managed to get is installed using the rc4, but, there is no thank you button displayed on the posts, everything else seems to be working.

Any ideas?

-----

I forgot that I cant thank myself, its works.

Abe1 03-22-2007 01:53 AM

Quote:

Originally Posted by defetzer (Post 1208996)
First,my english is not good.

How can i disable the Ajax Feature of this Mod?
What would have to be changed in the code?
Not for the whole forum,only for this hack!

Thank you.

Delete the AJAX code from the plug in. Anything where you see it check if you have AJAX disabled, delete it.

kingele18 03-22-2007 02:48 AM

i've installed it , it's a great mod but i've a problem
that the box which for ( who thanked) doesnt appear after the post :(
pls. help :)

Abe1 03-22-2007 03:20 AM

Quote:

Originally Posted by kingele18 (Post 1209337)
i've installed it , it's a great mod but i've a problem
that the box which for ( who thanked) doesnt appear after the post :(
pls. help :)

Make sure you did all the template edits.

mauro1947 03-22-2007 11:00 AM

Quote:

Originally Posted by mauro1947 (Post 1208924)
I re did the templates edit, but the problem still there.
Can you help me?
Thanks
Bye!

Nobody can help me?
Thanks a lot!

Sam21 03-22-2007 01:53 PM

Hey I've installed it and it's great but when using the first post ad feature in vB Ad Management 3 (Ad Sharing Edition) the thanks box appears after the ad rather than before it. Where abouts would I edit this?

P.s. Sorry if this is simple, this is my first board.

Abe1 03-23-2007 03:04 AM

Edit where you put the 3rd template edit for postbit

redlabour 03-23-2007 08:58 AM

Quote:

Originally Posted by Abe1 (Post 1210079)
Edit where you put the 3rd template edit for postbit

You announced me a Update to Thanks and Groan Hacks soon - anything new about this?

Abe1 03-23-2007 03:09 PM

Quote:

Originally Posted by redlabour (Post 1210196)
You announced me a Update to Thanks and Groan Hacks soon - anything new about this?

Yup. Soon.

Sam21 03-23-2007 04:26 PM

Quote:

Originally Posted by Abe1 (Post 1210079)
Edit where you put the 3rd template edit for postbit

Thanks alot I appreciate it.

macuser 03-23-2007 06:55 PM

How can I allow the moderators and super moderators to remove all Thanks from a single post

Code:

<if condition="$bbuserinfo['usergroupid'] == 6  ">
<a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>


Abe1 03-23-2007 08:15 PM

Quote:

Originally Posted by macuser (Post 1210557)
How can I allow the moderators and super moderators to remove all Thanks from a single post

Code:

<if condition="$bbuserinfo['usergroupid'] == 6  ">
<a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>


Try is_moderator()

macuser 03-23-2007 10:30 PM

Here is my template change
Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
All moderators can see the remove link but nothing happens wenn they click

Abe1 03-24-2007 11:38 PM

Quote:

Originally Posted by macuser (Post 1210675)
Here is my template change
Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
All moderators can see the remove link but nothing happens wenn they click

Good point. You have to edit the functions file also.

leftie 03-25-2007 09:08 AM

Yesterday i made an upgrade from vb3.0.12 to 3.6.5. This hack was installed in the old vb. I have tried to upgrade to this version but am getting a sql error when trying to upload the xml. Can you tell me how to correct this please.

EDIT. Forget the above, i have just read back and found that i have to run 4 sql query's when upgrading from 3.0.x .

macuser 03-25-2007 10:27 AM

Quote:

Originally Posted by Abe1 (Post 1211438)
Good point. You have to edit the functions file also.

functions_post_thanks.php
Code:

function can_delete_all_thanks()
{
        global $vbulletin;

        if ($vbulletin->userinfo['usergroupid'] == '6')
        {
                return true;
        }

How can i edit 6 to 5,6,7 ?

Thanks

Surviver 03-25-2007 12:40 PM

Quote:

Originally Posted by macuser (Post 1211709)
functions_post_thanks.php
Code:

function can_delete_all_thanks()
{
        global $vbulletin;

        if ($vbulletin->userinfo['usergroupid'] == '6')
        {
                return true;
        }

How can i edit 6 to 5,6,7 ?

Thanks

PHP Code:

function can_delete_all_thanks()
{
    global 
$vbulletin;

    if (
is_member_of($vbulletin->userinfo, array(5,6,7)))
    {
        return 
true;
    } 

Try this ;)

RedTyger 03-26-2007 09:10 AM

Quote:

Originally Posted by Sam21 (Post 1209573)
Hey I've installed it and it's great but when using the first post ad feature in vB Ad Management 3 (Ad Sharing Edition) the thanks box appears after the ad rather than before it. Where abouts would I edit this?

P.s. Sorry if this is simple, this is my first board.

Just happened to be passing...the reason for the order when using my modification is a bug in Internet Explorer 6 where dropdown menus would stop working with adcode (presumably just javascript code, not sure) immediately below them. So if you change the order, be aware you may be affecting IE6 users.

vampireus 03-30-2007 07:21 AM

Hi, is it possible to bump a thread when a user click thank?

ePrOmD 03-30-2007 02:01 PM

hi! it?s a very cool and necessary hack :D
i want to install it in vb 3.6.4 , but when i wanna upload it, i get the following error in my browser:

Quote:

ERROR
El URL solicitado no se ha podido conseguir

Mientras se intentaba traer el URL: http://www.arquinauta.com/foros/admincp/plugin.php?
can somebody help me? tks a lot!

Abe1 04-01-2007 12:39 PM

Quote:

Originally Posted by vampireus (Post 1215942)
Hi, is it possible to bump a thread when a user click thank?

I tried and failed.

It would bump the thread but the thread would not get marked as read unless there was a poll in it.

Abe1 04-01-2007 12:39 PM

Quote:

Originally Posted by ePrOmD (Post 1216117)
hi! it?s a very cool and necessary hack :D
i want to install it in vb 3.6.4 , but when i wanna upload it, i get the following error in my browser:



can somebody help me? tks a lot!

You can't expect me to understand that!

vampireus 04-01-2007 04:07 PM

Quote:

Originally Posted by Abe1 (Post 1217465)
I tried and failed.

It would bump the thread but the thread would not get marked as read unless there was a poll in it.

Hi, I really need that function even if it's not perfect yet. Would you please show me how to do it? Thx a lot.

Abe1 04-01-2007 06:19 PM

Quote:

Originally Posted by vampireus (Post 1217606)
Hi, I really need that function even if it's not perfect yet. Would you please show me how to do it? Thx a lot.

It would be really painful for users since it wont mark threads as read ever.

Exitilus 04-01-2007 07:52 PM

I downloaded the Beta earlier in this thread ... have their been any updates to that file? I lost where that thread was *L*

rjmjr69 04-02-2007 10:01 AM

Abe any news on the GOLD version yet bro?

Keep up the good work. Post Groan almost done as well?

Abe1 04-02-2007 12:21 PM

Quote:

Originally Posted by rjmjr69 (Post 1218224)
Abe any news on the GOLD version yet bro?

Keep up the good work. Post Groan almost done as well?

Almost ready. I'm just finishing with the post groan update, will release one more RC and then Gold hopefully.

VBDev 04-02-2007 08:14 PM

It would had been really nice to say who was the first author of this hack ! :(

redtailboa 04-04-2007 01:40 AM

Feature request:

Limit the amount a user can thank in 24 hours.

Great hack btw!!

NolF 04-04-2007 11:40 AM

It is probably going to late to add my suggestions (if you ever have the intention to put them) on the next release but it would be good to consider adding a couple of features to both Thank you and Groan hacks.

IMPORTANT I would add on the user profile a search options to find out which posts X users has either groaned or thanked. I had I look my self but the query would be too complicated for my level :(. This is important, because immature users tend to abuse from the system either over thanking or over groaning (specially the second one). This feature would make finding this guys much easier.

Another interesting option would be allow X user-groups (defined on acp) to delete all groan/thanked (in one post) instead of hardcoded.

(this one might be in this upcoming version but still...) Number of groaned or thanked posts updated via AJAX.

Add a confirmation when you are going to delete all the thanked or groaned from one post.

In my forum I also added a nice little feature so u can compress who has thanked or groaned a post, this way, good topics are not interrupted when a post is thanked/groaned. (Couldn't get it to use just one image to compress and decompress the table, still... it works xD) [see attachments](PS sorry the buttons are in Spanish, one says "praise" (green) and the other "criticize" (red) and the Chinese things go with the site topic)

Another thing (if reputation activated) I've came to notice is that when you give a thank or groan to a post, afterwards if you try to give reputation to it you get an error message saying this post has already been given reputation, but if you give the reputation first, then you can thank or groan. Maybe this could lead to a db corruption, maybe is harmless, or it was done in purpose so you can do both ^^.

It would be cool to use decimals instead of whole numbers for the reputation feature, put I guess it requires a lot of db changes and of the system it self which would make it a pain in the ass to do.

-------------------------
Besides that, the hack is a joy to have. Will be anxiously waiting for the new versions ^^

Abe1 04-05-2007 12:48 PM

Post Thank You Hack 6.0 RC5 Released in this Post.


This is hopefully the finial release candidate for this version.

Some bugs fixed.
Hooks (plug-ins) added around the hack to make it easy to play around with the hack and make your own mods.
Integration with Post Groan Hack 3.0 RC1.

Some template edits changed.

Abe1 04-05-2007 12:53 PM

Feel free to suggest locations of hooks.

rjmjr69 04-05-2007 03:45 PM

Do we have to do the template edits again? For upgraders


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.03450 seconds
  • Memory Usage 1,852KB
  • 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
  • (6)bbcode_code_printable
  • (5)bbcode_php_printable
  • (21)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