vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PhotoPost vBGallery - Forum Home (https://vborg.vbsupport.ru/showthread.php?t=96152)

Wayne Luke 09-26-2005 02:22 PM

Can we exclude galleries by ID?

dbembibre 09-26-2005 02:40 PM

Quote:

Originally Posted by Wayne Luke
Can we exclude galleries by ID?

No, is based in gallery permissions

Zachariah 09-26-2005 06:36 PM

Quote:

Originally Posted by Wayne Luke
Can we exclude galleries by ID?


Plugin - Forumhome: Gallery Main

Try this:

Find:
Code:

    $getrand =  $db->query_read(" 
                SELECT imageid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields] 
                FROM " . TABLE_PREFIX . "adv_gallery_images AS images 
                $query[tables] 
                WHERE $privcatids valid = 1 $ignquery 
                ORDER BY $galleryorderby 
                LIMIT $galleryimagelimit
        ");

Replace
Code:

$getrand =  $db->query_read(" 
                SELECT imageid, catid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields] 
                FROM " . TABLE_PREFIX . "adv_gallery_images AS images 
                $query[tables] 
                WHERE $privcatids valid = 1 $ignquery 
                AND catid in (1,2,3,4,5,6,7,8,9)
              ORDER BY $galleryorderby 
                LIMIT $galleryimagelimit
        ");

The RED can be filled in by Cat ID's

Quote:

Originally Posted by dbembibre
No, is based in gallery permissions

True, but limits of cats is handy to promote ideas you wish to convay to the plublic vs. random all cats.

Wayne Luke 09-26-2005 06:45 PM

Thanks.. That seems to be working. I wanted to exclude public galleries. We use the gallery as an image host as well. I didn't want signature images, profile pictures and such to show on the main page.

Zachariah 09-26-2005 06:49 PM

Quote:

Originally Posted by Wayne Luke
Thanks.. That seems to be working. I wanted to exclude public galleries. We use the gallery as an image host as well. I didn't want signature images, profile pictures and such to show on the main page.

I hear ya, Ill do an update on this and add a few things in a few days .... keep your eyes open :D

GrendelKhan{TSU 09-30-2005 07:41 AM

Quote:

Originally Posted by GrendelKhan{TSU
can I ask how would I make it so the row appeared with two different sets of images?

that is, if there are 5 images I want to make it so:

--1 (one) random image appears in first box. (with "Random Image" in the title)
--then 4 new images after it (with "New Images" in the title).

is this possible?

I tried a few things and failed miserably. :(

any ideas on how to do this?

Zachariah 09-30-2005 02:12 PM

Quote:

Originally Posted by GrendelKhan{TSU
any ideas on how to do this?

I'll look in on it - it will take me a bit.

GrendelKhan{TSU 10-01-2005 10:18 AM

Quote:

Originally Posted by Zachariah
I'll look in on it - it will take me a bit.

cool thanks!! :D

also, as a general note to all...if you have this installed already, and then upgrade to vb3.5.0, this hack needs to be REINSTALLED after the upgrade. This produces some funky error lines at the top of the forum after the upgrade an upgrade.

A simple reinstall of this hack clears it up. ;) :D

Zachariah 10-01-2005 05:30 PM

Quote:

Originally Posted by GrendelKhan{TSU
cool thanks!! :D

also, as a general note to all...if you have this installed already, and then upgrade to vb3.5.0, this hack needs to be REINSTALLED after the upgrade. This produces some funky error lines at the top of the forum after the upgrade an upgrade.

A simple reinstall of this hack clears it up. ;) :D

Yes the file edit is killed.

Michael-DLR 10-03-2005 12:18 AM

I uploaded a few photos to test this and only admins can see the photos. I have tripled check permissions and I can't seem to find where to change this. Any ideas?

Thank you,

Michael


Figured out my issue. See here for the fix:
http://www.vbadvanced.com/forum/show...&postcount=328


All times are GMT. The time now is 10:49 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.01890 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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