The Arcive of vBulletin Modifications Site. | 
    |
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Does anyone have any suggestions (or know if a premade plugin that would do this) for creating a new plugin which will search for similar threads ONLY within a specfic forumid?  I don't want to edit the existing similar threads code, I want to basically duplicate its functionality but only limit the search to a specific forum.  The results of this search will appear below the existing similar threads list (but labeled differently to serve a different purpose). 
		
		
		
		
		
		
		
		
	
	Any thoughts/suggestions appreciated!  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Look at file packages/vbdbsearch/coresearchcontroller.php, function get_similar_threads() (around line 138). It's really just a query that uses a mysql feature to match text against a something and return a score.
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Thanks, I had seen that.  Do you know per chance how I could go about duplicating that, modifying the MySQL query, and then making those results available within a template on vB?  Inknownthe query I need to run, it's just a matter of getting those results to show in vBulletin. I'd rather not modify any core vB files if I can avoid it, which is why I was hoping I could just write a plugin to accomplish this.
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Yeah, sorry, I guess that was the easy part. I never have looked closely at the search code to see how it could be modified - maybe someone else will help.
		 
		
		
		
		
		
		
		
		
	
	 | 
![]()  | 
	
	
		
  | 
	
		
  | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
						
  | 
				|
  More Information | 
				|
| 
						 Template Usage: 
						
 Phrase Groups Available: 
						
  | 
					
						 Included Files: 
						
 Hooks Called: 
						
  |