The Arcive of vBulletin Modifications Site. |
|
View Users Attachments Details »»
|
|||||||||||||||||||||||||
This allows you to put a link in users profiles to allow their attachments to be viewed.
In the MEMBERINFO template Find: Code:
<if condition="$show['usernotes']"> <div class="fieldset"> <div Code:
<a href="profile.php?$session[sessionurl]do=editattachments&u=$post[userid]&showthumbs=1">View Users Attachments</a> In your postbit (or postbit legacy) template find: Code:
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if> Code:
<a href="profile.php?$session[sessionurl]do=editattachments&u=$post[userid]&showthumbs=1"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" border="0" /></a> Find in memberlist template: Code:
<if condition="$show['avatarcol']"><td class="thead" nowrap="nowrap">$vbphrase[avatar]</td></if> Code:
<td class="thead" nowrap="nowrap">Attachments</td> Code:
<if condition="$show['avatarcol'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['avatar']"><img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" /><else /> </if></td></if> Code:
<td class="$bgclass"><a href="profile.php?$session[sessionurl]do=editattachments&u=$userinfo[userid]&showthumbs=1">View</a> </td> No screenshot because it looks just how it looks when you view your own attachments in your usercp, just without the sidebar Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Nice
|
|
#3
|
|||
|
|||
|
I agree Nice,
Thanks
|
|
#4
|
||||
|
||||
|
Quote:
Should there be a session in the url? And is it possible to have a conditional to only show it if the person has attachments? |
|
#5
|
||||
|
||||
|
Quote:
As far as the conditional, I don't know, this "hack" is really just doing something automatically that you can do manually at any vbulletin board by just adding: profile.php?do=editattachments&u=1&showthumbs=1 at the end of the forum url and changing u=1 for whatever userid you want to see. |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
|||
|
|||
|
oh sorry, I had my HTML formatted bad LOL
Thanks |
|
#9
|
||||
|
||||
|
Haha okay, no problem.
|
|
#10
|
||||
|
||||
|
Quote:
|
![]() |
|
|