The Arcive of vBulletin Modifications Site. | 
    |
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			Is it possible to display in the postbit the number of threads the user has posted?
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			Not without hacking. I released a hack like this on my site a while back.
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Not difficult but adds a query. Probably could eliminate the extra query but I don't feel like putting the thought process into it. Go ahead and package this up as a hack and claim it as your own.  
		
		
		
		
		
		
		
		
	
	![]() In showthread.php //FIND PHP Code: 
	
			
	PHP Code: 
	
			
	Aaron  | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			Isn't that inside the loop? If so, that will add a query for every post on the page. And if you use bbuserinfo, it will show the same amount for each post, won't it? 
		
		
		
		
		
		
		
		
	
	EDIT: I just checked this. It does add a query for each post on the page.  
		 | 
| 
		 
			 
			#5  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			It would have to unless you find a way to just find the userids in the thread/on the page and then cycle through a bunch of checks for each post. It almost sounds more server intensive to do it that way. But I could be wrong. It is only 7 AM after all.  
		
		
		
		
		
		
		
		
	
	![]() I would think that you are right about the loop though. You'd need to put the block of code in the loop... PS. I guess use $post['userid'] instead of bbuserinfo. That would be an obvious overlook on my part.  | 
| 
		 
			 
			#6  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			No, you don't want the code inside the loop. That's where you get a query for every post on the page. We tried doing it your way when we did the hack and it came out with a query for every post. We have to go a totally different way to avoid that. And it isn't server intensive at all. It took some doing, but was accomplished.  
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 
			 
			#7  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Ah good to know. Let me know if you determine a way to do it in vb3. 
		
		
		
		
		
		
		
		
	
	I like your /bin/laden sig too, by the way.   I have a tee shirt from ThinkGeek that says rm -rf /bin/laden.  
		 | 
| 
		 
			 
			#8  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			The best way is to edit newthread.php to increment a profile field by one each time a new thread if submited, along with an option in the Update Counters section to rebuild (and create) the number of threads each person has done.
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#9  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 Quote: 
	
 Sketch: Nah i'm not gonna put up a mod of which code you gave me.   I'll try that code out later and see if it works. 1 extra query isn't gonna hurt anything I think.
		 | 
| 
		 
			 
			#10  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 Quote: 
	
  
		 | 
![]()  | 
	
	
		
		
  | 
	
		
  | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
						
  | 
				|
  More Information | 
				|
| 
						 Template Usage: 
						
 Phrase Groups Available: 
						
  | 
					
						 Included Files: 
						
 Hooks Called: 
						
  |