Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Request] Show Unanswered Threads
dvb Offline
Junior Member
**
Posts: 11
Joined: Feb 2008
Post: #4
RE: [Request] Show Unanswered Threads
ZiNgA BuRgA Wrote:You can use this trick:
In inc/functions_search.php
Find and delete:

PHP Code:
	if(!$keywords && !$search['author'])
	{
		error($lang->error_nosearchterms);
	}


This will allow you to perform searches without specifying any keywords or authors.
So now you can just specify a search, saying to return threads/posts with at most, 0 replies.

I think a better solution will be to add another condition to the if statement so the if will check that at least one of the three fields (keywords, author, replies) filled.
if you just delete that section I think it'll be problematic, no?
RR2 Wrote:Neat! But can I put a link in the welcome block called View Unanswered Threads using this?
yes you just need to pass the variables

Cocktail Be a fountain, not a drain.
Rex Hudler
User Creativity is a drug I cannot live without.
Cecil B. DeMille
03-19-2008 10:54 AM
Visit this user's website Find all posts by this user

« Next Oldest | Next Newest »

Messages In This Thread
[Request] Show Unanswered Threads - RR2 - 03-18-2008, 11:34 PM
RE: [Request] Show Unanswered Threads - dvb - 03-19-2008 10:54 AM

 Standard Tools
Forum Jump: