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)

Danial_Faster 12-24-2008 03:54 PM

please help me

Danial_Faster 12-25-2008 05:29 AM

My members when use thanks,show the below PM;
Shop_IR, you do not have permission to access this page. This could be due to one of several reasons:

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.

Uber_Tiny 12-25-2008 07:22 PM

Sorry, after reading over the comments made about this hack and the non response from the OP I am uninstalling. I don't want to deal with bugs that should have been tested for better.

Abe1 12-26-2008 12:21 AM

Quote:

Originally Posted by stuarttunstall (Post 1664456)
Ok, I have now got this to work.... sort off :)

In the default vB 3.7.1 skin, all features work, and it shows "thanked x in x posts", but in my custom skin, this wording does not appear under the username/stats on the left hand side in the postbit. All other features appear OK.

Do I need to add anything to my custom skin to make this appear? if so what do I need to add?

Thanks

Stuart

Yes, you need to add the $template_hook varibales. Use the compare template option that vb has by the templates.

Quote:

Originally Posted by DiesellMinded (Post 1664577)
Does this version work for 3.7.4 ?

Yes, it does.

Quote:

Originally Posted by adamskiii (Post 1665091)
Thank you for this wonderful mod :D. I have installed this on 3.7.4 version and works great. The only problem I have is when I set the Use Legacy (Vertical) Postbit Template option to yes the mod does not show up on the side but the thanks button is there. Any way to fix this so that the mod also shows up in the Vertical Position?

thanks

Check the postbit_legecy template. Use the compare option that vb has there. Make sure all the $template_hook varables are there.

Quote:

Originally Posted by Pehchaan (Post 1665896)
Yes, I can see that in regular vb setting.

I have no clue. What is the url it is giving you? What URL to you use in vbulletin options to see the thanks option?


Quote:

Originally Posted by juanpablo (Post 1666311)
I would like to know the query or how can I delete all thanks (given and recived)... I like to restore all to 0. Thanks!

TRUNCATE `post_thanks`;

Then run the recounters.

Quote:

Originally Posted by Talk-Pets (Post 1666653)
I just tried it on my 3.7.4 board and the icon shows fine. But when you click at it it pops up and says "page not found" :confused:

I followed the instructions given and it shows fine in the admin cp..

Any suggestions to a newbie?

No clue. I would have to check your ACP to make sure you installed the hack correctly.

Quote:

Originally Posted by Skyline_GT (Post 1667077)
will you update this hack for 3.8?
https://vborg.vbsupport.ru/showthread.php?t=104845

I dont think so. Due to AJAX, I have decided not to. Although, I do know some programing now that I didn't know then so maybe I'll give it a try again some day.

Quote:

Originally Posted by adamskiii (Post 1667078)
what code do I add to make it show up for Use Legacy (Vertical) Postbit Template?

thanks

It's not an option in this hack. It checks to see is you are using the legacy version or not.
Quote:

Originally Posted by Doomday (Post 1667482)
Is there anyway to hide the thanks button after a thread is closed? i really need this !!!!!!!!!

Not currently. You can make an addon very easy though. Contact me via PM if you want to pay me to make it.
Quote:

Originally Posted by hIBEES (Post 1667687)
Is this the fix, some of my users get the no permission error,will downgrading fix it ?

I never found what the problem is. I have to see the problem on a forum in order to fix it.

Quote:

Originally Posted by anthroforum (Post 1668198)
I use postbit legacy with default skin.

Not thanks button. Checked source code, it's not even looking for the GIF.

Is the template customized? Make sure you have the $template_hook variables in the template.

Quote:

Originally Posted by DiesellMinded (Post 1673842)
How do i remove the post bit part ..


Only in Style id 6 ?

You would need a custom add-on created. It costs $$.

Quote:

Originally Posted by RobbieZ (Post 1675815)

Hey Abe.

How do I move the thanks icon to the left hand side. ie before the QUOTE icon ?

https://vborg.vbsupport.ru/external/2008/12/21.jpg

Thnks

Open template 'postbit'.
Find: $template_hook[postbit_controls]
Move it right under: <!-- controls -->

Quote:

Originally Posted by melbourne (Post 1677658)
Uninstalled,causing error every time using the hack

If you get me ACP access, I can figure out what is causing the errors.

Quote:

Originally Posted by TomasDR (Post 1678242)
I am having an odd problem.

I have php being dumped before the header this happens when looking at a thread or with Recounters or Special Actions in admincp. The same thing happens with your groan hack.

Attached is a SS.

This is on 3.7.4PL1

I fixed this issue it looked like an upgrade problem. I started over with the test board and uninstalled the old mod before installing. Of course after removing the DB uninstall code so I wouldn't lose my previous thanks.

Just to be sure, you figured it out and it was not a post thanks issue?

Quote:

Originally Posted by anthroforum (Post 1678661)
Hi,

How can I reduce the size of the text in post_thanks_box_bit ?

This is the code:

HTML Code:

<div class="fairlysmalltext"><a href="member.php?$session[sessionurl]u=$thank[userid]" rel="nofollow">$thank[username]</a>$virg</div>

Produces this effect, text is smaller (good) but it is broken up into separate lines:

https://vborg.vbsupport.ru/external/2008/12/22.jpg

You're better better off using 'small' tags around the text.
Quote:

Originally Posted by TaMpE (Post 1678669)
I don't see the button, I see only the "Thanks" letter alone. Where can I edit or what should I edit?

Make sure you put the thanks button in the button folder of your styles also.

Quote:

Originally Posted by Notorious Jay (Post 1679407)
I don't know if anyone else noticed this and I just did not see the post in this thread because I sure as hell aint reading 89 pages worth of posts, but since I installed this hack backing up SQL has failed which I hadn't even known until I tried to do it the other night as one of the other site admins was supposed to be doing it weekly and the server owner asked me about it.

I did not take the time to look at the code, but I'm pretty sure based on the SQL fail email that this is your problem, just did not look to see where it's located.


Invalid SQL:
SHOW CREATE TABLE post_thanks;


-If I am the first person to notice this shame on you people for not backing up your sites.-

Well ok I searched the thread and someone else has already asked this question in July, but I didnt see an answer... ?

Why would this happen just to the post_thanks table. It's not my hack that creates that query.

Quote:

Originally Posted by Lizard King (Post 1680670)
Hello Abe ,

Is it possible to let post owner thank himself also ? I desperately need this as i am going top use this mod with a different purpose then it is originally coded for.

There is an option in the settings to allow the poster to thank himself.

Quote:

Originally Posted by MrEyes (Post 1681847)
Has anybody encountered this problem:

One of my members pointed out today that a post is showing one member name that has thanked it, but in the title of the thanks box it says that it has been thanked twice.

Just incase I have run the recounters and this hasn't made any difference.

Could it be that you deleted a user who had thanked the post?

Quote:

Originally Posted by JetHaCkR (Post 1682218)
Hey when I click on Post Thanks Settings,
it takes me to /options.php?do=optionsdogroup=post_thanks which is basicly blank.

Isn't it supposed to take me to /options.php?do=options&dogroup=post_thanks instead of /options.php?do=optionsdogroup=post_thanks?

Are you sure the xml file is up to date? The & is there for me.

Quote:

Originally Posted by Maddogz420 (Post 1682808)
The "Thanked X times in X posts" isnt showing up on my postbit_legacy, probably due to custom themes. Is there something i can add manually to have it show?

Use the compare feature to get the $template_hook variables added to the template.

Quote:

Originally Posted by Doomday (Post 1683298)
marks as unistalled, wait long enough still no answer yet...

Sorry about that. I've been very busy lately.

Quote:

Originally Posted by hornstar1337 (Post 1685456)
Major bug/or/glitch/or/exploit

- Member has been thanked 1 times in 1 post
However is showing up as Total Thanks: 4,294,967,294
Link: http://www.gamerzneeds.net/forums/members/rictor.html

I removed the 1 thanks they received. I repaired and optimized the database, but they still have Total Thanks: 4,294,967,294

What do I do to fix this?

I see all set to 0 now.

Quote:

Originally Posted by anderow (Post 1685522)
I also have quite a big problem...

Although the hack has been working fine until now, we had a few users join who were giving each other a large amount of thanks to bump their numbers up (I now have imited max thanks per day..)

But I reset the 'thanks given' by one of the users, and then reset all of the counters

but the thanks number of 201 still remains for this user and the one user he had been thanking??

has anyone else had this>?

Running 3.7.3 patch level 1

How can I fix it asap please?

thanks

Quote:

Originally Posted by anderow (Post 1686072)
ok

Well I had to go to the post_thanks database table and also the user one

and manually delete the thanks.

It does not work from the admin panel on the version stated above

Are you sure the files you have are up-to-date? I know this feature is working right now. You have to just put the userID of the user you want to remove all their thanks given.

Quote:

Originally Posted by Phalynx (Post 1686690)
Any possibility to recount reputation after I enable post_thanks_reputation? We got Post Thank You running since years and had tons of postings...

I did not find any option in maintenance/recount.

Nope. No way to do it. Post thanks adds a row to reasons why a user got rep points.

Quote:

Originally Posted by dtv100 (Post 1690913)
I get this msg :

, you do not have permission to access this page. This could be due to one of several reasons:

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.

and this is how url look like:

http://www.domain.com/forums/post_th...417ddfa9197fb4

i not part of a ban group or a second group .

can this be update to allow by usergroup to correct this problem?

how i can fix this?

thanks

Do you have the latest files installed?

jlew24asu 12-28-2008 11:59 AM

can someone please help me make a thanks button for my style?

newtsys 12-28-2008 06:06 PM

Abe with the 7.7 how do we box it like the rest of the posbit_ legacy? I have looked and tried several diffrent areas and still wont work. I have even tried Paul and Sonnys method and still nothing...need help please.

lovechandigarh 12-28-2008 06:57 PM

Quote:

Originally Posted by Abe1 (Post 1455392)
Make your own plug-in. Use 'post_thanks_function_fetch_thanks_start' and put in it:

PHP Code:

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



I created and activated the plugin, but it doesn't work...

algor65 12-30-2008 06:43 PM

Thanks, it is a nice item!!!!

AfterWorldForum 01-03-2009 05:31 PM

Hi, and first of all, all the best wishes for the new year. Secondly, thanks for this mod. It's very useful.

Couple of questions for the author:

1) Would you feel that it is fair if somebody would customize your MOD to suit their needs? I love the idea of cutting back on useless drivel in my forum, but I have a few other ideas with it, rather than just a "thank you" (Think bug tracking. 1 version showing "Me too" to show other users experience the same bug, and another showing "not me" to indicate they do not see the same results). So far, I've been trying to work on replacing text strings in your code, but it's tedious at the best (due to "thanks", "thank", and "thank you" strings being mixed. If you feel me customizing the mod is not appropriate, please let me know).

2) What would you estimate performance impact to be if the mod would be installed numerous times on the same site? If I enable a speciic "flavour" of the mod for a specific subforum (sometimes twice for the same sub forum, as in "good" or" bad", etc), will the code be able to rely on a cached index of the specific subforums a mod applies to, or will say, 10 different uses of the mod each on their specific sub forum lead to 10 extra queries for every post made on the site as a whole?

Very sorry if this has been answered before. I just did not have the time to manually read through all the posts. I tried doing some generic searches, but did not find anything.

EDIT: Two more things.

3) If it's not cached yet, any chances to have that implemented soon? Please do. I'd gladly make it worth your while, financially (within limits, but feel free to PM me with a price quote).

4) One more thing that would really make this useful, and I'm not sure this is supported yet, would be the ability for users to sort threads based on the amount of times a user clicked an option. For instance, referring back to the support section, I'd love to be able to give users the ability to sort the number of times a bug has been registered, in order to find the most commonly logged problems. This, too, could be done as an extra, and paid for).

Thanks :)

Abe1 01-03-2009 10:17 PM

Quote:

Originally Posted by EntropiaPlanets (Post 1700503)
Hi, and first of all, all the best wishes for the new year. Secondly, thanks for this mod. It's very useful.

Couple of questions for the author:

1) Would you feel that it is fair if somebody would customize your MOD to suit their needs? I love the idea of cutting back on useless drivel in my forum, but I have a few other ideas with it, rather than just a "thank you" (Think bug tracking. 1 version showing "Me too" to show other users experience the same bug, and another showing "not me" to indicate they do not see the same results). So far, I've been trying to work on replacing text strings in your code, but it's tedious at the best (due to "thanks", "thank", and "thank you" strings being mixed. If you feel me customizing the mod is not appropriate, please let me know).

2) What would you estimate performance impact to be if the mod would be installed numerous times on the same site? If I enable a speciic "flavour" of the mod for a specific subforum (sometimes twice for the same sub forum, as in "good" or" bad", etc), will the code be able to rely on a cached index of the specific subforums a mod applies to, or will say, 10 different uses of the mod each on their specific sub forum lead to 10 extra queries for every post made on the site as a whole?

Very sorry if this has been answered before. I just did not have the time to manually read through all the posts. I tried doing some generic searches, but did not find anything.

EDIT: Two more things.

3) If it's not cached yet, any chances to have that implemented soon? Please do. I'd gladly make it worth your while, financially (within limits, but feel free to PM me with a price quote).

4) One more thing that would really make this useful, and I'm not sure this is supported yet, would be the ability for users to sort threads based on the amount of times a user clicked an option. For instance, referring back to the support section, I'd love to be able to give users the ability to sort the number of times a bug has been registered, in order to find the most commonly logged problems. This, too, could be done as an extra, and paid for).

Thanks :)

1) Sure you customize this hack to your own liking.

2) The current hack adds one query to every showthread or showpost page load.

3) THe only cache that is current does is it stores the total times a post is thanked. and the stats.

4) This hack is based on posts and not threads.


All times are GMT. The time now is 11:11 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.03165 seconds
  • Memory Usage 1,828KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (30)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