2
#1
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 3rd 2011, 3:43pm
I don't know about you, but I think the "thank-you" display on forumotion boards is downright ugly. The following tutorial will remove the ugly background on a thanked post, and in its place, add a nice-looking message at the bottom of the post. EDIT: The name of the member being thanked has been added to the thank-you message.

As always, please respect my copyrights. Do not post this code anywhere, and don't give it to anyone else!

This script requires some changes in the way the thank-you system is set up. First, you must have a working thank-you system. If you are unsure of how to do this, the good people on the English help board will assist you. Once you have a working thank-you system, go to ACP>Display>Colors and find the box which contains the thank-you background color. Delete the color, leaving a blank box. This is critical! Without this change, the script will not work! Once this is done, find the script you need from the versions below, and install it as a javascript file.

Here is the script for IPB2/Invision boards:

var CopyrightNotice = 'New thank-you system for forumotion IPB2/Invision boards. Copyright © 2012 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
$('.post-footer[style="background-color:#;"]').prepend('<div style="padding-top:2px;height:32px;line-height:36px;color:#740;font-size:16px;font-weight:bold;text-align:center"><img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" />  The topic starter thanks you, '+$('.post[style="background-color:#;"] .postprofile dt').text()+'!  <img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /></div>');
});

Here is the script for phpBB3 boards:

var CopyrightNotice = 'New thank-you system for forumotion phpBB3 boards. Copyright © 2012 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
$('.post[style="background-color:#;"] div.clear').after('<div style="height:32px;line-height:36px;color:#740;font-size:16px;font-weight:bold;text-align:center"><hr /><img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" />  The topic starter thanks you, '+$('.post[style="background-color:#;"] .postprofile dt').text()+'!  <img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /></div>');
});

And here is the script for PunBB boards:

var CopyrightNotice = 'New thank-you system for forumotion PunBB boards. Copyright © 2012 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
$('.post[style="background-color:#;"] .post-options').prepend('<div style="height:32px;line-height:36px;color:#740;font-size:16px;font-weight:bold;text-align:center"><img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" />  The topic starter thanks you, '+$('.post[style="background-color:#;"] .user-ident').text()+'!  <img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /></div>');
});

That's it...simple, huh? :D

This can probably be added to phpBB2 boards, but I don't mess around with garbage, so I never checked. However, if someone modifies the script to work on a phpBB2 board, I would appreciate your posting the modification here so others can use it. The copyright notice makes it illegal to distribute such a phpBB2 version without my written consent, and I only consent to distribution if it is done in this topic.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 3rd 2011, 5:14pm
<3 Beautiful!
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 3rd 2011, 5:29pm
Thank you system is not ony ugly; but its downright INJUSTICE. In my opinion one topic serves many; especially when OP asks a good question. So in a way we[other than thread starter] are unable to Thank You to the answerer...clear injustice
φ
Posts: 163
Joined: August 5th 2011, 11:00pm
Location: Pakistan
Likes Given: 34
Likes Received: 3
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 3rd 2011, 5:51pm
is it possible to state the name of the person that has been thanked? E.g. The topic starter thanks you, Ryan!
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 3rd 2011, 6:42pm
Sure, that's possible, but the thank you note is inside the thanked person's post! Hmm...that does sound better than the current message, though...I'll look into it.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2/Invision,PunBB)
Posted December 3rd 2011, 7:03pm
;) I love your brain, Dion.
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 4th 2011, 3:27am
I can recall that you said that isn't possible Image leeching out usernames & displaying them...
If this is possible & provided you are looking into it; I say that one other feature will be very close related:
When a useer quotes a message the only thing that is displayed is
Dion said:
Sure, that's possible, but the thank you note is inside the thanked person's post! Hmm...that does sound better than the current message, though...I'll look into it.

no dates, no url to original post..
so when you have a long thread cross-referencing the quoted text/msg for viewers is very troublesome, I recommend that Dion you also look into it that when we quote a message atleast the date of the original message (being quoted) too is shown
φ
Posts: 163
Joined: August 5th 2011, 11:00pm
Location: Pakistan
Likes Given: 34
Likes Received: 3
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 4th 2011, 9:27am
I'd just love it, if it stated the name because with it just being in one post it's misleading to some others, and it can be seen by the public so they might think they've been thanked, Dion make it come true<3
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 4th 2011, 4:09pm
The member being thanked is now included in the thank-you message.

If you have a PunBB board, please be aware that this script depends on the post area having the default DOM (structure). If you have changed the post area in the viewtopic_body template, this script may not work. Therefore, I will not answer any PunBB-related questions about this script.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 4th 2011, 4:23pm
I hate PunBB's DOM! Is there any possible way it will be updated in the future, Dion? <3
Oh I've just realised, .post-options is the Username & "rank" .username seems to do it just for the username, thank you for teaching me something new<3
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 7th 2011, 12:41am
Ryan said:
The topic starter thanks you, Ryan!


@ Ryan - Great idea!

Dion, can the above be edited to say, "Poster (user id/link?) thanks you, Ryan!"

In that way, everyone will be able to give thanks, not just the topic starter. Thoughts?

Btw, it looks nice. Thank you. :)
φ
Posts:
Avatar
Guest
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 7th 2011, 8:37am
@Flora: Only topic stater can use thanks feature ;)
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 7th 2011, 11:38am
thats why I DISABLED it in the first place
φ
Posts: 163
Joined: August 5th 2011, 11:00pm
Location: Pakistan
Likes Given: 34
Likes Received: 3
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 7th 2011, 2:43pm
@ Zero - Thank you for responding. I've been doing a lot lately and forgot about that. :)
φ
Posts:
Avatar
Guest
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 7th 2011, 3:42pm
it would be possible to state the topic starters name now that I've learnt a lot more from Dion!

E.g. The topic starter (Dion) has thanked you, Ryan!
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 11th 2011, 1:56pm
Thanks..

Very useful :D
φ
Posts: 15
Joined: September 22nd 2011, 11:00pm
Location: Yoshi's Island
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted December 24th 2011, 11:31pm
The image of the stars is no longer working :/

Just a heads up :)
φ
Posts: 122
Joined: July 23rd 2011, 11:00pm
Likes Received: 1
1
#18
Example 17: Changing the Ugly Thank-you Display (phpBB3,IPB2
Posted February 4th 2012, 8:36pm
I have made this an official example and moved the topic to the Javascript 101 forum.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Topic locked
18 posts

Who is online

Users browsing this forum: No registered users and 0 guests