vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Thread Gallery (https://vborg.vbsupport.ru/showthread.php?t=51970)

trafix 04-21-2003 10:00 PM

Thread Gallery
 
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

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/gal...st&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

Quote:

Today at 02:18 AM amykhar said this in Post #4
I am just seeing broken images when I view the hack:

http://www.atmyparty.com/network/gal...st&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

Quote:

Today at 02:18 AM amykhar said this in Post #4
I am just seeing broken images when I view the hack:

http://www.atmyparty.com/network/gal...st&threadid=10


Sorry, yeah it requires membership

amykhar 04-22-2003 03:37 PM

Quote:

Today at 11:23 AM trafix said this in Post #8
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 ?

Quote:

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

PHP Code:

$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

PHP Code:

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.


All times are GMT. The time now is 04:46 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.01092 seconds
  • Memory Usage 1,763KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete