Turn "Post Groan Hack" Into Dislikes, Similar to BOP5 Likes System!
Before Anything else is done! This is the thread that made me want to do this!
https://vborg.vbsupport.ru/showthread.php?t=266358 Thanks BOP5! [post layed out the same as BOP5 to make it easier!] Before starting off, You must make your own dislike.png picture, We have a custom theme so the button I have will not suit you! View our forum! http://pvhax.com/forums/showthread.p...961#post454961 __________________________________________________ ______ You need the latest version Abe1's Post Groan Hack (4.1) Here So step 1 is make sure you have the ?Groan? mod installed and working. Step 2 is to change the following phrases. In Admin CP use Phrase Manager to "translate" these phrases from "Groan" to "Dislike(s)": You can of course use your own translations but this is what I used- Phrase Name | Translation: post_groan_already | You have already disliked this post! post_groan_groan | Dislike post_groan_groaned_post | Disliked post post_groan_hack | Dislikes post_groan_remove_all | Remove all post_groan_remove_user | Remove your dislike post_groan_search | Find all disliked posts post_groan_search_user | Find all disliked post by {1} post_groan_search_user_gave | Find all posts disliked by {1} post_groan_time_post | Disliked at 1 Time in 1 Post post_groan_times_post | Disliked {1} Times in 1 Post post_groan_times_posts | Disliked {1} Times in {2} Posts post_groan_total_groans | Total Dislikes post_groan_user_says | The Following User Dislikes the post by {1} post_groan_user_say | The Following {1} Users Dislike the post by: {2} Some of the above we won't actually use in my implementation but best to fix them all to be consistent. Step 4: Now we have to edit a couple of templates. Edit the template: post_groan_button Replace it all with this: Code:
<a href="post_groan.php?$session[sessionurl]do=post_groan_add&p=$post[postid]&securitytoken=$bbuserinfo[securitytoken]" id="post_groan_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_groan_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>);"</if> <if condition="$display_groan_image == 'none'">style="display:none"</if> rel="nofollow"><img src="$stylevar[imgdir_button]/dislike.png" alt="Dislike this post" border="0" /></a> Replace it all with this: Code:
<br /> You can convert the rest yourself from BOP5's post if you like but that's as far as I have to go! |
screen shots please....
I wonder if this is what I want |
All times are GMT. The time now is 01:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|