![]() |
Thumbnails of Attachments on Forum-Display
Foreword:
This is the old hack of Dechevious, i only changed it to work under 3.5.0 Beta 3. I've used this hack, to build a gallery for my forum. You'll need the icon for no Thumbs from Dechevious hack, so be sure to check his hack out, too. |
I never saw the original hack, but this is amazing:
http://www.scifi-fan.de/forumdisplay.php?f=60 Well integrated to look like the other galleries, but it is a real vB forum URL :up: I don't think you need to edit global.php though, that portion can be written in forumdisplay.php, or made as a plugin to the forumdisplay_start hook. |
I've just made it, because i want to administrate the gallery through the AdminCP (as soon, as i found out, how...)
Oh, and don't mind, that in my gallery some pictures are missing. I had a little forum crash these days and i'm busy on building it up again. |
I'll release the gallery-hack soon, btw.
|
excellent ! i will wait for this hack !
|
works great for classifieds
thanks! |
I've tested my gallery so far. Works good. You can now define by setting an option, which forum is used as a gallery. So no need for the forumid's any longer.
I will write the install-text now and release it later on this evening, i hope. |
Harald, you're getting closer to what might be one of the most important hacks :) Looking forward to the gallery hack.
|
Oh, don't excpect too much for the beginning. Of course there are some things, which still have to be done, but if your looking at my website, you can see, how far i have come. It works fine so far, but as i said, there are still a lot of things to do. But it's a start.
|
Harald_T
could you add ( display the last 5 Thumbnails from X forum ) on the forum home . moreover, we can use a specific variable to display the last x Thumbnails from xx,xx forums on (forum index ) ?? it would be very effective gallery mod with 100% vb integration :) -------------------------- take an example (IPB): http://www.lifejourney.com.sa/community/ its desplaying the last 4 Thumbnails from ( forum # 143 ) which is for ( digital arts ) (AND ) desplaying the last 4 Thumbnails from ( forum # 144 ) which is for ( Photography images ) -------------------------- I PM'ed him and he said that the mod is quite simple .. 2 Queries to get the thumbnails and some changes in (forumhome_forumbit_level2_post) :rolleyes: can you add this feature to the mod .. ?? :) |
I'm already working on something like this for my gallery-hack.
|
Good work Harald_T ..
and im glad to see your gallery .. :) keep on going .. ;) |
Nice Hack. But you might want to consinder releasing it as a Plugin to avoid File Edits:
Hook: forumdisplay_query PHP Code:
|
This is a great idea.
If you allow, i will try to add the query to my gallery-hack. |
Feel free to use it :)
|
Besides a little typpo it works fine
attachment.attachmendid must be attachment.attachmentid |
Wonder how this happened ^.^
|
Quote:
I got this error on top of the page: Parse error: parse error, unexpected '{' in /var/www/html/message_board/forumdisplay.php(799) : eval()'d code on line 2 and this one as the vbulletin message: Unable to add cookies, header already sent. File: /var/www/html/message_board/forumdisplay.php(799) : eval()'d code Line: 2 |
Quote:
|
hi Harald_T,
really nice addon. i already use it in my forum and for sure want to use it as soon as the gold is released. any chance that you change it to work as plugin? would really love that. not that the file changes are big, but it would make updateing much easier. :) thanks again for the good work martin ps.: don?t really get there to use the Query of KirbyDE. maybe i am just not really awake. :) |
Quote:
|
Here is the Plugin (which is just a Copy&Paste of the Code I posted earlier ...)
Note: It must be edited: 1, 2 ,3 has to be replaced with the Forumids where you want to activate this. But as said above, I still think the best thing would be if the was a setting in Forum Manager to easily turn this on/off without having to edit the code. |
Sorry, hadn't much time the last days. I think, i've also already made an plugin.
@Kirby: Nice Idea. I'll look after it. |
Quote:
Some threads appear twice, some are even listed three or four times.. |
anyone else try this for 3.5?
I want to install it but wanna see if its ok. :) |
Yes. It has small bug. Thumbnails are from first post in thread and if first post has more than one attachment, there are more than one thread.
|
yes, same here. anyone a idea to fix that?
|
Then we just need a group by if their isnt one but it sounds like he needs to add a group by into the query. :)
|
Yes, that's right. We need to add "GROUP BY" and one "iff" to the SQL query.
my code (in forumdisplay.php) PHP Code:
|
sorry, there are still bugs in my code.
|
Any progress on fixing the bugs? Looks like a really good plugin
|
Yes. Here you have correct code:
PHP Code:
|
Works great, and I really like it.
One question / suggestion... How do I make this work in the search results? I see they use the threadbit template, but it doesn't show the icons. I'd like to show the thumbnails, even if they show up for all forums. Any suggestions on how to do that? |
My members love this! It's getting great reviews.
One question... How does it decide which image to show? It usually, but not always, shows the first image. Sometimes it's the second or third. Any idea how/why that happens? Also, <beg>PLEASE</beg> somebody tell me how to do this with the "new post" and "today's post" searches. I think it would be very useful! |
Harald_T, how would I make this work together with your other Gallery hack release but on seperate areas?
Theyre both so good, wish they worked together.. when Install both and I try use this one it just looks like your other gallery release which I dont want for that specific area.. just want thumbnails :P reply would be great |
I'll look after this tomorrow.
Edit: The problem is based on the way the gallery-hack was build up. Wait for the next version (i hope this night), then the problems should be removed. |
You are a star!!
I will be waiting in suspense! :D Thank you Thank you Thank you!!!!! my forum , http://forum.cgcentral.net Its launched yesterday so its under beta... what will basically happen is under the gallery section the first 3 forums will just be thumbnail.. and the last one (awards) will be that great gallery with the new works on the main page. Cant wait for your release.. told my friends and they also cant wait! :D |
when its done please notify in this thread or email me.. i'll put it to good use..
|
The new version of my gallery is up now. Try it out.
|
Quote:
Harald I have 2 questions: 1) I installed the new version but now am wondering why when I view my gallery it shows the blocks and everything but no thumbnail at all.. not even on the front page, nowhere.. I added the image as an attachment; why isnt this working? 2) So now I will be able to install both gallery codes? |
All times are GMT. The time now is 04:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|