Log in

View Full Version : Thread Gallery


trafix
04-21-2003, 10:00 PM
Here we go again for the second time this week :)

I have taken a different approach to building a gallery than others.
The thread gallery basicly takes all images that have been posted to a
single thread and display them in a gallery format.

Only members are permitted to view the gallery.

I understand that some owners might not be able to use other galleries due to
the required extra stuff that needs to be installed on a server and some server
admins may not want to make these additions. The Thread Gallery does not require any extra features.

With that said, no the Thread Gallery does not have thumbnail ability however
i have included the ability to admin select how each gallery is displayed.
1) Display by image - this will display the full image in the gallery
2) Display by link - this will replace the image with a link, click on the link and the image will be displayed in a new window, The other benifit to this is that it will save you bandwidth.

You can set up unlimited categories with unlimited galleries (threads) in each via the admin cp.
At this stage the admin is the only person who can add galleries and categories

ADDITIONS TO COME
1) Automated system for members to add their threads to the gallery
2) Page navigation
3) Optional thumbnail feature

DEMO:atmyparty.com (http://www.atmyparty.com/network/)

SCREENSHOT: Next posts

REQUIREMENTS:

1 X php file alteration
1 X database query
7 X new templates

INSTALATION TIME: aprox. 15 - 20 min

Tested on 2.3.0 but should work on all versions.

UPDATE V 1.1 - 23/03/04
In this update you can now allow or disallow guests access to each gallery selectivly

~ This hack is Copyright ~
Please note that I reserve the right to code and release this hack for VB3, I have not and will not grant permission for anyone else to code this hack for VB3.

trafix
04-22-2003, 03:15 PM
admin

trafix
04-22-2003, 03:17 PM
main

amykhar
04-22-2003, 03:18 PM
I am just seeing broken images when I view the hack:

http://www.atmyparty.com/network/gallery.php?action=imagelist&threadid=10

trafix
04-22-2003, 03:18 PM
admin2

trafix
04-22-2003, 03:19 PM
main2

trafix
04-22-2003, 03:20 PM
main 3

trafix
04-22-2003, 03:23 PM
Today at 02:18 AM amykhar said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=385534#post385534)
I am just seeing broken images when I view the hack:

http://www.atmyparty.com/network/gallery.php?action=imagelist&threadid=10

hmm, what do you mean by broken images????

When i click on it, it looks link the previous screenshot

trafix
04-22-2003, 03:26 PM
oh damn I ment to put this in the beta section......mod please

trafix
04-22-2003, 03:34 PM
Today at 02:18 AM amykhar said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=385534#post385534)
I am just seeing broken images when I view the hack:

http://www.atmyparty.com/network/gallery.php?action=imagelist&threadid=10


Sorry, yeah it requires membership

amykhar
04-22-2003, 03:37 PM
Today at 11:23 AM trafix said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=385539#post385539)
hmm, what do you mean by broken images????

When i click on it, it looks link the previous screenshot


Here is what I see:

trafix
04-22-2003, 03:43 PM
Yep just as I thought, the hack id calling the images via the attachment.php file. Permissions do come into effect!

I will add the logged out code to the gallery.php file

N9ne
04-22-2003, 03:44 PM
I see the same as Amy.

trafix
04-22-2003, 03:49 PM
Zip updated, non members will get the "not logged in screen"

irn-bru
04-22-2003, 04:29 PM
Worked ok for me when I tested it out, its a litlle like
an attachment gallery than a thread gallery, unless it
can show images that use the [*img] tag also ?

ADDITIONS TO COME
1) Automated system for members to add their threads
to the gallery
2) Page navigation
3) Optional thumbnail feature


nice :)

trafix
04-23-2003, 06:38 AM
What to do if you want guests to view your thread gallery!

1) Do a copy of attachment.php and call it attachment1.php

find near line 1

$permissions=getpermissions($getforuminfo[forumid]);
if (!$permissions[canview] or !$permissions[cangetattachment]) {
show_nopermission();
}

and delete it!

2) In gallery_list_bit and gallery_list_linkbit

find "attachment.php" and replace it with "attachment1.php"

DONE!

This will allow guests to view the thread gallery :)

I will add some more coding to the gallery files so that you can select guest access on a per gallery basis.

This will be included in the next update.

trafix
04-23-2003, 06:40 AM
ooops...

also find in gallery.php

if ($bbuserinfo[userid]==0) {
eval("standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
}


and delete it!

solent
04-23-2003, 09:16 PM
greate work simple integrated with vbulletin. no extra files and directories and templates and design to fit your custome theme.

this is what i was looking for.

thanks again trafix.

sabret00the
04-25-2003, 07:33 PM
is there any way this could work for a whole forum instead of just a thread?

trafix
04-25-2003, 07:44 PM
sabret00the,

No, not without extencive coding, the "post" table does not collect fromuid no's.

sabret00the
04-29-2003, 10:05 PM
-_-"

donBLACK
05-23-2003, 07:27 PM
can members post reply's about the pics? this would work great w/ my site if they could

trafix
05-23-2003, 07:35 PM
Could look at adding that for the next version :)

LangTuDaTinh
05-24-2003, 08:10 AM
in gallery.php

pls change the "$templateused"

is this thread hack get image upload used upload as attachment or link by [ img] tag?

thanks trafix..for another great hack.