Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
View Users Attachments Details »»
View Users Attachments
Version: 1.00, by .Tim .Tim is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-01-2005 Last Update: 10-07-2005 Installs: 27
Template Edits
 
No support by the author.

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
Add above it:

Code:
<a href="profile.php?$session[sessionurl]do=editattachments&u=$post[userid]&showthumbs=1">View Users Attachments</a>
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>
And add after:

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>
For link in member list.

Find in memberlist template:

Code:
<if condition="$show['avatarcol']"><td class="thead" nowrap="nowrap">$vbphrase[avatar]</td></if>
Add after:

Code:
<td class="thead" nowrap="nowrap">Attachments</td>
Find in memberlist_resultsbit template:

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 />&nbsp;</if></td></if>
Add after:

Code:
<td class="$bgclass"><a href="profile.php?$session[sessionurl]do=editattachments&u=$userinfo[userid]&showthumbs=1">View</a> </td>
(I believe you have to have attachments enabled in your vbulletin options to view thumbnails, otherwise they'll just show as links)

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-20-2006, 11:45 PM
alapo alapo is offline
 
Join Date: Jun 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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" />
with this:

Code:
<a href="profile.php?$session[sessionurl]do=editattachments&u=$post[userid]&showthumbs=1"><img src="$stylevar[imgdir_misc]/paperclip.gif" border="0" /></a>
Just add a </a> to the end. I'd be interested to know if anyone else is experiencing crashing in IE6 (not FF and not IE7) due to this, or if it's specific to us.
Reply With Quote
  #23  
Old 04-21-2006, 12:39 AM
defcon_420's Avatar
defcon_420 defcon_420 is offline
 
Join Date: Jun 2004
Location: next to you
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #24  
Old 08-08-2007, 02:34 PM
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #25  
Old 08-08-2007, 02:49 PM
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #26  
Old 10-26-2008, 02:59 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated my new member profile page. Works on 3.7.3
Reply With Quote
  #27  
Old 08-27-2009, 12:03 PM
Dimoks's Avatar
Dimoks Dimoks is offline
 
Join Date: Mar 2006
Location: Kharkiv, Ukraine
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
but I need link
Code:
http://www.kharkovforum.com/profile.php?do=editattachments&u=12345&showthumbs=1
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06596 seconds
  • Memory Usage 2,270KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (12)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete