PDA

View Full Version : Module CMPS: PhotoPost vBGallery


Pages : [1] 2

Zachariah
10-21-2005, 10:00 PM
/* -----------------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 (http://www.gzhq.net/index.php?page=Hacks)

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

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.)

Lea Verou
10-21-2005, 11:52 PM
Installed thanks!

edit: Muhahaha I reserved the first post!

Zachariah
10-21-2005, 11:57 PM
Installed thanks!

edit: Muhahaha I reserved the first post!

:D - tell me how it goes.

Lea Verou
10-22-2005, 12:08 AM
It says "Could not find phrase 'adv_portal_invalid_modfile'.". The problem isn't that the phrase doesn't exist, obviously, I can cope with that,lol. The problem is that the mod file is incorrect. Really strange...

SMO
10-22-2005, 12:12 AM
i dont know what im doing
ya i get that edit too

pbjunkie
10-22-2005, 12:33 AM
I import the module and it says that imagegallery.module is invalid.

Omega Prime
10-22-2005, 12:34 AM
I import the module and it says that imagegallery.module is invalid.

Ditto =/

Zachariah
10-22-2005, 12:36 AM
updated - try the new file.

Lea Verou
10-22-2005, 12:36 AM
So I guess it has to do with the module since we all have the same problem... Hope he replies soon... :)

Zachariah
10-22-2005, 12:43 AM
This will work if you want a list on the Sides.

image
*space*
image
*space*
image
*space*
image
*space*



In the template "adv_portal_gallery_random" look for:
$randomimagebits

... and replace it with:

<tr><td class="alt1" align="center">$randomimagebits</td></tr>

Now in the "gallery_random.php" module itself look for:

$randomimagebits .= construct_imagebits($images);

... and replace it with:

$images['url'] = construct_image_url($images, 'thumbname');
$randomimagebits .= '<a href="' . $vba_options['gallery_url'] . '/showimage.php?' . $vbulletin->session->vars['sessionurl'] . 'i=' . $images[imageid] . '"><img alt="' . $images[title] . '" border="0" src="' . $images[url] . '" /></a><br /><br/>';

Lea Verou
10-22-2005, 12:43 AM
Works perfectly now :)
may I ask what was the problem before? Just out of curiosity...

Zachariah
10-22-2005, 12:48 AM
Works perfectly now :)
may I ask what was the problem before? Just out of curiosity...

I goofed and made an edit to the exported imagegallery.module, vs in the AdminCP, and my editor "formated" the plugin w/ other chars.

pbjunkie
10-22-2005, 12:51 AM
Ok. It uploaded no problem however I have it active and she's not showing up at all.

Lea Verou
10-22-2005, 12:52 AM
Ok. It uploaded no problem however I have it active and she's not showing up at all.

Maybe you have to enable it on the custom pages as well? (eg the Home/Default one)

Lea Verou
10-22-2005, 12:55 AM
How can I have more images the one under (not next to) the other?

Zachariah
10-22-2005, 12:57 AM
How can I have more images the one under (not next to) the other?

Post 10 :) - It's limited @ the moment.

pbjunkie
10-22-2005, 12:57 AM
You rock Loukrhtia.. Customizing right now.. :)

Lea Verou
10-22-2005, 01:01 AM
Post 10 :) - It's limited @ the moment.

Thanks but...there are no image info now!!

Zachariah
10-22-2005, 01:03 AM
Thanks but...there are no image info now!! You will have to bare with me :D. I have not dove into this a lot. Give me a little time :tired: . I'ts 5 beer o'clock going on 6. :nervous: Perhaps in a day or so.

Originally Posted by Zachariah
Post 10 - It's limited @ the moment.

Lea Verou
10-22-2005, 01:06 AM
You will have to bare with me :D. I have not dove into this a lot. Give me a little time :tired: . I'ts 5 beer o'clock going on 6. :nervous: Perhaps in a day or so.

Originally Posted by Zachariah
Post 10 - It's limited @ the moment.

Ok, no problem, I'll wait patiently :)

PS: It's 5 in the morning in Greece! How can it be 5 in the morning there too?

pbjunkie
10-22-2005, 01:08 AM
Ok. I got the single pic working however when I make the modifications to show:

pic
space
pic
space
pic
space

It's still horizontal and blows the front portal all over the place.

No rush at all. :)

FleaBag
10-22-2005, 01:11 AM
Sweet potatoes!

Lea Verou
10-22-2005, 01:11 AM
Ok. I got the single pic working however when I make the modifications to show:

pic
space
pic
space
pic
space

It's still horizontal and blows the front portal all over the place.

No rush at all. :)

Did you see post #10? ;)

pbjunkie
10-22-2005, 01:16 AM
Yep.. I made the changes.. The weirdest thing is happening though. When I modify and save the values to "0" ($showfields) they automatically change back to "1" again.

LOL maybe I'm seeing things.. I'ts 5 beer o'clock going on 6?? Time for bed maybe.

Lea Verou
10-22-2005, 01:18 AM
Yep.. I made the changes.. The weirdest thing is happening though. When I modify and save the values to "0" ($showfields) they automatically change back to "1" again.

LOL maybe I'm seeing things.. I'ts 5 beer o'clock going on 6?? Time for bed maybe.

Lol, this module is haunted, I had access problems when I tried to upload the modified module over the previous one so I had to delete it and upload it! :p

I wish I could go to bed too but I have a trip in the morning (I always have a mod-frenzy before a trip, lol)...

pbjunkie
10-22-2005, 01:35 AM
Ok. I got the module working for 1 pic without any comments, etc. I think my cpanel was messin up or something so I ssh'd in and modified all the $showfields.

I also changed this to false to get rid of the category description.

$show['category'] = false;

But for the life of me, I cannot get the 4 vertical pics to work and I made those 2 modifications twice. They show up horizontally. I'm no coder so no rush Zachariah. I'm glad to see it being tackled. :)

MotoUp
10-22-2005, 02:06 AM
I'm not understanding the readme file. Which file needs the editing? If it's the index.php file, it doesn't have the code you are saying to change.

Zachariah
10-22-2005, 03:24 AM
There is something freaking out w/ Module. I made the hack w/ php file and create your own vs. the installer.

3)
Add Module: PHP FILE
Module Title: Image Gallery
File to Include: gallery_random.php
Identifier: galley_image
Templates Used: adv_portal_gallery_random
Clean File Output: no
Use Module Shell Template: yes
Title Row Colspan: image count (you choose)

4)
Create Template: adv_portal_gallery_random
------------------------------------------
$randomimagebits

Lea Verou
10-22-2005, 03:47 AM
There is something freaking out w/ Module. I made the hack w/ php file and create your own vs. the installer.

3)
Add Module: PHP FILE
Module Title: Image Gallery
File to Include: gallery_random.php
Identifier: galley_image
Templates Used: adv_portal_gallery_random
Clean File Output: no
Use Module Shell Template: yes
Title Row Colspan: image count (you choose)

4)
Create Template: adv_portal_gallery_random
------------------------------------------
$randomimagebits

It works in me... Should I upgrade now or wait till the next upgrade?

Zachariah
10-22-2005, 03:52 AM
It works in me... Should I upgrade now or wait till the next upgrade?

Btw: http://www.e-steki.com/ (looks nice) :)

If your Ok, there is no need to update. There were many haven problems w/ the "installer".

Like:
+r on the php file and can not chmod after install.

Zachariah
10-22-2005, 04:38 AM
I'm not understanding the readme file. Which file needs the editing? If it's the index.php file, it doesn't have the code you are saying to change.

Nope not. forums/index.php

You need to edit the cmps_index.php file that came w/ the CMPS.

Zachariah
10-22-2005, 05:18 AM
i dont know what im doing
ya i get that edit too

I see you got it working. Looken Good. :D

klaush
10-22-2005, 11:18 AM
Hello Guys,

canĀ“t get this to work.

The windows appears, but no image at all! The gallery is in the folder gallery in the root; vbulletin in the folder vbulletin in the root. So what could be the reason?

Could anyone please post a step to step installation with a valid module for stupids, so i can work it through?

Thanks for your patient!

pbjunkie
10-22-2005, 12:04 PM
I'm up and running. I added the new gallery_random.php file this morning and made the file edits to display 4 vertical and it worked like a charm.

Zachariah
10-22-2005, 12:05 PM
Hello Guys,

can?t get this to work.

The windows appears, but no image at all! The gallery is in the folder gallery in the root; vbulletin in the folder vbulletin in the root. So what could be the reason?

Could anyone please post a step to step installation with a valid module for stupids, so i can work it through?

Thanks for your patient!

*** How to Install:


1)
Edit your vBadvanced CMPS: (not the forums/index.php)
- cmps_index.php file (you may have a different name)

By default:
$phrasegroups = array();
$specialtemplates = array();

Change to:
$phrasegroups = array('adv_gallery');
$specialtemplates = array('adv_gallery_opt','gallery_c_cache','gallery _ugroups');



2)
modules/gallery_random.php

// 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 = 5;


Added Extra Options
// If you DON'T want these fields to show then value = "0" (zerro)

$showfields['title'] = 0;
$showfields['description'] = 0;
$showfields['rating'] = 0;
$showfields['user'] = 0;
$showfields['dateline'] = 0;
$showfields['views'] = 0;
$showfields['dimensions'] = 0;
$showfields['filesize'] = 0;
$showfields['posts'] = 0;
$showfields['lastpost'] = 0;
$show['category'] = 0;


3)
AdminCP => vBa CMPS => Add Module => [PHP FILE]

Module Title: Image Gallery
Active: yes
Update All Pages: your choice
File to Include: gallery_random.php
Identifier: gallery_image
Templates Used: adv_portal_gallery_random
Clean File Output: no
Use Module Shell Template: yes
Title Row Colspan: image count (you choose a value)
Usergroups: you choose who
[SAVE]


4)
AdminCP => Styles & Templates => Style Manager => Use dropdown on Style => Add New Template

Product: vBulletin
Style: Choose Style
Title: adv_portal_gallery_random
Template: $randomimagebits

Save.


If you did not put the Module on all pages you need to:
AdminCP => vBa CMPS => Edit Pages => Choose the page => Edit => Modules Enabled => add Check to => Image Gallery

Save.

Zachariah
10-22-2005, 12:16 PM
I'm up and running. I added the new gallery_random.php file this morning and made the file edits to display 4 vertical and it worked like a charm.

Woohoo :D

Hey - Top Posters (http://www.gzhq.net/index.php?page=Hacks) (bottem center block) or a simple one of over all. What did ya need ?

MotoUp
10-22-2005, 01:56 PM
Nope not. forums/index.php

You need to edit the cmps_index.php file that came w/ the CMPS.Right, but the code you're saying to replace in the index file doesn't exist in my php file, so I'm not sure where to put it.

Zachariah
10-22-2005, 02:12 PM
Right, but the code you're saying to replace in the index file doesn't exist in my php file, so I'm not sure where to put it.

It's in mine

Here is a snip of whats @ vbadvanced.com :confused:

<?php
// ++================================================ =========================++
// || vBadvanced CMPS v2.0.0 (vB 3.5) - 1245
// || ? 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 08:07, Sat Oct 22nd 2005
// ||
// ++ ================================================== ======================++


// ============================================
// No Further Editing Necessary!
// ============================================

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();



1)
Edit your vBadvanced CMPS: (not the forums/index.php)
- cmps_index.php file (you may have a different name)

By default:
$phrasegroups = array();
$specialtemplates = array();

Change to:
$phrasegroups = array('adv_gallery');
$specialtemplates = array('adv_gallery_opt','gallery_c_cache','gallery _ugroups');



-----
If these values $specialtemplates, $phrasegroups are not in the PHP file just add them.

If they are there just merge the data together.

EX:
$phrasegroups = array('somevalue','someother_value','adv_gallery') ;
$specialtemplates = array('somevalue','someother_value','adv_gallery_o pt','gallery_c_cache','gallery_ugroups');

klaush
10-22-2005, 02:18 PM
*** How to Install:


Thanks for your very fast reply.

I did as decribed, the window/frame is visible on the left but with no image. So i did a fresh install with the same result.

If you would like to take a look: www.nikon-fotografie.de / left site / the last box.

Thanks!

Zachariah
10-22-2005, 04:20 PM
Thanks for your very fast reply.

I did as decribed, the window/frame is visible on the left but with no image. So i did a fresh install with the same result.

If you would like to take a look: www.nikon-fotografie.de / left site / the last box.

Thanks!

Did you create the new template ?

AdminCP => Styles & Templates => Style Manager => Use dropdown on Style => Add New Template

Product: vBulletin
Style: Choose Style
Title: adv_portal_gallery_random
Template: $randomimagebits

The only thing inside the template is the value: $randomimagebits

klaush
10-22-2005, 05:07 PM
Did you create the new template ?

AdminCP => Styles & Templates => Style Manager => Use dropdown on Style => Add New Template

Product: vBulletin
Style: Choose Style
Title: adv_portal_gallery_random
Template: $randomimagebits

The only thing inside the template is the value: $randomimagebits

Yeah, didi it! And the Box is showing, but no picture or thumb.

Bit i have to use this code to show the box:

<tr><td class="alt1" align="center">$randomimagebits</td></tr>

If reduce the template to "$randomimagebits" it shows nothing at all.

Still get crazy!

klaush
10-22-2005, 05:22 PM
Still get crazy!

But i am lucky!

Got it!

I need your PayPal information! :-)

klaush
10-22-2005, 05:54 PM
One question left:

I miss the description of the file in the thumb-window; all options are set to 1?

Any idea?

Zachariah
10-22-2005, 06:34 PM
One question left:

I miss the description of the file in the thumb-window; all options are set to 1?

Any idea?

In "Post 10" is will allow for the images only. I will work on the $showfields soon. :)

I too have no info.
https://vborg.vbsupport.ru/attachment.php?attachmentid=36237

If you use default code and not "post 10" set it to 1 image and all $showfields will work.

DEMO (http://www.gzhq.net/index.php?page=Hacks)

MotoUp
10-22-2005, 06:40 PM
Okay, I got it working...thanks. I edited the gallery_random.php file because I don't want any details to show at all, and they still show.

Zachariah
10-22-2005, 06:42 PM
Okay, I got it working...thanks. I edited the gallery_random.php file because I don't want any details to show at all, and they still show.

WooHoo :D

Click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=98982) for later updates. I have a feeling their may be a few :D

MotoUp
10-22-2005, 06:51 PM
Great module. Your file edit instructions were a bit on the confusing side, but after some digging, I figured it all out. Thanks!

klaush
10-22-2005, 07:36 PM
Yeah! Very good job in deed!

Thanks!!!

moonclamp
10-22-2005, 10:35 PM
Nothing appears at all in mine :(

(I followed the instructions to the letter)

EDIT: I didn't set the image amount :)

Zachariah
10-22-2005, 10:51 PM
Nothing appears at all in mine :(

(I followed the instructions to the letter)

Hit the Java chat here in VB.ORG.

type: /join #help

I'll be there for a bit.

moonclamp
10-22-2005, 10:56 PM
Hit the Java chat here in VB.ORG.

type: /join #help

I'll be there for a bit.

It's cool, I've got it now. My bad.

Oh and thanks :)

Ymeaga1n
10-23-2005, 06:04 AM
Great hack Zachariah!

A recommendation from me would be to rewrite the install instructions, they were a bit hard to understand even for me. EX. have to scroll to very bottom to see the create template instructions. The readme version in the zip file doesn't match the instructions you have posted on the description of your hack here. The "Title Row Colspan" isn't mentioned and it threw me off.

Wonderful hack though, it works flawlessly.

Zachariah
10-23-2005, 07:54 AM
Great hack Zachariah!

A recommendation from me would be to rewrite the install instructions, they were a bit hard to understand even for me. EX. have to scroll to very bottom to see the create template instructions. The readme version in the zip file doesn't match the instructions you have posted on the description of your hack here. The "Title Row Colspan" isn't mentioned and it threw me off.

Wonderful hack though, it works flawlessly.

It was late :D, i'll update

Serenity
10-24-2005, 03:27 PM
great addidtion! thanks for the work :)

I only have one issue with it. after i installed everything i get this error on the cmps page
"Warning: Invalid argument supplied for foreach() in /modules/gallery_random.php on line 83"

on line 83 of that template its
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)

any help is appreciated

MotoUp
10-24-2005, 09:48 PM
So what do we need to do for the update? Do we uninstall, or just update the php files?

PennylessZ28
10-24-2005, 11:18 PM
It works, but there are changes that need to be made if you have intergrated CMPS into your forum home page.

Zachariah
10-25-2005, 12:19 AM
It works, but there are changes that need to be made if you have intergrated CMPS into your forum home page.

share your changes and reasons please. (to help others and me :D )
problem / fixes / ect ..

PennylessZ28
10-25-2005, 01:24 AM
on one of my sites I intergrated vbadvanced into the forumhome page to show the modules on the forumhome.

So I couldn't get it to show up.

But it really was simple.

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('holiday','adv_gallery');


// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'adv_gallery_opt',
'gallery_c_cache',
'gallery_ugroups',
'mailqueue'
);

I did this in the forum index.php

Zachariah
10-25-2005, 02:00 AM
ya I think those edits are made on the vb forumhome ver of this hack.

Serenity
10-25-2005, 12:52 PM
no idea of why im getting that error??

great addidtion! thanks for the work :)

I only have one issue with it. after i installed everything i get this error on the cmps page
"Warning: Invalid argument supplied for foreach() in /modules/gallery_random.php on line 83"

on line 83 of that template its
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)

any help is appreciated

Zachariah
10-25-2005, 12:58 PM
no idea of why im getting that error??
Is this with every usergroup. (login / log out)

patsalko
10-26-2005, 06:48 PM
I followed instructions and still cant get it to show on CMPS portal. What am I doing wrong here

patsalko
10-26-2005, 06:54 PM
I followed instructions and still cant get it to show on CMPS portal. What am I doing wrong here
never mind. I got it... :) THANKS!

phifou
10-26-2005, 08:47 PM
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

foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
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 ?

dug320
10-26-2005, 11:36 PM
I think I followed the instructions. I do not get an image modul and for some reason the gallery link on the navbar /#gallery.

Any ideas?

Zachariah
10-26-2005, 11:37 PM
<a href="https://vborg.vbsupport.ru/chat.php?" target="_blank">https://vborg.vbsupport.ru/chat.php?</a>

/join #help

FleaBag
10-26-2005, 11:46 PM
/me /joins

FleaBag
10-27-2005, 10:23 AM
All modules under the image itself are out of synch [at the bottom of the page]. I'm guessing this is a HTML stuff up, but I followed the instructions to the letter?

EDIT: I got it working lol. The style I use is a child of the default, but has some template mods left over from 3.0.x. It just needed a revert!

Zachariah
10-27-2005, 12:32 PM
All modules under the image itself are out of synch [at the bottom of the page]. I'm guessing this is a HTML stuff up, but I followed the instructions to the letter?

EDIT: I got it working lol. The style I use is a child of the default, but has some template mods left over from 3.0.x. It just needed a revert!

:rolleyes: I have done that like 1000 times. :laugh:

dug320
10-28-2005, 05:39 AM
Based on the instructions, which php?

The initial cmps_index.php or the cmps_index.php that was renamed index.php?

Zachariah
10-28-2005, 12:51 PM
Based on the instructions, which php?

The initial cmps_index.php or the cmps_index.php that was renamed index.php?

You need to edt the cmps_index.php file that came with the CMPS not the default index.php that comes with your forums. What you renamed it to does not matter.

I had in my mind that if I told people to edit the index.php page that they would edit the forums index page.

:rambo:

* Zachariah goes back to his cave.

dug320
10-28-2005, 05:23 PM
OK

Once I have updated the original cmps_index do I have to copy this and rename it index.php?

Zachariah
10-28-2005, 07:08 PM
OK

Once I have updated the original cmps_index do I have to copy this and rename it index.php?

Ya name it to whatever you want.

divided_by_fear
10-29-2005, 05:09 PM
scratch all that is there a way to may this cached? cause i get this when on forum home

Uncached templates: adv_gallery_imagebit (1)

divided_by_fear
10-31-2005, 02:56 AM
bump

PixelFx
10-31-2005, 07:23 AM
nice addon :D

divided_by_fear
10-31-2005, 09:00 AM
would be alot better if they added some kindda cache to it... hopeful they can and they answers back...

Zachariah
10-31-2005, 11:33 AM
scratch all that is there a way to may this cached? cause i get this when on forum home

Uncached templates: adv_gallery_imagebit (1)


It is cached on my forums with out adding to the list of templates used .... weird. :ermm:
On your Module add adv_gallery_imagebit.

AdminCP => vBa CMPS => Add Module => [PHP FILE]

Module Title: Image Gallery
Active: yes
Update All Pages: your choice
File to Include: gallery_random.php
Identifier: gallery_image
Templates Used: adv_portal_gallery_random,adv_gallery_imagebit
Clean File Output: no
Use Module Shell Template: yes
Title Row Colspan: image count (you choose a value)
Usergroups: you choose who

That should work.

divided_by_fear
10-31-2005, 11:39 AM
ahhh yeah i see the problem on the installer you have this

Templates Used: adv_portal_gallery_random

so when i added like you said here

Templates Used: adv_portal_gallery_random,adv_gallery_imagebit

it worked great thank you so much.....

Zachariah
10-31-2005, 11:55 AM
ahhh yeah i see the problem on the installer you have this

Templates Used: adv_portal_gallery_random

so when i added like you said here

Templates Used: adv_portal_gallery_random,adv_gallery_imagebit

it worked great thank you so much.....

Ya it works "cached" without adding adv_gallery_imagebit :eek: on my setup ... hmm.

divided_by_fear
10-31-2005, 12:05 PM
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...

InsaneContender
10-31-2005, 06:08 PM
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?

trueinnovation
10-31-2005, 07:09 PM
Great mod, but I get the same error as phifou and Serenity. Anyone have a solution?

Much appreciated.

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 ?

trueinnovation
10-31-2005, 07:31 PM
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;
}
}
}

trueinnovation
10-31-2005, 07:54 PM
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...

Zachariah
10-31-2005, 08:32 PM
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):

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;
}
}
}

Zachariah
10-31-2005, 08:35 PM
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.

Mijae
11-01-2005, 03:36 PM
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?

phifou
11-02-2005, 03:37 PM
TRUEINNOVATION 's hack runs beautifully. Thanks a lot.

gator777
11-04-2005, 04:04 AM
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:

// 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:

Parse error: parse error, unexpected ',' in /hsphere/local/home/mysite.net/vb3/modules/gallery_random.php on line 6

Thanks again for the wonderful code. :D

Zachariah
11-04-2005, 12:51 PM
Parse error: parse error, unexpected ',' in /hsphere/local/home/mysite.net/vb3/modules/gallery_random.php on line 6


I'll take a look, might of missed something.

my mistake :o ? :tired:

// Useage: $catlimit = '3,5,10,30,70';

needs single quotes if there is more than 1 Cat.

<else>

// Useage: $catlimit = 5;


On a brighter note.
- Adding exclude option.
- perhaps other things
:bunny::

gator777
11-04-2005, 04:08 PM
I'll take a look, might of missed something.

my mistake :o ? :tired:

// Useage: $catlimit = '3,5,10,30,70';

needs single quotes if there is more than 1 Cat.

<else>

// Useage: $catlimit = 5;


On a brighter note.
- Adding exclude option.
- perhaps other things
:bunny::

That fixed it. :)

Thanks again for a wonderful block/code. :)
I also downloaded your "Top Posters" block as well and it works great. :)

good2laugh
11-04-2005, 05:16 PM
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):

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;
}
}
}


Glad I read the whole thread before crying out for help. This works for me, Thank you. Installed.

Zachariah
11-04-2005, 05:55 PM
Glad I read the whole thread before crying out for help. This works for me, Thank you. Installed.

OK, I'll add to the main file ASAP.

dug320
11-04-2005, 07:19 PM
This is a great hack.

It works!

The only problem to date is that I cannot edit the module on any page. It is either on or off throughout.

Zachariah
11-04-2005, 10:33 PM
This is a great hack.

It works!

The only problem to date is that I cannot edit the module on any page. It is either on or off throughout.

Its not that Advanced yet :) - will be soon.

Settings are in: gallery_random.php @ the moment.

jenciso
11-06-2005, 01:56 AM
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;
}
}
}
Thanks! That fixed my problem too!

dug320
11-06-2005, 06:35 AM
Great Hack. Can't wait for more control :rolleyes: :rolleyes:

jenciso
11-06-2005, 03:00 PM
hmmm, I still have one problem.

For unregistered users, the Image Gallery shows up empty, but once I log in it works fine.

I checked my gallery and unregistered users can view thumbnails and previews just fine. I checked my module/gallery permissions and all of them are set correctly.

Any help on this would be appreciated.

Edit:
I did more digging and logged on as another user. Apparently, the thumbnails show up only when I have a user assigned to a user group:

https://vborg.vbsupport.ru/external/2005/11/3.gif

For those who are not assigned to any groups or for unregistered users, no thumbnails show.

Sychev_S
11-06-2005, 05:53 PM
how to change the size of a thumbnail displayed only in the module window?

Zachariah
11-06-2005, 06:33 PM
how to change the size of a thumbnail displayed only in the module window?

This uses the thumbs that the image gallery uses. To change the size of the images, would mean changing the Thumb sizes in the gallery settings.

Zachariah
11-06-2005, 06:35 PM
hmmm, I still have one problem.

For unregistered users, the Image Gallery shows up empty, but once I log in it works fine.

I checked my gallery and unregistered users can view thumbnails and previews just fine. I checked my module/gallery permissions and all of them are set correctly.

Any help on this would be appreciated.

Edit:
I did more digging and logged on as another user. Apparently, the thumbnails show up only when I have a user assigned to a user group:

https://vborg.vbsupport.ru/external/2005/11/3.gif

For those who are not assigned to any groups or for unregistered users, no thumbnails show.

I know this works w/ guests and usergroups. I do not know about access w/ sub-groups. I have not tested.

jenciso
11-06-2005, 08:27 PM
Apparently the $getrand query in gallery_random.php is returning an empty result set because the category exclusion clause ($privatids) has all my categories listed. I set $privcatids to empty for now so that the thumbnails show for everyone.

edit: ignore my explanation. I misread the code

Sanjiyan
11-06-2005, 08:47 PM
nothing is showing up for me? not a image not a block nothing, any ideas?

I have installed it as directed from the first post/text file, nothing shows, not even a empty block. using 3.5.0 and cmps 2.0.0

Zachariah
11-06-2005, 08:56 PM
nothing is showing up for me? not a image not a block nothing, any ideas?

I have installed it as directed from the first post/text file, nothing shows, not even a empty block. using 3.5.0 and cmps 2.0.0

Know this is an add-on for:
~ vBadvanced Gallery

Do you have this installed ?

chrisrixon
11-07-2005, 07:23 PM
I wasn't seeing a thing. A bit of grubbing around and I comented out this:

// Get a list of categories to be EXCLUDED from our query
//if ($privatecatids = fetch_private_categories())
//{
// $privcatids = 'images.catid NOT IN(' . $privatecatids . ') AND ';
//}

Bingo, all working. Any ideas why?

jenciso
11-08-2005, 12:40 AM
I wasn't seeing a thing. A bit of grubbing around and I comented out this:

// Get a list of categories to be EXCLUDED from our query
//if ($privatecatids = fetch_private_categories())
//{
// $privcatids = 'images.catid NOT IN(' . $privatecatids . ') AND ';
//}

Bingo, all working. Any ideas why?
Same exact problem I'm having. $privcatids returns every category and I have which means nothing shows up. I'm still hoping for a fix.

Reeve of shinra
11-08-2005, 02:16 AM
any idea what this error might be:

Warning: main(./includes/class_bbcode.php): failed to open stream: No such file or directory in /modules/gallery_random.php on line 121

Fatal error: main(): Failed opening required './includes/class_bbcode.php' (include_path='.:/usr/local/lib/php') in /home/shinraon/domains/shinraonline.com/public_html/board/modules/gallery_random.php on line 121

Zachariah
11-08-2005, 02:27 AM
failed to open stream: No such file or directory - what VB ver. do you use ?
last I looked 3.5 has that file there.

CVS: $RCSfile: class_bbcode.php,v $ - $Revision: 1.65 $

forumroot / includes / class_bbcode.php

chrisrixon
11-08-2005, 12:13 PM
If I set highest ranked i get

"There seems to have been a problem with the Forum database"

Anyone else get this to work?

Reeve of shinra
11-08-2005, 12:14 PM
D'oh maybe its because I'm using 3.0.x -- I swear when I saw this thread at the vba forums, I thought it was 3.0 series.

Zachariah
11-08-2005, 12:39 PM
D'oh maybe its because I'm using 3.0.x -- I swear when I saw this thread at the vba forums, I thought it was 3.0 series.

3.0x ver.
http://www.vbadvanced.com/forum/showthread.php?t=8303

Zachariah
11-08-2005, 12:45 PM
If I set highest ranked i get

"There seems to have been a problem with the Forum database"

Anyone else get this to work?

Yes it looks like something was forgot. I'll look in on that.

Gana break out a hammer ...... :tired:

chrisrixon
11-08-2005, 01:05 PM
Call me greedy, but I was hoping to put a second module, say 1 for random and one for newest. I duplicated the gallery_random.php (tweaked it for newest images) and made a new module. If I try and have two modules it blows up - all looks wierd.

I take it this is not supported?

Zachariah
11-08-2005, 02:57 PM
Call me greedy, but I was hoping to put a second module, say 1 for random and one for newest. I duplicated the gallery_random.php (tweaked it for newest images) and made a new module. If I try and have two modules it blows up - all looks wierd.

I take it this is not supported?

@ the moment I have 5 PC's I am killing virus / data recover / reformat / reinstall for a client. :tired: - they want it yesterday - they did not backup *duh ?

Give me a few days. I'll start on a complete re-code of this hack. I have had way too many problems w/ the convertion of this hack.

chrisrixon
11-08-2005, 03:18 PM
Hey, Service with a smilie.

Cheers Chris.

Sanjiyan
11-09-2005, 06:29 PM
I tried this with 3.5.1 vb, 2.0.0 (3.5 cmps), and 1.0.1 (gallery) and nothing shows... no matter what I try.

I have it visable for all users, and its active...

chrisrixon
11-09-2005, 06:47 PM
Look for my post "private_categories stopping all images" above.

Deska
11-10-2005, 09:10 AM
I can't make it work also.
Here the errors I got:

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

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

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

Zachariah
11-10-2005, 10:25 AM
I can't make it work also.
Here the errors I got:

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

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

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


You need to make the file edit to the CMPS index file.

Ramsesx
11-11-2005, 01:15 PM
How can I get the images horizontally shown (4-5 images)?
Thank you

Zachariah
11-11-2005, 02:01 PM
Change the number of images:

vBa CMPS => Edit Modules => Image Gallery =>
Module Shell Template Options => Title Row Colspan

This value will change the number of images that show up.

Ramsesx
11-11-2005, 03:47 PM
Thank you, works perfectly.

vprp
11-12-2005, 03:30 AM
I get these error messages:

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

My cmps_index.php looks like:

$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('adv_gallery_opt','gallery_c_cache','gallery _ugroups');

sonicdriven
11-12-2005, 04:30 AM
I get these error messages:

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

My cmps_index.php looks like:

$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('adv_gallery_opt','gallery_c_cache','gallery _ugroups');


exact same error here, i had the line 83 error as well as this but the fix posted earlier took that one away.




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

vprp
11-12-2005, 06:35 AM
Sonic, I had the exact same errors as you. line 83, then the two i posted and line 1134.

Wordplay
11-12-2005, 07:11 AM
is there anyway i can get the module code to work for the regular gallery for vbulletin?

never mind, i'll just try mess with the code a lil.

Zachariah
11-12-2005, 03:53 PM
is there anyway i can get the module code to work for the regular gallery for vbulletin?

never mind, i'll just try mess with the code a lil.

ForumHome.
https://vborg.vbsupport.ru/showthread.php?s=&threadid=96152



@General Public - This hack has a lot of "old" code from the 3.0x convert of about 12 different programers w/ small snipits.

I need to redo the whole thing.

Selrahce
11-13-2005, 06:52 PM
Ugh. I've done 2 fresh installs of this hack and I can't seem to get it to work at all. On my main CMPS index I get the following error:

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

Warning: Division by zero in \includes\functions_gallery.php on line 1134
******************
I didn't touch either of those files.....
The block is there but no image shows [X]

Any ideas?

Mellow
11-21-2005, 12:54 PM
Not sure if it's possible, but I'd like to show just the category and not the 'category' label, I think it would just be cleaner. Any way to do that or is it a major issue since your are using the vbGallery functionality to pull the thumbs?

Thanks,
Joe

Zachariah
11-23-2005, 02:07 PM
Hello new friends and old.

I know there are a few people out there that have some of my hacks installed that use:

VB3.5x
vBGallery (forrmaly known as vBadvanced Gallery v1.0.1)

They are on the drawing board again for a rework.

[vB 3.5.0] Module CMPS: vBA Gallery (https://vborg.vbsupport.ru/showthread.php?s=&threadid=98982) or here (http://www.vbadvanced.com/forum/showthread.php?t=12133)
[vB 3.5.0] vBa Gallery - Forum Home (https://vborg.vbsupport.ru/showthread.php?s=&threadid=96152)

I'll need some beta testers soon.
( I will go to this thread (http://www.photopost.com/forum/showthread.php?t=119649) when I am ready for beta testers.)

Zachariah
11-23-2005, 02:08 PM
Ugh. I've done 2 fresh installs of this hack and I can't seem to get it to work at all. On my main CMPS index I get the following error:

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

Warning: Division by zero in \includes\functions_gallery.php on line 1134
******************
I didn't touch either of those files.....
The block is there but no image shows [X]

Any ideas?

You need to edit the CMPS index file and add the code edits.

one9er
11-26-2005, 08:24 PM
Zachariah, I got it to install but I have a problem with the top of the cmps page before the page loads I get this at the top:

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

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

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

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

The Image gallery loads and all fine.

Any help?

Curt

Zachariah
11-26-2005, 08:29 PM
Zachariah, I got it to install but I have a problem with the top of the cmps page before the page loads I get this at the top:



The Image gallery loads and all fine.

Any help?

Curt

Yes.

https://vborg.vbsupport.ru/showpost.php?p=809464&postcount=86

modules/gallery_random.php

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;
}
}
}

one9er
11-26-2005, 09:13 PM
Yes.

https://vborg.vbsupport.ru/showpost.php?p=809464&postcount=86

modules/gallery_random.php

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;
}
}
}

I changed it now I get a blank page.

Xeonext
11-26-2005, 10:28 PM
This doesn't works for me aswell... get the same error

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

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

I tried your fix... the error gone but does not displays the block.

Zachariah
11-26-2005, 10:40 PM
I plan to look at this hack and the "forumhome" tonight.

http://www.photopost.com/forum/showthread.php?t=119649

- I don't mean to sound like I am giving you a shine job, but give me a little to rip apart this hack and the other. This was made from like 5-6 different people all slammed together.

one9er
11-26-2005, 10:54 PM
I plan to look at this hack and the "forumhome" tonight.

http://www.photopost.com/forum/showthread.php?t=119649

- I don't mean to sound like I am giving you a shine job, but give me a little to rip apart this hack and the other. This was made from like 5-6 different people all slammed together.

Go for it! :up:

I just shut the module off for now,so everythings all right.

Protoman
11-27-2005, 06:20 PM
this is a CMPS module not a gallery hack, no reason for it to be removed from vbulletin.org

redspider
12-20-2005, 06:09 AM
just when I need it lol hope someone make a new one .

Zachariah
12-20-2005, 11:45 AM
just when I need it lol hope someone make a new one .

I am testing out the new Forumhome code to place images there. Once the code is "sound" I'll wrap it into a block again.

redspider
12-20-2005, 02:44 PM
thank you.

Gio
12-27-2005, 12:47 PM
subscribed...and waiting.

Synth
12-28-2005, 10:30 AM
Me want, me want!

klaush
12-28-2005, 11:05 AM
I am testing out the new Forumhome code to place images there. Once the code is "sound" I'll wrap it into a block again.

News from you, my friend?

Thanks! :-)

Zachariah
12-28-2005, 11:54 AM
Ya - I'll pack one together today.

klaush
12-28-2005, 02:08 PM
Ya - I'll pack one together today.

You?re always welcome! :-)

MB Dreamz
12-28-2005, 04:22 PM
Great work! I've got this working on my site as well, but it only shows up for admins. Any idea why? Thanks.

Zachariah
12-28-2005, 04:33 PM
Great work! I've got this working on my site as well, but it only shows up for admins. Any idea why? Thanks.

No.
- the old code was a mess.
- The re-do should be ok.
- Your useing an old Ver of the gallery you may want to update @ photopost.com.

MB Dreamz
12-28-2005, 04:40 PM
I just updated my gallery yesterday so that shouldn't be a problem. I'll wait for the new release. Thank you sir!

Zachariah
12-28-2005, 04:46 PM
Some feedback please:
- I had plans to make this hack like the "forumhome" ver.
* navbar of the gallery "on/off" (could only use if a center or 3/2 span block)

- Settings will all be in the php file vs. AdminCP (like it is now)
* unless an AdminCP option is wanted for quick changes vs. edit the PHP file.

and /or

- options to change sortorder and image count

1 ver would take a little longer
2nd in 20 min or so.

Thoughts ?

Add gas and light on fire ?

divided_by_fear
12-28-2005, 05:21 PM
i personally like the settings in admin cp much easier to edit but your the coder so its truely up to you.... i loved the version before this and still use it just wanted to be able to remove certain parts from random basiclly

Zachariah
12-28-2005, 07:46 PM
@divided_by_fear

Yes Sir, I agree.

- I was looking at the need/want of the public. I want to run admincp setting and full options, but everyone wants, the hack yesterday.

Hey hit me on IM.

divided_by_fear
12-28-2005, 07:51 PM
ok one sec let me get on msn

Zachariah
12-29-2005, 12:09 AM
S-Shot :D
- I still have somethings to work out (delays)
:(

Synth
12-29-2005, 12:25 AM
take your time, we want it done right not quick:)

divided_by_fear
12-29-2005, 12:52 AM
from what i have seen and what he showed me it has many nice features i like it.... yeah excatly take your time no rush rather have a working mod then a mod put out there fast and half the functions not working

SilentNoise
12-30-2005, 01:46 AM
Ok, I've gone through every post in here and on the vBa site... I've fixed the Line 83 error which is good, but I can't find an answer to this one:

I've come across two problems since installing this:
1.) Unregistered people cannot see the module in the CMPS even though I've given everyone the ability to see it.

2.) For those who can see it, it seems to work fine for the most part...... until you click on the random image that being displayed in this module in the main page, then it takes you to what's basicly a blank page with just the regular old forum header and footer with nothing in the main content area.

I'm running vB 3.5.2, vBa CMPS 2.0 and the vBa/PhotoPost Gallery 1.0.1

Anyone have any ideas?

brady_44
12-31-2005, 08:17 AM
When I install I get this error Warning: Invalid argument supplied for foreach() in /modules/gallery_random.php on line 83.When I try to fix it by adding what is mentioned in post #86 I get another error saying Parse error: parse error, unexpected $ in /home/mysite/public_html/forums/modules/gallery_random.php on line 175
Any ideas?

ProjectCamaro
12-31-2005, 04:42 PM
Hack works very well for me, thank you.

Zachariah
01-01-2006, 01:35 AM
Beta Stage
- VPortal block when this is tested OK.
- At the moment I am still using "adv_gallery_imagebit" this ties in the "Number of Columns" with Gallery Options (Browse Category Options).

Change Log (Is in Beta stage)
===========
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.)

gator777
01-01-2006, 02:58 AM
I want to be one of the first to say "Fantastic" hack, and thanks for all your hard work. I installed it on my site and it looks and works great. :D

chrisrixon
01-01-2006, 09:12 AM
Its all installed ok and is almost working :ermm: I like the navbar that's been added for this version. The problem is its only adding pics from one category. I did try playing with the "Exclude Catagories" and "Only Catagories" but couldn't make them work (don't know how to specify it) - they are now blank. The category its found only has one image so maybe that's an issue. Other categories are empty so maybe that's a problem. The category it does show was the last one to be added.

You can see a test page here: http://www.xatquiz.com/?page=test and the old version here: http://www.xatquiz.com/

pauloo
01-01-2006, 09:24 AM
works fine !
Thank you

Zachariah
01-01-2006, 10:21 AM
By default: :nervous:
- this thing should pull from all cats w/ any dropdown setting in the AdminCP setting area.
- If you add numbers with commas in the "include only" / "exclude only" it should change accordingly.

Are your images in custom groups w/ permissions settings?

Its all installed ok and is almost working :ermm: I like the navbar that's been added for this version. The problem is its only adding pics from one category. I did try playing with the "Exclude Catagories" and "Only Catagories" but couldn't make them work (don't know how to specify it) - they are now blank. The category its found only has one image so maybe that's an issue. Other categories are empty so maybe that's a problem. The category it does show was the last one to be added.

You can see a test page here: http://www.xatquiz.com/?page=test and the old version here: http://www.xatquiz.com/

chrisrixon
01-01-2006, 10:45 AM
- this thing should pull from all cats w/ any dropdown setting in the AdminCP setting area.
- If you add numbers with commas in the "include only" / "exclude only" it should change accordingly.
If I exclude 13 (Test Quizzes) I get nothing. I tried setting include to 6 (General knowledge) and get nothing. (nothing = no module at all)

Are your images in custom groups w/ permissions settings?
Don't think so. I think its fairly standard. (It works with the previous hack - see original post for urls). Thanks Chris.

klaush
01-01-2006, 11:05 AM
A happy and healthy New Year, Zach!

Thanks for that!

Zachariah
01-01-2006, 11:40 AM
If I exclude 13 (Test Quizzes) I get nothing. I tried setting include to 6 (General knowledge) and get nothing. (nothing = no module at all)

Don't think so. I think its fairly standard. (It works with the previous hack - see original post for urls). Thanks Chris.

- No clue @ the moment :ermm:
- I have only done 2 installs (1 on a WinNT, 1 on a linux box w/ default install.)

Link (http://www.gzhq.net/index.php?page=Hacks)
- Center
- the one on the left is the old one :D

- shoot me off a link if ya would in PM of a admin test account if ya would.

Zachariah
01-01-2006, 03:46 PM
klaush !!!!!! Whats up man ? :classic:


@ chrisrixon - your good to go.

All looked ok.
The error was fixed when enabled the block show up on your "main page".
When I did that the other page "fixed" it's self (might have to ask Brian @ vbadvanced.com about that - perhaps some type of cache :cross-eyed: )

I disabled it off your main page.

Test page :)
http://www.xatquiz.com/?page=test

chrisrixon
01-01-2006, 04:21 PM
Oh thanks, snag is I did what you said (or thought I did), turned it on on the main page and no joy, still only one thumbnail .... :surprised: If you have a mo can you go back and do whatever magic you did but leave it in a working state so I can see what you did? I have left it turned on on both pages. Thanks Chris. :nervous:

Zachariah
01-01-2006, 08:01 PM
My whoops. :D
- as a guest there is only 1 image
- loged in all the images are there w/o a problem

Did you make the file edits to the cmps_index.php (or whatever its called now) ?


FYI:
Did you know there are some logout issues you also have with your forums?
- "An error occurred while attempting to log you out"
- on a quick vb.com search this is from a problem in the navbar template.

pauloo
01-01-2006, 08:10 PM
All group is active for display the module but only is visible only for admin.
Where is the problem?

Zachariah
01-01-2006, 08:17 PM
All group is active for display the module but only is visible only for admin.
Where is the problem?

- not sure yet this is Beta
I need info if you can
- do you have the build from photopost.com installed or an older one from vbadvanced.com

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

Works Ok (http://www.gzhq.net/index.php?page=Hacks)

pauloo
01-01-2006, 08:31 PM
- not sure yet this is Beta
I need info if you can
- do you have the build from photopost.com installed or an older one from vbadvanced.com

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

Works Ok (http://www.gzhq.net/index.php?page=Hacks)

I have
- vBulletin 3.5.2
- PhotoPost vBGallery v1.0.1 (vB 3.5)
- vBadvanced CMPS v2.0.0 (vB 3.5)

my install from photopost.com.

I have installed this hack in my forum test ( same server ) and is correct but in my site, don't display for membres. I don't understand why because all is the same version.

mudanoman
01-01-2006, 08:34 PM
I have installed this hack in my forum test ( same server ) and is correct but in my site, don't display for membres. I don't understand why because all is the same version.

Same problem. I can see the image module when logged in as admin, but not as guest or registered. Thanks in advance. -Ivan

Zachariah
01-01-2006, 08:36 PM
Ok 1 moment if ya got a sec.
- Ill upload a patch and see if it fixes it

pauloo
01-01-2006, 08:57 PM
Yes, guest or registered don't display

Zachariah
01-01-2006, 09:32 PM
Yes, guest or registered don't display

I'll take a look and get with ya later.
- Ill need some time the power is "in/out" here @ the moment all the rain :tired:

mholtum
01-01-2006, 09:47 PM
Worked like a charm. One thing thou, I would like the images to be listed vertically instead of horizontally. Where would I change that?

mudanoman
01-01-2006, 10:30 PM
I'll take a look and get with ya later.
- Ill need some time the power is "in/out" here @ the moment all the rain :tired:

Zachariah, thanks for looking into it. The rain is pretty crazy here in CA. I am thankful I am living on a small hill. Anyway, Happy New Year! Cheers, Ivan

TheAllusionist
01-02-2006, 02:00 AM
Congratulations, you did what no one else seemed to be able to do, the new version works like a charm. Thank you very much for your great effort, I know the community will really appreciate this :cool:

chrisrixon
01-02-2006, 07:43 AM
- as a guest there is only 1 image
- loged in all the images are there w/o a problem?
Ok, it looks like a common problem?
Did you make the file edits to the cmps_index.php (or whatever its called now) ?.
Here is the tail of index.php:
// ============================================
// No Further Editing Necessary!
// ============================================

//$phrasegroups = array('adv_gallery');
//$globaltemplates = array();
//$actiontemplates = array();
//$specialtemplates = array('adv_gallery_opt','gallery_c_cache','gallery _ugroups');
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');

require_once('./global.php');

print_portal_output($home);

?>

Did you know there are some logout issues you also have with your forums?
- "An error occurred while attempting to log you out"
- on a quick vb.com search this is from a problem in the navbar template.
Eeeeek :surprised: will investigate, thanks Chris.

Zachariah
01-02-2006, 08:20 AM
Congratulations, you did what no one else seemed to be able to do, the new version works like a charm. Thank you very much for your great effort, I know the community will really appreciate this :cool:

Looken good
http://www.3dallusions.com/forums/

:squareeyed:

TheAllusionist
01-02-2006, 04:42 PM
Thanks! Love the quick navigation at the top by the way and I also use your version for forum home, great stuff ;)

chrisrixon
01-02-2006, 05:56 PM
Dear Zachariah,

Could the problem be anything to do wih the structure of the catagories? On my site the catagories are below a parent catagory. On the sites that work there are no parents. Chris.

sydude
01-02-2006, 08:57 PM
Zachariah, I Absolutely LOVE the module. Thank you very much. But... I'm also having the same problem as a few others here - no one other than Admins or Super Moderators are able to see the module. So unregistered users, regular registered users and even Moderators are unable to see it.

Thank you for all that you do.

S

Zachariah
01-02-2006, 09:04 PM
- no one other than Admins or Super Moderators are able to see the module. So unregistered users, regular registered users and even Moderators are unable to see it.


Thanks for the feedback :)

Synth
01-02-2006, 09:26 PM
Zachariah, I Absolutely LOVE the module. Thank you very much. But... I'm also having the same problem as a few others here - no one other than Admins or Super Moderators are able to see the module. So unregistered users, regular registered users and even Moderators are unable to see it.

Thank you for all that you do.

S

Same problem here.
Love the hack and know you'll have it sorted out in no time:)

TheAllusionist
01-02-2006, 09:45 PM
Are you using the latest version of the gallery? I had this problem when I first installed the gallery block in an earlier version, seems like there was a code change to make to get the galleries viewable by regular members, but it may have been permissions somewhere. Anyway the module is working fine on my site, but I have seen your problem before. Sorry I can't remember what the cause/fix was, it might have been something like checking the box for use forum defaults in the usergroup permissions, I just can't remember. Good luck!

sydude
01-03-2006, 12:28 AM
Are you using the latest version of the gallery?Yes, I think I am. I'm using v1.0.1.

Zachariah, any ideas?

Sy

docvader
01-03-2006, 03:05 AM
Any way of making this work with Photopost PHP Pro??

I'm not using the Photopost VbGallery..

MB Dreamz
01-04-2006, 03:25 AM
Same problem here.
Love the hack and know you'll have it sorted out in no time:)

I did this, and it worked. (Find in module file)

//if ($privatecatids = fetch_private_categories())
//{
// $privcatids = 'images.catid NOT IN(' . $privatecatids . ') AND ';
//}

sydude
01-04-2006, 03:34 AM
Thank you very much for the help, but I'm not that verse in php and I'm not sure exactly what to replace, and what to replace it with.. The code you gave doesn't match what I have. Here is what I have in my module that I think you're referring to:

if ($privatecatids = fetch_private_categories())
{
$privatecatids = explode(',', $privatecatids);
}

if ($vba_options['gallery_homeexcats'])
{
$vba_options['gallery_homeexcats'] = explode(',', $vba_options['gallery_homeexcats']);
if(empty($privatecatids))
{
$privatecatids = $vba_options['gallery_homeexcats'];
}
else
{
$privatecatids = array_merge($privatecatids, $vba_options['gallery_homeexcats']);
}
}

if (!empty($privatecatids))
{
$privcatids = 'images.catid NOT IN(' . implode(',', $privatecatids) . ') AND ';
}

Thank you again.

Sy

Reeve of shinra
01-04-2006, 04:50 AM
When I try to use this as a left side module, its breaking up the tables and the layout. How can I get this to list 1 or perhaps 3 images vertically? Do the instructions from this post still work or is something different needed here?

https://vborg.vbsupport.ru/showpost.php?p=801685&postcount=10

Thanks

AshokForums.com
01-04-2006, 05:08 AM
Thank you very much for the help, but I'm not that verse in php and I'm not sure exactly what to replace, and what to replace it with.. The code you gave doesn't match what I have. Here is what I have in my module that I think you're referring to:



Thank you again.

Sy

Just check out the First and last but one line.. just have a close look dude.. just add // before those 4 lines

sydude
01-04-2006, 07:35 AM
Just check out the First and last but one line.. just have a close look dude.. just add // before those 4 linesYES!!! That did it! Thank you very very much. You guys are the best!

Synth
01-04-2006, 10:15 AM
I did this, and it worked. (Find in module file)

//if ($privatecatids = fetch_private_categories())
//{
// $privcatids = 'images.catid NOT IN(' . $privatecatids . ') AND ';
//}


That worked for me too
Thanks!

chrisrixon
01-04-2006, 11:51 AM
That worked for me too
Thanks!
Sorry to be dim but can someone tell me more precisly what to do I'm still confused :ermm:

Synth
01-04-2006, 12:06 PM
Sorry to be dim but can someone tell me more precisly what to do I'm still confused :ermm:

you will need to open the vbgallery_block.php in you ftp program.

Find that code and put the // in front

chrisrixon
01-04-2006, 12:16 PM
My code looks exactly like sydude's, which isn't quite the same as the patch, but I guess I'm missing something :ermm:

Zachariah
01-04-2006, 12:27 PM
Sorry guys and gals. Working lately killing bugs in the gallery.

Something to do w/ $privatecatids ?
- I'll take a look see.

Thanks for the updated info.

sydude
01-04-2006, 12:48 PM
My code looks exactly like sydude's, which isn't quite the same as the patch, but I guess I'm missing something :ermm:Let the newly 'undimmed' enlighten you..!

The white code here is exactly like what you have. The changes to the code are in yellow (or red..):

//if ($privatecatids = fetch_private_categories())
//{
$privatecatids = explode(',', $privatecatids);
}

if ($vba_options['gallery_homeexcats'])
{
$vba_options['gallery_homeexcats'] = explode(',', $vba_options['gallery_homeexcats']);
if(empty($privatecatids))
{
$privatecatids = $vba_options['gallery_homeexcats'];
}
else
{
$privatecatids = array_merge($privatecatids, $vba_options['gallery_homeexcats']);
}
}

if (!empty($privatecatids))
{
//$privcatids = 'images.catid NOT IN(' . implode(',', $privatecatids) . ') AND ';
//}

Zachariah
01-04-2006, 01:24 PM
I can chop the hack up to be more simple and get a working solution.

- navbar on/off
- disable when gallery is off
- image count
- info on images or not
- include a,b,c catagory Only
- exclude x,y,z catagory
- switch(s) to allow usergroup or not

* this would not have gallery permissions
- If you want the images not to show in the hack you would have to "exclude" that catagory and all images in it.

pauloo
01-05-2006, 08:06 AM
Zachariah, what's new for the bug of permissions ?

thank tou

chrisrixon
01-05-2006, 08:14 AM
Let the newly 'undimmed' enlighten you..!
:speechless: That worked - thanks!! Maybe off-topic, but can someone tell me how on earth it can work because it looks like it should break syntax :squareeyed: Closing an open brace without closing the matching close brace should in this case leave an unmatched close brace. ?????

mholtum
01-05-2006, 08:21 AM
Any answer to me question here (https://vborg.vbsupport.ru/showpost.php?p=862111&postcount=179)? I would like to have the module run verticle on either the right or left side. How might I do that?

Zachariah
01-05-2006, 02:48 PM
Zachariah, what's new for the bug of permissions ?

thank tou

Post: 203 @ the moment is what I have planned for a quick fix untill I can trace down whats going on.

- vertically instead of horizontal
- in the planning stage.

At the moment the hack uses the gallery to controle the number of columns in the 'adv_gallery_imagebit'. I plan to change that in the next ver.

keith70
01-06-2006, 08:34 PM
Any chance of making what you have work with Photopost Pro? :nervous:

Zachariah
01-06-2006, 11:00 PM
Any chance of making what you have work with Photopost Pro? :nervous:

Not all of it, but I am working on site wide Block under the navbar.
- I have a beta in the works in the Mods area on photopost.com

Have you seen it ? Once I get all the bugs out of it ill convert to CMPS and Vportal.

crash resistant
01-09-2006, 02:48 AM
I would just like to say that,

Zachariah,

I love you.

scoles15
01-09-2006, 03:32 PM
First, let me make it clear, that this works very well and my users love it. But yesterday, a strange problem was noticed. Certain users are showing only random images from only 1 category. Everyone else working fine. We've can't seem tofind a pattern, except that all those show only one category show the one?????

pauloo
01-09-2006, 08:29 PM
For problem of permissions, see this post: http://www.photopost.com/forum/showpost.php?p=1143881&postcount=20

Now it's ok

Thank you Zachariah ;)

scoles15
01-09-2006, 10:24 PM
Thanks, I think that did it

Zachariah
01-09-2006, 10:34 PM
For problem of permissions, see this post: http://www.photopost.com/forum/showpost.php?p=1143881&postcount=20

Now it's ok

Thank you Zachariah ;)

It's not a total fix in my mind, but will work for now. :sleep:

Dollah
01-10-2006, 07:57 PM
i want this so bad but i keep getting a database error and i am using 3.5.2

Zachariah
01-10-2006, 08:17 PM
i want this so bad but i keep getting a database error and i am using 3.5.2

Are you useing vBGallery not Photopost PRO ?

blkatt
01-17-2006, 04:39 PM
How do I eliminate the space at the bottom of my Gallery module. (using vBulltin 3.5.1; CMPS 2.0 for 3.5, and Gallery 1.01)

In CMPS, I have checked that their should be no horizontal space between modules so that is not the problem.

Is the a line break in the code? If so where and what should I edit?

Thanx.

Zachariah
01-17-2006, 06:36 PM
How do I eliminate the space at the bottom of my Gallery module. (using vBulltin 3.5.1; CMPS 2.0 for 3.5, and Gallery 1.01)

In CMPS, I have checked that their should be no horizontal space between modules so that is not the problem.

Is the a line break in the code? If so where and what should I edit?

Thanx.

Template: adv_portal_vbgallery

</table><br /></if>
<!-- end Gallery Images -->

blkatt
01-17-2006, 07:46 PM
Template: adv_portal_vbgallery

</table><br /></if>
<!-- end Gallery Images -->

Thanks Zachariah.

GrendelKhan{TSU
01-22-2006, 03:02 AM
just downloaded the hack and went to install but......
is it me or is something serious missing from the README?

STEP 2)

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

2)
Edit your vBadvanced CMPS: (not the forums/index.php)
- cmps_index.php file (you may have a different name)

// ============================================
// No Further Editing Necessary!
// ============================================
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-


er...ok? but it says to edit... but edit from what to what?

is that what its supposed to look like after or before we edit?

I'm sure its something obvious I'm missing but....
it seems like a step or piece of instruction is missing there.

GrendelKhan{TSU
01-22-2006, 03:40 AM
ok... took a guess as to the edit (just copied that into where it looked like it might go), but now:

1. doesn't show up at all on CMPS page (on my default custom skin).
Does it call some code from the CMPS default page that I may have changed so that it isn't appearing?

2. doesn't show up at all on CMPS page (on my default skin), but it IS showing up on the FORUMHOME!! next to your gallery on forumhome hack. :/

running:
vbPhotopost Gallery on Forumhome hack
vb3.5.3
Gallery v1.0.1 (vB 3.5)
CMPS v2.0.0 (vB 3.5)

Zachariah
01-22-2006, 08:32 AM
ok... took a guess as to the edit (just copied that into where it looked like it might go), but now:

1. doesn't show up at all on CMPS page (on my default custom skin).
Does it call some code from the CMPS default page that I may have changed so that it isn't appearing?

2. doesn't show up at all on CMPS page (on my default skin), but it IS showing up on the FORUMHOME!! next to your gallery on forumhome hack. :/


running:
vbPhotopost Gallery on Forumhome hack
vb3.5.3
Gallery v1.0.1 (vB 3.5)
CMPS v2.0.0 (vB 3.5)

Not realy sure what you have done.
- Demo (http://www.gzhq.net/index.php?page=Hacks) x2

*** How to Install:
======================

In your Admin Control Panel

1)
Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "product-gallery_cmps.xml"
Allow Overwrite: On
Import

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

2)
Edit your vBadvanced CMPS: (not the forums/index.php)
- cmps_index.php file (you may have a different name)

// ============================================
// No Further Editing Necessary!
// ============================================
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');

Default vBAdvanced CMPS is:

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array()
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

3)
AdminCP => vBa CMPS => Add Module => [PHP FILE]

Module Title: Image Gallery
Active: yes
Update All Pages: your choice
File to Include: vbgallery_block.php
Identifier: gallery_image
Templates Used: adv_portal_vbgallery,adv_gallery_imagebit,adv_port al_vbgallery_nav,adv_portal_vbgallery_newestbits
Clean File Output: no
Use Module Shell Template: no
Usergroups: you choose who
[SAVE]


If you did not put the Module on all pages you need to:
AdminCP => vBa CMPS => Edit Pages => Choose the page => Edit => Modules Enabled => add Check to => Image Gallery

Save

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

4)
Admincp => vBulletin Options => vBGallery - CMPS
Change setting
Save

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

Lea Verou
01-25-2006, 11:48 PM
I just upgraded to vba cmps 2.1 and it gave 4 warnings at the top so I disabled it.
I'll come back later with the exact warnings...

Zachariah
01-26-2006, 01:57 AM
I just upgraded to vba cmps 2.1 and it gave 4 warnings at the top so I disabled it.
I'll come back later with the exact warnings...

Without knowing my guess: Redo file edit to index CMPS file. ? :ninja:

Edit your vBadvanced CMPS: (not the forums/index.php)
- cmps_index.php file (you may have a different name)

// ============================================
// No Further Editing Necessary!
// ============================================
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');

Default vBAdvanced CMPS is:

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array()

Lea Verou
01-26-2006, 05:43 AM
Nope...
You were right, I had forgotten the edit (:o :o :o) but the problem was not solved...
Here are the exact warnings...

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

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

Lea Verou
01-26-2006, 06:00 AM
I found the problem, I had a very old version of the hack :o (shoot me now for acting like a total n00b, I haven't slept at all :nervous: )
I now have another problem... Although I set everything correctly, updated the pages I wanted to include it, adjusted it's settings etc etc etc nothing shows up...
Sorry if this has been asked before but I'm writing exams in a few hours so my time at the moment is extremely limited... I just sat on the pc to drink a coffee... :nervous:

Zachariah
01-26-2006, 02:15 PM
I found the problem, I had a very old version of the hack :o (shoot me now for acting like a total n00b, I haven't slept at all :nervous: )
I now have another problem... Although I set everything correctly, updated the pages I wanted to include it, adjusted it's settings etc etc etc nothing shows up...
Sorry if this has been asked before but I'm writing exams in a few hours so my time at the moment is extremely limited... I just sat on the pc to drink a coffee... :nervous:

http://www.photopost.com/forum/showpost.php?p=1143881&postcount=20

Injektilo
01-27-2006, 04:19 AM
i've checked EVERYTHING (i think) ... and every usergroup is allowed to view images (thumbs and full) but for "not logged in" users the module doesnt show up...any guess?

Zachariah
01-27-2006, 11:33 AM
@Injektilo

try link in post above yours.

TbChampions
01-27-2006, 04:34 PM
I'm getting a double attempt to show this thumbnail block.

Here's my site if you want to see. I've just started its construction, so please excuse the mess. Please note the front page and the forum front page.

http://www.turfclubusa.com/

chrisrixon
01-27-2006, 05:00 PM
Can't see any images (as guest)

TbChampions
01-27-2006, 05:04 PM
Yes, I just noticed that... hadn't looked at it logged out before.

Hence, I have another problem in addition to the first one. ;-)

Zachariah
01-27-2006, 05:18 PM
For now:

- Edit forums/module/vbgallery_block.php
- Remove.

if ($privatecatids = fetch_private_categories())
{
$privatecatids = explode(',', $privatecatids);
}

if ($vba_options['gallery_homeexcats'])
{
$vba_options['gallery_homeexcats'] = explode(',', $vba_options['gallery_homeexcats']);
if(empty($privatecatids))
{
$privatecatids = $vba_options['gallery_homeexcats'];
}
else
{
$privatecatids = array_merge($privatecatids, $vba_options['gallery_homeexcats']);
}
}

if (!empty($privatecatids))
{
$privcatids = 'images.catid NOT IN(' . implode(',', $privatecatids) . ') AND ';
}

TbChampions
01-27-2006, 05:38 PM
You're a genius. Thanks!

Now the photos show for someone not logged in. But do you see how I have another gallery block (header only) in there? It gets even more bizarre as you go to the forum, where the gallery block shows up in double, but with no photos in either. Then if you click on a thread, you'll get a "post reply" button under the gallery block.

I've got a mess! Any help most appreciated.

And thanks to Zacchariah for writing this.

TbChampions
01-27-2006, 10:04 PM
Anyone have any idea what's going on with my forum and front page? I've spent hours here trying to figure it out -- I'm lost.

Zachariah
01-27-2006, 10:26 PM
2 blocks ?
- Edit the gallery Module set Use Module Shell Template: no

I also see you have the block on the Forumhome.
- you will need to make the needed file edits to the forums/index.php also.

BTW: to keep track of updates click Install on the hack. An email is sent out when there is an update.

TbChampions
01-28-2006, 07:27 PM
Thanks so much, Zach. That did the trick -- I'm all good now.

Now, to go add the forum home one!

KevNJ
01-28-2006, 10:06 PM
*clicks install *

Works great thanks.

How can we change the title instead of "Image Gallery" Or "Photopost vbGallery" ?

Also is it possible to change the sizes of the pictures without it effecting the thumbnails in the actually gallery sections ?

Zachariah
01-28-2006, 10:41 PM
*clicks install *

Works great thanks.

How can we change the title instead of "Image Gallery" Or "Photopost vbGallery" ?

Also is it possible to change the sizes of the pictures without it effecting the thumbnails in the actually gallery sections ?

CMPS = > Edit Module
Module Title:

Perhaps later on the image size, but @ the moment it pulls thumbs that the gallery uses.

Trana
01-29-2006, 05:25 AM
I'm confused. There seem to be two versions of this hack, I guess an upgrade was added to the file download, but I can't seem to find the right documentation to answer the following:

How do I change it from 4 images to 1?
How do I disable certain parts of the menu options at the top of the module?

Thanks!

Sychev_S
01-29-2006, 05:14 PM
is there anyway to add a nice white border to these images?

Zachariah
01-29-2006, 06:00 PM
I'm confused. There seem to be two versions of this hack, I guess an upgrade was added to the file download, but I can't seem to find the right documentation to answer the following:

How do I change it from 4 images to 1?
How do I disable certain parts of the menu options at the top of the module?

Thanks!

https://vborg.vbsupport.ru/attachment.php?attachmentid=40227

Admincp => vBOptions =>

Zachariah
01-29-2006, 06:06 PM
is there anyway to add a nice white border to these images?

Untill I redo the hack :
- This will add the same border in your gallery also.

Gallery Homepage (they all use the same template)
- Last images Block
- New Images Block


AdminCP = > Styles & Templates => Style Manager

Edit template: adv_gallery_imagebit

Search:
<img alt="$images[title]" class="tborder" src="$images[url]" />

Replace:
<img alt="$images[title]" src="$images[url]" style="border: 1px solid #FFFFFF" />

#FFFFFF = White

Trana
01-29-2006, 07:02 PM
Ahh CP integration! Progress!

Thanks!

Trana
01-29-2006, 07:09 PM
Hmmm. Last night disabled the module until I figured out how to change the number of photos. Today when I enable it, the module won't even show. I checked the Module is Active and the page has it checked as well. It is also enabled in the CP.

Anything else I should be looking at?

Zachariah
01-29-2006, 09:01 PM
Hmmm. Last night disabled the module until I figured out how to change the number of photos. Today when I enable it, the module won't even show. I checked the Module is Active and the page has it checked as well. It is also enabled in the CP.

Anything else I should be looking at?

https://vborg.vbsupport.ru/showpost.php?p=883869&postcount=233

Trana
01-29-2006, 09:31 PM
I removed that section of the code and the module is still not showing up.

I have the Exclude and Only Category options in the CP blank, is that ok?

Thanks.

Zachariah
01-29-2006, 11:15 PM
I removed that section of the code and the module is still not showing up.

I have the Exclude and Only Category options in the CP blank, is that ok?

Thanks.

Blank is fine.

By default all images / all catagories will be an option in the mix.
- Those settings are to be more selective.

How current is your gallery in updates ?
- What was the last time you downloaded and updated your gallery core files ?

Trana
01-29-2006, 11:22 PM
I just upgraded from VBA 1.x? to VBA Photopost newest release. I also completed the whole 3.5.1, CMPS 2.x upgrade.

My Gallery is running fine. I don't know when the last photo was uploaded though.

Any ideas?

Zachariah
01-30-2006, 12:29 AM
I just upgraded from VBA 1.x? to VBA Photopost newest release. I also completed the whole 3.5.1, CMPS 2.x upgrade.

My Gallery is running fine. I don't know when the last photo was uploaded though.

Any ideas?

You have made the needed file edit to the CMPS homepage?

Step 2
https://vborg.vbsupport.ru/showpost.php?p=879263&postcount=222