Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Module CMPS: PhotoPost vBGallery Details »»
Module CMPS: PhotoPost vBGallery
Version: 1.8, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-21-2005 Last Update: 05-27-2006 Installs: 129
Uses Plugins Template Edits
Code Changes Additional Files  
No support by the author.

/* -----------------12/31/2005 6:41pm -----------------

Add Gallery Images to your CMPS v1.8

This hack is an add-on to a gallery made by PhotoPost.com called vBGallery.
- This is not a gallery, but a way to display the images from the gallery to your forums.

Do you have vBGallery installed ?

Tested on:
- vBulletin 3.5.2
- PhotoPost vBGallery v1.0.2 (vB 3.5)
- vBadvanced CMPS v2.0.0 (vB 3.5)

Zachariah - http://www.gzhq.net

Product XML
1 file edit
Upload file
Create Module
Change settings

1 query added to CMPS

DEMO

--------------------------------------------------*/

Change Log
===========
1.8
- Added functions_gallery_store.php
- Added column span support

1.7
- Install w/ product in 1 file.
- AdminCP options to change the hack settings
- Added: Parts of the gallery's Nav bar w/ dropdowns
(My Stuff*, What's New, What's Popular,Search) to the hack with on/off option.

* My Stuff will not be seen if you are a guest.

1.6
- Added: If the gallery is off or disabled the hack not show up.
- Added: templates to support the hack vs. gallery templates
(allows you to customize the templates for the look and feel you want vs. mess up the way your gallery templates look.)

Show Your Support

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

Comments
  #82  
Old 10-31-2005, 12:05 PM
divided_by_fear's Avatar
divided_by_fear divided_by_fear is offline
 
Join Date: Oct 2005
Posts: 451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah its all cached now lol i didnt have adv_gallery_imagebit on the Templates Used cause i just went by the installer didnt even look lol but once i added adv_portal_gallery_random,adv_gallery_imagebit to the Templates Used it worked like a charm...
Reply With Quote
  #83  
Old 10-31-2005, 06:08 PM
InsaneContender InsaneContender is offline
 
Join Date: May 2003
Location: Sacramento, CA
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was wondering, is it possible to EXCLUDE one and only one category from being displayed? I have a category that I can only see so I can upload pictures to it for my news posts, but it is still being displayed in the latest images block. Any way to take care of that?
Reply With Quote
  #84  
Old 10-31-2005, 07:09 PM
trueinnovation trueinnovation is offline
 
Join Date: Oct 2005
Location: UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, but I get the same error as phifou and Serenity. Anyone have a solution?

Much appreciated.

Quote:
Originally Posted by phifou
It runs nice but I have an error warning at the top of CPMS, like Serenity :

"Warning: Invalid argument supplied for foreach() in /modules/gallery_random.php on line 83"

and my line 83 is


and its happens with no link with usergroups (admin, member, visitors ...)

I also noticed that the module disturbed tables width ... where can the width of table of the module can be tuned ?
Reply With Quote
  #85  
Old 10-31-2005, 07:31 PM
trueinnovation trueinnovation is offline
 
Join Date: Oct 2005
Location: UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it...

Change this (around line 83):

foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
{
if (($option == 'gallery_maxcats' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['cancreatecategories'])) OR ($option == 'gallery_maxdiskspace' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['canuploadimages'])))
{
continue;
}
if (((($value > $galleryperms["$option"] AND $galleryperms["$option"] != '0') OR !$value) AND $option != 'gallery_perms'))
{
$galleryperms["$option"] = $value;
}
}

to this:

if (!empty($gallery_permissions["$usergroupid"]))
{
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
{
if (($option == 'gallery_maxcats' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['cancreatecategories'])) OR ($option == 'gallery_maxdiskspace' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['canuploadimages'])))
{
continue;
}
if (((($value > $galleryperms["$option"] AND $galleryperms["$option"] != '0') OR !$value) AND $option != 'gallery_perms'))
{
$galleryperms["$option"] = $value;
}
}
}
Reply With Quote
  #86  
Old 10-31-2005, 07:54 PM
trueinnovation trueinnovation is offline
 
Join Date: Oct 2005
Location: UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help! I want unregistered users to see these random images on the CMPS. Ive set unregistered=YES in the module, but this module still does not appear.

Is this because my gallery itself is blocked to unregistered users? If so, how can I mod this hack to show the random images on CMPS even tho' my gallery access is restricted? e.g. I want my home page to show what could be accessed, if they registered/subscribed...

Advice appreciated...
Reply With Quote
  #87  
Old 10-31-2005, 08:32 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

trueinnovation - Thank You.

- People that are having problems please Beta the Change. If it works I will update the Zip.

modules/gallery_random.php

Got it...

Change this (around line 83):

Code:
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
	{
		if (($option == 'gallery_maxcats' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['cancreatecategories'])) OR ($option == 'gallery_maxdiskspace' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['canuploadimages'])))
		{
			continue;
		}
		if (((($value > $galleryperms["$option"] AND $galleryperms["$option"] != '0') OR !$value) AND $option != 'gallery_perms'))
		{
			$galleryperms["$option"] = $value;
		}
	}
to this:

Code:
if (!empty($gallery_permissions["$usergroupid"]))
	{
	foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
	{
		if (($option == 'gallery_maxcats' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['cancreatecategories'])) OR ($option == 'gallery_maxdiskspace' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['canuploadimages'])))
		{
			continue;
		}
		if (((($value > $galleryperms["$option"] AND $galleryperms["$option"] != '0') OR !$value) AND $option != 'gallery_perms'))
		{
			$galleryperms["$option"] = $value;
		}
          }
}
Reply With Quote
  #88  
Old 10-31-2005, 08:35 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trueinnovation
Help! I want unregistered users to see these random images on the CMPS. Ive set unregistered=YES in the module, but this module still does not appear.

Is this because my gallery itself is blocked to unregistered users? If so, how can I mod this hack to show the random images on CMPS even tho' my gallery access is restricted? e.g. I want my home page to show what could be accessed, if they registered/subscribed...

Advice appreciated...
You can set guests to see thumbnails / make them REG to see large images. If they look @ your gallery, they can see all the thumbs just not large image.
Reply With Quote
  #89  
Old 11-01-2005, 03:36 PM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
You can set guests to see thumbnails / make them REG to see large images. If they look @ your gallery, they can see all the thumbs just not large image.
Well, I have it set so everyone can see the gallery, but guests don't get the image gallery module on the index page.

Why?

Edit: Also, if I hash out catlimit, it won't show anything, and if I set more then one (catlimit = 2,3,4, it will return a parse error. How can I make it pull images only from the categories I want it to?
Reply With Quote
  #90  
Old 11-02-2005, 03:37 PM
phifou phifou is offline
 
Join Date: Feb 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

TRUEINNOVATION 's hack runs beautifully. Thanks a lot.
Reply With Quote
  #91  
Old 11-04-2005, 04:04 AM
gator777's Avatar
gator777 gator777 is offline
 
Join Date: Feb 2005
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You spent a lot of time coding this hack, so I wanted to take the time to thank you for all your hard work. This block works great, and I finf it the single most important block on my site. It pulls visitors into the gallery and is very important.

I do have one quesiton though. I followed this as I understood it:

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

// $catlimit = 3; 
But when I tried to add another "gallery ID" to "$catlimit = 3,7;" (for example) , I got the following error code dipsplayed on the browser:

PHP Code:
Parse errorparse errorunexpected ',' in /hsphere/local/home/mysite.net/vb3/modules/gallery_random.php on line 6 
Thanks again for the wonderful code.
Reply With Quote
Reply

Thread Tools

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 04:41 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.06296 seconds
  • Memory Usage 2,317KB
  • 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_code
  • (2)bbcode_php
  • (3)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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