Thank Mod 4 > HIDE PROBLEM!

Hier kommen die Support Anfragen für phpBB 3.0.x MODs hinein.
LeNNy
Beiträge: 14
Registriert: 7. Jun 2009 12:46
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Thank Mod 4 > HIDE PROBLEM!

Beitrag von LeNNy »

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
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?
Benutzeravatar
Mahony
Site Admin
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!

Beitrag von Mahony »

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
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.

Bild
LeNNy
Beiträge: 14
Registriert: 7. Jun 2009 12:46
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Thank Mod 4 > HIDE PROBLEM!

Beitrag von LeNNy »

Mahony hat geschrieben:Hello
The error must be in the Hide MOD installation. Check again all the changes in the files.


best regards Mahony
Okay I try that
LeNNy
Beiträge: 14
Registriert: 7. Jun 2009 12:46
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Thank Mod 4 > HIDE PROBLEM!

Beitrag von LeNNy »

Mahony 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
Ok i try
LeNNy
Beiträge: 14
Registriert: 7. Jun 2009 12:46
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Thank Mod 4 > HIDE PROBLEM!

Beitrag von LeNNy »

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
Benutzeravatar
Mahony
Site Admin
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!

Beitrag von Mahony »

Hello
Is it possible to change, REPLY does not work, but you need to press the Thank button to read the post?
O.K. Try this

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);
}
Replace with

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 -->
Add befor

Code: Alles auswählen

<!-- IF postrow.S_FIRST_ROW == 2 -->
Find

Code: Alles auswählen

<!-- END postrow -->
Add befor

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.

Bild
LeNNy
Beiträge: 14
Registriert: 7. Jun 2009 12:46
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Thank Mod 4 > HIDE PROBLEM!

Beitrag von LeNNy »

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.html

Code: Alles auswählen

<!-- IF not S_USER_LOGGED_IN and not postrow.THANKS -->
Add befor

Code: Alles auswählen

<!-- IF postrow.S_FIRST_ROW == 2 -->
Find

Code: Alles auswählen

<!-- END postrow -->
Add befor

Code: Alles auswählen

<!-- ENDIF -->

best regards Mahony
Thanks , worked.

And for the, Use Thank button instead of Replying to see the post? Have you got a fix for that? I really need it, :)
Benutzeravatar
Mahony
Site Admin
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!

Beitrag von Mahony »

Hello
Is it possible to change, REPLY does not work, but you need to press the Thank button to read the post?
O.K. Try this

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);
}
Replace with

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;
   }
}  
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.

Bild
LeNNy
Beiträge: 14
Registriert: 7. Jun 2009 12:46
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Thank Mod 4 > HIDE PROBLEM!

Beitrag von LeNNy »

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))
);

LeNNy
Beiträge: 14
Registriert: 7. Jun 2009 12:46
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Thank Mod 4 > HIDE PROBLEM!

Beitrag von LeNNy »

This is my viewtopic.php Take a look if u like :) (made in rar, PHP not allowed)
viewtopic.rar
(14.54 KiB) 258-mal heruntergeladen
viewtopic.rar
(14.54 KiB) 258-mal heruntergeladen
Thanks Lenny
Antworten