| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  Need help with template please 
			
			the old Vb 3.8 Code: PHP Code: 
			New Code vb4.1.x Code : PHP Code: 
			The Error is: %1$s Wrong formated Syntax. | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			The 'curly brace' {vb:raw variable} thing is only for displaying variables. In conditions you still need to use condition="$variable". So try putting back the original code in the two conditions, like: Code: <vb:if condition="$show['reputationlink']">
<span id="reputationmenu_{vb:raw post.postid}"><a href="reputation.php?{vb:raw session.sessionurl}p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><img src="{vb:stylevar imgdir_button}/comment.gif" alt="<phrase 1="{vb:raw post.username}">{vb:phrase add_to_xs_reputation}</phrase>" border="2" /></a></span>
<vb:if condition="$show['popups']"><script type="text/javascript"> vbrep_register("{vb:raw post.postid}")</script></vb:if>
</vb:if> | 
| 
			 
			#3  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			k thanx a lot Still not working but a Huge step further to make this Mod working again with vb4   | 
| 
			 
			#4  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Plugin: (hookpoint: threadbit_display) PHP Code: 
			PHP Code: 
			Template: PHP Code: 
			PHP Code: 
			 | 
| 
			 
			#5  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Your template seems to have vb:rawphrase in there a lot. Are those actually phrases, or should some of them maybe be vb:raw instead (to display the variable value)?
		 | 
| 
			 
			#6  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			the value (eg 1 2 or more) should be displayed.  i guess {vb:raw threadbit_reputation.positive} would be the right one in this case? is PHP Code: 
			PHP Code: 
			 | 
| 
			 
			#7  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			I have to admit, I'm somewhat confused now. You're using both a templatehook and a variable? Or did you just forget to take out one of those? If there's a template hook where you want to insert your string, then you don't need to register a variable. Otherwise, you want to do what you have above (minus the templatehook line). BTW, in my previous comment I was talking about these lines: Code: {vb:rawphrase threadbit_reputation.positive} <img src="{vb:stylevar imgdir_reputation}/reputation_balance.gif" border="0" />  
{vb:rawphrase threadbit_reputation.neutral}should they really be phrases? | 
| 
			 
			#8  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			to avoid any missunderstandings: instead of PHP Code: 
			PHP Code: 
			for the named template ddd_mod_reputation_score i have to use PHP Code: 
			i have to use PHP Code: 
			right? But it didnt work   | 
| 
			 
			#9  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			In this code: PHP Code: 
			When you register $threadbit_reputation, you don't want the $ in there. Also, if threadbit_reputation_given is only used in $show['threadbit_reputation_given'] you don't need to register it. So maybe try this: PHP Code: 
			ETA: ...or maybe what you want is to leave in the registering of 'threadbit_reputation_given' and change the template to <vb:if condition="$threadbit_reputation_given">... | 
| 
			 
			#10  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			iam a little bit new to this.. so i have problems to understand this: If have: a Plugin with Hookpint thread_display as shown in Post #4 there i add PHP Code: 
			PHP Code: 
			PHP Code: 
			 | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |