The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
For my hack: https://vborg.vbsupport.ru/showthread.php?t=175282
I'm trying to get the font code to display within the quote box, but I can't get this to work. Here is my code within the bbcode_quote template: Code:
<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]:</div>
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="border:1px inset">
<if condition="$show['username']">
<div>
<phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>
<if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if>
</div>
<div>
<!--Custom Font-->
<if condition="$userinfo[field10] OR $userinfo['field14'] OR $userinfo['field11'] OR $userinfo['field15'] OR $userinfo['field17'] OR $userinfo['field16']">
<span style="font: $userinfo[field14]px $userinfo[field11]; color: $userinfo[field10]; font-weight: $userinfo[field15]; font-style: $userinfo[field16]; text-decoration: $userinfo[field17];">$message</strong></span>
</if>
<!--/Custom Font-->
</div>
<else />
$message
</if>
</td>
</tr>
</table>
</div>
|
|
#2
|
||||
|
||||
|
Lack of quotes here maybe?
<if condition="$userinfo[field10] Should be.. <if condition="$userinfo['field10'] What is it doing exactly? Nothing for the quotes at all? Or just some? Is it in the source code incorrectly or not at all? |
|
#3
|
|||
|
|||
|
Quote:
Your css won't work right if the user doesn't provide all the fields. You might be able to try something like this but it will get complex. Code:
<div style=" <if condition="$userinfo[field14]"> font-size: $userinfo[field14]px; </if> <if condition="$userinfo[field11]"> font: $userinfo[field11]; </if> ... ">$message</div> |
|
#4
|
|||
|
|||
|
Quote:
Yes the quotes did give me an error, I will try your suggestion though, thanks. |
|
#5
|
||||
|
||||
|
How do you memorize this stuff. I can never remember. I just try it and if it works, great! If not, I try it without. It seems to be one way in php and the other in the templates.
|
|
#6
|
|||
|
|||
|
Ya I can't get it to work with either way. It seems it does not like variable $userinfo. $bbuserinfo works fine, but obvisously that just displays what the browsing user has entered in his/her profile NOT what the acually user that is displayed has selected. I don't know why that is, php works differently between each template.
|
|
#7
|
|||
|
|||
|
Yeah $userinfo isn't a variable in the template system. Sorry didn't catch that.
$bbuserinfo contains all the userinfo. |
|
#8
|
|||
|
|||
|
Quote:
So what variable could I use? $post doesn't work either
|
|
#9
|
|||
|
|||
|
When the quote is parsed in vB_BbCodeParser::handle_bbcode_quote, it only globalize these variables.
PHP Code:
|
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|