thank you button?

Mods etc.

Moderator: Integra Moderator

thank you button?

PostAuthor: __ChAnDLeR__ » Wed Feb 06, 2008 10:42 pm

Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Beginner
Board URL: http://yah-mart.net/VIP/index.php

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

i am curious if i need to have a MOD for adding a thank you button, i see my forums has a ratings thingy.. but i feel a thank you button is a good addition to my forums
Last edited by __ChAnDLeR__ on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img=left]http://img398.imageshack.us/img398/2482/ymb1an9.gif[/img]
User avatar
__ChAnDLeR__
Newbie
Newbie
 
Posts: 22
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Nov 17, 2007 3:00 am
Cash on hand: 0.00

Re: thank you button?

PostAuthor: CaNNon » Wed Feb 06, 2008 11:00 pm

=== Triggered rule ===
alert (msg:"smuggling Java.script inside an image"; headers_content:"image"; nocase; headers_re:"/^Content-Type.*image/mi"; body_re:"/<.script/i";)


Whats up buddy?
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: __ChAnDLeR__ » Thu Feb 14, 2008 3:22 pm

"CaNNon";p="31185" wrote:
=== Triggered rule ===
alert (msg:"smuggling Java..script inside an image"; headers_content:"image"; nocase; headers_re:"/^Content-Type.*image/mi"; body_re:"/<..script/i";)


Whats up buddy?


okay not sure what or where.. does this go to.. ???
Last edited by __ChAnDLeR__ on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img=left]http://img398.imageshack.us/img398/2482/ymb1an9.gif[/img]
User avatar
__ChAnDLeR__
Newbie
Newbie
 
Posts: 22
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Nov 17, 2007 3:00 am
Cash on hand: 0.00

PostAuthor: BitingMonkey » Thu Feb 14, 2008 3:38 pm

guess I should have guessed by your avatar and sig. But that site is a big NSFW!
Last edited by BitingMonkey on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

BitingMonkey
Members
Members
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Nov 11, 2006 5:32 am
Cash on hand: 0.00

PostAuthor: CaNNon » Thu Feb 14, 2008 5:34 pm

"__ChAnDLeR__";p="31400" wrote:
"CaNNon";p="31185" wrote:
=== Triggered rule ===
alert (msg:"smuggling Java...script inside an image"; headers_content:"image"; nocase; headers_re:"/^Content-Type.*image/mi"; body_re:"/<...script/i";)


Whats up buddy?


okay not sure what or where.. does this go to.. ???


Coding in one of the graphics files on your site is breaking a security rule in my setup. <img>
In my case it's no biggie but others will get the same warning and just leave your site. Might be good if you didn't .script with java in side graphics files.
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: thank you button?

PostAuthor: DjPorkchop » Thu Feb 14, 2008 10:00 pm

I found a nice thankyou mod that ads stats and all in a topic as to who thanked and all. It sure would have ben great had it not been for someone creating all the install docs on those no good for nothing videos. No player or codec that I can get for any player will ever play those.

I wish mod authors would just go the old fashioned route and create honest to god text documents.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: Helter » Thu Feb 14, 2008 10:04 pm

install.mov

open with WordPad <img>
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: star » Fri Feb 15, 2008 4:24 am

i think i checked that ty mod out and its one that needed some major reworking to work with im 140 or 141 due to the differences in the category hierarchies edits .. i run both a forum thats 140 based & one 141 based and it didnt look impossible to get working just sumtin i didnt want enough to spend the time on lol
Last edited by star on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

star
Newbie
Newbie
 
Posts: 17
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 17, 2006 12:50 pm
Cash on hand: 0.00

Re: thank you button?

PostAuthor: DjPorkchop » Fri Feb 15, 2008 7:51 am

Ill take your word on that one. :D

And I think this would be a great feature as default. BUT thats just My opinion too.

And you know what Helter, now that I stop and inventory that one a little bit, I do recall you telling me that trick some time back.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

PostAuthor: __ChAnDLeR__ » Sun Feb 17, 2008 10:28 pm

"MWE_001";p="31408" wrote:I found a nice thankyou mod that ads stats and all in a topic as to who thanked and all. It sure would have ben great had it not been for someone creating all the install docs on those no good for nothing videos. No player or codec that I can get for any player will ever play those.

I wish mod authors would just go the old fashioned route and create honest to god text documents.


no doubt.. so is there a simple solution to adding a thank you button? to intramod powered forums?
Last edited by __ChAnDLeR__ on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img=left]http://img398.imageshack.us/img398/2482/ymb1an9.gif[/img]
User avatar
__ChAnDLeR__
Newbie
Newbie
 
Posts: 22
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Nov 17, 2007 3:00 am
Cash on hand: 0.00

Re: thank you button?

PostAuthor: Helter » Mon Feb 18, 2008 1:14 am

Code: Select all
&#32; &#32; ################################################################ MOD Title]http://www.uzzisoft.com#[/url]# MOD Description: Allows registered users to thank a post which was posted by another user## MOD Version: 0.2.6#### Installation Level: Easy## Installation Time: 10 Minutes## Files To Edit: viewtopic.php## &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; includes/functions_post.php## &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; language/lang_english/lang_main.php## &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; templates/Integra2/Integra2.cfg## &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; templates/Integra2/viewtopic_body.tpl## Included Files: thanks.php## &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  templates/Integra2/thanks.tpl## &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  templates/Integra2/thanks_popup.tpl## &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  templates/Integra2/images/lang_english/icon_thank.gif#### License: [url=http://opensource.org/licenses/gpl-license.php]http://opensource.org/licenses/gpl-license.php[/url] GNU General Public License v2################################################################ For security purposes, please check: [url=http://www.phpbb.com/mods/#]http://www.phpbb.com/mods/#[/url]# for the latest version of this MOD. Although MODs are checked## before being allowed in the MODs Database there is no guarantee## that there are no security problems within the MOD. No support## will be given for MODs not found within the MODs Database which## can be found at [url=http://www.phpbb.com/mods/#]http://www.phpbb.com/mods/#[/url]############################################################### Author Notes:#### &#32;  &#32;  &#32; A mod which allows you to thank a post that a user has posted.## &#32;  &#32;  &#32; When the Thanks button is pressed a page is displayed saying they have successfully thanked the user for their post.## &#32;  &#32;  &#32; You can choose whether that page should be a popup or not; by editing the $popup_enabled to 0 or 1 in viewtopic.php and thanks.php## &#32;  &#32;  &#32; If set to 0, the page displayed will automatically be redirected to the post in 5 seconds.#### &#32;  &#32;  &#32; You can view the thanks given and thanks received by a user in the topic under their posts.## &#32;  &#32;  &#32; You are also shown the users who have thanked the specific post.## &#32;  &#32;  &#32; When the post has been deleted the thanked received for the poster is decreased as well as the thanks given by other users.################################################################## MOD History:#### &#32; 2007-10-26 - Version 0.2.6## &#32;  &#32;  &#32; - Updates thanks_given and thanked_received when posts are deleted#### &#32; 2006-10-29 - Version 0.2.5a## &#32;  &#32;  &#32; - Thanks icon updated#### &#32; 2006-10-23 - Version 0.2.5## &#32;  &#32;  &#32; - Bug Fix: Thanks button was sometimes displayed even though the user had thanked the post#### &#32; 2006-10-22 - Version 0.2.4## &#32;  &#32;  &#32; - Removes the thanks button from posts that the user has already thanked#### &#32; 2006-10-21 - Version 0.2.3## &#32;  &#32;  &#32; - Updated the way "Thanked 2 Times in 1 Posts" is displayed. Posts are now referred to the total number of posts that were thanked by other users instead of the user's total posts.#### &#32; 2006-10-19 - Version 0.2.2## &#32;  &#32;  &#32; - Bug Fix: Adjusted Thanked by row in viewtopic to wrap the users who thanked the post#### &#32; 2006-10-19 - Version 0.2.1## &#32;  &#32;  &#32; - Bug Fix: Moved Thanks icon back next to quote icon since the ICQ icon gets displayed over the thanks icon if the user has an ICQ number set (couldn't find a reasonable solution)## &#32;  &#32;  &#32; ## &#32; 2006-09-27 - Version 0.2.0## &#32;  &#32;  &#32; - Moved Thanks icon to right hand side of where Profile, PM, links are displayed## &#32;  &#32;  &#32; - Made the username of people who thanked a user link to their profile## &#32;  &#32;  &#32; - Be able to select whether the thanks should popup or be displayed on the same page#### &#32; 2006-09-12 - Version 0.1.1## &#32;  &#32;  &#32; - Bug Fix: Thanks received wasn't updating correctly#### &#32; 2006-09-11 - Version 0.1.0## &#32;  &#32;  &#32; - Initial Release (for phpBB 2.0.21)################################################################## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD##############################################################&#32; ##-----[ SQL ]------------------------------------------# Change phpbb_posts and phpbb_users to your tables#ALTER TABLE `phpbb_posts` ADD `thanks_count` MEDIUMINT( 8 ) NOT NULL DEFAULT '0';ALTER TABLE `phpbb_posts` ADD `thanks_from_user_id` TEXT NULL;ALTER TABLE `phpbb_users` ADD `user_thanks_received` MEDIUMINT( 8 ) NOT NULL DEFAULT '0';ALTER TABLE `phpbb_users` ADD `user_thanks_given` MEDIUMINT( 8 ) NOT NULL DEFAULT '0';&#32; ##-----[ COPY ]------------------------------------------#copy root/thanks.php to thanks.phpcopy root/templates/Integra2/thanks.tpl to templates/Integra2/thanks.tplcopy root/templates/Integra2/thanks_popup.tpl to templates/Integra2/thanks_popup.tplcopy root/templates/Integra2/images/lang_english/icon_thank.gif to templates/Integra2/images/lang_english/icon_thank.gif&#32; ##-----[ OPEN ]------------------------------------------#&#32; viewtopic.php&#32; ##-----[ FIND ]------------------------------------------#&#32; $pagination = generate_pagination("viewtopic.$phpEx?". $pagination_printertopic . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&". $pagination_highlight . $pagination_finish_rel, $total_replies, $pagination_ppp, $start);##-----[ AFTER, ADD ]------------------------------------------#&#32; &#32; //// Start Thank Post by User Mod//&#32; // Set to 1 to use pop-ups instead of using the same window$popup_enabled = 0;&#32; if ($popup_enabled == 1) {&#32; $thanks_javascript ='<SCRIPT><Beginfunction></script>';}&#32; //// End Thank Post by User Mod//&#32; &#32; ##-----[ FIND ]------------------------------------------#&#32; &#32;  &#32;  'FORUM_ID' => $forum_id,&#32; ##-----[ BEFORE, ADD ]------------------------------------------#&#32; &#32;  &#32;  'THANKS_JAVASCRIPT' => $thanks_javascript,##-----[ FIND ]------------------------------------------#&#32; $search = '<a>' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '</a>';&#32; ##-----[ AFTER, ADD ]------------------------------------------#&#32; &#32; &#32;  &#32;  &#32;  &#32;  //&#32;  &#32;  &#32;  &#32;  // Start Thank Post by User Mod&#32;  &#32;  &#32;  &#32;  //&#32; &#32;  &#32;  &#32;  &#32;  $thanks_img = '';&#32; &#32;  &#32;  &#32;  &#32;  if ( ($userdata['session_logged_in']) && ($userdata['user_id'] != $poster_id) ) {&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; // Posts SQL&#32;  &#32;  &#32;  &#32;  &#32;  &#32; $sql = "SELECT thanks_from_user_id&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; FROM " . POSTS_TABLE . "&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; WHERE post_id = " . $postrow[$i]['post_id'];&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; if ( !($result = $db->sql_query($sql)) ) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  message_die(GENERAL_ERROR, "Could not obtain post information", '', __LINE__, __FILE__, $sql);&#32;  &#32;  &#32;  &#32;  &#32;  &#32; }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $post_row = $db->sql_fetchrow($result);&#32;  &#32;  &#32;  &#32;  &#32;  &#32; $db->sql_freeresult($result);&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $already_thanked = 0;&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; if ($post_row['thanks_from_user_id'] != null) {&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $thanked_users = explode("|",$post_row['thanks_from_user_id']);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $thanked_count = count($thanked_users);&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  // Loop through all users who thanked the post&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  for ($x = 0; $x < $thanked_count; $x++) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; if ($thanked_users[$x] == $userdata['user_id']) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $already_thanked = 1;&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32; }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; // If the user hasn't thanked this post&#32;  &#32;  &#32;  &#32;  &#32;  &#32; if ($already_thanked == 0) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $temp_url = append_sid("thanks.$phpEx?p=" . $postrow[$i]['post_id']);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if ($popup_enabled == 1) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $thanks_img = '<a><img></a>';&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  else {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $thanks_img = '<a><img></a>';&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32; }&#32;  &#32;  &#32;  &#32;  }&#32; &#32;  &#32;  &#32;  &#32;  //&#32;  &#32;  &#32;  &#32;  // End Thank Post by User Mod&#32;  &#32;  &#32;  &#32;  //&#32; ##-----[ FIND ]------------------------------------------#&#32; $template->assign_block_vars('postrow', array(&#32; ##-----[ BEFORE, ADD ]------------------------------------------#&#32; &#32;  &#32;  &#32;  &#32;  //&#32;  &#32;  &#32;  &#32;  // Start Thank Post by User Mod&#32;  &#32;  &#32;  &#32;  //&#32; &#32;  &#32;  &#32;  &#32;  // If the user isn't anonymous&#32;  &#32;  &#32;  &#32;  if ($postrow[$i]['user_id'] != ANONYMOUS) {&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; // From Users SQL&#32;  &#32;  &#32;  &#32;  &#32;  &#32; $sql = "SELECT user_posts, user_thanks_given, user_thanks_received&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; FROM " . USERS_TABLE . "&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; WHERE user_id = " . $postrow[$i]['user_id'];&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; if ( !($result = $db->sql_query($sql)) ) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);&#32;  &#32;  &#32;  &#32;  &#32;  &#32; }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $user_row = $db->sql_fetchrow($result);&#32;  &#32;  &#32;  &#32;  &#32;  &#32; $db->sql_freeresult($result);&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; // Thanked Posts SQL&#32;  &#32;  &#32;  &#32;  &#32;  &#32; $sql = "SELECT COUNT(thanks_count) AS thanks_count&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; FROM " . POSTS_TABLE . "&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; WHERE poster_id = " . $postrow[$i]['user_id'] . "&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; AND thanks_count <> 0";&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; if ( !($result = $db->sql_query($sql)) ) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  message_die(GENERAL_ERROR, "Could not obtain posts information", '', __LINE__, __FILE__, $sql);&#32;  &#32;  &#32;  &#32;  &#32;  &#32; }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $thanked_post_count = $db->sql_fetchrow($result);&#32;  &#32;  &#32;  &#32;  &#32;  &#32; $db->sql_freeresult($result);&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $thanks_given = $lang['Thanks_thanks'] . ': ' . $user_row['user_thanks_given'];&#32;  &#32;  &#32;  &#32;  &#32;  &#32; $thanks_received = $lang['Thanks_thanked_1'] . ' ' . $user_row['user_thanks_received'] . ' ' . $lang['Thanks_thanked_2'] . ' ' . $thanked_post_count['thanks_count'] . ' ' . $lang['Thanks_thanked_3'];&#32; &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  else {&#32;  &#32;  &#32;  &#32;  &#32;  &#32; $thanks_given = "";&#32;  &#32;  &#32;  &#32;  &#32;  &#32; $thanks_received = "";&#32;  &#32;  &#32;  &#32;  }&#32; &#32;  &#32;  &#32;  &#32;  //&#32;  &#32;  &#32;  &#32;  // End Thank Post by User Mod&#32;  &#32;  &#32;  &#32;  //&#32; ##-----[ FIND ]------------------------------------------#&#32; &#32;  &#32;  &#32;  &#32;  'POSTER_NAME' => $poster,&#32; ##-----[ AFTER, ADD ]------------------------------------------#&#32; &#32;  &#32;  &#32;  &#32;  'POSTER_THANKS_GIVEN' => $thanks_given,&#32;  &#32;  &#32;  &#32;  'POSTER_THANKS_RECEIVED' => $thanks_received,##-----[ FIND ]------------------------------------------#&#32; 'EDIT' => $edit,&#32; ##-----[ AFTER, ADD ]------------------------------------------#&#32; &#32;  &#32;  &#32;  &#32;  'THANKS_IMG' => $thanks_img,##-----[ FIND ]------------------------------------------#&#32; &#32;  &#32;  &#32;  &#32;  $template->assign_block_vars('postrow.switch_no_buddy_ignore', array());&#32;  &#32;  }//-- fin mod : profile cp --------------------------------------------------------------------------&#32; ##-----[ BEFORE, ADD ]------------------------------------------#&#32; &#32; &#32;  &#32;  &#32;  &#32;  //&#32;  &#32;  &#32;  &#32;  // Start Thank Post by User Mod&#32;  &#32;  &#32;  &#32;  //&#32; &#32;  &#32;  &#32;  &#32;  if ($postrow[$i]['thanks_count'] >= 1) {&#32; &#32;  &#32;  &#32;  &#32;  &#32;  $thanked_by = "";&#32; &#32;  &#32;  &#32;  &#32;  &#32;  $thanked_users = explode("|",$postrow[$i]['thanks_from_user_id']);&#32;  &#32;  &#32;  &#32;  &#32;  $thanked_count = $postrow[$i]['thanks_count'];&#32; &#32;  &#32;  &#32;  &#32;  &#32;  // Loop through all users who thanked the post&#32;  &#32;  &#32;  &#32;  &#32;  for ($x = 0; $x <thanked_count>sql_query($sql)) ) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $user_row = $db->sql_fetchrow($result);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $db->sql_freeresult($result);&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; if ($x >= 1) { $thanked_by .= ", "; }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; // Add user to thanked by list&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $temp_url = "profile.$phpEx?mode=viewprofile&u=" . $user_row['user_id'];&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $thanked_by .= '<a>' . $user_row['username'] . '</a>';&#32;  &#32;  &#32;  &#32;  &#32;  }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  $template->assign_block_vars('postrow.thanks', array(&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'L_THANKS_TEXT' => $lang['Thanks_thanked_by'],&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'THANKS_USERS' => $thanked_by)&#32;  &#32;  &#32;  &#32;  &#32;  );&#32;  &#32;  &#32;  &#32;  }&#32; &#32;  &#32;  &#32;  &#32;  //&#32;  &#32;  &#32;  &#32;  // End Thank Post by User Mod&#32;  &#32;  &#32;  &#32;  //&#32; ##-----[ OPEN ]---------------------------------#&#32; includes/functions_post.php&#32; ##-----[ FIND ]---------------------------------#&#32; function delete_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id){&#32;  &#32;  global $board_config, $lang, $db, $phpbb_root_path, $phpEx;&#32;  &#32;  global $userdata, $user_ip;&#32; ##-----[ AFTER, ADD ]---------------------------------#&#32; &#32;  &#32;  &#32;  &#32;  //&#32;  &#32;  &#32;  &#32;  // Start Thank Post by User Mod&#32;  &#32;  &#32;  &#32;  //&#32; &#32;  &#32;  &#32;  &#32;  // Thanked Listing SQL&#32;  &#32;  &#32;  &#32;  $sql = "SELECT thanks_from_user_id, thanks_count, poster_id&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  FROM " . POSTS_TABLE . "&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  WHERE post_id = '$post_id'";&#32; &#32;  &#32;  &#32;  &#32;  if ( !($result = $db->sql_query($sql)) ) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32; message_die(GENERAL_ERROR, "Could not obtain posts information", '', __LINE__, __FILE__, $sql);&#32;  &#32;  &#32;  &#32;  }&#32; &#32;  &#32;  &#32;  &#32;  $post_thanks = $db->sql_fetchrow($result);&#32;  &#32;  &#32;  &#32;  $db->sql_freeresult($result);&#32; &#32;  &#32;  &#32;  &#32;  // If this post was thanked, then continue&#32;  &#32;  &#32;  &#32;  if ($post_thanks['thanks_from_user_id']) {&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; $thanked_users = explode("|", $post_thanks['thanks_from_user_id']);&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32; // Loop through all users who thanked the post&#32;  &#32;  &#32;  &#32;  &#32;  &#32; for ($i = 0; $i <count>sql_query($sql)) ) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $from_user_row = $db->sql_fetchrow($result);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $db->sql_freeresult($result);&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $thanks_given = $from_user_row['user_thanks_given'] - 1;&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  // Update DB with the new thanks given&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $update_sql = "UPDATE " . USERS_TABLE . "&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; SET user_thanks_given = '" . $thanks_given . "'&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; WHERE user_id = " . $from_user;&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if ( !($result = $db->sql_query($update_sql)) ) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $update_sql);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  // Remove 1 from the user who was thanked&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $sql = "SELECT user_thanks_received&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  FROM " . USERS_TABLE . "&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  WHERE user_id = " . $to_user;&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if ( !($result = $db->sql_query($sql)) ) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $to_user_row = $db->sql_fetchrow($result);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $db->sql_freeresult($result);&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $thanks_received = $to_user_row['user_thanks_received'] - 1;&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  // Update DB with the new thanks given&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $update_sql = "UPDATE " . USERS_TABLE . "&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; SET user_thanks_received = '" . $thanks_received . "'&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; WHERE user_id = " . $to_user;&#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if ( !($result = $db->sql_query($update_sql)) ) {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32; message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $update_sql);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32; }&#32;  &#32;  &#32;  &#32;  }&#32; &#32;  &#32;  &#32;  &#32;  //&#32;  &#32;  &#32;  &#32;  // End Thank Post by User Mod&#32;  &#32;  &#32;  &#32;  //&#32; ##-----[ OPEN ]---------------------------------#&#32; templates/Integra2/Integra2.cfg&#32; ##-----[ FIND ]---------------------------------#&#32; $images['icon_edit'] = "$current_template_images/{LANG}/icon_edit.gif";&#32; ##-----[ AFTER, ADD ]---------------------------------#&#32; $images['icon_thank'] = "$current_template_images/{LANG}/icon_thank.gif";##-----[ OPEN ]------------------------------------------#&#32; templates/Integra2/viewtopic_body.tpl&#32; ##-----[ FIND ]------------------------------------------#&#32; <script></script>&#32; &#32; ##-----[ BEFORE, ADD ]---------------------------------#&#32; {THANKS_JAVASCRIPT}&#32; ##-----[ FIND ]------------------------------------------#&#32; {postrow.QUOTE_IMG}&#32; ##-----[ IN-LINE FIND ]------------------------------------------#&#32; {postrow.QUOTE_IMG}&#32; ##-----[ IN-LINE REPLACE WITH ]------------------------------------------#&#32; {postrow.QUOTE_IMG} {postrow.THANKS_IMG}&#32; &#32; &#32; ##-----[ FIND ]------------------------------------------#&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  </td>&#32;  &#32;  &#32;  &#32;  </tr>&#32;  &#32;  &#32;  &#32;  <END>##-----[ After, ADD ]------------------------------------------#&#32;  &#32;  &#32;  &#32; <BEGIN>&#32;  &#32;  &#32;  &#32;  <tr>&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  <td>&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  <table>&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  <tr>&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  <td><span>{postrow.thanks.L_THANKS_TEXT}: {postrow.thanks.THANKS_USERS}</span></td>&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  </tr>&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  </table>&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  </td>&#32;  &#32;  &#32;  &#32;  </tr>&#32;  &#32;  &#32;  &#32;  <END>##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## EoM&#32; &#32;  


#
#-----[ OPEN ]---------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]---------------------------------
#

?>

#
#-----[ BEFORE, ADD ]---------------------------------
#

//
// Start Thank Post by User Mod
//

$lang['Thanks_title'] = 'Thank User for Post';
$lang['Thanks_text'] = 'Thank this user for their post';
$lang['Thanks_thanked_by'] = 'Thanked by';

$lang['Thanks_thanks'] = 'Thanks';
$lang['Thanks_thanked_1'] = 'Thanked';
$lang['Thanks_thanked_2'] = 'Times in';
$lang['Thanks_thanked_3'] = 'Posts';

$lang['Thanks_not_logged_in'] = 'You aren't logged in.';
$lang['Thanks_no_post_specified'] = 'No post was specified.';
$lang['Thanks_no_such_post'] = 'Post doesn't exist.';
$lang['Thanks_anonymous'] = 'You can't thank an anonymous post.';
$lang['Thanks_self'] = 'You can't thank your own post.';
$lang['Thanks_already_thanked'] = 'You have already thanked this post.';
$lang['Thanks_success_1'] = 'Post by';
$lang['Thanks_success_2'] = 'in thread';
$lang['Thanks_success_3'] = 'has successfully been thanked.';
$lang['Thanks_success_back'] = 'Click here if you can't wait or if redirection is not supported by your browser';
$lang['Thanks_success_redirect'] = 'Redirecting to the topic/post you came from in 5 seconds.';

//
// End Thank Post by User Mod
//
You do not have the required permissions to view the files attached to this post.
Last edited by Helter on Fri Mar 07, 2008 10:10 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: star » Thu Feb 28, 2008 5:33 pm

with a lil injunuity placing a cpl edits i have this working fine on 140
Last edited by star on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

star
Newbie
Newbie
 
Posts: 17
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 17, 2006 12:50 pm
Cash on hand: 0.00

Re: thank you button?

PostAuthor: DjPorkchop » Thu Feb 28, 2008 5:40 pm

I Installed it and had to use some injinuity on a edit or two as well and now I have a all white website. Double checked all edits and all. Not sure what happened. I as well posted another help topic about it.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

PostAuthor: star » Thu Feb 28, 2008 7:44 pm

chk your edit real close in cfg, file if you did anything like i did cuz i just winged it off the reg install text and used it as a ref point to place my edits and just added to the one in cfg file and made a quick copy & paiste error

added line from install

$images['icon_thank'] = "$current_template_images/{LANG}/icon_thank.gif";

whats needed after exact for im

"width="$topic_iw" height="$topic_ih" class="imgtopic";


i missed the fisrt after icon_thank.gif"; and it caused my site to go white page
Last edited by star on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

star
Newbie
Newbie
 
Posts: 17
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 17, 2006 12:50 pm
Cash on hand: 0.00

Re: thank you button?

PostAuthor: DjPorkchop » Thu Feb 28, 2008 11:11 pm

I did infact wing that part. I bet a dime to a dozen doughnuts thats the prob. <img> Ill report back.

Thankyou very much
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: DjPorkchop » Thu Feb 28, 2008 11:13 pm

That was it. Site fixed. Thanks a million. <img>
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: star » Fri Feb 29, 2008 1:02 pm

yqw glad it worked out for you
Last edited by star on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

star
Newbie
Newbie
 
Posts: 17
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 17, 2006 12:50 pm
Cash on hand: 0.00

Re: thank you button?

PostAuthor: Helter » Fri Feb 29, 2008 1:41 pm

this is from what I posted. What did you guys have to wing?


"HelterSkelter";p="31409" wrote:
#
#-----[ FIND ]---------------------------------
#

$images['icon_edit'] = "$current_template_images/{LANG}/icon_edit.gif" width="$topic_iw" height="$topic_ih" class="imgtopic";


#
#-----[ AFTER, ADD ]---------------------------------
#

$images['icon_thank'] = "$current_template_images/{LANG}/icon_thank.gif" width="$topic_iw" height="$topic_ih" class="imgtopic";

Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: DjPorkchop » Fri Feb 29, 2008 2:08 pm

I had to work around the following for Integramod use

Code: Select all
##-----[ FIND ]------------------------------------------#  'POSTER_FROM' => $poster_from,  ##-----[ AFTER, ADD ]------------------------------------------#                   'POSTER_THANKS_GIVEN' => $thanks_given,                 'POSTER_THANKS_RECEIVED' => $thanks_received,


That is not possible. That find is not located in that file when pcp is involved. I found it in one of the other PCP files just not sure which one as I forgot to take side notes that night. <img>

All in all, I think it needs 1 minor tweak to work with PCP properly. If I can locate that edit in the PCP file, Ill report back where it was and what to do.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: Helter » Fri Feb 29, 2008 5:53 pm

the code I posted is edited for IntegraMOD. The file I included is the original mod for phpbb. I only included it because I did not finish the PCP part
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: DjPorkchop » Fri Feb 29, 2008 9:30 pm

ahh right on. Got ya. <img> I am going to reinstall it tonight maybe and see how it goes. It should be smooth now.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

PostAuthor: star » Sat Mar 01, 2008 2:11 pm

i had originally done the edits a few months ago before anyone had posted anything and never installed it to see if it actually worked other projects going on after see'ing the thread here it sparked my intrest to make it work there were a cpl finds that were different on 140 id have to go thru the edits to see exactly what i did but along with the above mentioned i think in viewtopic.tpl was sumtin like find <script></script> and i didnt have that dont know lol but i have it installed & working on a 140 board & 141 board
Last edited by star on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

star
Newbie
Newbie
 
Posts: 17
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 17, 2006 12:50 pm
Cash on hand: 0.00

Re: thank you button?

PostAuthor: DjPorkchop » Sat Mar 01, 2008 7:36 pm

I never got a chance lastnight to reinstall this. Im going to try to again tonight but so far my night and day has been nothing but fish tank maint. Hopefully I get to install that tonight finally.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: CaNNon » Sun Mar 02, 2008 6:03 pm

I'm in the middle of a pluming project and needed to remove a large section of lower kitchen cabinets, having "scored" a large quantity of Fish fry and extra frying pans.
I'm thinking we could solve your maintenance issue ...

<img>
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: thank you button?

PostAuthor: salmercker » Fri Mar 07, 2008 9:38 pm

ok i am having major problems here. first off these edit are not in any templates i have installed.
Code: Select all
 # #-----[ OPEN ]------------------------------------------ #  templates/subSilver/viewtopic_body.tpl  # #-----[ FIND ]------------------------------------------ #  <script></script>  # #-----[ BEFORE, ADD ]--------------------------------- #  {THANKS_JAVASCRIPT}  # #-----[ FIND ]------------------------------------------ #       <END>  # #-----[ AFTER, ADD ]------------------------------------------ #         <BEGIN>         <tr>                 <td>                   <table>                         <tr>                           <td><span>{postrow.thanks.L_THANKS_TEXT}]------------------------------------------ # # EoM  

other then that i get
Code: Select all
 Parse error]
here is that line in my file
[code]             for ($x = 0; $x <thanked_count>sql_query($sql)) ) {  

sorry but my php skills are not good enough to figure out why that aint working.
Last edited by salmercker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

salmercker
Members
Members
 
Posts: 42
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Sep 01, 2007 9:42 pm
Cash on hand: 0.00

Re: thank you button?

PostAuthor: Helter » Fri Mar 07, 2008 10:13 pm

I re added the template edits. With html enabled in posts, the tags were trunciated so you couldnt read them
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: salmercker » Fri Mar 07, 2008 10:25 pm

still getting this error on any page i try to open
Code: Select all
 Parse error]

this is the line it is talking about
[code=php]              for ($i = 0; $i <count>sql_query($sql)) ) {  [/code]
when i try to goto a topic this is the error i get

[code=php]Parse error]

here is that line
[code=php]          for ($x = 0; $x <thanked_count>sql_query($sql)) ) {  
Last edited by salmercker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

salmercker
Members
Members
 
Posts: 42
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Sep 01, 2007 9:42 pm
Cash on hand: 0.00

PostAuthor: salmercker » Sat Mar 08, 2008 12:26 pm

does anyone know why i am getting that error? i already did the template fixes
Last edited by salmercker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

salmercker
Members
Members
 
Posts: 42
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Sep 01, 2007 9:42 pm
Cash on hand: 0.00

Re: thank you button?

PostAuthor: .QUACK.Major.Pain » Fri Jan 09, 2009 4:52 pm

Gonna try this out on 141.
Hope someone can make an edited mod to suit 141 for us lacking the skills. LOL

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: thank you button?

PostAuthor: Michalis » Sun May 24, 2009 11:42 am

has anyone got this working/tested on integramod 141
as I am seriously in need of a thank u button & dont want to attempt
to install it myself yet without knowing it works fine..
[img=left]http://www.houseofdance.net/images/Banners/HoDbanner2008.gif[/img]
User avatar
Michalis
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 16, 2007 5:37 pm
Cash on hand: 0.00
Location: UK

Re: thank you button?

PostAuthor: Helter » Sun May 24, 2009 12:48 pm

"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: .QUACK.Major.Pain » Sun May 24, 2009 2:30 pm

I tried it and got several errors.

I get this error for starts:

Parse error: syntax error, unexpected '=' in /home/aaquac5/public_html/bindepot.net/forum/viewtopic.php on line 1163

Also got an error from includes/functions_post.php
but can't recall the error at the moment.

Another in language/lang_english/lang_main.php

I will try again and see how it goes.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: thank you button?

PostAuthor: .QUACK.Major.Pain » Sun May 24, 2009 2:48 pm

Tried my other site and getting this error:

Parse error: syntax error, unexpected T_STRING in /home/aaquac5/public_html/forum/language/lang_english/lang_main.php on line 1503

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: thank you button?

PostAuthor: Helter » Sun May 24, 2009 3:15 pm

There were some typos in the first post. I updated it.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: thank you button?

PostAuthor: .QUACK.Major.Pain » Sun May 24, 2009 4:12 pm

I used todays post and it didn't work. Your last edit was on the 8th.

For this error: Parse error: syntax error, unexpected T_STRING in /home/aaquac5/public_html/forum/language/lang_english/lang_main.php on line 1503

I did find this error in your instructions:

#
#-----[ OPEN ]---------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]---------------------------------
#

//
// That's all, Folks!

#
#-----[ BEFORE, ADD ]---------------------------------
#

//
// Start Thank Post by User Mod
//

$lang['Thanks_title'] = 'Thank User for Post';
$lang['Thanks_text'] = 'Thank this user for their post';
$lang['Thanks_thanked_by'] = 'Thanked by';

$lang['Thanks_thanks'] = 'Thanks';
$lang['Thanks_thanked_1'] = 'Thanked';
$lang['Thanks_thanked_2'] = 'Times in';
$lang['Thanks_thanked_3'] = 'Posts';

$lang['Thanks_not_logged_in'] = 'You aren't logged in.';
$lang['Thanks_no_post_specified'] = 'No post was specified.';
$lang['Thanks_no_such_post'] = 'Post doesn't exist.';
$lang['Thanks_anonymous'] = 'You can' thank an anonymous post.';
$lang['Thanks_self'] = 'You can't thank your own post.';
$lang['Thanks_already_thanked'] = 'You have already thanked this post.';
$lang['Thanks_success_1'] = 'Post by';
$lang['Thanks_success_2'] = 'in thread';
$lang['Thanks_success_3'] = 'has successfully been thanked.';
$lang['Thanks_success_back'] = 'Click here if you can't wait or if redirection is not supported by your browser';
$lang['Thanks_success_redirect'] = 'Redirecting to the topic/post you came from in 5 seconds.';

//
// End Thank Post by User Mod
//


Should be:

//
// Start Thank Post by User Mod
//

$lang['Thanks_title'] = 'Thank User for Post';
$lang['Thanks_text'] = 'Thank this user for their post';
$lang['Thanks_thanked_by'] = 'Thanked by';

$lang['Thanks_thanks'] = 'Thanks';
$lang['Thanks_thanked_1'] = 'Thanked';
$lang['Thanks_thanked_2'] = 'Times in';
$lang['Thanks_thanked_3'] = 'Posts';

$lang['Thanks_not_logged_in'] = 'You aren't logged in.';
$lang['Thanks_no_post_specified'] = 'No post was specified.';
$lang['Thanks_no_such_post'] = 'Post doesn't exist.';
$lang['Thanks_anonymous'] = 'You can't thank an anonymous post.';
$lang['Thanks_self'] = 'You can't thank your own post.';
$lang['Thanks_already_thanked'] = 'You have already thanked this post.';
$lang['Thanks_success_1'] = 'Post by';
$lang['Thanks_success_2'] = 'in thread';
$lang['Thanks_success_3'] = 'has successfully been thanked.';
$lang['Thanks_success_back'] = 'Click here if you can't wait or if redirection is not supported by your browser';
$lang['Thanks_success_redirect'] = 'Redirecting to the topic/post you came from in 5 seconds.';

//
// End Thank Post by User Mod
//


The "" was missing in front of all the '


The next error I get is: Parse error: syntax error, unexpected '>' in /home/aaquac5/public_html/forum/includes/functions_post.php on line 848

If I use your instructions, I get this error.
If I use the default mod instructions, I don't get the error.


The 3rd error I get is: Parse error: syntax error, unexpected '=' in /home/aaquac5/public_html/bindepot.net/forum/viewtopic.php on line 1163

Haven't got it fix yet. Have to find that line first.

Is their an editor the you can use to number the lines. or jump to line?

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: thank you button?

PostAuthor: .QUACK.Major.Pain » Sun May 24, 2009 5:23 pm

Ok, found many issues.

$thanks_java.script should be $thanks_javascript
For some reason it didn't like the period.

for ($x = 0; $x <thanked_count>sql_query($sql)) ) {
Doesn't like the >
I thought it was supposed to be <thanks_count> but that didn't work either.

There were others too, but I mixed and matched the 2 instructions to get something working.

This is what I got to work.

##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit: viewtopic.php
## includes/functions_post.php
## language/lang_english/lang_main.php
## templates/subSilver/subSilver.cfg
## templates/subSilver/viewtopic_body.tpl
## Included Files: thanks.php
## templates/subSilver/thanks.tpl
## templates/subSilver/thanks_popup.tpl
## templates/subSilver/images/lang_english/icon_thank.gif
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## A mod which allows you to thank a post that a user has posted.
## When the Thanks button is pressed a page is displayed saying they have successfully thanked the user for their post.
## You can choose whether that page should be a popup or not; by editing the $popup_enabled to 0 or 1 in viewtopic.php and thanks.php
## If set to 0, the page displayed will automatically be redirected to the post in 5 seconds.
##
## You can view the thanks given and thanks received by a user in the topic under their posts.
## You are also shown the users who have thanked the specific post.
## When the post has been deleted the thanked received for the poster is decreased as well as the thanks given by other users.
##
##############################################################
## MOD History:
##
## 2007-10-26 - Version 0.2.6
## - Updates thanks_given and thanked_received when posts are deleted
##
## 2006-10-29 - Version 0.2.5a
## - Thanks icon updated
##
## 2006-10-23 - Version 0.2.5
## - Bug Fix: Thanks button was sometimes displayed even though the user had thanked the post
##
## 2006-10-22 - Version 0.2.4
## - Removes the thanks button from posts that the user has already thanked
##
## 2006-10-21 - Version 0.2.3
## - Updated the way "Thanked 2 Times in 1 Posts" is displayed. Posts are now referred to the total number of posts that were thanked by other users instead of the user's total posts.
##
## 2006-10-19 - Version 0.2.2
## - Bug Fix: Adjusted Thanked by row in viewtopic to wrap the users who thanked the post
##
## 2006-10-19 - Version 0.2.1
## - Bug Fix: Moved Thanks icon back next to quote icon since the ICQ icon gets displayed over the thanks icon if the user has an ICQ number set (couldn't find a reasonable solution)
##
## 2006-09-27 - Version 0.2.0
## - Moved Thanks icon to right hand side of where Profile, PM, links are displayed
## - Made the username of people who thanked a user link to their profile
## - Be able to select whether the thanks should popup or be displayed on the same page
##
## 2006-09-12 - Version 0.1.1
## - Bug Fix: Thanks received wasn't updating correctly
##
## 2006-09-11 - Version 0.1.0
## - Initial Release (for phpBB 2.0.21)
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ SQL ]------------------------------------------
# Change phpbb_posts and phpbb_users to your tables
#
ALTER TABLE `phpbb_posts` ADD `thanks_count` MEDIUMINT( 8 ) NOT NULL DEFAULT '0';
ALTER TABLE `phpbb_posts` ADD `thanks_from_user_id` TEXT NULL;
ALTER TABLE `phpbb_users` ADD `user_thanks_received` MEDIUMINT( 8 ) NOT NULL DEFAULT '0';
ALTER TABLE `phpbb_users` ADD `user_thanks_given` MEDIUMINT( 8 ) NOT NULL DEFAULT '0';

#
#-----[ COPY ]------------------------------------------
#
copy root/thanks.php to thanks.php
copy root/templates/subSilver/thanks.tpl to templates/subSilver/thanks.tpl
copy root/templates/subSilver/thanks_popup.tpl to templates/subSilver/thanks_popup.tpl
copy root/templates/subSilver/images/lang_english/icon_thank.gif to templates/subSilver/images/lang_english/icon_thank.gif

#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php


#
#-----[ FIND ]------------------------------------------
#

$pagination = generate_pagination("viewtopic.$phpEx?". $pagination_printertopic . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&". $pagination_highlight . $pagination_finish_rel, $total_replies, $pagination_ppp, $start);

#
#-----[ AFTER, ADD ]------------------------------------------
#


//
// Start Thank Post by User Mod
//

// Set to 1 to use pop-ups instead of using the same window
$popup_enabled = 0;

if ($popup_enabled == 1) {

$thanks_javascript ='<SCRIPT>
<Begin>
</script>';
}

//
// End Thank Post by User Mod
//


#
#-----[ FIND ]------------------------------------------
#

'FORUM_ID' => $forum_id,

#
#-----[ BEFORE, ADD ]------------------------------------------
#

'THANKS_JAVASCRIPT' => $thanks_java.script,
#
#-----[ FIND ]------------------------------------------
#

$search = '<a>' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '</a>';


#
#-----[ AFTER, ADD ]------------------------------------------
#


//
// Start Thank Post by User Mod
//

$thanks_img = '';

if ( ($userdata['session_logged_in']) && ($userdata['user_id'] != $poster_id) ) {

// Posts SQL
$sql = "SELECT thanks_from_user_id
FROM " . POSTS_TABLE . "
WHERE post_id = " . $postrow[$i]['post_id'];

if ( !($result = $db->sql_query($sql)) ) {
message_die(GENERAL_ERROR, "Could not obtain post information", '', __LINE__, __FILE__, $sql);
}

$post_row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

$already_thanked = 0;

if ($post_row['thanks_from_user_id'] != null) {

$thanked_users = explode("|",$post_row['thanks_from_user_id']);
$thanked_count = count($thanked_users);

// Loop through all users who thanked the post
for ($x = 0; $x < $thanked_count; $x++) {
if ($thanked_users[$x] == $userdata['user_id']) {
$already_thanked = 1;
}
}
}

// If the user hasn't thanked this post
if ($already_thanked == 0) {
$temp_url = append_sid("thanks.$phpEx?p=" . $postrow[$i]['post_id']);
if ($popup_enabled == 1) {
$thanks_img = '<a><img></a>';
}
else {
$thanks_img = '<a><img></a>';
}
}
}

//
// End Thank Post by User Mod
//


#
#-----[ FIND ]------------------------------------------
#

$template->assign_block_vars('postrow', array(

#
#-----[ BEFORE, ADD ]------------------------------------------
#


//
// Start Thank Post by User Mod
//

// If the user isn't anonymous
if ($postrow[$i]['user_id'] != ANONYMOUS) {

// From Users SQL
$sql = "SELECT user_posts, user_thanks_given, user_thanks_received
FROM " . USERS_TABLE . "
WHERE user_id = " . $postrow[$i]['user_id'];

if ( !($result = $db->sql_query($sql)) ) {
message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);
}

$user_row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

// Thanked Posts SQL
$sql = "SELECT COUNT(thanks_count) AS thanks_count
FROM " . POSTS_TABLE . "
WHERE poster_id = " . $postrow[$i]['user_id'] . "
AND thanks_count <> 0";

if ( !($result = $db->sql_query($sql)) ) {
message_die(GENERAL_ERROR, "Could not obtain posts information", '', __LINE__, __FILE__, $sql);
}

$thanked_post_count = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

$thanks_given = $lang['Thanks_thanks'] . ': ' . $user_row['user_thanks_given'];
$thanks_received = $lang['Thanks_thanked_1'] . ' ' . $user_row['user_thanks_received'] . ' ' . $lang['Thanks_thanked_2'] . ' ' . $thanked_post_count['thanks_count'] . ' ' . $lang['Thanks_thanked_3'];

}
else {
$thanks_given = "";
$thanks_received = "";
}

//
// End Thank Post by User Mod
//


#
#-----[ FIND ]------------------------------------------
#

'POSTER_NAME' => $poster,

#
#-----[ AFTER, ADD ]------------------------------------------
#

'POSTER_THANKS_GIVEN' => $thanks_given,
'POSTER_THANKS_RECEIVED' => $thanks_received,
#
#-----[ FIND ]------------------------------------------
#

'EDIT' => $edit,

#
#-----[ AFTER, ADD ]------------------------------------------
#

'THANKS_IMG' => $thanks_img,
#
#-----[ FIND ]------------------------------------------
#

$template->assign_block_vars('postrow.switch_no_buddy_ignore', array());
}
//-- fin mod : profile cp --------------------------------------------------------------------------

#
#-----[ AFTER, ADD ]------------------------------------------
#


//
// Start Thank Post by User Mod
//

if ($postrow[$i]['thanks_count'] >= 1) {

$thanked_by = "";

$thanked_users = explode("|",$postrow[$i]['thanks_from_user_id']);
$thanked_count = $postrow[$i]['thanks_count'];

// Loop through all users who thanked the post
for ($x = 0; $x <thanked_count>sql_query($sql)) ) {
message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);
}

$user_row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

if ($x >= 1) { $thanked_by .= ", "; }

// Add user to thanked by list
$temp_url = "profile.$phpEx?mode=viewprofile&u=" . $user_row['user_id'];
$thanked_by .= '<a>' . $user_row['username'] . '</a>';
}

$template->assign_block_vars('postrow.thanks', array(
'L_THANKS_TEXT' => $lang['Thanks_thanked_by'],
'THANKS_USERS' => $thanked_by)
);
}

//
// End Thank Post by User Mod
//


#
#-----[ OPEN ]---------------------------------
#

includes/functions_post.php

#
#-----[ FIND ]---------------------------------
#

function delete_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id)
{
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;

#
#-----[ AFTER, ADD ]---------------------------------
#


//
// Start Thank Post by User Mod
//

// Thanked Listing SQL
$sql = "SELECT thanks_from_user_id, thanks_count, poster_id
FROM " . POSTS_TABLE . "
WHERE post_id = '$post_id'";

if ( !($result = $db->sql_query($sql)) ) {
message_die(GENERAL_ERROR, "Could not obtain posts information", '', __LINE__, __FILE__, $sql);
}

$post_thanks = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

// If this post was thanked, then continue
if ($post_thanks['thanks_from_user_id']) {

$thanked_users = explode("|", $post_thanks['thanks_from_user_id']);

// Loop through all users who thanked the post
for ($i = 0; $i <count>sql_query($sql)) ) {
message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);
}

$from_user_row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

$thanks_given = $from_user_row['user_thanks_given'] - 1;

// Update DB with the new thanks given
$update_sql = "UPDATE " . USERS_TABLE . "
SET user_thanks_given = '" . $thanks_given . "'
WHERE user_id = " . $from_user;

if ( !($result = $db->sql_query($update_sql)) ) {
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $update_sql);
}

// Remove 1 from the user who was thanked
$sql = "SELECT user_thanks_received
FROM " . USERS_TABLE . "
WHERE user_id = " . $to_user;

if ( !($result = $db->sql_query($sql)) ) {
message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);
}

$to_user_row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

$thanks_received = $to_user_row['user_thanks_received'] - 1;

// Update DB with the new thanks given
$update_sql = "UPDATE " . USERS_TABLE . "
SET user_thanks_received = '" . $thanks_received . "'
WHERE user_id = " . $to_user;

if ( !($result = $db->sql_query($update_sql)) ) {
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $update_sql);
}
}
}

//
// End Thank Post by User Mod
//


#
#-----[ OPEN ]---------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]---------------------------------
#

//
// That's all, Folks!

#
#-----[ BEFORE, ADD ]---------------------------------
#


//
// Start Thank Post by User Mod
//

$lang['Thanks_title'] = 'Thank User for Post';
$lang['Thanks_text'] = 'Thank this user for their post';
$lang['Thanks_thanked_by'] = 'Thanked by';

$lang['Thanks_thanks'] = 'Thanks';
$lang['Thanks_thanked_1'] = 'Thanked';
$lang['Thanks_thanked_2'] = 'Times in';
$lang['Thanks_thanked_3'] = 'Posts';

$lang['Thanks_not_logged_in'] = 'You aren't logged in.';
$lang['Thanks_no_post_specified'] = 'No post was specified.';
$lang['Thanks_no_such_post'] = 'Post doesn't exist.';
$lang['Thanks_anonymous'] = 'You can't thank an anonymous post.';
$lang['Thanks_self'] = 'You can't thank your own post.';
$lang['Thanks_already_thanked'] = 'You have already thanked this post.';
$lang['Thanks_success_1'] = 'Post by';
$lang['Thanks_success_2'] = 'in thread';
$lang['Thanks_success_3'] = 'has successfully been thanked.';
$lang['Thanks_success_back'] = 'Click here if you can't wait or if redirection is not supported by your browser';
$lang['Thanks_success_redirect'] = 'Redirecting to the topic/post you came from in 5 seconds.';

//
// End Thank Post by User Mod
//


#
#-----[ OPEN ]---------------------------------
#

templates/Integra2/Integra2.cfg

#
#-----[ FIND ]---------------------------------
#

$images['icon_edit'] = "$current_template_images/{LANG}/icon_edit.gif" width="$topic_iw" height="$topic_ih" class="imgtopic";


#
#-----[ AFTER, ADD ]---------------------------------
#

$images['icon_thank'] = "$current_template_images/{LANG}/icon_thank.gif" width="$topic_iw" height="$topic_ih" class="imgtopic";

#
#-----[ OPEN ]------------------------------------------
#

templates/Integra2/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<script></script>

#
#-----[ BEFORE, ADD ]---------------------------------
#

{THANKS_JAVASCRIPT}

#
#-----[ FIND ]------------------------------------------
#

{postrow.QUOTE_IMG}

#
#-----[ IN-LINE FIND ]------------------------------------------
#

{postrow.QUOTE_IMG}

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#

{postrow.QUOTE_IMG} {postrow.THANKS_IMG}

#
#-----[ FIND ]------------------------------------------
#
</tr>
<END>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<BEGIN>
<tr>
<td>
<table>
<tr>
<td><span>{postrow.thanks.L_THANKS_TEXT}: {postrow.thanks.THANKS_USERS}</span></td>
</tr>
</table>
</td>
</tr>
<END>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Hopefully we can iron out any other issues.

It would be also nice to see in the profile section to the left of the members posts, something like what they have in vBulletin.
"Thanked xx times in yy posts."

I don't think this mod keeps track of the number of posts thanked, but I do believe it keeps a total of thanks received.
Maybe with some help, someone can help with this. I'll take a look, but I might screw stuff up. LOL

Will let ya know what I come up with.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: thank you button?

PostAuthor: Michalis » Wed May 27, 2009 11:21 am

I have come accross a prob
cannot find

Code: Select all
'POSTER_FROM' => $poster_from,


in viewtopic.php

shame it seems looking thru this post it does not seem to be ready
for 141 tho i am willing to try to help complee a working thanx button with all ur help
[img=left]http://www.houseofdance.net/images/Banners/HoDbanner2008.gif[/img]
User avatar
Michalis
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 16, 2007 5:37 pm
Cash on hand: 0.00
Location: UK

Re: thank you button?

PostAuthor: .QUACK.Major.Pain » Wed May 27, 2009 12:33 pm

Your using the wrong instructions.
The one in the download is for phpbb2 forums.

You have to use the instructions posted in this thread.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: thank you button?

PostAuthor: Michalis » Wed May 27, 2009 7:56 pm

.=QUACK=.Major....

I feel like a dumbass hehehehe

thanx dude i manged to get it to work after a few small minor probs to work with
my template i am using. tho in the end i am a happy bunny as it works atreat. thanx alot from all involved <img>
[img=left]http://www.houseofdance.net/images/Banners/HoDbanner2008.gif[/img]
User avatar
Michalis
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 16, 2007 5:37 pm
Cash on hand: 0.00
Location: UK

Re: thank you button?

PostAuthor: Michalis » Sun May 31, 2009 12:30 pm

I have come accross a small problem or I should say my members have, for which I really should
have noticed this. On every post an top of page where it shows directory of post it also shows the word
"script" before directory... you can see on image below where the reed arrow is.

[img]http://i42.tinypic.com/e71but.jpg[/img]

I am using agent orange theme & I wonder if anyone can advise on how I can fix this please.
[img=left]http://www.houseofdance.net/images/Banners/HoDbanner2008.gif[/img]
User avatar
Michalis
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jun 16, 2007 5:37 pm
Cash on hand: 0.00
Location: UK

Re: thank you button?

PostAuthor: .QUACK.Major.Pain » Sun May 31, 2009 3:50 pm

It would be a mistake in your viewtopic.php file.

Recheck your edits.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00


Return to IntegraMOD Modifications

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Majestic-12 [Bot]