Dark_Konoko |
07-17-2006 02:06 PM |
Is $bbuserinfo['x'] limited to certain templates?
Is $bbuserinfo['x'] limited to certain templates? If so, how does one incorperate user options / profile options into other templates?
For example, a user has requested the ability to force attachments to open in new windows. I've added a set of radio buttons with the options "No" and "Yes" (with No being the default) under field9. I've checked that it in indeed the correct field by adding "$bbuserinfo['field9']" to the forum header (it echo's "No" or "Yes" respectively).
I then edited the postbit_attachment template:
HTML Code:
<tr>
<td>
<img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="($show['newwindow']) OR ($bbuserinfo['field9'] == 'Yes')"> target="_blank"</if>>$attachment[filename]</a> ($attachment[filesize], <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase>)</td>
</tr>
What am I doing wrong? Oh and what is the function of "($show['newwindow'])". I assume there is an option already to force attachments to open in a new window, however I cannot find it anywhere.
|