Quote:
Originally Posted by Kolbi
I have a little question. In the template "dto_garage_popup_menu"
Code:
<if condition="$use_username_in_link">
<phrase 1="$userinfo[username]">$vbphrase[xs_garage] </phrase>
<else />
Garage
</if>
I tried this an always "Garage" appears.
The fact that you can?t edit the phrase $vbphrase[xs_garage] (it?s always ?{1}?s Garage) doesn?t makes it senseless?
Wouldn?t it better then instead of Garage would appear {1}?s Garage in the Postbit?
Code:
<if condition="$use_username_in_link">
<phrase 1="$userinfo[username]">$vbphrase[xs_garage] </phrase>
</if>
Doesn?t works? Why?
but
Code:
<if condition="$use_username_in_link">
<phrase 1="$userinfo[username]">$vbphrase[xs_garage] </phrase>
<else />
<phrase 1="$userinfo[username]">$vbphrase[xs_garage] </phrase>
</if>
Does what I want.  It displays the phrase for example Kolbi?s Garage
Or don?t I understand this code...
|
$dto_garage_popup_menu is actually a variable that, when referenced, in a template contains the needed html to render the pop-up menu. Currently the $use_username_in_link is not being set as it is for future expansion hence why it wasn't displaying as you would like. The reason I had selected the "Garage" link approach in postbit was because the post was already "owned" by the user so I felt that using the user's name next to the link so that it would look like "Mark's Garage" would be redundant. Also, since we found that there are often long usernames on sites we didn't want to create a visual problem with rendering a long username inside of the postbit since it was already displayed once.
Hope this helps shed a little light on the reason behind the madness
Best regards,
Mark