| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | ||||
| 
 | ||||
|  need help with multi demensional variable(array) in threadbit 
			
			Not sure how to start. I have a query that states,  Code: $q = vB::$db->query_first("SELECT `thisdata`,`thisdata2` FROM `customtable` WHERE `threadid` = " . $threadid . ");Code: vB_Template::preRegister('threadbit', array('q' => $q));what hook should I use? threadbit_display? how would I call the variable properly? I've tried a number of things... :\ Code: {vb:raw q.thisdata} {vb:raw thisdata} {vb:raw q} {vb:raw q, {vb:raw thread.realthreadid}} {vb:raw q.{vb:raw thread.realthreadid}.thisdata} {vb:raw q.thisdata, {vb:raw thread.realthreadid}} {vb:raw thread.q.thisdata}any ideas? A few of those variables returned "Array" in the template, but I was unsure if it was an array of all threads or just the data that pertains to that specific thread. --------------- Added [DATE]1360699547[/DATE] at [TIME]1360699547[/TIME] --------------- nvm, figured it out. issue with query. | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |