I want to install Палыч's Thank Post MOD because it needs much less SQL queries than e.g. Mahoney's Thanks MOD:
[RC] Thanks for post by Палыч
The problem is that it doesn't work together with your SEO MODs out of the box. I have already added 'thanks=' and 'rthanks=' to the stop vars in phpbb_seo_class.php:
- Code: Select all
// Stop vars
$this->seo_stop_vars = array('view=', 'mark=', 'watch=', 'hash=', 'thanks=', 'rthanks=');
So I get URLs like
example.com/viewtopic.php?p=13973&thanks=13973&to_id=18
So far, so good. The problem starts here in viewtopic.php, just before // Output the posts:
- Code: Select all
// Thank MOD
include($phpbb_root_path . 'includes/functions_thanks.' . $phpEx);
array_all_thanks();
if (isset($_REQUEST['thanks']) && !isset($_REQUEST['rthanks']))
{
insert_thanks(request_var('thanks', 0), $user->data['user_id']);
}
if (isset($_REQUEST['rthanks']) && !isset($_REQUEST['thanks']))
{
delete_thanks(request_var('rthanks', 0), $user->data['user_id']);
}
// Output the posts
array_all_thanks() gets called correctly, but there are no $_REQUEST['thanks'] / $_REQUEST['rthanks'] because of the rewritten URLs.
I have Advanced SEO URL MOD and every extension like No Dupe and Zero Dupe and my board is still on 3.0.4. (I know I should update...)
What is the best way to solve this incompatibility problem?
Greetings from Austria!
Wolfgang
EDIT: What is the better way in your opinion? Altering the .htaccess (so that variables like 'thanks' and 'rthanks' can get passed) or creating an independent file like thanks.php which does the work when someone thanks a post or revokes his/her thanking?

English |
French


