![]() |
View Users Attachments
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']"> 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 |
Nice
|
I agree Nice,
Thanks :) |
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? |
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. |
Quote:
|
Quote:
|
oh sorry, I had my HTML formatted bad LOL
Thanks |
Haha okay, no problem.
|
Quote:
|
All times are GMT. The time now is 10:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|