Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread Gallery Details »»
Thread Gallery
Version: 1.00, by trafix trafix is offline
Developer Last Online: Jul 2008 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 04-21-2003 Last Update: Never Installs: 12
Is in Beta Stage  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-22-2003, 03:37 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #13  
Old 04-22-2003, 03:43 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 04-22-2003, 03:44 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see the same as Amy.
Reply With Quote
  #15  
Old 04-22-2003, 03:49 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zip updated, non members will get the "not logged in screen"
Reply With Quote
  #16  
Old 04-22-2003, 04:29 PM
irn-bru's Avatar
irn-bru irn-bru is offline
 
Join Date: Feb 2002
Location: Scotland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 04-23-2003, 06:38 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 04-23-2003, 06:40 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ooops...

also find in gallery.php

PHP Code:
if ($bbuserinfo[userid]==0) {
    eval(
"standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
  } 
and delete it!
Reply With Quote
  #19  
Old 04-23-2003, 09:16 PM
solent solent is offline
 
Join Date: May 2002
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 04-25-2003, 07:33 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way this could work for a whole forum instead of just a thread?
Reply With Quote
  #21  
Old 04-25-2003, 07:44 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sabret00the,

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04780 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete