PDA

View Full Version : Thumbnail of Attachments on forum display


Dechevious
12-21-2004, 10:00 PM
This hack has been requested a number of times, for multiple versions of vBulletin. For whatever reason, it was never done (at least publicly) until now. Heres to wishing each and everyone of you a Merry Christmas, and a prosperous, healthy, and safe, New Year!

What it does: This hack will display a thumbnail of the threads attachment on the forum display. Quite useful if you have forums designated for graphics/photos .. etc. Could also be tweaked to display the posters avatar instead of an attachment. Variable possibilities. (Screenshot attached for further review) and or see it in action at this forum (http://www.v3arcadegames.com/forums/forumdisplay.php?f=38) in realtime. If the thread has multiple attachments, it will display the first. If no attachment, a 'no attachment' thumb will appear. Can be assigned for use in any forum you wish it to be active in.

Install time is minimal - Less than 5 minutes for the average joe. (Simplicity at it's Finest)
1 file to modify, and 1 template to modify, along with the upload of an image.

Known Issues: If the attachment is not an image, a thumbnail will not be shown. (IE: .zip or .rar)

If you install it, please click the 'Install' icon - Updates will be sent to those who do.

Erwin
12-22-2004, 09:45 PM
Nice idea... I assume this adds only 1 query to forumdisplay?

Dechevious
12-22-2004, 09:50 PM
Nice idea... I assume this adds only 1 query to forumdisplay?

Actually, it adds no additional query, as it was merged with an existing query.

ChrisSy
12-22-2004, 10:05 PM
does this require image software to be running on the server, ie GD image?

Dechevious
12-22-2004, 10:20 PM
does this require image software to be running on the server, ie GD image?

Good question. Yes, it does. You also want to make sure that in your AdminCP you have thumbnails enabled, for those who do not have them already.

lasto
12-22-2004, 10:58 PM
how come u released this - considering i just paid for it 2 days ago ?? - it was supposed to of been a custom paid hack ?

Also the files ive downloaded here are the exact as i have from the paid hack

In the readme file it says `Notes: THIS IS A CUSTOM HACK - DO NOT REDISTRIBUTE IT PLEASE!`

Also it has faults - if a rar or zip is attached and not an image u end up in forum display a red X - and so far is no known way to fix it.
If u add multiple attachemnts it used to show all the attachments as seperate posts but not sure if fixed in your version as i was sent an addon to fix this.

Edit ok read the txt file and seems u was the author - but i bet aint the only one to of paid for this - this week.Paid 2 days ago - 2 days later its released lets see if anyone else fell for it.

Dechevious
12-23-2004, 12:49 AM
This was always meant to be released. It was a bought hack, the expense was shared, and then it was to be released. Sorry if you felt otherwise, as it was never an issue.

cinq
12-23-2004, 03:01 AM
A simple yet great hack, thanks for sharing Dechevious :)

Theater
12-23-2004, 03:54 AM
How does it handle multiple attachments? For example if someone posted 5 images on a single posting.

//edit - Also, what about other images posted in the thread besides the first post? Are they displayed somehow as well?

Dechevious
12-23-2004, 04:59 AM
How does it handle multiple attachments? For example if someone posted 5 images on a single posting.

It would display the 1st image in the thread.

//edit - Also, what about other images posted in the thread besides the first post? Are they displayed somehow as well?

No, simply the 1st attachment.

Sadie Frost
12-23-2004, 05:14 AM
I'm having a problem getting the thumbnails to display, and I'm not sure where to look to troubleshoot. The thumbnails display fine in the post, and I have set the forum id in the forumdisplay file. It's showing thumbnail not available for threads without attachments (I believe it's threads that have a threadicon).

I tried removing the last else bit, that shows the threadicon if there is no attachment. Also tried rebuilding thumbails.

Any suggestions?

http://buffy-boards.com/forumdisplay.php?f=19

Edit: I discovered the problem - it was that I needed to have a default icon enabled for the forum. I don't have any idea why that makes a difference...lol...but it does :)

Dechevious
12-23-2004, 05:57 AM
Edit: I discovered the problem - it was that I needed to have a default icon enabled for the forum. I don't have any idea why that makes a difference...lol...but it does :)

Yes - If a thumbnail does not exist (the thread has no attachment) it is set by default to retrieve an image titled 'nothumb.gif' from your images/misc DIR - I see on your forums your now using the 'clear.gif' (Not a bad choice!) Glad to see it working well for you.

Sadie Frost
12-23-2004, 06:07 AM
Thanks for this! I tried for the longest time to code it myself but lol, not a coder :D

I think maybe if you have no set default icon (via your admincp options), you just need to rearrange the conditional in the threadbit template in order to get it to work without having a threadicon specified. Like move that '<if condition="$show['threadicon']">' bit. But I haven't played around with that or anything so I don't know.

Edit:

Okay, yes, if you have no default post icon selected in your admincp, I used this code for the threadbit template and it works:

<!-- Start: idolpx and dechevious Thumbnail in Forum Display Hack - 20041220 -->
<if condition="$show['threadicons']">

<td class="alt2" align="center" valign="middle">
<if condition="$displaythumbs">
<if condition="$thread['attachmentid']">
<a HREF="attachment.php?attachmentid=$thread[attachmentid]">
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0>
</a>
<else />
<img src="images/clear.gif" width=75 height=56 border="0"></if>
<else /><if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /></if></td>
</if>
</if>
<!-- End: Start: idolpx and dechevious Thumbnail in Forum Display Hack - 20041220 -->

cinq
12-23-2004, 06:14 AM
Is there a way to check the attachment for its extension ?
Wondering how to get round the non image attachment situation.

Lord Brar
12-23-2004, 07:12 AM
oh wow! something i've been dreaming for months... I'll install it once my host move is over :P

Delphy
12-23-2004, 12:24 PM
This looks good and I could certainly use it on my forums (http://www.modthesims2.com/)

One thing though I need clarifying: It's mentioned that it takes the first attachment.. what if the first attachment is not an image? Does it display no attachment available?

If so, then would there be a way of looping until it does get the first image available only in the first post on the thread? I'm guessing this would add another query though.

Regards,
Delphy

Dechevious
12-23-2004, 12:36 PM
This looks good and I could certainly use it on my forums (http://www.modthesims2.com/)

One thing though I need clarifying: It's mentioned that it takes the first attachment.. what if the first attachment is not an image? Does it display no attachment available?

If the attachment is not an image, it will display a red x box (at the moment) trying to find a work around for this. If it has no attachment, it will display a no attachment gif.

Delphy
12-23-2004, 06:20 PM
Okay thanks for the reply. I've had a few thoughts about how to achieve this with the minimum of queries, so I'll take a look at the hack :)

MrNase
12-23-2004, 06:53 PM
Nice, already had it running at http://www.pagodentreff.de/diskussionsforum/forumdisplay.php?f=22 but I never released it because I thought nobody will ever use it :)

Mine chooses randomly from any picture which is attached to the first post.

lasto
12-23-2004, 07:14 PM
Nice, already had it running at http://www.pagodentreff.de/diskussionsforum/forumdisplay.php?f=22 but I never released it because I thought nobody will ever use it :)

Mine chooses randomly from any picture which is attached to the first post.
so what happens on your board m8 if your attachment is a rar - does it display a red X ?

Dechevious
12-23-2004, 07:49 PM
so what happens on your board m8 if your attachment is a rar - does it display a red X ?

At the moment, Yes. We're working to resolve that particular issue.

MrNase
12-24-2004, 08:51 AM
so what happens on your board m8 if your attachment is a rar - does it display a red X ?

Mine is displaying the posticon if there's no screenshot to be shown. This hack is designed to work for only one forum which is an image gallery. Therefore I can make sure any thread has an image :)

Dechevious
12-24-2004, 06:45 PM
Mine is displaying the posticon if there's no screenshot to be shown. This hack is designed to work for only one forum which is an image gallery. Therefore I can make sure any thread has an image :)

Care to share how you accomplished determining if the file was an image or a zip or rar or any other file, without querying the server to its death?

MrNase
12-25-2004, 02:47 PM
Sure ;)

I use the following code:

// Thumbnails
if($foruminfo['forumid'] == 22 AND $getpostid = $DB_site->query_first("
SELECT postid FROM " . TABLE_PREFIX . "post WHERE threadid = $thread[threadid] LIMIT 1"))
{
$attachment = $DB_site->query_first("
SELECT filename, attachmentid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail
FROM " . TABLE_PREFIX . "attachment
WHERE postid = $getpostid[postid]
ORDER BY rand() LIMIT 1
");
$attachmentid = $attachment['attachmentid'];
$hasthumbnail = $attachment['hasthumbnail'];
}
// Thumbnails

which reads out the attachmentids only from the images which have thumbnails. This excludes all txt or pdf or other files which are not images.
ORDER BY rand() LIMIT 1 tells him to output a randomly chosen attachment.

Together with the following conditional in the threadbit -Template it generates this beautiful gallery :)


<if condition="$show['threadicons']">
<td class="alt2">
<if condition="$foruminfo[forumid] == 22 AND $hasthumbnail">
<img src="attachment.php?attachmentid=$attachmentid&stc=1&thumb=1" /> <else />
<if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if>
</if>
</if>


For some reasons this query doesn't work for any image and I couldn't find out why. But as most of the images work I don't care that much about it. Feel free to take my code and modify it :)

Delphy
12-27-2004, 04:42 PM
Okay I've been working on the problem of displaying images regardless of whether the first attachment is an image or not.

The solution I came up with is as follows:

- Keeping the existing $threads SQL query, add the following into it: thread.firstpostid
- Add the following:

$displaythumbs = false;
$forumids = array(41, 42, 43, 44, 45, 46, 47, 48, 49, 69, 70, 40, 50, 51, 52, 97, 98);
if (in_array($forumid, $forumids)) {
$displaythumbs = true;
}


The numbers indicate which forums you want the attachments to be displayed in - as you can see, multiple forums are ok.

- I have to add 1 extra query per forumdisplay page, which is:

// Added by Delphy to add proper thumbnails
if ($displaythumbs == true) {
while ($thread = $DB_site->fetch_array($threads))
{ // AND $counter++<$perpage)
$imageposts .= $thread['firstpostid'].",";
}

if ($imageposts != "") {
$imageposts = substr($imageposts, 0, strlen($imageposts) - 1);
$sql_images = "SELECT DISTINCT postid,attachmentid FROM attachment WHERE postid IN (0$imageposts) AND thumbnail_dateline > 0";
$images = $DB_site->query($sql_images);
while ($image = $DB_site->fetch_array($images)) {
$thumbnails[$image[postid]] = $image[attachmentid];
}
$DB_site->free_result($images);
unset($imageposts, $image);
}
}


- Since we've already used a DB_site query, we need to reset the $threads resultset:
Find:

while ($thread = $DB_site->fetch_array($threads))

Insert in the line above:

$threads = $DB_site->query($sql_threads);


- Within the main while $thread loop that processes the threadbits, add the following:

$thread['attachmentid'] = $thumbnails[$thread['firstpostid']];


The resulting hack can be seen in http://forums.modthesims2.com/forumdisplay.php?f=69

Hope this helps somebody,

Regards
Delphy

lasto
12-27-2004, 04:46 PM
any chance of a text file doingthe full install but with these modifciations added because not everyone has added teh 1st version

also m8 the demo on your site gives this error

Unable to add cookies, header already sent.
File: /home/forums/public_html/forumdisplay.php
Line: 806

mhobelsb
12-27-2004, 08:18 PM
mhmm... nice hack! :)
but i have a "problem". the nothumb image is displayed but the thumbs are not displayed. get a red cross...

where do i set the default icon via admincp? i don?t find the option...

gd2+ is installed and thumbnails are on.

Delphy
12-27-2004, 08:54 PM
lasto, I was probably modifiying it again :)

mhobelsb, using the actual proper hack or my one?

lasto
12-27-2004, 09:21 PM
ive removed the attachment hack and will wait for u to do yours delphy as mine is showing red x`s if a rar is added as an attachemnt and it deffos needs a fix

Delphy
12-27-2004, 11:22 PM
Okay I've written up a text file in the style of the original, let me know if something doesn't work.

Updated 29th December at 5pm GMT to fix table prefixes and add a line I'd missed out from my original. Should work now :)

Regards,
Delphy

lasto
12-27-2004, 11:52 PM
done it right got no errors but even if i upload a pic i still get the No thumbnail is available

Delphy
12-28-2004, 01:42 AM
lasto, give me a link to the forum where you did my version of the hack and I'll take a look.

mhobelsb
12-28-2004, 05:51 AM
@delphy: just tried your version and, very strange, if i lock now in that forum it says "no entrys in that forum". (but in the stats it still counts the posts and threats)

also tried the one from dechevious and with that i have the problem that the "no thumb pic" is shown but the real thumbs are just red crosses. :)

i want this so much. hope you guys continue work! :) thank you...

Martin

Delphy
12-28-2004, 07:04 PM
Are you using table prefixes at all? The quick text file I wrote up didn't have prefixes, so you'll need to edit the SELECT ... FROM attachment to include that.

Sounds like an error in the main SELECT $votequery $previewfield query. The only addition I make is the thread.firstpostid field.

Remember, to install my version you need to REMOVE all traces of the previous thumbnail hack.

mhobelsb
12-28-2004, 10:00 PM
ah, yes i used a table prefix. cool, will try it. thanks!!!!

Martin

mhobelsb
12-28-2004, 10:14 PM
mhmm... somehow it still donĀ“t work. (maybe i just did the prefix wrong. i have 3dmodeling_ as prefix.. .maybe you can help)

i used a backuped file so there is nothing from previous thumbnail hack...

sorry, maybe i just do something wrong

Martin

Delphy
12-29-2004, 02:33 PM
Nah it's probably my fault - I wrote up the text file stupidly early in the morning :)

Any chance I could have a look at your modified forumdisplay?

mhobelsb
12-29-2004, 02:47 PM
wrote you a pm with the link. thanks so much for your help and time!

Martin

Delphy
12-29-2004, 03:18 PM
Replied with fix and updated the original text file :)

lasto
12-29-2004, 04:38 PM
wot was it m8 does the whole hack need redoing or just the forumdisplay bit ?

Delphy
12-29-2004, 11:26 PM
I just added 1 line I'd missed from the copy paste of my forumdisplay, and added table prefix stuff, thats it.

Does anybody else have a problem with my version?

lasto
12-30-2004, 11:36 AM
works perfect now m8 - you even fixed the rar problem.
If a rar is the only attachement it now displays no thumb displayed pic :)

well done m8

mhobelsb
12-30-2004, 04:37 PM
i second that! works great! thanks a lot

???`S?LV?R???`
12-30-2004, 06:18 PM
I installed Delphy's version also, and it seems to be working right.

gkar
12-31-2004, 03:51 PM
Doesn't work here, all post dissapear when I've installed the hack, it seems to be a problem with the forumdisplay.php modification. I've tried the Dechevious and the Delphy variant, but none works. Any suggestions? Best regards

lasto
12-31-2004, 05:25 PM
Doesn't work here, all post dissapear when I've installed the hack, it seems to be a problem with the forumdisplay.php modification. I've tried the Dechevious and the Delphy variant, but none works. Any suggestions? Best regards
yeah redo it all again as ive tried both versions and the first worked but showed a red x when a rar was an attachment - the second one works perfect so if u got none of them to work then its down to user error m8 and you need to re-do your steps and see where u went wrong.

Delphy
12-31-2004, 05:28 PM
gkar,

Make sure you start from a fresh forumdisplay when installing my version, don't start from an existing thumbnailed forumdisplay base.

Also make sure you have the updated txt file above

alkatraz
01-02-2005, 08:10 AM
Great hack!

Sadie Frost : thanks for your code, worked great

alkatraz
01-02-2005, 10:59 AM
Ug oh.. just noticed that the 2 forums I want this to work in are showing thumbs, but so is one forum I don't want to show thumbs in...

anyone have this problem? It's just one extra forum but it doesn't make sense. Triple checked the #'s in forumdisplay.php... using the code above for "no default post icon" but have tried enabling the icon and using the stock code and the modified code, no change..

Forum number's are 42 and 95 for the ones i WANT it to work in, and 2 for the one that I don't want thumbs to be displayed. Is there a possibility strpos is matching the #2 from 42 with the forum # 2?

$displaythumbs = false;
if (strpos("42,95", strval($forumid)) !== false)
$displaythumbs = true;

Delphy
01-02-2005, 05:00 PM
alkatraz, yes thats what happening.

If you want to still use the original hack replace the code you have with:


$displaythumbs = false;
$forumids = array(42,95);
if (in_array($forumid, $forumids)) {
$displaythumbs = true;
}


Works much better. :)

gkar
01-03-2005, 08:13 AM
Delphy, thanks but I have the same problem, I've installed this hack:

MOD: Modified Thumbnail In Forum Display
By: delphy@modthesims2.com

Original MOD: Thumbnail to be displayed in the Forum Display - For vBulletin v3.0.3
By: idolpx & dechevious (idolpx@email4life.com) - Need custom work? E-Mail Me!
Date: December 20th, 2004

Description: If a post has a photo attachment, it will be displayed on the Forum Display.
You can click on the thumbnail to bypass the post itself, and go directly to
the full sized image (if you wish).

This hack modifies the original Thumbnail In Forum Display to accomodate threads
where the first attachment is not an image file. It does this by compiling a list
of posts, querying the attachment table and selecting the *last* image file

Details: The thumbnail size is based upon your default settings in your AdminCP.
You can further resize the thumbnail for the 'universal look' with simple
'height = xx' and width = 'xx' in the template. Thats your call.

Changes: Make changes to forumdisplay.php and 1 Change to template: threadbit
(The forumdisplay.php you wish to alter is in your root forums directory)

Notes: This adds 1 extra query to your forumdisplay page
Thanks: To idolpx and dechevious for the original hack

all in a fresh forumdisplay.php but when I go to the post, everyone has dissapear, in all forums. Take a look at the attachment, there you can view everything has gone away, and there are 96 pages of post, no one of then are visible, any help would be great. Thanks a lot.

Aceman
01-03-2005, 02:31 PM
I have this hack fully functional on my site which you can see running here.

http://www.scifi-meshes.com/forums/forumdisplay.php?f=6

Using conditionals I was able to add "ads" column in specific forums, that's not part of this hack. I've also modified this code so that the image shown on forumdisplay links to the thread NOT the attachment. I found this more useful.

Below you will find a copy of code I used to link to THREAD and not the attachment - threadbit template:


<a HREF="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0></a>


Hope this helps someone.
Aceman

alkatraz
01-03-2005, 10:45 PM
Delphy: works perfect! thanks!!!

Is there a way to strip ' and " from the title? I put up a note saying not to type those but my members can't read apparently and keep getting errors. (when the script ads the forum info to the db)

Delphy
01-04-2005, 01:45 AM
alkatraz,

Do you mean when they add posts in those forums, or what? I'm sorry I don't know what you mean...

Aceman, yeah I find linking to the actual thread much better too :)

alkatraz
01-04-2005, 01:59 AM
When the script creates a new thread in a forum,

INSERT INTO " . TABLE_PREFIX . "thread(title, lastpost, forumid, open, replycount,
postusername, postuserid, lastposter, dateline, iconid, visible, attach)
VALUES
('$ad_type $ad_title ', " . TIMENOW . ", $formforumid,
1, 0, '" . addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid],
'" . addslashes($bbuserinfo['username']) . "', " . TIMENOW . ", 0, 1,
0)
");
an error occurs if a member has posted a ' in the thread title.

I'd like to process $ad_title (the var. i've used for the title) to strip out ' and " or any characters that could cause a problem.

doing some research into it, the trim function might do it
http://ca.php.net/trim

Think this would remove ' ? How would I remove "?
trim($ad_title, " ' ");

Delphy
01-04-2005, 02:21 AM
alkatraz,

Neither mine nor the original hack contains that code, so you're looking at a problem which isn't related to this thread.

What you probably want, btw, is $ad_title = html_entities($ad_title, ENT_QUOTES)

Hope this helps

alkatraz
01-04-2005, 03:02 AM
lol wrong thread, my bad!
forgot i was dealing with this thread:
https://vborg.vbsupport.ru/showthread.php?t=66082 (which is a perfect addition to this thumbnail browsing script)

memobug
01-04-2005, 06:46 AM
I have this hack fully functional on my site which you can see running here.

http://www.scifi-meshes.com/forums/forumdisplay.php?f=6
Hi Aceman,

You might want to move the image display into a template conditional if you don't have attachments enabled for guests. Otherwise your page becomes a column of red Xs separated by the occasional THUMBNAIL NOT AVAILABLE.

(log out of your forum and check your link)

Regards,

Matt

Aceman
01-04-2005, 03:44 PM
Thanks for the heads up Memobug. I'll use a if not registered conditional to remove the thumbnail column or something.. haven't figured it out yet. :)

I guess it would have helped to logout and see what the visitors see.

Aceman

Aceman
01-04-2005, 04:32 PM
MemoBug -

I fixed this oversite by modifying the could to see if the member/guest is registered or not. IF they are not the message, "Only Registered Members can view thumbnails" shows, IF they ARE the thumbnail shows up. This is the code for the <TR> that I used.

This is just the code for the table cell that shows the thumbnail.

<td class="alt2" align="center" valign="middle">
<if condition="$displaythumbs">
<if condition="$thread['attachmentid']">
<if condition="$bbuserinfo[userid] == 0">
<span class="smallfont"><b>Only Registered Members can view thumbnails.</b></span>
<else />
<a HREF="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]">
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0>
</a>
</if>
<else />
<img src="$stylevar[imgdir_misc]/nothumb.gif" width=100 height=75 border="0">
</if>
<else />
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" Border="0">
</if>
</td>


I hope this helps people.
Aceman

memobug
01-04-2005, 08:19 PM
Dear Aceman,

The conditional looks like it is working well. I think rather than the repeated text you might consider an icon of some kind with an alt text that says "Only members can view thumbnails"

it would clean up the layout a lot.

Dear Dechevious,

You might want to add this behavior (broken thumbs if you are logged out) to the known behaviors list.

Regards,

Matt

Nordinho
01-04-2005, 11:39 PM
Heya,

The hack works great, but I have 1 weird issue...if a new post is made, the thumbnail doesn't show up, even though it's attached, it shows the 'no thumbnail available'. If I rebuild the attachments after posting it shows up fine. If I attach a attachment to an existing post it shows up fine, without rebuilding the attachments. Any ideas??

gkar
01-05-2005, 09:13 AM
Thanks aceman for the code, now it works but with a little change.
This code
// The next line after this should be:
// while ($thread = $DB_site->fetch_array($threads))
I've change to this
// The next line after this should be:
while ($thread = $DB_site->fetch_array($threads))
and it works fine, don't know why, but it works.
Thanks for the hack guys.

rnmcd
01-05-2005, 04:28 PM
HI. Sorry I'm a little lost...are we installing the Dechevious hack or is there one that Delphy has modded that we are using?

Thanks.

Harald_T
01-10-2005, 12:17 PM
I've a little problem here, too:

The hack always displays the last attachment of a post, not the first one. Strange, isn't?

Harald_T
01-12-2005, 09:46 PM
I used the code to build up a simple gallery, but changed it so, that allways five thumbs are displayed in one row. Now i'm checking how to change the templates, so i can use this hack completly as a gallery.

Lee Wilde
01-13-2005, 05:40 AM
I love this hack. The thumbnails don't show up in search results, but I'm not too concerned about that.

memobug
01-13-2005, 08:22 AM
I love this hack. The thumbnails don't show up in search results, but I'm not too concerned about that.Just wondering how the thumbnails would show up in search results? Like Google Images or something?

Regards,

Matt

Harald_T
01-13-2005, 11:06 AM
Has anyone an idea, how to integrate the condition $displaythumbs in postbit?

Harald_T
01-13-2005, 11:21 PM
Here, that's what i've got so far. What do you think of it?
(it's a german site, but i think for showing it, it's enough, isn't it?)


http://www.scifi-fan.net/forumdisplay.php?f=60&styleid=19

memobug
01-14-2005, 03:38 AM
I think it's very interesting and that you're on to something Harald. The page is too wide (too many columns) for your page layout though.

Regards,

Matt

Harald_T
01-14-2005, 06:57 AM
Yup, but that's because of the size of the attachments. It's no problem to set the columns to 3 or 4 (or set the size of the attachments down).

I'm not finished yet, as i want to change the templates a little bit further.

Mostly of adding to the hack of Delphy is template work. There is only some very simple PHP-work to do.

Harald_T
01-14-2005, 08:35 AM
This is, what it looks like, with size of thumbs set to 140 (see attachment).

I still trying to find out, how to change the layout for showthread-template, cause i don't have $displaythumbs in showthread.php. I need it for checking only, if i'm in the gallery or not. Any ideas (i'm not the expert in PHP i have to say).?

Harald_T
01-15-2005, 01:47 PM
Found out how i had to check it. So now i can use special-templates for the gallery.

Harald_T
01-16-2005, 10:25 AM
Anyone interested in making this hack into a gallery?

Delphy
01-17-2005, 07:59 AM
Actually, I would :)

Harald_T
01-17-2005, 09:49 AM
O.k., i'll write it down and post it later on this day.

ryancooper
01-17-2005, 03:38 PM
THis hack is awesome!! thanks.

I would love to see images in the search as well and the gallery idea sounds amazing!!

Thanks for all your hard work ;)

Harald_T
01-17-2005, 09:04 PM
O.k., i think, i've got it so far. :nervous:

I included all files in a zip-files, including an image for the upload-button.

This hack isn't still finished, i'm trying to find out other things to do, so be patient.

I hope you like it.

Edit: Included a screenshot, how it looks like now.

Erwin
01-17-2005, 09:21 PM
O.k., i think, i've got it so far. :nervous:

I included all files in a zip-files, including an image for the upload-button.

This hack isn't still finished, i'm trying to find out other things to do, so be patient.

I hope you like it.
You know what - that is a fantastic idea. :)

ryancooper
01-18-2005, 02:59 PM
O.k., i think, i've got it so far. :nervous:

I included all files in a zip-files, including an image for the upload-button.

This hack isn't still finished, i'm trying to find out other things to do, so be patient.

I hope you like it.

Edit: Included a screenshot, how it looks like now.


In your txt file you say to
6. Find:

// REPLACE NUMBERS BELOW WITH FORUM IDS YOU WANT THUMBNAILS TO SHOW IN
$forumids = array(1,2,3); //this is the original-text, id's may vary depending on your forum
if (in_array($forumid, $forumids)) {
$displaythumbs = true;
}

7. Replace it with:

if (in_array($forumid, $forumids)) {
$displaythumbs = true;
}

But I jsut installed this hack and my line is totally different. . i have
// CHANGE THE LINE BELOW "4,5,17" TO BE THE FORUM ID # YOU WISH THUMBS TO BE DISPLAYED IN
$displaythumbs = false;
if (strpos("3", strval($forumid)) !== false)
$displaythumbs = true;



Also i don;t have this line // while ($thread = $DB_site->fetch_array($threads))

in my fourm display??

Harald_T
01-18-2005, 04:33 PM
No Panic! ;)

You need the modified hack from Delphy (i think you find on page 2 on this thread. It's attached to his post). The lines you've posted are from Dechevious hack.

The second code you couldn't find is also in Delphys Hack.

First of all you should install it, and do my modifications. Then it should work.

ryancooper
01-18-2005, 05:06 PM
No Panic! ;)

You need the modified hack from Delphy (i think you find on page 2 on this thread. It's attached to his post). The lines you've posted are from Dechevious hack.

The second code you couldn't find is also in Delphys Hack.

First of all you should install it, and do my modifications. Then it should work.


AHHH

You know i read that in yor post as well and i thipught htis was that hack. :ermm:

DUHHH


Thanks!!

Ryan

mhobelsb
01-20-2005, 02:57 PM
Really cool this gallery hack!!! Love it...

but (i hope i am not rude asking that) i would like to have in one forum the "normal thumbnail" from delphy and in one Forum (the showroom) i would like to have your gallery mod. is that possible? i reeeeaaallly hope so.

thanks so much for the efford you guys put in this...

Martin

Harald_T
01-20-2005, 05:06 PM
Hmh, i think it could be possible. I'll have a look after it at the weekend.

gkar
01-21-2005, 09:08 AM
Nice one, thanks for your efforts.

Keta
01-21-2005, 10:49 AM
i tried and followed the steps i re did it 4 times and my forum still looks like this:
http://www.illefx.com/forum/forumdisplay.php?f=18

what am i missing? what am i doing wrong?

Harald_T
01-21-2005, 11:08 AM
Did you set the right forum id in "global.php"? That could be, why it isn't working.

Edit: Could be also something on the permissions. I'll check it with my testforum here at home.

Keta
01-21-2005, 01:42 PM
Did you set the right forum id in "global.php"? That could be, why it isn't working.

Edit: Could be also something on the permissions. I'll check it with my testforum here at home.
global.php? it says in the install file IN FILE: forumdisplay.php FIND THE FOLLOWING:

Keta
01-21-2005, 01:50 PM
Thanks for this! I tried for the longest time to code it myself but lol, not a coder :D

I think maybe if you have no set default icon (via your admincp options), you just need to rearrange the conditional in the threadbit template in order to get it to work without having a threadicon specified. Like move that '<if condition="$show['threadicon']">' bit. But I haven't played around with that or anything so I don't know.

Edit:

Okay, yes, if you have no default post icon selected in your admincp, I used this code for the threadbit template and it works:
thanks!!! your code worked for me

Harald_T
01-21-2005, 09:48 PM
Ahh, you were refering to the original hack, don't you? I thought, you were refering to my gallery-modification, that's why. Sorry, missunderstood.

Harald_T
01-22-2005, 12:12 PM
Really cool this gallery hack!!! Love it...

but (i hope i am not rude asking that) i would like to have in one forum the "normal thumbnail" from delphy and in one Forum (the showroom) i would like to have your gallery mod. is that possible? i reeeeaaallly hope so.

thanks so much for the efford you guys put in this...

Martin

O.k., i've tried it, it's very easy to do. I'll write it down later.

Sean S
01-22-2005, 05:32 PM
thank you thank you thank you, thank you! :) man I have been looking around for this for soooo long. You are one good man to give such good present.

???`S?LV?R???`
01-23-2005, 08:10 PM
nevermind lol

Harald_T
01-23-2005, 08:13 PM
I'll do so for my modifications as soon as i've updated to 3.0.6 or higher.

???`S?LV?R???`
01-23-2005, 08:16 PM
I'll do so for my modifications as soon as i've updated to 3.0.6 or higher.
I saw that screen shot of your gallery mod, looks nice... got a live demo up?

SIINSI
01-26-2005, 04:57 AM
2 silly questions...

Do thumbnails have to be enabled for this to work?
Do I have to rebuild thumbnails after installing this hack to work?

I installed delphy's version and it shows thumnail not available images but none of the actual thumnails. No red X's though... I'm sure I'm close to getting this and I'd really like to get it working :)

Thanks in advance.

Miguel

Harald_T
01-26-2005, 04:26 PM
Yup, thumbnails must be enabled. And normaly you don't need to rebuild the thumbnails.

Harald_T
01-26-2005, 04:27 PM
I saw that screen shot of your gallery mod, looks nice... got a live demo up?

Sorry for the late answer, didn't saw the question. :nervous:

Live-Demo:

http://www.scifi-fan.net/forumdisplay.php?f=59?

Delphy
01-27-2005, 03:22 PM
Very nice Harald :)

SIINSI
01-28-2005, 02:03 AM
OK, I enabled thumnails and chose, yes for show thumnails inline in admin options. I made a test post and the the image is now thumnailed but it is not showing the forum display.

Some older threads that had attachments show the "thumbnail not available" gif. Some do not show anything.

Here is a link to my forum display and the test thread I made...

Forum display... http://www.jdmuniverse.com/forums/forumdisplay.php?f=23

Test Thread... http://www.jdmuniverse.com/forums/showthread.php?t=33913

Any ideas on what's going on? Thanks in advance!

EDIT OK, I rebuilt thumbnails and now some old thumbs show up but, again I made another test thread and it shows nothing. Also, alot of old threads don't even show the "thumbnail not available" gif.

One other thing is that create PNG thumbnails in the admincp is checked "Yes". Show that be checked to "No" or would that not matter?

Miguel

Harald_T
01-28-2005, 06:27 AM
Those threads, which are not showing up a thumbnail: Could it be, there isn't a image attached, but an image linked inside the thread with https://vborg.vbsupport.ru/. Seems so. Try at least adding an attached image to that thread. The hack needs at least attachments. It doesn't work with linked images.

SIINSI
01-28-2005, 04:30 PM
Those threads, which are not showing up a thumbnail: Could it be, there isn't a image attached, but an image linked inside the thread with https://vborg.vbsupport.ru/. Seems so. Try at least adding an attached image to that thread. The hack needs at least attachments. It doesn't work with linked images.
They are attachments. I tried making like 3 or 4 new threads with attachments and it doesn't work. I tried attaching images to old threads and that didn't work either.

Strange...

Miguel

Harald_T
01-29-2005, 09:45 AM
Did you remove it? I followed the link again, and i see only standard?

SIINSI
01-29-2005, 12:54 PM
Did you remove it? I followed the link again, and i see only standard?
I did remove it since it was working, it was looking kinda silly and people were asking questions :)

I would however, love to get it working.

Miguel

Harald_T
01-31-2005, 08:06 AM
Try to build it up in an testforum (maybe on your local computer). If it still doesn't work, would you be so kind sending me your forumdisplay.php via mail, so i can look inside of it (don't forget to remove your license-nr. out of it before sending)?

ambumann
02-04-2005, 06:03 AM
Thanks for the mod, been looking for something like this!

insumoth
02-06-2005, 05:46 AM
Whenever I install it - it shows jumpled up forums.

If you can help please visit my site at http://www.votr.info/forums/forumdisplay.php?f=37 and please reply soon!

gkar
02-06-2005, 07:37 AM
If you have installed the original crack (Dechevious) try with this one (Delphy) https://vborg.vbsupport.ru/showpost.php?p=586660&postcount=30 hope it helps.

Harald_T
02-07-2005, 05:42 PM
Sorry for late answer, didn't had much time last week.

Whenever I install it - it shows jumpled up forums.

If you can help please visit my site at http://www.votr.info/forums/forumdisplay.php?f=37 and please reply soon!

It may be, that it has something to do with the modifications of forumdisplay.php in 3.0.6. I still didn't updated, so i can't check. Hopefully i will upgrade end of the week.

The Geek
02-09-2005, 08:47 AM
Actually, it adds no additional query, as it was merged with an existing query.
Hey guys. I was just doing something like this for a hack I am working on. The only problem that I found doing it this way was that it does in fact add additional queries: 1 for each image.
If your forum displays 30 threads, there are 30 additional queries as attachment.php queries the attachment table everytime its called.

It still didnt add too much overhead, but it may cause a problem on servers with heavy loads.

KTBleeding
02-12-2005, 05:49 AM
I had a little bit of a hard time getting this to run.. but now I got it all working correctly. Just one question. How do I have the thumbnail be the first image uploaded only, rather than the last?

Delphy
02-14-2005, 05:54 PM
The Geek,

Thats correct - no real way around that unfortunately :(

Lee Wilde
02-18-2005, 02:34 PM
O.k., i've tried it, it's very easy to do. I'll write it down later.


Hi Harold. Would you mind letting me know how to have Delphy's thumbnail display in some forums and your gallery display in others?

Thank you, excellent work.

GeoffE
03-03-2005, 07:13 AM
Does the original or Delphy's hack work under 3.06? Have tried installing both repeatedly and get the same result each time, no errors but no thumbnails at all. Spacing and everything else looks normal. Also I don't see thumbnails in the forum demo link in Dechevious' first post, is it just me or is that not working now?

thanks for your help

Delphy
03-04-2005, 09:17 AM
Geoff,

Do you have thumbnails enabled? Did you setup the forum ids where the thumbnails are to appear? Do you have a link where I could take a look?

I have the thumbnails enabled on my site here: http://forums.modthesims2.com/forumdisplay.php?f=48

(I still run vb3.0.3)

Regards
Delphy

GeoffE
03-04-2005, 09:26 AM
Hi Delphy, cheers for the quick reply.

Yup, have thumbnails enabled, definitely put the forum id's in, and I can see the thumbnails on your site fine. I've taken it off my site at the moment, will put it on again just now.

GeoffE
03-04-2005, 09:47 AM
Installed again, checkout http://forum.clubdogma.com/forumdisplay.php?f=25

Delphy
03-09-2005, 07:53 AM
You dont have post icons enabled :) Thats why the thumbnails aren't showing up

Harald_T
03-20-2005, 03:28 PM
Hi Harold. Would you mind letting me know how to have Delphy's thumbnail display in some forums and your gallery display in others?

Thank you, excellent work.

Sorry for delay. Had some trouble with my job and no time to look after the hack in the last month. I'll explain how to do at the easter holidays.

GeoffE
03-20-2005, 06:05 PM
You dont have post icons enabled :) Thats why the thumbnails aren't showing up

Posticons were definitely turned on .. I think I must have changed something with another hack. In the end we decided to go the whole hog and went for the VBA Gallery package but cheers for your help anyway :)

Siouxfire
03-21-2005, 12:38 AM
Ahem, excuse me... :speechless:

mathias
03-23-2005, 04:22 AM
how do I turn post icons on?

mathias
03-23-2005, 04:32 AM
got it to work pretty sweet thanks my cd cover section is going to love it

the123d
03-31-2005, 02:13 PM
Hi

I've installed the "Thumnail in forumdisplay" hack By dechevious but would like to make it work differently.

I want to be able to show image attachments inline !! In order to show images inline, normally the "enable thumbnails" needs to be set to "no" in the "message attachment options". Problem is, if you turn thumbnails off you can't create thumnails for the forumdisplay.php page ? (and thus un-doing the whole point of this hack) Is their a way to modify the hack to get this to work ?

If anybody's familiar with this hack - Any tips or ideas would be welcome ?

memobug
04-04-2005, 06:05 AM
how do I turn post icons on?

1. I think it's a forum option in the admincp - look under forums/moderators, however I have it active and the post icons show fine, but the thumbs weren't showing at all. I had to remove the second conditional <if condition="$show['threadicon']"> from the template to see anything at all in the way of thumbnails

2. I am a little confused by the way the template is set up. It seems to be showing thumbnails only if there is a post icon in that thread.

3 If there is no thumb, wouldn't it make more sense to show the post icon, if there is one, instead of that NO THUMBNAIL picture?

Regards,

Matt

Delphy
04-04-2005, 08:30 AM
memobug,

2. That is correct. It only shows them if post icons are enabled.

3. Replacing no thumbs with the standard post icon would look *very* strange in terms of rendering - you'd have thumbnails interspersed with very small post icons, and it generally would look horrible.

Hope this helps

memobug
04-04-2005, 07:28 PM
memobug,

2. That is correct. It only shows them if post icons are enabled.

3. Replacing no thumbs with the standard post icon would look *very* strange in terms of rendering - you'd have thumbnails interspersed with very small post icons, and it generally would look horrible.

Hope this helps

Hi Delphy
2. Actually what I meant is that I only get thumbnails if there is a post icon in that thread, not that post icons have to be enabled (although that is true, too, it is not a problem.). I am probably confused but it wasn't working at all with the provided template:

There are two nested ifs in that template, <if condition="$show['threadicons']">
<if condition="$show['threadicon']">I guess the first is to see whether post icons are enabled. The second if seems to check to see if there is a post icon for some reason? That one is my problem.

3. On mixing thumbs and post icons. I am sure it is a matter of taste, but I find it doesn't look strange at all if you adjust the row height accordingly. I use <td height="100"> if there is a thumbnail and <td height="25"> if there is not (whether there is a post icon or not) it looks fine.

I am confused why anyone would want a row of thumbnails advertising that there is no thumbnail, which seems to be rather obvious if no thumbnail is printed! Also, advertising "Nothing to see here!" with the non-thumbnail thumbnail pads out the row height excessively.

Regards,

Matt

Delphy
04-06-2005, 12:32 PM
memobug,

If I recall I changed something with regards to those nested ifs, but I can't remember what am I'm waiting for one of my dedicated boxes to come back up so I can see :)

With regards to the showing post icon if no thumbnail, now that you've explained it in that way, it makes perfect sense and would be very useful for stickies in otherwise thumbnail enabled forums. :) I might implement this myself on MTS2.

Regards
Delphy

Delphy
04-16-2005, 07:30 PM
Just as an update - I've re-coded some parts of my version of this hack to allow per-forum thumbnail views configurable via the Admin CP, as well as showing thumbnails in the search/new posts display.

If anybody would be interested, I can provide an update.

memobug
04-16-2005, 09:04 PM
Hi Delphy,

What you're suggesting sounds interesting. I would be interested in seeing it. What I did, to enable USERS to chose the thumbnail option or not is to create a copy of the style with thumbnails turned on. That way the user can make the selection.

People on broadband really like it. The ones on dialup sometimes prefer not to load extra images. So I think it's a feature that might best be in the hands of the user rather than the admin. However, one thing I could really use would be the capability to show fewer threads per page if its a thumbnail view, and more threads per page in nothumbs. That would help to normalize the scrolling and load time.

Regards,

Matt

Delphy
04-17-2005, 10:50 AM
memobug,

What I did was set a limit of 10 threads if viewing thumbnails, or the normal 25 if viewing forums without thumbnails.

I agree with you on the user selectable thumbnails though - especially in the New Posts search screen. I hadn't considered a style becuase it would still do the mySQL queries to get the attachment ids even if it's not showing the thumbnails, unless you hardcoded the styleid into the php and checked against that.

To change the number of threads on a forum that has thumbnails:

Edit forumdisplay.php
Find the section where you define forumids

$forumids = array(41, 43, 44, 45, 46, 47, 48, 49, 69, 70, 40, 50, 51, 52, 97, 98);
if (in_array($forumid, $forumids)) {
$displaythumbs = true;


BELOW this add:


$perpage = 10;


Thats it. :) You could add this as a vBulletin option too.

sicloan
04-19-2005, 11:26 PM
To change the number of threads on a forum that has thumbnails:

Edit forumdisplay.php
Find the section where you define forumids

$forumids = array(41, 43, 44, 45, 46, 47, 48, 49, 69, 70, 40, 50, 51, 52, 97, 98);
if (in_array($forumid, $forumids)) {
$displaythumbs = true;


BELOW this add:


$perpage = 10;


Thats it. :) You could add this as a vBulletin option too.

this worked if you changed the page. But not if you view a forum by itself.

Bent Concepts
04-21-2005, 05:16 PM
this is really a great hack -- but i'd love to know how to do it in the search results also. my php knowledge is fairly minimal -- any ideas?

Delphy
04-22-2005, 08:46 AM
sicloan, works fine here. Might be becuase of some small other changes I made.

Bent, you need to alter search.php

Find:

// ################################################## ###########################
// show results as threads
else
{
$show['threadicons'] = true;
$show['forumlink'] = true;

foreach ($itemids AS $thread)
{
// add highlight words
$thread['highlight'] = &$highlightwords;

// get info from thread
$thread = process_thread_array($thread, $lastread["$thread[forumid]"]);


(Should be around line 2518)

AFTER this add:


// Delphy's Search Thumbnail Hack
$thread[attachmentid] = "";
$forumids = array(1, 2, 3);
if (in_array($thread[forumid], $forumids)) {
$displaythumbs = true;
$sql_images = "SELECT DISTINCT postid,attachmentid FROM " . TABLE_PREFIX ."attachment WHERE postid IN (0$thread[firstpostid]) AND thumbnail_dateline > 0";
$images = $DB_site->query($sql_images);
while ($image = $DB_site->fetch_array($images)) {
$thread[attachmentid] = $image[attachmentid];
}
$DB_site->free_result($images);
unset($image);
}


Replace 1,2,3 with the forum ids similar to the way you did in forumdisplay.php

Bent Concepts
04-22-2005, 03:40 PM
thanks a million -- that's really great stuff there. it seems to work, but unfortunately it's only displaying the nothumb.gif image -- as if there was no image in the thread (even though there is)

other thing is that that codeblock was around 1200 something, not 2518 -- must be installed mods on your search.php or something

my codeblock in search.php looks like this:

// ################################################## ###########################
// show results as threads
else
{
$show['threadicons'] = true;
$show['forumlink'] = true;

foreach ($itemids AS $thread)
{
// add highlight words
$thread['highlight'] = &$highlightwords;

// get info from thread
$thread = process_thread_array($thread, $lastread["$thread[forumid]"]);

// Delphy's Search Thumbnail Hack
$thread[attachmentid] = "";
$forumids = array(1,2,3,4,5,6,7,);
if (in_array($thread[forumid], $forumids)) {
$displaythumbs = true;
$sql_images = "SELECT DISTINCT postid,attachmentid FROM " . TABLE_PREFIX ."attachment WHERE postid IN (0$thread[firstpostid]) AND thumbnail_dateline > 0";
$images = $DB_site->query($sql_images);
while ($image = $DB_site->fetch_array($images)) {
$thread[attachmentid] = $image[attachmentid];
}
$DB_site->free_result($images);
unset($image);
}

$itemcount++;
exec_switch_bg();
eval('$searchbits .= "' . fetch_template('threadbit') . '";');
}
}
// ################################################## ###########################

skokarl
04-23-2005, 06:54 AM
I have installed, but i can't see anything.

Must I change something in the admin cp ?

Delphy
04-25-2005, 01:21 PM
skokari,

did you change the forum ids to the same ones you want thumbnails to appear in?

bent concepts,

hrm I haven't modified search.php that much at all... so it's weird that yours is on a different line. What version you running? 3.0.7 here

Bent Concepts
04-26-2005, 07:36 PM
I'm running 3.07 also.

i hadn't changed it at all from the base unmodified version. what it's doing is displaying the "no thumb" image for all the items in the search.

is that code change the only thing that needs to be done in search.php? is there a specific version of this hack that needs to be used in order to get the search to work? i just changed the hack code i was using to the December 20th, 2004 version.

thanks

Delphy
04-28-2005, 06:12 PM
Hrm

It might be your $forumids = array(1,2,3,4,5,6,7,); line. Try taking out the last , in that.

What I found handy when developing the hack was doing this:

if ($bbuserinfo[userid] == 1) {
echo "<pre>".print_r($thread, true)."</pre>";
}


Replace 1 with your userid. What this will do is *just* for you, print out ALL the information it's got in your browser window. You can then see what the values are for the $thread[attachmentid] etc

Obviously turn it off before you go live :)

Bent Concepts
05-03-2005, 11:02 PM
one thing about that search.php modification -- it's retrieving the second thumbnail in each post -- how do i make it grab the first instead?

ThomasR
05-22-2005, 08:39 PM
Is thier a way to display the last attachement of the thread and not the first one ? I will use this mod for a Work in progress section of my forum, then, the last one is more usefull !
Another request: is it possible to display the attachement in full size and not only in thumbnail with this hack?
BTW, thank you very much for this great hack!

Delphy
05-23-2005, 07:32 AM
Thomas,

The default will return the last image already.

Also, showing the full size image would severly break your templates, so it's not recommended at all - imagine browsing a forum with a bunch of 1024x768 pictures on the forumdisplay... not a pretty sight :)

memobug
05-23-2005, 05:27 PM
Thomas,

The default will return the last image already.

Also, showing the full size image would severly break your templates, so it's not recommended at all - imagine browsing a forum with a bunch of 1024x768 pictures on the forumdisplay... not a pretty sight :)

Really? I get an image from the first post in the thread, and only the first post.

Regards,

Matt

Delphy
05-24-2005, 07:19 AM
memobug,

Thats correct, I think I misunderstood the question. What I meant to say was that, if given multiple attachments in the first post of a thread, it'll return the last of them. It wont scan anything other than the first post (this would actually be fairly database intensive as it would have to go through every post looking for the last attachment. Well, not *every* one, but probably a fair few.

Regards,
Delphy

vktechnology
06-01-2005, 06:24 PM
This is the best..

Very cool hack,, this is in my dream
I like this more than photopost.com system..

it's looke samilar to
www.webshots.com

http://community.webshots.com/topics/69/100269_views_0.htm

--------------
should add more feature something like
admin can add thumbnail for category.

Delphy
06-02-2005, 11:03 AM
Not sure what you mean by "thumbnail for category"?

vktechnology
06-02-2005, 01:24 PM
Not sure what you mean by "thumbnail for category"?

it mean can show smallt image in to category

Delphy
06-03-2005, 08:12 AM
You mean for sub-forums?

vktechnology
06-03-2005, 09:59 PM
You mean for sub-forums?
yes for sub-forums

ThomasR
06-06-2005, 12:31 PM
Ok, thank you for your answer Delphy. Damn, I hope for your first answer, I'll have to learn all users to update their first post ;)
By the way, thank you for the hack!

alkatraz
06-28-2005, 04:21 AM
one of my FAVOURITE hacks of all time!

will we be seeing this for vb 3.5? please say yes!!

ThomasR
07-05-2005, 11:49 AM
Oups, I think we missunderstood ;)

I would say that I like to have the thumbnail version of my attached image in my forumdisplay like you hack do, and have in full size, this image in the threadbit. in fact, use the thumbnail only for the preview you hack do.

If you take a look at CGTalk.com (http://www.cgtalk.com/forumdisplay.php?f=132) this is what it does (and what I want ;)

By th way, thank you for this great hack ;)

Thomas,

The default will return the last image already.

Also, showing the full size image would severly break your templates, so it's not recommended at all - imagine browsing a forum with a bunch of 1024x768 pictures on the forumdisplay... not a pretty sight :)

Harald_T
07-18-2005, 04:05 PM
I've coded this hack to 3.5.

Anyone still interested in it? I used it again to make a gallery for my forum (what else? ;) ) and this time i used the original hack from dechevious.

Take a look at it:

http://www.scifi-fan.net

mhobelsb
07-18-2005, 04:08 PM
wohoooo... already wanted to ask if it would be possible to do it. i would love to if i can use it after the upgrade to 3.5! thank you sooooo much for the work and that you share it with the community!

Martin

Harald_T
07-20-2005, 03:55 PM
I'll post it later on this evening.

GrendelKhan{TSU
07-25-2005, 04:32 PM
I've coded this hack to 3.5.

Anyone still interested in it? I used it again to make a gallery for my forum (what else? ;) ) and this time i used the original hack from dechevious.

Take a look at it:

http://www.scifi-fan.net


abso-freakin-lutely!! great job integrating it. on your site too.

btw, do I need a photo program (eg: vbgallery) installed first for this to work?

Harald_T
07-25-2005, 04:41 PM
I've written the hack further on to a gallery-hack, so you don't need any extra gallery for this. Parts of your forum will act like a gallery. I'm busy on writing the install-text for my gallery-hack for vB 3.5. I'll try to post it this evening.

shardex
08-16-2005, 01:38 AM
where is this hack coded for 3.5? That would be awesome, I am having trouble with converting the PHP part in forumdisplay.

bleodler
08-16-2005, 03:02 AM
where is this hack coded for 3.5? That would be awesome, I am having trouble with converting the PHP part in forumdisplay.
https://vborg.vbsupport.ru/showthread.php?t=92565

shardex
08-16-2005, 03:19 AM
Thank you very much!

Delphy
08-18-2005, 08:19 AM
Harald,

I'm extending my version of this hack to allow members to select which of the thumbnails they want to see listed on the forumdisplay, as well as adding images for actual forums too.

Harald_T
08-18-2005, 10:51 AM
Sounds interesting.

ThomasR
08-18-2005, 10:54 AM
:up: Yeaaaah Delphy !! you rocks !! :up:
I'll be glad to test it on my forum when you will release it ;) (I hope for 3.0.x)

George Gerez
08-18-2005, 07:35 PM
I think it's time to REVISE the original mod.. do all the fixes included in all these posts.. and POST a NEW thread with the full mod.. What do you think guys?

Azra_el
08-25-2005, 09:48 AM
i love it.. except i need to rebuild the thumbnails once in a while as it doesn't display all the attch

mfizzel
09-10-2005, 12:21 AM
I think it's time to REVISE the original mod.. do all the fixes included in all these posts.. and POST a NEW thread with the full mod.. What do you think guys?

YES, please!

This hack would be perfect for some of my forums, but I have no idea which variation to install and which fixes to add :disappointed:

mfizzel
09-10-2005, 03:29 AM
Just as an update - I've re-coded some parts of my version of this hack to allow per-forum thumbnail views configurable via the Admin CP, as well as showing thumbnails in the search/new posts display.

If anybody would be interested, I can provide an update.


Delphy, did you ever release the recoded part of this hack with the admincp additions?

mfizzel
09-10-2005, 01:57 PM
Delphy, friggin' awesome...your updated txt works perfectly for me.

This mod is PERFECT for my board! I actually like the fact that guests get previews of the thumbs but aren't able to view the full version. It'll probably increase registration even more ( it's an adult entertainment forum )

Question for you though, I'd really like to alter the code so clicking on the thumbnail opens the thread and not the full picture...I tried the code someone posted here to do it and the code didn't work.

Can anyone help me out with this? It's most likely only 1 line of code.

Thanks in advance!

Okay I've written up a text file in the style of the original, let me know if something doesn't work.

Updated 29th December at 5pm GMT to fix table prefixes and add a line I'd missed out from my original. Should work now :)

Regards,
Delphy

websiteicons.co
09-20-2005, 12:19 PM
Any plans to port it to 3.5?

mfizzel
10-28-2005, 11:33 PM
Any plans to port it to 3.5?

I'm wondering the same thing...I don't think I'll upgrade to 3.5 without this mod...

websiteicons.co
10-28-2005, 11:35 PM
euh, it's working in the 3.5 version... i've got it installed!

mfizzel
10-29-2005, 04:31 PM
euh, it's working in the 3.5 version... i've got it installed!

care to share how? :)

mommastacie
11-08-2005, 11:32 PM
I wanna know, too! I made it till I had to find the threadbit template & lost it. Just upgraded last week... Help please??:ermm:

Stacie
http://www.bentrideronline.com/messageboard/

hotwheels
11-12-2005, 02:09 PM
so delphy, do you have a zip file for this program? Would be nice if you could put everything together in a zip file so we could upload your file and give it a shot...

thanks, hotwheels

hotwheels
11-12-2005, 04:40 PM
*installs* great hack.....

websiteicons.co
12-08-2005, 07:40 PM
care to share how? :)

Well, i know i have installed it but it seems that it has been ported by someone else. You can find the 3.5 version here : https://vborg.vbsupport.ru/showthread.php?t=92565

ramone_johnny
05-28-2006, 10:25 AM
I tried this mod and received some crazy error...

RJ

vppremier
02-05-2007, 10:54 PM
I don't have the needed code in my forum display template, it's a heavily modified style, what can I do?

SpreadingLight
02-18-2008, 09:55 AM
Nice.
Does this work for 3.6.8 pl2 ?

ArashB
06-24-2008, 08:26 AM
this is a necessity, I wish someone makes a compatible version to the newest versions

dmknights
01-21-2009, 04:15 PM
i know this is an old mod, but does this work for 3.8?

ThomasR
01-21-2009, 04:26 PM
I didn't installed the final version of 3.8, but it was ok on the last RC. I' don't use the search addon.