The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Article and Review System (http://www.thevbgeek.com/forumdisplay.php?f=26)
-   -   "post thanks" mod (http://www.thevbgeek.com/showthread.php?t=2117)

efil 09-11-2006 06:48 PM

"post thanks" mod
 
Is there a way to use " [AJAX] Post Thank You Hack" with gars?



Efil.

The Geek 09-11-2006 10:34 PM

I have no clue as Ive never even looked at it. I would have thought you could.

efil 09-12-2006 04:03 AM

1 Attachment(s)
It is a mod that works with vb.
This places a button called 'thanks.' When a user clicks on it, it places his username in a box right under the post saying that so-and-so says 'thanks' for the post.


" [AJAX] Post Thank You Hack"



Efil.

The Geek 09-12-2006 07:56 AM

I dont see any reason why it wouldnt. Just be aware that any template edits will also need to be done in their GARS counterparts too :)

efil 09-12-2006 03:31 PM

Thank you.

I will try.

Efil.

Hornstar6969 09-16-2006 07:18 AM

Quote:

Originally Posted by efil
Thank you.

I will try.

Efil.

If you could let me know if it works for you and what templates you had to edit, and where etc. I'll try this once my server is back up as well.

Thanks.

The Geek 09-16-2006 07:34 AM

All you have to do is apply whatever template edits your make normally to the GARS ones

Hornstar6969 09-16-2006 01:27 PM

Just to confirm, the only template I edited was gars_pb and I got the thanks button showing, the users who have thanked them and the total amount of thanks below the date, all showing in the correct place. It was different then what the edits showed, so if anyone ever has trouble, let me know and ill be glad to help.

I could only get all that to show up for the person who posted the tute, and not for anyone else.

So the thanks button is only showing up for the person who posted the tute. at first i didnt like this, but now i think this is good, so im going to leave it.

Webmist 09-20-2006 04:03 AM

Don't forget GARS_userinfo templates.
Just after :
Code:

$vbphrase[posts]: $post[posts]
Add:
Code:

<!-- Start Post Thank You Hack -->
<br />
$vbphrase[post_thanks_total_thanks]: <strong>$userinfo[post_thanks_user_amount]</strong>
<br />
<if condition="$userinfo[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$userinfo[post_thanks_thanked_posts_on] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$userinfo[post_thanks_thanked_times]" 2="$userinfo[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</td></tr>
<tr><td>
<a href="search.php?$session[sessionurl]do=findthanks&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_thanks_search_user]</phrase></a>
<!-- End Post Thank You Hack -->

This will add it to the published by module.

efil 09-20-2006 04:16 AM

Quote:

Originally Posted by Hornstar6969
Just to confirm, the only template I edited was gars_pb and I got the thanks button showing, the users who have thanked them and the total amount of thanks below the date, all showing in the correct place. It was different then what the edits showed, so if anyone ever has trouble, let me know and ill be glad to help.

I could only get all that to show up for the person who posted the tute, and not for anyone else.

So the thanks button is only showing up for the person who posted the tute. at first i didnt like this, but now i think this is good, so im going to leave it.

Hi,
What canges exactly should i do in gars_pb?
Can you send the code?

Thanks,
Efil.


All times are GMT. The time now is 03:51 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.