Skip to Content Skip to Menu

deleted messages

13 years 10 months ago #148319 by philman401
deleted messages was created by philman401
Is there anyway to not show deleted inbox/outbox pm messages in search results?

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 10 months ago #148323 by slabbi
Replied by slabbi on topic Re:deleted messages
If so it seems to be a bug. I will check it asap.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 10 months ago #148327 by slabbi
Replied by slabbi on topic Re:deleted messages
In uddeim_searchbot.php add one line:

[code:1] . "\n AND a.totrash = 0"[/code:1]

so the code looks like

[code:1] $query = "SELECT b.name AS title,"
. "\n a.message AS text,"
. "\n FROM_UNIXTIME(a.datum) AS created,"
. "\n ".$tsection." AS section,"
. "\n '2' AS browsernav,"
. "\n CONCAT( 'index.php?option=com_uddeim&task=show&messageid=', a.id ) AS href"
. "\n FROM #__uddeim AS a"
. "\n INNER JOIN #__users AS b ON a.fromid = b.id"
. "\n WHERE ( a.message LIKE ".$ttext
. "\n OR b.name LIKE ".$ttext
. "\n OR b.username LIKE ".$ttext
. "\n )"
. "\n AND a.toid = ".(int)$userid
. "\n AND a.totrash = 0"
. "\n GROUP BY a.id"
. "\n ORDER BY $order";[/code:1]

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum