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)

PennylessZ28 10-10-2005 09:51 PM

Yeah someone called me, then they hung up. Blah.

Ok, new question, how do I exclude categories from being show in the random? In my vbgallery settings I am excluding too categories which contain NSFW content. On the vbgallery index it works, on my forumhome page using this, they show up. Is there an option in the orginal code?

PennylessZ28 10-10-2005 09:53 PM

Quote:

Originally Posted by Zachariah
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


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

Nevermind, should read first, I'm just junking up this thread.

Zachariah 10-10-2005 09:56 PM

no problem :D but dont use that.

Plugin - Forumhome: Gallery Main

// If you HASH out "$catlimit" images will pull from all categories.
// Useage: $catlimit = 3,5,10,30,70;

//$catlimit = 3;

// Enter 1 newest, 2 most viewed, 3 most comments, 4 highest rated, 5 random.
$galleryorderby = 1;

//Number of Images to Display
$galleryimagelimit = 4;


I will have the full blown ver and out of beta soon, there are a few more things I am worken on.

PennylessZ28 10-10-2005 10:04 PM

:( ok they are still showing up :(

PennylessZ28 10-10-2005 10:05 PM

Crap, too late

PennylessZ28 10-10-2005 10:05 PM

Ok that does it, I'll just wait. :)

GrendelKhan{TSU 10-11-2005 05:00 AM

Quote:

Originally Posted by GrendelKhan{TSU
love this hack and its continued improvements...
one problem...

the replies don't seem to actually work in the forumhome display. I turned it on to show 1 reply. And no matter what it always has "never" for the replies.

anyone else get this to actually work?

is this a bug? did anyone get it to work?

again, the show last "last post" doesn't work. it always shows never.

any ideas?

GrendelKhan{TSU 10-11-2005 03:55 PM

also.... is there a way to limit/control the size of the thumbnail?

or does follow the vbGallery setting?

Zachariah 10-11-2005 04:56 PM

Quote:

Originally Posted by GrendelKhan{TSU
also.... is there a way to limit/control the size of the thumbnail?

or does follow the vbGallery setting?

gallery setting ( it pulls the thumbnails already made)

Have you tryed the Beta ?
https://vborg.vbsupport.ru/showpost....2&postcount=57

I also have more info on the missing Phrases. Soon to be fixed.

Rukas 10-12-2005 03:20 AM

Im getting this error:

Warning: array_keys(): The first argument should be an array in /includes/functions_gallery.php on line 427

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 427

Warning: Division by zero in /includes/functions_gallery.php on line 1134


All times are GMT. The time now is 01:06 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.01311 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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