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)

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.


All times are GMT. The time now is 07:56 AM.

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.01297 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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