![]() |
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:
|
Thank you, Tim!
This is great addition to the artists forum. Do think it's possible (and how) to insert "View Users Attachments" link to the Forum Display, Thread View and Members List? Alexei |
Yeah, I'll work on that and get back to you.
|
Thanks for this hack Tim, very nice ;)
Click Install :) |
Nice thxx
|
Update:
To add link in postbit. 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 src="$stylevar[imgdir_misc]/paperclip.gif" border="0" /> 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> |
Added some screen shots of the various links this hack creates.
|
Thanks!!! A++
|
Now that is fun. So easy :up:
|
very cool!
Does anyone know if it is possible to add an <if condition so that the link to the attachments page only shows up if there are actually attachments? |
"CLICKS INSTALL"
Great hack! if only there was a way to pull all the images from the database and put them in user respective (or a single common) folder/s so i could run a cronjob to once a day upload user attchments to the photogallery. *sigh* |
I noticed there is no close to the link. On our forum (at least with the other mods) this seems to crash IE6... so for anyone who is having crash issues... replace this (in postbit):
Code:
<a href="profile.php?$session[sessionurl]do=editattachments&u=$post[userid]&showthumbs=1"><img src="$stylevar[imgdir_misc]/paperclip.gif" border="0" /> Code:
<a href="profile.php?$session[sessionurl]do=editattachments&u=$post[userid]&showthumbs=1"><img src="$stylevar[imgdir_misc]/paperclip.gif" border="0" /></a> |
you rock alapo! that fixed my site from crashing in IE 6
had alot of members complaining they were having problems but that seems to have done the job! |
Works perfect for 3.6.
Clever boy Tim keep going... Any idea how to show the result as a real thumbnails of attachments and not that small image icons... |
I suggestion use a vbphese say
<a href="profile.php?$session[sessionurl]do=editattachments&u=$post[userid]"><phrase 1="$userinfo[username]">$vbphrase[attachments_posted_by_x]</phrase></a> |
Updated my new member profile page. Works on 3.7.3
|
Don't working in 3.8.3 ... :(
after add first code In profile I have links Code:
http://www.kharkovforum.com/profile.php?do=editattachments&u=&showthumbs=1 Code:
http://www.kharkovforum.com/profile.php?do=editattachments&u=12345&showthumbs=1 |
All times are GMT. The time now is 10:31 PM. |
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:
|