Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Attachment Descriptions Details »»
Attachment Descriptions
Version: 1.01, by akanevsky akanevsky is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-19-2005 Last Update: 04-23-2005 Installs: 22
DB Changes
 
No support by the author.

/*================================================= =====================*\
|| Attachment Descriptions for vBulletin 3.0.7
|| Author : Psionic Vision
\*================================================ ======================*/

What is this:
It enchances attachment upload interface with a new 'attachment description' field

Features:
  • Conveniently enchances attachment upload screen with the description field (see screenshots)
  • Displays attachment descriptions in:
    Attachment Manager, Post Edit (newthread, newreply, editpost) and Attachment List (in posts)

Show Your Support

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

Comments
  #42  
Old 05-13-2005, 02:24 AM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Visor
YLP1,

My post was addressed to kmike. About you, well you are placing the code in a wrong place... Place your code outside of the <img ...> tag. Right after it.
Hi DarkVisor... I am sorry for being so dense with this...

Is this where I am supposed to place this code?

Code:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">  <img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[description]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a><div align="left">$attachment[description]</div>
&nbsp;<if condition="$show['br']"><br /><br /></if>
Putting the code there causes the images (I have the four images on a line setup) to stack one per line...so instead of this:


Example 1
Image ------ Image ------ Image ------ Image
Caption ---- Caption ---- Caption ---- Caption

Which the above is what I am trying to achieve

I get this instead:

Example 2
Image
Caption

Image
Caption

Image
Caption

Image
Caption

How do I get it to look like the example 1?
Reply With Quote
  #43  
Old 05-13-2005, 03:43 AM
kmike kmike is offline
 
Join Date: Oct 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Visor
I would suggest replacing your newpost_attachmentbit template and newpost_attachment templates to their vBulletin originals. Then this will work.
Err, isn't it exactly what I suggested? And newpost_attachment wasn't changed by your hack, only newpost_attachmentbit.
Reply With Quote
  #44  
Old 05-13-2005, 05:49 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would have to use two levels of HTML tables to achieve that result. Are you sure it is worth it?
Reply With Quote
  #45  
Old 05-20-2005, 05:52 PM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this working for you guys?
me not getting it to work.
following probs in 3.07:

1) in multiple image uploads,, it gives just one description. all other images it discards.. that measn i can enter for only 1 image. Rest are discarded.

2) the image on being uploaded with description is not showing description on main post view page...
Reply With Quote
  #46  
Old 05-20-2005, 07:36 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack works fine on non-hacked boards. I cannot guarantee that it will work otherwise.
Reply With Quote
  #47  
Old 05-20-2005, 07:52 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works fine for me on heavily hacked 3.07
Reply With Quote
  #48  
Old 05-20-2005, 08:22 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, Lionel, it works for you, but keep in mind that your attachments engine was not hacked prior to installation of my hack. As for this guy, I don't know what he has...
Reply With Quote
  #49  
Old 05-21-2005, 07:57 AM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok.. got a bit of it fixed up...i had a template problem cos of the other hack.

still not fully working but i guess its a template issue that can be sorted. thanks anyway.. grt hack
Reply With Quote
  #50  
Old 05-21-2005, 09:39 AM
kmike kmike is offline
 
Join Date: Oct 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YLP1
Putting the code there causes the images (I have the four images on a line setup) to stack one per line...so instead of this:

Example 1
Image ------ Image ------ Image ------ Image
Caption ---- Caption ---- Caption ---- Caption

Which the above is what I am trying to achieve
.....
How do I get it to look like the example 1?
You'd have to wrap all images in a table. It means an additional change to postbit (or postbit_legacy) template is needed.
But wrapping images in a table also means that the table will be as wide as a sum of images' widths. No overflow would happen if images are too wide, instead, a horizontal scroll would appear. Now imagine someone's uploading five 1024x768 images...

But if thumbnails are enabled, it makes sense to wrap thumbnails in a table. First, you know beforehand a maximum thumbnail width and can control maximum table width therefore. Second, thumbnails in one vertical line look really ugly, taking up too much space and making post too long.

So for these reasons I've made the requested change for thumbnails.
To achieve this, I had to change two templates: postbit (or postbit_legacy) and postbit_attachmentthumbnail.

In postbit template, find this code fragment:
Code:
					<legend>$vbphrase[attached_thumbnails]</legend>
					<div style="padding:$stylevar[formspacer]px">
					$post[thumbnailattachments]
					</div>
Replace it with:
Code:
					<legend>$vbphrase[attached_thumbnails]</legend>
					<div style="padding:$stylevar[formspacer]px"><table border="0"><tr valign="top">
					$post[thumbnailattachments]
					</tr></table></div>
Replace whole postbit_attachmentthumbnail template content with:
Code:
<td>
	<table border="0" cellspacing="0">
		<caption align="bottom" style="caption-side: bottom; text-align: left;">$attachment[description]</caption>
		<tr><td>
			<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[description]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
		</td></tr>
	</table>
</td>
<if condition="$show['br']"></tr>
<tr valign="top"></if>
Reply With Quote
  #51  
Old 05-22-2005, 08:43 AM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

guys a bit of help.. i have sorted almost all the rest probs but one thing remain...

when i upload attachments, they are not showing in the main reply thread.. see the image. What could be the prob? It was showing earlier prior to the hack.,
thanks in advance
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 12:03 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
  • Page Generation 0.04844 seconds
  • Memory Usage 2,312KB
  • 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
  • (4)bbcode_code
  • (3)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
  • (4)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