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)

Hecpilot 04-26-2011 04:20 AM

Quote:

Originally Posted by RcHelp (Post 2188751)
Installed on 4.1.3 and works great. It's nice to finally have a way for new members to see who they can actually trust on a forum. Even though mine is just starting out. Great work, keep it up!

Which version did you install?

Hippy 04-26-2011 07:40 PM

Quote:

Originally Posted by Hecpilot (Post 2188754)
Which version did you install?

most likely https://vborg.vbsupport.ru/showpost....postcount=1433

Hippy 04-26-2011 07:51 PM

1 Attachment(s)
Quote:

Originally Posted by gnrx (Post 2188698)
A few days ago, I add in my additional.css this code:
Code:

.postbit .userinfo_extra dl dt {clear: both;}
.postbit .userinfo_extra dl dd  {float: left;}
.postbit .userinfo .userinfo_extra dl, .postbit .userinfo_noavatar .userinfo_extra dl {width: 200px;}

After this, I modified some line in vars (with indications of some post here):

In template post_thanks_postbit_info
search and replace all vb:stylevar right by vb:stylevar left

All ok, but in some users, in postbit, some line of thanks appears in the same line, other users, have the thanks in differents lines (this is ok).

I attachs a images for view this:

How can I made for appears in all postbits, the thanks lines, in differents lines?

Thanks and regards!

change your post_thanks_postbit_info template to this..
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>

while your there editing your template


change your post_thanks_javascript template
to this one there is a } missing. fixes a different problem..

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>

the template fix should keep it looking like the image attached , no matter how may post thanks

Mariner1 04-26-2011 09:13 PM

I get this error

This product is not compatible with version 4.1.3 of vBulletin. (Compatible starting with 4.0.0 beta 4 / Incompatible with 4.1.0 alpha 1 and greater)

Hippy 04-26-2011 10:16 PM

Quote:

Originally Posted by Mariner1 (Post 2189036)
I get this error

This product is not compatible with version 4.1.3 of vBulletin. (Compatible starting with 4.0.0 beta 4 / Incompatible with 4.1.0 alpha 1 and greater)

https://vborg.vbsupport.ru/showpost....postcount=1433
grab that one

gnrx 04-26-2011 11:11 PM

1 Attachment(s)
Quote:

Originally Posted by Hippy (Post 2189005)
change your post_thanks_postbit_info template to this..
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>

while your there editing your template


change your post_thanks_javascript template
to this one there is a } missing. fixes a different problem..

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>

the template fix should keep it looking like the image attached , no matter how may post thanks

Hello.
Thanks for your reply.

I made the changes in the two templates, but my problem continue, only some users (or postsbits) appears the thanks in the same line, I attach a image after made the changes you comment.

Thanks and regards!

Hecpilot 04-26-2011 11:14 PM

Quote:

Originally Posted by Hippy (Post 2189002)

Thanks, that is the one I downloaded and installed. Works fine with vBulletin 4.1.3.

Hippy 04-26-2011 11:24 PM

Quote:

Originally Posted by gnrx (Post 2189068)
Hello.
Thanks for your reply.

I made the changes in the two templates, but my problem continue, only some users (or postsbits) appears the thanks in the same line, I attach a image after made the changes you comment.

Thanks and regards!

try this

find
Code:

<dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
in your post_thanks_postbit_info template
and add a <br /> after the </dd>

gnrx 04-26-2011 11:39 PM

Quote:

Originally Posted by Hippy (Post 2189070)
try this

find
Code:

<dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
in your post_thanks_postbit_info template
and add a <br /> after the </dd>

Hi Hippy!
Thanks for your help.

I made the changes but continue, not solved the problem, continue appears in the same line.

Thank you very much for your attention :)

Hippy 04-27-2011 12:34 AM

I'm going to have to ponder this one..
send me a link to your forum I will peek at the code..

gnrx 04-28-2011 12:09 AM

Thank you very much for your help Hippy :)

I send to you the url of my forum by mp.

Again, thank you very much!

Mariner1 04-28-2011 07:40 AM

Quote:

Originally Posted by Phaedrus (Post 2181392)
Okay, I'm going to post the version that I have integrated with the groans on my site, the search feature is off until I can figure out the correct search string to find all thanks/groans. I'll also post the groans that I added back the integration to. If you upgrade check your dbase for an extra "post" in your dbase in the post_thanks/post_groans tables. For some reason it adds an extra one that is useless.

Tell me if there are any issues, if this is clean I guess I can post a new thread with both hacks with credit to the original coders...


works a treat on 4.13,thank you

WIJI SEJATI 04-28-2011 08:02 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=261869&highlight=Post+Groan+Hack" target="_blank">https://vborg.vbsupport.ru/showt...ost+Groan+Hack</a>

Hecpilot 04-29-2011 05:43 AM

Quote:

Originally Posted by adryan77 (Post 2185922)
Fatal error: Class 'THANKS' not found in /var/kXXXXXXXXkum/vb/legacy/post.php on line 236

i become this error after i click on "show all postings by user" at his profil!

Installed is: VB4.1.2pl1 and post thank you 7.8.2 anyone can help?

Thanky

I'm having the same problem. Solutions anyone?

xpinx2pin 04-29-2011 12:53 PM

Quote:

Originally Posted by Hecpilot (Post 2189907)
I'm having the same problem. Solutions anyone?

try this link

its works
https://vborg.vbsupport.ru/showp...postcount=1433

Hecpilot 04-29-2011 01:43 PM

Had trouble with your link. But I think your were kindly showing me the way to Phaedrus' latest revision. I went back and checked post 1433 and found it is the same one I have installed.

Any other ideas?

[EDIT] Problem solved. It was caused by left-over code from the DB Tech Thank You hack. I forgot to disable a modification I did to post.php as part of the install instructions from DB Tech. I removed those lines and the problem went away.

Quote:

Originally Posted by xpinx2pin (Post 2189976)


tester559 04-29-2011 07:12 PM

How does a member search for users who thanked them? I can't find it anywere...

Hecpilot 04-30-2011 05:44 PM

Quote:

Originally Posted by adryan77 (Post 2185922)
Fatal error: Class 'THANKS' not found in /var/kXXXXXXXXkum/vb/legacy/post.php on line 236

i become this error after i click on "show all postings by user" at his profil!

Installed is: VB4.1.2pl1 and post thank you 7.8.2 anyone can help?

Thanky

This is caused by left-over code from the DB Tech Thank You hack. Disable the modification you did to post.php as part of the install instructions from DB Tech.

I had the same problem. I removed those lines and the problem went away.

ram94401 05-05-2011 07:42 PM

Quote:

Originally Posted by Mariner1 (Post 2189583)
works a treat on 4.13,thank you

I tried to install this on VB 4.13, got the error message "This hack is not compatible with 4.13"

Rofo 05-05-2011 07:58 PM

Quote:

Originally Posted by Hippy (Post 2189057)

Quote:

Originally Posted by ram94401 (Post 2192408)
I tried to install this on VB 4.13, got the error message "This hack is not compatible with 4.13"

Did you see this?

ram94401 05-06-2011 12:50 PM

Quote:

Originally Posted by Rofo (Post 2192411)
Did you see this?

Thanks Rofo, I didn't know. I will check it out.

Danny M 05-06-2011 07:59 PM

Anyone know how to change the text from "Thanked x Times in x Posts" to say "Thanks Received: x" in a users profile next to their post.

haytham 05-09-2011 01:23 PM

When I try to check my PM or any other member tries to use the PM system, we get this error:
Database error in vBulletin 3.8.7:

Invalid SQL:
SELECT * FROM post_thanks AS post_thanks INNER JOIN user AS user USING (userid) WHERE post_thanks.postid IN () ORDER BY post_thanks.username ASC;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY post_thanks.username ASC' at line 1
Error Number : 1064

Can any one explain please???

Badshah93 05-09-2011 05:24 PM

i installed the hack in vbulletin 4.1.3 but it doesn't show anything. i uploaded that fixed one also, but doesn't work.

Mark.B 05-09-2011 10:00 PM

Quote:

Originally Posted by haytham (Post 2193649)
When I try to check my PM or any other member tries to use the PM system, we get this error:
Database error in vBulletin 3.8.7:

Invalid SQL:
SELECT * FROM post_thanks AS post_thanks INNER JOIN user AS user USING (userid) WHERE post_thanks.postid IN () ORDER BY post_thanks.username ASC;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY post_thanks.username ASC' at line 1
Error Number : 1064

Can any one explain please???

This version of the modification is for vB4.

You need the older 3.8 version - check Abe1's profile, it's listed there.

FASEOFMARS 05-10-2011 12:46 AM

dont work.......

djbaxter 05-10-2011 01:09 AM

Quote:

Originally Posted by FASEOFMARS (Post 2193863)
dont work.......

Bad advice. How are you going to pay your rent and buy dinner? Not to mention your hosting fees...

Hecpilot 05-10-2011 01:12 AM

Funny, I was thinking the same thing myself.

To the original poster, if you provide more details about your problem, you will find many nice people on this forum that will help you.

Quote:

Originally Posted by djbaxter (Post 2193867)
Bad advice. How are you going to pay your rent and buy dinner? Not to mention your hosting fees...


pixelkicker 05-10-2011 03:35 PM

I'm running 4.1.3 - is there a version out there of this hack for version 4.1.*?? I get an error saying it's incompatible when importing the .xml file.

Hippy 05-10-2011 10:25 PM

<a href="https://vborg.vbsupport.ru/showpost.php?p=2192411&postcount=1501" target="_blank">https://vborg.vbsupport.ru/showp...postcount=1501</a>

mishb68 05-11-2011 03:24 AM

I don't know about anyone else but I'm really confused.

I downloaded the zipped file with all the files and folders in it and I'm ready to install it on 4.1.3 but until I download something else, or make some changes somewhere it's not going to be compatible? I see there are extra files to download in the thread but they are just single PHP files with no instruction on what to do with them.

I'd love to install this mod on my board but being relatively non technical ( I barely manage) I have no idea what to do.

Is there any chance of a fresh thread with full instructions & a new zip file to download for those wanting to install on 4.1.3?

Thanks,

Vaira 05-11-2011 07:30 AM

Quote:

Originally Posted by DragonByte Tech (Post 2183610)
Just a little note that Abe was far from the first person to create a thanks mod (It's very likely he got the idea elsewhere), and our modification does not use any code from Abe's mod - it is created from scratch with many more features than Abe's mod had =).

The idea of it being morally questionable to be paid for ones work seems odd to me, most people do not work for free, including yourself in all likelyhood :)

Iain

You have missed the point. You have included the importer which reads abe1's tables into your paid version with the intention to make more profit. You know that abe1 has canceled support and that many of us are using his hack already.
To get paid for own work is out of question. Compared to your free version it is almost no effort to write a script that reads tables. Almost no effort to have most profit. Profit made because of the fact that we are using abe1's tables already.

If I am wrong than just provide the importer at your free version as well.
Anything else is pointless arguing to me.
If you would provide the importer at the free version as well, your profit will decrease. I know that and you know that and hence it is available at your paid version only ;)

Hippy 05-11-2011 08:47 PM

Quote:

Originally Posted by mishb68 (Post 2194296)
I don't know about anyone else but I'm really confused.

I downloaded the zipped file with all the files and folders in it and I'm ready to install it on 4.1.3 but until I download something else, or make some changes somewhere it's not going to be compatible? I see there are extra files to download in the thread but they are just single PHP files with no instruction on what to do with them.

I'd love to install this mod on my board but being relatively non technical ( I barely manage) I have no idea what to do.

Is there any chance of a fresh thread with full instructions & a new zip file to download for those wanting to install on 4.1.3?

Thanks,

this is the updated fixed version..

https://vborg.vbsupport.ru/showpost....postcount=1433
since it's mo longer suported a few are trying to help keep it working

FASEOFMARS 05-12-2011 12:51 AM

cool i'll give it a try.....

GONUMBER6 05-12-2011 02:18 PM

Quote:

Originally Posted by Hippy (Post 2194225)

Wish there was a Thanks button here so I could thank you for posting the fixed Thanks! :up::up::up::D:D:D

sadiq6210 05-13-2011 05:05 PM

Sorry, wrong place =)

djbaxter 05-13-2011 08:45 PM

Quote:

Originally Posted by Vaira (Post 2194339)
You have missed the point. You have included the importer which reads abe1's tables into your paid version with the intention to make more profit. You know that abe1 has canceled support and that many of us are using his hack already.
To get paid for own work is out of question. Compared to your free version it is almost no effort to write a script that reads tables. Almost no effort to have most profit. Profit made because of the fact that we are using abe1's tables already.

If I am wrong than just provide the importer at your free version as well.
Anything else is pointless arguing to me.
If you would provide the importer at the free version as well, your profit will decrease. I know that and you know that and hence it is available at your paid version only ;)

Precisely.

DragonByte Tech 05-13-2011 09:37 PM

Quote:

Originally Posted by Vaira (Post 2194339)
You have missed the point. You have included the importer which reads abe1's tables into your paid version with the intention to make more profit. You know that abe1 has canceled support and that many of us are using his hack already.
To get paid for own work is out of question. Compared to your free version it is almost no effort to write a script that reads tables. Almost no effort to have most profit. Profit made because of the fact that we are using abe1's tables already.

If I am wrong than just provide the importer at your free version as well.
Anything else is pointless arguing to me.
If you would provide the importer at the free version as well, your profit will decrease. I know that and you know that and hence it is available at your paid version only ;)

I'm not sure i understand your argument - if we supply it for free, we will make less money, therefore we SHOULD supply it for free?

That doesn't really compute to me. Would you work for free because you deserve to be paid less for your work? I don't think you would.

We are a business, of COURSE we are trying to make a profit - without doing that we would go out of business, which would mean no more mods (Lite OR Pro).

I'm not sure what it is exactly that makes you feel you are entitled to using our work for free. Do you also go and demand free software/features from Internet Brands? How about Microsoft?

Can you give me one reason why we should give you what you want for free? What have you ever done for us? What free labour have you provided to us? Why haven't you coded your own thanks mod and given it to us for free? Please give me on single reason as to why you are entitled to our work ANY of it, regardless of how big or small it is, for free.

To be honest it is things like this which drive coders away from vB.org - people who feel they should get products and features for free because they have some sort of entitlement or right. I wouldn't be surprised if people feeling entitled is what drove Abe away either.

You are getting something for FREE. Take a second and let that sink it. It is free and you even have the option of not using it. How exactly does this make us the bad guys? Even though we have a better pro version, we are still offering versions of our mods for FREE.

Are you suggesting it would be better if we didn't give anyone anything for free? Thats fine - Don't download our stuff, that solves your problem instantly.

Honestly, this attitude of "you gave us something for free, now give us more features for free or you're evil" is pretty immature and offensive.

Why not go learn to code and make your own mods and release those for free? Is it because you don't have the time to do that - because you have to spend time working to make money perhaps?

In that case i level your own criticism at yourself - stop spending your time making money and start creating free stuff for me.

Hopefully you see how ridiculous that argument is.

Iain

djbaxter 05-13-2011 10:10 PM

Hopefully you'll save the promotion of your mods for their own threads.

pwnedPRO 05-14-2011 11:36 AM

on 4.1.3/4.1.4 worked? :)


All times are GMT. The time now is 02:25 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.04128 seconds
  • Memory Usage 1,869KB
  • 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
  • (7)bbcode_code_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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