The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
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> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|