![]() |
vB4 Template Changes Modification
Can someone please convert the following template changes in this thread https://vborg.vbsupport.ru/showthread.php?t=231081 to vB3 style please?
I would really appreciate it as I lack the requisite knowledge to do so myself. These are the vB4 template changes: Find this in postbit legacy Code:
<vb:if condition="$post['title'] OR $show['messageicon']"> Code:
<vb:if condition="$post['fieldX']"><div class="steamprofile" title="{vb:raw post.fieldX}" style="float: right;"></div></vb:if |
1st one
HTML Code:
<if condition="$post['title'] OR $show['messageicon']"> HTML Code:
<if condition="$post['fieldX']"><div class="steamprofile" title="$post[fieldX]" style="float: right;"></div></if> |
Quote:
Code:
$template_hook[postbit_start] |
It IS in your postbit, just not in the same order. In yours, it's:
HTML Code:
<if condition="$show['messageicon'] OR $post['title']"> |
Quote:
I have a variable called $userinfo[steam] which returns the Steam ID from a product called Steam ID card. How do I replace that instead of field5? I have tried to do this Code:
<if condition="$post['$userinfo[steam]']"><div class="steamprofile" title="$post[$userinfo[steam]]" style="float: right;"></div></if> Parse error: syntax error, unexpected '[', expecting ']' in /home/work/public_html/forums/includes/adminfunctions_template.php(3950) : eval()'d code on line 71 |
Try this
HTML Code:
<if condition="$userinfo[steam]"><div class="steamprofile" title="$userinfo[steam]" style="float: right;"></div></if> |
Quote:
|
All times are GMT. The time now is 09:04 AM. |
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:
|