Das ist die anleitung:
Code: Alles auswählen
Files to Edit
languages/en/common.php,
viewtopic.php
Included Files
root/thanks.php,
root/styles/subsilver2/imageset/*,
root/styles/prosilver/imageset/*
Additional MODX Files
This MOD has no additional MODX files.
SQL
Code: Select All
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `phpbb_thanks`;
CREATE TABLE `phpbb_thanks` (
`post_id` mediumint(8) NOT NULL default '0',
`user_id` mediumint(8) NOT NULL default '0',
KEY `post_id` (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM;
SET FOREIGN_KEY_CHECKS = 1;
File Copy
Copy: root/thanks.php
To: thanks.php
Copy: root/styles/subsilver2/imageset/*
To: styles/subsilver2/imageset/*
Copy: root/styles/prosilver/imageset/*
To: styles/prosilver/imageset/*
Edits
s↑↓
Use your keyboard to navigate the code boxes. You may also hit 's' on your keyboard to go to the first code box.
Open: languages/en/common.php
Comments
Find
Tip: This may be a partial find and not the whole line.
Code: Select All
?>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code: Select All
$lang = array_merge($lang, array(
'REMOVE_THANKS' => 'Remove your thanks for ',
'THANK_POST1' => 'Thank ',
'THANK_POST2' => '\'s post',
'THANK_TEXT_1' => 'The following',
'THANK_TEXT_2' => 'user would like to thank',
'THANK_TEXT_2pl' => 'users would like to thank',
'THANK_GENDER_F' => 'for her post',
'THANK_GENDER_M' => 'for his post',
'THANK_GENDER_U' => 'for his or her post',
'RECEIVED' => 'Received',
'THANKS' => 'thanks',
'GIVEN' => 'Given',
'TP_040_UPGRADED' => 'Your Thank Post MOD installation has been upgraded to 0.4.0! Please refresh this page and have a nice day!',
));
Open: viewtopic.php
Comments
Find
Tip: This may be a partial find and not the whole line.
Code: Select All
// Start session management
$user->session_begin();
$auth->acl($user->data);
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code: Select All
include($phpbb_root_path . 'thanks.' . $phpEx);
Find
Tip: This may be a partial find and not the whole line.
Code: Select All
if (isset($cp_row['row'])
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code: Select All
output_thanks($row['user_id']);
SQL
Code: Select All
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `phpbb_thanks`;
CREATE TABLE `phpbb_thanks` (
`post_id` mediumint(8) NOT NULL default '0',
`user_id` mediumint(8) NOT NULL default '0',
KEY `post_id` (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM;
SET FOREIGN_KEY_CHECKS = 1;
File Copy
Copy: root/thanks.php
To: thanks.php
Copy: root/styles/subsilver2/imageset/*
To: styles/subsilver2/imageset/*
Copy: root/styles/prosilver/imageset/*
To: styles/prosilver/imageset/*
Edits
s↑↓
Use your keyboard to navigate the code boxes. You may also hit 's' on your keyboard to go to the first code box.
Open: languages/en/common.php
Comments
Find
Tip: This may be a partial find and not the whole line.
Code: Select All
?>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code: Select All
$lang = array_merge($lang, array(
'REMOVE_THANKS' => 'Remove your thanks for ',
'THANK_POST1' => 'Thank ',
'THANK_POST2' => '\'s post',
'THANK_TEXT_1' => 'The following',
'THANK_TEXT_2' => 'user would like to thank',
'THANK_TEXT_2pl' => 'users would like to thank',
'THANK_GENDER_F' => 'for her post',
'THANK_GENDER_M' => 'for his post',
'THANK_GENDER_U' => 'for his or her post',
'RECEIVED' => 'Received',
'THANKS' => 'thanks',
'GIVEN' => 'Given',
'TP_040_UPGRADED' => 'Your Thank Post MOD installation has been upgraded to 0.4.0! Please refresh this page and have a nice day!',
));
Open: viewtopic.php
Comments
Find
Tip: This may be a partial find and not the whole line.
Code: Select All
// Start session management
$user->session_begin();
$auth->acl($user->data);
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code: Select All
include($phpbb_root_path . 'thanks.' . $phpEx);
Find
Tip: This may be a partial find and not the whole line.
Code: Select All
if (isset($cp_row['row'])
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code: Select All
output_thanks($row['user_id']);