![]() |
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. |
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']"> |
k thanx a lot
Still not working but a Huge step further to make this Mod working again with vb4 :) |
Plugin:
(hookpoint: threadbit_display) PHP Code:
PHP Code:
Template: PHP Code:
PHP Code:
|
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)?
|
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:
|
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" /> should they really be phrases? |
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 :( |
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">... |
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:
|
All times are GMT. The time now is 01:25 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|