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
  #2  
Old 10-01-2005, 11:44 PM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice
Reply With Quote
  #3  
Old 10-02-2005, 12:20 AM
memorex memorex is offline
 
Join Date: Mar 2004
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree Nice,

Thanks
Reply With Quote
  #4  
Old 10-02-2005, 02:02 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by memorex
I agree Nice,

Thanks
Thanks for this release.
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?
Reply With Quote
  #5  
Old 10-02-2005, 02:16 AM
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Location: Oklahoma City
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bad Bunny
Thanks for this release.
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?
Don't think it'd be an issue if it's not in there but I added it anyways.

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

Quote:
Originally Posted by .Tim
Don't think it'd be an issue if it's not in there but I added it anyways.

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.
well with that new fix, it just killed my link.
Reply With Quote
  #7  
Old 10-02-2005, 02:49 AM
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Location: Oklahoma City
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TonysDesigns
well with that new fix, it just killed my link.
That's odd, works just fine for me on both Firefox and IE. I guess you can remove the $session[sessionurl] from the code if you're having a problem.
Reply With Quote
  #8  
Old 10-02-2005, 02:59 AM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh sorry, I had my HTML formatted bad LOL

Thanks
Reply With Quote
  #9  
Old 10-02-2005, 03:00 AM
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Location: Oklahoma City
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Haha okay, no problem.
Reply With Quote
  #10  
Old 10-02-2005, 03:34 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by .Tim
Don't think it'd be an issue if it's not in there but I added it anyways.

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.
Yeah, I know. I know. I'm just curious if there is a variable for it. Would rule if there was. Avoid links that don't do anything that way.
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 05:12 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.07956 seconds
  • Memory Usage 2,304KB
  • Queries Executed 23 (?)
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
  • (8)bbcode_code
  • (5)bbcode_quote
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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