Lack of interest Add conditon argument to Thread Model

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Cory Booth

Well-known member
Can we have a couple more arguments to the Thread.php Model?
Function prepareThreadConditions
Current
PHP:
        if (!empty($conditions['forum_id']))
  {
   $sqlConditions[] = 'thread.node_id = ' . $db->quote($conditions['forum_id']);
  }
Requested
PHP:
        if (!empty($conditions['not_forum_id']))
  {
   $sqlConditions[] = 'thread.node_id <> ' . $db->quote($conditions['not_forum_id']);
  }
Current
PHP:
        if (!empty($conditions['user_id']))
  {
   $sqlConditions[] = 'thread.user_id = ' . $db->quote($conditions['user_id']);
  }
Requested
PHP:
        if (!empty($conditions['not_user_id']))
  {
   $sqlConditions[] = 'thread.user_id <> ' . $db->quote($conditions['not_user_id']);
  }
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
You could always extend the model using the xf proxy class oder using a own model for your add-ons! (depends on what you want to do^^)
 
You could always extend the model using the xf proxy class oder using a own model for your add-ons! (depends on what you want to do^^)

Extend? LOL Sorry ragtek, but I don't know how to do that yet... :-)
Actually what I was doing was trying to add a filter for Jaxel's RecentThreads module which seems to use this model to read threads.
anks!
I'll do some reading and see what I can figure out...
Th
 
Top Bottom