Then how can i fix those bugs? and btw, I am using Thank Post MOD Version 0.4.0 so I cant use Hide for it?Mahony hat geschrieben:Hello
The Thank Post Mod (hide MOD compatible ) 0.2.0 and the Thank Post MOD Version 0.4.0 are NOT the same. They are not compatible with each other.
best regards Mahony
Thank Mod 4 > HIDE PROBLEM!
Re: Thank Mod 4 > HIDE PROBLEM!
- Mahony
- Site Admin
- Beiträge: 792
- Registriert: 3. Dez 2006 22:09
- Hat sich bedankt: 22 Mal
- Danksagung erhalten: 6 Mal
Re: Thank Mod 4 > HIDE PROBLEM!
Hello
The error must be in the Hide MOD installation. Check again all the changes in the files.
After the installation - clear the cache.
best regards Mahony
The error must be in the Hide MOD installation. Check again all the changes in the files.
After the installation - clear the cache.
best regards Mahony
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.
Klug ist, wer nur die Hälfte von dem glaubt, was er hört. Weise ist, wer erkennt, welche Hälfte richtig ist.
Klug ist, wer nur die Hälfte von dem glaubt, was er hört. Weise ist, wer erkennt, welche Hälfte richtig ist.
Re: Thank Mod 4 > HIDE PROBLEM!
Ok i tryMahony hat geschrieben:Hello
The error must be in the Hide MOD installation. Check again all the changes in the files.
After the installation - clear the cache.
best regards Mahony
Re: Thank Mod 4 > HIDE PROBLEM!
Ok, I had forgot to edit the. Stylsheet, and BBCode in the /Theme directory.
It does works now, it shows the text if you REPLY. Is it possible to change, REPLY does not work, but you need to press the Thank button to read the post?
Once u reply, ur able to see it. But I want to have it, once you press the Thank post, u can see the post...
I really need it it by Pressing thanks, Reply is useless for me If its able that would be great
EDIT:
Also, is it possible to Thank ONE Time, only to the person who created the Topic? and not by Each reply?
-Thanx
It does works now, it shows the text if you REPLY. Is it possible to change, REPLY does not work, but you need to press the Thank button to read the post?
Once u reply, ur able to see it. But I want to have it, once you press the Thank post, u can see the post...
I really need it it by Pressing thanks, Reply is useless for me If its able that would be great
EDIT:
Also, is it possible to Thank ONE Time, only to the person who created the Topic? and not by Each reply?
-Thanx
- Mahony
- Site Admin
- Beiträge: 792
- Registriert: 3. Dez 2006 22:09
- Hat sich bedankt: 22 Mal
- Danksagung erhalten: 6 Mal
Re: Thank Mod 4 > HIDE PROBLEM!
Hello
Find in viewtopic.php
Replace with
Should the "Thanks Button" only in the first post, then the following adjustment must be carried out.
Find in styles/prosilver/template/viewtopic_body.html
Add befor
Find
Add befor
best regards Mahony
O.K. Try thisIs it possible to change, REPLY does not work, but you need to press the Thank button to read the post?
Find in viewtopic.php
Code: Alles auswählen
// Check if the topic viewer has posted in a topic
$unhide = false;
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 (already_thanked($post_id, $user->data['user_id']))
{
$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);
}
Code: Alles auswählen
// Check if the topic viewer has thanked in a topic
$unhide = false;
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 (already_thanked($post_id, $user->data['user_id']))
{
$unhide = true;
}
}
Should the "Thanks Button" only in the first post, then the following adjustment must be carried out.
Find in styles/prosilver/template/viewtopic_body.html
Code: Alles auswählen
<!-- IF not S_USER_LOGGED_IN and not postrow.THANKS -->
Code: Alles auswählen
<!-- IF postrow.S_FIRST_ROW == 2 -->
Code: Alles auswählen
<!-- END postrow -->
Code: Alles auswählen
<!-- ENDIF -->
best regards Mahony
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.
Klug ist, wer nur die Hälfte von dem glaubt, was er hört. Weise ist, wer erkennt, welche Hälfte richtig ist.
Klug ist, wer nur die Hälfte von dem glaubt, was er hört. Weise ist, wer erkennt, welche Hälfte richtig ist.
Re: Thank Mod 4 > HIDE PROBLEM!
Thanks , worked.Mahony hat geschrieben:Hello
Should the "Thanks Button" only in the first post, then the following adjustment must be carried out.
Find in styles/prosilver/template/viewtopic_body.htmlAdd beforCode: Alles auswählen
<!-- IF not S_USER_LOGGED_IN and not postrow.THANKS -->
FindCode: Alles auswählen
<!-- IF postrow.S_FIRST_ROW == 2 -->
Add beforCode: Alles auswählen
<!-- END postrow -->
Code: Alles auswählen
<!-- ENDIF -->
best regards Mahony
And for the, Use Thank button instead of Replying to see the post? Have you got a fix for that? I really need it,
- Mahony
- Site Admin
- Beiträge: 792
- Registriert: 3. Dez 2006 22:09
- Hat sich bedankt: 22 Mal
- Danksagung erhalten: 6 Mal
Re: Thank Mod 4 > HIDE PROBLEM!
Hello
Find in viewtopic.php
Replace with
best regards Mahony
O.K. Try thisIs it possible to change, REPLY does not work, but you need to press the Thank button to read the post?
Find in viewtopic.php
Code: Alles auswählen
// Check if the topic viewer has posted in a topic
$unhide = false;
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 (already_thanked($post_id, $user->data['user_id']))
{
$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);
}
Code: Alles auswählen
// Check if the topic viewer has thanked in a topic
$unhide = false;
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 (already_thanked($post_id, $user->data['user_id']))
{
$unhide = true;
}
}
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.
Klug ist, wer nur die Hälfte von dem glaubt, was er hört. Weise ist, wer erkennt, welche Hälfte richtig ist.
Klug ist, wer nur die Hälfte von dem glaubt, was er hört. Weise ist, wer erkennt, welche Hälfte richtig ist.
Re: Thank Mod 4 > HIDE PROBLEM!
I cant find that, the only thing I can find in my root/viewtopic.php =
Code: Alles auswählen
// 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);
}
$user->add_lang('mods/simple_hide_bbcode');
// Instantiate BBCode if need be
if ($bbcode_bitfield !== '')
{
$bbcode = new bbcode(base64_encode($bbcode_bitfield), $unhide);
}
$i_total = sizeof($rowset) - 1;
$prev_post_id = '';
$template->assign_vars(array(
'S_NUM_POSTS' => sizeof($post_list))
);