| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | ||||
| 
 | ||||
|  something is wrong 
			
			ok its getting all the information its susposed to but then its not displaying it  heres my code: PHP Code: 
			here is how it appears in the template: HTML Code: <table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%"> $latestentrybits </table>   | 
| 
			 
			#2  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			Do you have a template journal_latestentrybits ? | 
| 
			 
			#3  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			yes i do, here is what is in the template: HTML Code: <tr> <td class="$bgclass"><div class="smallfont"><a href="journal.php?do=showentry&e=$latest[entry_id]&j=$lastest[journal_id]">$latesty[entrytitle]</a> - ($latestentrydate at $latestentrytime)<br /><span style="cursor:pointer" onclick="window.open('member.php?u=$latest[journalist_id]')">$latest[journalist]</span></div></td> </tr> | 
| 
			 
			#4  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			You do have a call to printout a template at the end of the file right ?
		 | 
| 
			 
			#5  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			yeah. heres the entire block of code for that do: PHP Code: 
			 | 
| 
			 
			#6  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   Quote: 
 where is $do defined? try if ($_REQUEST['do'] == 'showindex') | 
| 
			 
			#7  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			yeah its for vb3 and the page shows up but the stuff for latestentrybits will not show up at all. the information is retrieved cause i used echo and it all showed, its just the template info isnt   | 
| 
			 
			#8  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			is it a scope problem? since the variable is defined within the if statement, it shouldn't be available outside it, so just prior to your if statement add the line Code: $latestentrybits = ""; | 
| 
			 
			#9  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			nope still doesnt work, it just the table and the journal_latestentrybits template wont show. the JOURNAL template shows and the information in it does too. heres a screenshot(attached) the red oval is where the table inside the JOURNAL template should appear and inside that table it should have the information from journal_latestentrybits. | 
| 
			 
			#10  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Can I see the Journal template?  Thay may be where the problem arrises from, since everything else looks ok
		 | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |