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)

class101 10-17-2007 10:50 AM

You must include $template_hook[postbit_controls] in your postbit and legacy templates, read the Template Edits for Custom Styles.txt inside the zip guys, for some reason me I didnt have to do theses changes, the product install added it for me but he did put the instructions in the txt I guess in the case the product install didnt changed your templates.

karnevil 10-17-2007 12:03 PM

I have installed the hack and it works on my default style forum perfectly however we dont use that we use a second style forum.

It shows up on profile, adds to reps okay etc all functions fine - except theres no button in the posts to click ??

Any ideas. I have been through the instruction edit templates file and done that.

The only bit I cant find is

<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>

in postbit and postbit legacy

so havent pasted

$template_hook[postbit_userinfo_right_after_posts]

in.

I assume this is the problem ?

class101 10-17-2007 12:20 PM

The variable to control de button is $template_hook[postbit_controls]

me I have it setup that way in my postbit template:

Code:

div style="margin-top: 10px" align="$stylevar[right]">
                        <!-- controls -->
$template_hook[postbit_controls]
                        <if condition="$post['editlink']">
                                <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />

This put it to the left of the edit button instead of to the full right which is not a really visible position

5th-Level 10-17-2007 10:12 PM

i mean instead of it saying Thanks: 0
Thanked X in X posts

i wanted make it so that it says

Thanks:
Thanked:

powerful_rogue 10-17-2007 11:32 PM

Quote:

Originally Posted by class101 (Post 1362280)
The variable to control de button is $template_hook[postbit_controls]

me I have it setup that way in my postbit template:

Code:

div style="margin-top: 10px" align="$stylevar[right]">
                        <!-- controls -->
$template_hook[postbit_controls]
                        <if condition="$post['editlink']">
                                <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />

This put it to the left of the edit button instead of to the full right which is not a really visible position

Hi, Thanks for your advice, worked a treat putting the code below instead of above. My only other problem is with:

Quote:

find:
--------------------------------------------------------------------
<!-- post $post[postid] popup menu -->
--------------------------------------------------------------------

place BEFORE:
--------------------------------------------------------------------
$template_hook[postbit_end]
--------------------------------------------------------------------
By doing this it ends up looking massive as shown in the attatchement. Ive tried moving the code around but without any luck. Heres a section of my code before and after:

Quote:

<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
<!-- / controls -->
</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
Ive removed it for the moment until hopefully im able to get this bit sorted. So close to getting it working!

Any help really is greatly appreciated.

Pocket Aces 10-18-2007 03:10 AM

Recounters or deletion of all user thanks on ACP is not working. Kindly check on that. I have a banned member who abuses the thanks system and i couldnt mass remove his thanks given. We're using vb 3.6.8

wangjunyu 10-18-2007 09:22 AM

Nice hack!

Omega409 10-18-2007 12:10 PM

Update from 6.0 to 6.3

Quote:

Datenbankfehler in vBulletin 3.6.8:

Invalid SQL:

SELECT thread.threadid, post.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, thread.lastpostid, thread.lastposter, thread.lastpost, IF(views<=thread.replycount, thread.replycount+1, views) AS views, thread.forumid, post.postid, pagetext, allowsmilie

FROM thread AS thread
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN postparsed AS postparsed ON (postparsed.postid = post.postid AND postparsed.styleid = 1 AND postparsed.languageid = 2)
WHERE thread.threadid IN(9011)


GROUP BY post.postid
ORDER BY sticky DESC,thread.dateline DESC
LIMIT 2;

MySQL-Fehler : Table './usr_web0_1/postparsed' is marked as crashed and should be repaired
Fehler-Nr. : 145

CBTS Pennywise1 10-18-2007 01:11 PM

Where do it try to pull the image from? Instead of the Image I have Thanks. I think I put the image in all my Styles.

Nvm I just changed the directory to pull the Image from the main Image Folder.

mystic10 10-18-2007 07:04 PM

everytime i upload the xml file using plugin it gives me fatal error i dont know why

this is the error msg:
error:
Warning: require_once(/home/yahoocit/public_html/includes/functions_post_thanks.php) [function.require-once]: failed to open stream: No such file or directory in /includes/class_postbit.php(268) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required '/home/yahoocit/public_html/includes/functions_post_thanks.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/yahoocit/public_html/includes/class_postbit.php(268) : eval()'d code on line 1

Pod 10-18-2007 08:44 PM

I've tryied to search the thread, the whole boards and the internet for a Spanish version of the default button, but I haven't succeed (damn, I thought I'd have better search skills after all those years :p).

So I went ahead and used the vBulletin 3 Graphics Developers Kit to do it by myself (my first go at photoshop, so don't be rude):

http://forum.lawebdefisica.com/image...ost_thanks.gif

bchertov 10-19-2007 04:40 AM

Great Hack!

Here's a minor but useful tweak suggestion: (excuse me if its already been mentioned)

I'd like to see the memberinfo bit in the postbit where is says "Thanked X times for Y posts" (or something like that) be a link to all their posts that have been thanked!

Thanks!!
Barry

Deaz 10-19-2007 08:07 AM

Thanks for this hack ;)

mvigod 10-19-2007 12:21 PM

Quote:

Originally Posted by bchertov (Post 1363554)
Great Hack!

Here's a minor but useful tweak suggestion: (excuse me if its already been mentioned)

I'd like to see the memberinfo bit in the postbit where is says "Thanked X times for Y posts" (or something like that) be a link to all their posts that have been thanked!

Thanks!!
Barry

Barry,
You can add it to the postbit drop down menu as an alternative:

https://vborg.vbsupport.ru/showpost....postcount=1674

bchertov 10-20-2007 05:03 AM

Quote:

Originally Posted by mvigod (Post 1363686)
Barry,
You can add it to the postbit drop down menu as an alternative:

https://vborg.vbsupport.ru/showpost....postcount=1674

Thanks! (Where's that Thanks button when you need it? ;) I presume I can just steal this code and use it as a link in the member info. Thanks again!

hitmann 10-20-2007 09:41 AM

Sometimes it can be messy if 100+ people who Thank a poster have their username shown in the post.
Is it possible to only add the number of Thanks in postbit/postbit_legacy, and a link on that number where it will lead to a page where it will show who thanked.

Audentio 10-21-2007 03:27 AM

Very nice, didnt like it at first but now that I use it, I love it!

KIA1 10-21-2007 03:44 AM

thanks very good

I LOVE vbulletin

tiekie 10-21-2007 04:45 AM

This is a great hack

I have this hack installed together with the 'link hiding hack' and it's working 100% but there is just one small add-on function i want this hack to do.

I want it to bump the thread when someone press thank you

How would i be able to do so ?

inciarco 10-21-2007 06:24 AM

Great Hack Abe1!! :up:

In case this Serves to Someone, the Reason Why You Get Duplicate Buttons and Thank You Posts, is because of the Double Edit of the Templates; once you install the Hack (at least on 3.6.7 PL1), the Product Modify all the Templates, and if you Include the Modifications on the "Template Edits for Custom Styles" File, then You'll be Duplicating the Presented Info!! ;)

Verify the Templates before Applying any Change on them!! :p

My Best Regards!! :up:

:)

mystic10 10-21-2007 02:10 PM

thank yOu!!!

mystic10 10-21-2007 02:52 PM

:( i installed everything but there is no button...i see thanked 0 times in 0 post..but i dont see any button..what should i do

Seiyaboy 10-21-2007 03:46 PM

I'd like to ask that when an admin uses the "Remove All" function, although it removes all the thanks given to that particular member in a post, but does it also reduce the bonuses (such as post count, reputation, etc) given as well?




Quote:

Originally Posted by mystic10 (Post 1365109)
:( i installed everything but there is no button...i see thanked 0 times in 0 post..but i dont see any button..what should i do

If you are using a custom template, different from the default vbulletin one, you will need to manually edit the template using the text instructions given in the download. You also need to make sure you have the correct directory for the thank button image.

yeku 10-21-2007 06:51 PM

Hi...

I have upload everything correctly.

I have verified it in the orginal style vb and other two styles that I have and it works perfectly.

Nevertheless, it does not work in the style that I like more. The button does not appear, nothing.

What can be? The image well is upload.

greetings

powerful_rogue 10-23-2007 01:25 AM

Quote:

Originally Posted by powerful_rogue (Post 1362732)
Hi, Thanks for your advice, worked a treat putting the code below instead of above. My only other problem is with:



By doing this it ends up looking massive as shown in the attatchement. Ive tried moving the code around but without any luck. Heres a section of my code before and after:



Ive removed it for the moment until hopefully im able to get this bit sorted. So close to getting it working!

Any help really is greatly appreciated.

Anyone able to help at all please :)

Edit - Link to original post with attatchement.

Dream 10-24-2007 02:51 AM

I donated you 10 bucks as a token of appreciation, as this mod will be very useful for a new forum. Thank you.

powerful_rogue 10-24-2007 07:15 PM

From having a look and a read around im guessing the layout in the attatchement is standard. I managed to alter the text to reduce the size of the box, however it still seems to large.

Is it possible to have "The Following Users say thank you to XXX for this useful post" running along the top, rather then down the side?

IE - There will be no line seperating the two sections of the box? That way it will make the box a lot smaller and less intrusive.

Ive searched around, but not sure what I would need to edit. If anyone can help I would be really really appreciatve as I cant wait to go live with this mod.

Many Thanks

Dave

karnevil 10-26-2007 09:57 AM

Thankyou works great (I still have two thanks buttons for some bizarre reason but will work that out at some point I'm sure - thanks for the hint inciaro )

1uxkz 10-27-2007 08:34 PM

I always get this db error when physically removing threads

Database error in vBulletin 3.6.8:

Invalid SQL:
DELETE FROM thanks WHERE postid IN (6020,6021,0);

MySQL Error : Table '*****.thanks' doesn't exist

any ideas how to fix

Abe1 10-28-2007 03:10 PM

Quote:

Originally Posted by tiekie (Post 1364820)
This is a great hack

I have this hack installed together with the 'link hiding hack' and it's working 100% but there is just one small add-on function i want this hack to do.

I want it to bump the thread when someone press thank you

How would i be able to do so ?

No way.
Quote:

Originally Posted by 1uxkz (Post 1369997)
I always get this db error when physically removing threads


Database error in vBulletin 3.6.8:

Invalid SQL:
DELETE FROM thanks WHERE postid IN (6020,6021,0);

MySQL Error : Table '*****.thanks' doesn't exist


any ideas how to fix

You must have edited something. I dont use a table called 'thanks'.

benFF 10-30-2007 10:59 AM

Thanks for this great hack.

Just one request and that would be to allow the single removing of thanks by an admin OR moderator (if they have power in that forum) - I want to police this from being abused, but at the moment I only have the option of removing all the thanks from a post - and my mod team can't do anything!

:)

benFF 10-30-2007 11:04 AM

If you mean like this: http://www.fiatforum.com/barchetta/1...ml#post1276442

Then all you need to do is overwrite the "post_thanks_postbit_legacy" template with the "post_thanks_postbit" one :)

class101 10-30-2007 11:11 AM

Quote:

Originally Posted by tiekie (Post 1364820)
This is a great hack

I have this hack installed together with the 'link hiding hack' and it's working 100% but there is just one small add-on function i want this hack to do.

I want it to bump the thread when someone press thank you

How would i be able to do so ?

Too much code to add this urself I think + It will be very bad options leading to massives abuse or kiddies bumping old threads, not a good option at all for me

khaales 10-30-2007 12:23 PM

hello
tanks for your hack
but i have a problem.
i was installed this hack on my VB, but not last version of it. today I see my version of hacks and i see my version of this hack is old, then i install this last version in my VB 3.6.8
now i have post tancks menu in adminCP and i have the tank button but under the posts it shows only for example 5 people thanks for this good post and do not show the 5 user names,
the user names box is empty but near of it shows the number of thankers!
another prob is when i hit on Remove all the page refreshed but nothing happened!

please help me as soon as you can.
tanx

Head Roller 10-30-2007 11:41 PM

Hi! THanks for the hack. I have installed it and I have run into a small issue. My "thanked status" for the members is not in the right place. It is above the user info. (see attached)

I have a custom skin and a CMS on my board, so when I attempted to edit the postbit and postbit_legacy I did not have the "find:" phrase in the instructions, and I just placed the

Code:

$template_hook[postbit_userinfo_right_after_posts]
after the post count. Obviously that is incorrect. Is there another "landmark" that would help me get this thing in the right spot??

Thanks for your help.

gwerzal 10-31-2007 12:05 AM

Is there a way of hiding the thank you's so there not on show all the time.

So you would have to click to see who thanked.

tei727 10-31-2007 12:09 PM

I love this add-on and it works on all my styles except Detour. Any clues why not? I definately uploaded it to all the button files and even saw the theme on the page while the xml was loading.

powerful_rogue 10-31-2007 12:47 PM

Quote:

Originally Posted by gwerzal (Post 1372395)
Is there a way of hiding the thank you's so there not on show all the time.

So you would have to click to see who thanked.

That would be very useful! Somthing like:

Quote:

XX Users said thank you to gwerzal for this post. View users HERE

hitmann 10-31-2007 04:25 PM

I second tei727. This would be very handy.

Also, would it be possible BUMP a thread when a user clicks THANKS?

tei727 11-01-2007 10:47 PM

Quote:

Originally Posted by hitmann (Post 1372858)
I second tei727. This would be very handy.

Also, would it be possible BUMP a thread when a user clicks THANKS?

not working in detour for you either?


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