![]() |
Quote:
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]&stc=1&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> 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? |
Quote:
|
You would have to use two levels of HTML tables to achieve that result. Are you sure it is worth it?
|
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... |
This hack works fine on non-hacked boards. I cannot guarantee that it will work otherwise.
|
works fine for me on heavily hacked 3.07
|
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...
|
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 :) |
Quote:
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> Code:
<legend>$vbphrase[attached_thumbnails]</legend> Code:
<td> |
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 |
It might happen when you incorrectly edit one of the templates, used in the hack.
|
I checked and rechecked the templates.. esp the newattachmentbit but it still does not get updated real time(that means as soon as attachment is uploaded. However if i do a refresh of the reply page, it comes up properly...
ummm wht you think? |
It works on the default styleset, but as I said in the hack description - I do not guarantee it working with alternate styles...
|
very cool
|
excellent hack!
|
Thank you :)
|
can someone verify this? it seems that after installing this, anyone can post attachments in threads, even though i only have attachments enabled for admins..
|
Quote:
|
Sorry for no reply, have been busy lately.
I have checked - on my board you there is no such bug.. Check that you have done everything correctly. And that your code is not pre-hacked. |
Quote:
Same thing happens on my board... |
About the not showing up - I am afraid you posted in a wrong topic, therefore I am not able to reply.
|
How is it not the right topic... before the hack as you uploaded attachments in the popup window they would appear in the actual reply to page as shown in the image above. Since the hack the attachments still upload but they do not appear in the reply page in real time.
|
As I've already mentioned twice, real tiem will only work in default styleset.
|
I have the default templates...
|
i had the same prob but in my case i had a modified stylesheet.. although had the default templates that this hack modified
|
Acers, IndyWebDesign, please see if this fixes your problem:
https://vborg.vbsupport.ru/showpost....1&postcount=37 |
kmike, is that fix in my code? I'll look, thanks.
|
Try replacing
<if condition="!empty($attach[description])"><br />$vbphrase[attachdescription_caption] <i>$attach[description]</i></if> with <if condition="!empty($attach[description])"><br>$vbphrase[attachdescription_caption] <i>$attach[description]</i></if> It works fine for me... Both in Internet Explorer and Opera |
Just checked - it works no problem with this fix, so it shouldnt be that template. What errors do you get?
|
In what template?
|
Quote:
Bingo... I reverted the template and made no changes to it at all and it works perfectly now. Thanks! |
perfect for me also.. looked after a long time here ..
thx |
great thank
|
Awesome hack.
I was wondering if its possible to make only one description box ???? 3 files and only on description box on the button I have rewrite the mod so it look like this. We he awesome |
Quote:
|
Yes i know. the hack is awsome as it is.
But is there som one that can help me make it to show only one descripton ? |
I am a little fuzzy on how to do the:
>> Setting Install URL: ./admincp/options.php?do=addsetting Is that done on the php page or is this a command that I run? Thank you! |
ok I have this working but now it is is having one small problem. If I upload two images, both have descriptions it only shows the description or the second image.
like this: Image Image Description The description for the first image does not show. What could be wrong? |
I am interested in possibly using this hack as a part of a step-by-step "how to" article type thread system. Are you still actively supporting this?
|
Works like a charm! love it!!
http://www.hulkforum.com/showthread.php?t=11 (attachments in 1st post) |
All times are GMT. The time now is 02:21 AM. |
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:
|