vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Thumbnail of Attachments on forum display (https://vborg.vbsupport.ru/showthread.php?t=73220)

ryancooper 01-18-2005 02:59 PM

Quote:

Originally Posted by Harald_T
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
Code:

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
Code:

// 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
Code:

// 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

Quote:

Originally Posted by Harald_T
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

Quote:

Originally Posted by Harald_T
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

Quote:

Originally Posted by Sadie Frost
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

Quote:

Originally Posted by mhobelsb
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

Quote:

Originally Posted by Harald_T
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

Quote:

Originally Posted by ???`S?LV?R???`
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/sh...ad.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

Quote:

Originally Posted by Harald_T
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

Quote:

Originally Posted by Harald_T
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....0&postcount=30 hope it helps.

Harald_T 02-07-2005 05:42 PM

Sorry for late answer, didn't had much time last week.

Quote:

Originally Posted by insumoth
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

Quote:

Originally Posted by Dechevious
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

Quote:

Originally Posted by Harald_T
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

Quote:

Originally Posted by Lee Wilde
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.


All times are GMT. The time now is 01:21 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.01395 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete