| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
|
 |
Autinhyeu
Joined: 09 Aug 2008 Posts: 36
|
Posted: Thu Aug 28, 2008 9:11 am Post subject: Re: "thanks post mod" and "hide bbcode mod" |
|
|
Thanks for reply
This is code to combine "Thanks post MOD" and "hide BBcode MOD":
Open: viewtopic.php
Find
| Code: | // Check if the topic viewer has posted in a topic
$unhide = false;
if ($user->data['user_id'] != ANONYMOUS)
{
$sql = "SELECT poster_id, topic_id
FROM " . POSTS_TABLE . "
WHERE topic_id = $topic_id
AND poster_id = " . $user->data['user_id'];
$result = $db->sql_query($sql);
$unhide = $db->sql_affectedrows($result) ? true : false;
$db->sql_freeresult($result);
} |
Replace With
| Code: | // Check if the topic viewer has posted in a topic
$unhide = false;
$sql = 'SELECT post_thanked
FROM ' . POSTS_TABLE . '
WHERE post_id = ' . $post_id;
$result = $db->sql_query($sql);
$post_thanked = $db->sql_fetchfield('post_thanked');
$db->sql_freeresult($result);
if ($user->data['user_id'] != ANONYMOUS)
{
// If moderator or admin, skip reply check, auto unhide
if ($auth->acl_get('m_', $forum_id))
{
$unhide = true;
}
else if ($post_thanked > 0)
{
$unhide = true;
}
else
{
$sql = "SELECT poster_id, topic_id
FROM " . POSTS_TABLE . "
WHERE topic_id = $topic_id
AND poster_id = " . $user->data['user_id'];
$result = $db->sql_query($sql);
$unhide = $db->sql_affectedrows($result) ? true : false;
$db->sql_freeresult($result);
}
} |
Thanks again ^^! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
Autinhyeu
Joined: 09 Aug 2008 Posts: 36
|
Posted: Thu Aug 28, 2008 9:27 am Post subject: Re: "thanks post mod" and "hide bbcode mod" |
|
|
Sorry, link my forum: http://www.autinhyeu.com
But it is not language english i think you cant understand it (sorry)
you can test at this: http://www.autinhyeu.com/test-phat-t1236.html#p2414
tester account: ID: tester Pass: 123456
with: "Cảm ơn" is "Thanks" ^^!
and content in hide BBcode is: " test SEO MOD"
i hope u can understand ^^!
Thanks you very much. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Mon Sep 01, 2008 7:29 am Post subject: Re: "thanks post mod" and "hide bbcode mod" |
|
|
all right, so from what I see here, thanks links ar of this type : -http://www.autinhyeu.com/thanks.php?p=2396&mode=thanks
There is no reason why the zero dupe would make these fail. And as far as I understand your language, clicking on it seems to work.
Your post link seems to have been moved, could you post here a link to where a bbcode hide is in use ?
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
Autinhyeu
Joined: 09 Aug 2008 Posts: 36
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |