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
  #12  
Old 10-05-2005, 09:41 PM
artpapa artpapa is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 10-05-2005, 09:46 PM
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Location: Oklahoma City
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I'll work on that and get back to you.
Reply With Quote
  #14  
Old 10-05-2005, 10:18 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this hack Tim, very nice

Click Install
Reply With Quote
  #15  
Old 10-08-2005, 01:04 PM
idander idander is offline
 
Join Date: Oct 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice thxx
Reply With Quote
  #16  
Old 10-08-2005, 08:26 PM
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Location: Oklahoma City
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
And add after:

Code:
<a href="profile.php?$session[sessionurl]do=editattachments&u=$post[userid]&showthumbs=1"><img src="$stylevar[imgdir_misc]/paperclip.gif" border="0" />
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>
Reply With Quote
  #17  
Old 10-08-2005, 11:59 PM
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Location: Oklahoma City
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added some screen shots of the various links this hack creates.
Reply With Quote
  #18  
Old 11-10-2005, 07:17 PM
J?Y. J?Y. is offline
 
Join Date: Feb 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!!! A++
Reply With Quote
  #19  
Old 11-11-2005, 04:08 AM
Arios's Avatar
Arios Arios is offline
 
Join Date: Oct 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now that is fun. So easy :up:
Reply With Quote
  #20  
Old 03-11-2006, 02:12 AM
reeferman reeferman is offline
 
Join Date: Feb 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #21  
Old 04-11-2006, 11:10 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

"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*
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 09:13 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.09663 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
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
  • (14)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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