View Full Version : Module CMPS: PhotoPost vBGallery
Trana
01-30-2006, 12:39 AM
I think I didn't put in the module identifier. I reinstalled everything and it is working now. Thanks!
clothahump
02-09-2006, 09:41 PM
Is this good for vb 3.5.3 and gallery 1.0.2?
nonamer69
02-12-2006, 09:11 PM
This will work if you want a list on the Sides.
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/>';
does this work with 1.7??? I cannot find the edit in vbgallery_block.php
Zachariah
02-12-2006, 10:14 PM
does this work with 1.7??? I cannot find the edit in vbgallery_block.php
Not yet.
- I am doing a revamp on the template that shows the images.
JBMoney
02-14-2006, 02:49 PM
Not yet.
- I am doing a revamp on the template that shows the images.
Thanks. Looking forward to being able to show more than one vertically.
quanvo81
02-14-2006, 06:15 PM
This Hack doesn't work with vBadvanced CMPS v2.1.0
OndaReal
02-14-2006, 06:42 PM
can somebody please help me, i cannot locate this file.
2)
Edit your vBadvanced CMPS: (not the forums/index.php)
- cmps_index.php file (you may have a different name)
Trana
02-14-2006, 06:56 PM
This Hack doesn't work with vBadvanced CMPS v2.1.0
Yes it does.
Next time, try and provide an error message or condition that would explain why it is not working for you.
Trana
02-14-2006, 06:57 PM
can somebody please help me, i cannot locate this file.
2)
Edit your vBadvanced CMPS: (not the forums/index.php)
- cmps_index.php file (you may have a different name)
Are you running CMPS? Where did you install the cmps_index file? A lot of people rename their index.php file in their root dir, so you might want to check that.
balikci
02-14-2006, 07:01 PM
can somebody please help me, i cannot locate this file.
2)
Edit your vBadvanced CMPS: (not the forums/index.php)
- cmps_index.php file (you may have a different name)
first backup index.php. (which you will edit)
just edit your vbadvanced cmps index.php file, not vbulletin forum index.php file.
like: http://www.yourdomain.com/index.php (if vba cmps file is it)
quanvo81
02-14-2006, 08:40 PM
Yes it does.
Next time, try and provide an error message or condition that would explain why it is not working for you.
It doesn't work . Nothing show up , it was working like a charm for me with Vbadvanced version 2.0.0 , but after I upgrade to Vbadvanced v2.1 today, nothing show up.
Show me how to fix since you say it works for 2.1.0 :surprised:
Therefore I would like to see a link to a website that has Vbadvanced 2.1 work with this Hack.
Trana
02-15-2006, 12:29 AM
It doesn't work . Nothing show up , it was working like a charm for me with Vbadvanced version 2.0.0 , but after I upgrade to Vbadvanced v2.1 today, nothing show up.
Show me how to fix since you say it works for 2.1.0 :surprised:
Therefore I would like to see a link to a website that has Vbadvanced 2.1 work with this Hack.
I have it running on my site, it works fine. I am running 2.1 with 3.5.1.
Have you tried reinstalling it? Are you getting a completely blank screen or is the module itself not showing up.
quanvo81
02-15-2006, 02:20 AM
I have it running on my site, it works fine. I am running 2.1 with 3.5.1.
Have you tried reinstalling it? Are you getting a completely blank screen or is the module itself not showing up.
The module itself not showing up.
After I upgrade my Vbadvanced to version 2.1.0, then I re-edit the cmps_index.php file, then I re-uploaded to the server.
What did you do after you upgrade your Vbadvanced in order for the module to show?
Thanks
Trana
02-15-2006, 03:04 AM
Are you editing the cmps_index file or uploading the new version?
Disable the old module and add a brand new one as per the instructions in this thread.
dug320
02-15-2006, 04:20 AM
Something strange has popped up. Now when anyone but the poster clicks on the image in the image gallery it sends you back to the login prompt. This is usually a perimission issue but I can't seem to find the it. :cross-eyed:
Diggazz
02-15-2006, 06:04 AM
My images have also dissapeared since upgrading
I didnt reinstall yet thought it maybe a path issue and came here first
quanvo81
02-15-2006, 05:23 PM
Are you editing the cmps_index file or uploading the new version?
Disable the old module and add a brand new one as per the instructions in this thread.
It doesn't make any differences. I tried several times already.
Reeve of shinra
02-18-2006, 10:39 PM
It seems to be working for me.
In your cmps index file, try adding this section:
//bh cmps gallery
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');
//eh cmps gallery
above this:
require_once('./includes/vba_cmps_include_template.php');
Reeve of shinra
02-18-2006, 10:54 PM
ugh! anyone know how to stop the url linking to the pics from being duplicated? Mine are showing up as http://www.shinraonline.com/www.shinraonline.com/gallery/showimage.php?i=18&catid=8
quanvo81
02-20-2006, 12:10 AM
It seems to be working for me.
In your cmps index file, try adding this section:
//bh cmps gallery
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');
//eh cmps gallery
above this:
require_once('./includes/vba_cmps_include_template.php');
:classic: :p :up:
Thanks for all your help !
IT WORKS
You know why it doesn't show up, because after upgraded to Vbadvanced v2.1 , I re-edited the cmps_index with the instruction come with this hack, so I put those value like this :
// ============================================
// No Further Editing Necessary!
// ============================================
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');
So that's why it doesn't work , then I follow your instruction to put those value as you said above require_once('./includes/vba_cmps_include_template.php');
So it works.
Many thanks man.
quanvo81
02-20-2006, 12:14 AM
ugh! anyone know how to stop the url linking to the pics from being duplicated? Mine are showing up as http://www.shinraonline.com/www.shinraonline.com/gallery/showimage.php?i=18&catid=8
I hope I know the answer because I am not a coder, sorry man, I want to help you back but it's seem out of my abilities :disappointed:
Picolet
02-23-2006, 02:52 PM
seems to be broken with photopost vbgallery 1.02 and vbulletin 3.54
Any help appreciated my index page shows errors:
Warning: Invalid argument supplied for foreach() in /modules/gallery_random.php on line 49
Warning: array_keys(): The first argument should be an array in /includes/functions_gallery.php on line 430
Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 430
Warning: Division by zero in /includes/functions_gallery.php on line 1137
Lord Brar
02-23-2006, 03:02 PM
It doesn't work . Nothing show up , it was working like a charm for me with Vbadvanced version 2.0.0 , but after I upgrade to Vbadvanced v2.1 today, nothing show up.
Show me how to fix since you say it works for 2.1.0 :surprised:
Therefore I would like to see a link to a website that has Vbadvanced 2.1 work with this Hack.
Yes, nothing is showing up. No error no nothing. I really wish that this hack is updated soon cos this is the most important hack I require on my site.
Zachariah
02-23-2006, 07:43 PM
I hope I know the answer because I am not a coder, sorry man, I want to help you back but it's seem out of my abilities :disappointed:
Somewere in your AdminCP - Forums or Gallery settings the URL is www.domain.com.
Change to:
- http://www.domain.com
seems to be broken with photopost vbgallery 1.02 and vbulletin 3.54
Any help appreciated my index page shows errors:
Warning: Invalid argument supplied for foreach() in /modules/gallery_random.php on line 49
Warning: array_keys(): The first argument should be an array in /includes/functions_gallery.php on line 430
Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 430
Warning: Division by zero in /includes/functions_gallery.php on line 1137
Add file edits again to CMPS file.
Yes, nothing is showing up. No error no nothing. I really wish that this hack is updated soon cos this is the most important hack I require on my site.
Soon ya, I have been working on the gallery and its Bugs. :tired:
TomasDR
02-24-2006, 04:01 PM
I have read this entire thread and I am still having trouble with...
vBadvanced CMPS v2.1.0 & VBulletin 3.5.4
I keep getting the following error no matter if the module is active or not.
There seems to have been a problem with the In Search of Chicas database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
This is my cmps_index.php file.
<?php
// ++================================================ =========================++
// || vBadvanced CMPS v2.1.0 (vB 3.5) - 27835
// || ? 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 16:31, Fri Feb 17th 2006
// ||
// ++ ================================================== ======================++
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================
$forumpath = '/home/virtual/site1/fst/var/subdomain/news/html/forum';
// ============================================
// No Further Editing Necessary!
// ============================================
if (!is_dir($forumpath))
{
echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
exit;
}
chdir($forumpath);
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');
require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');
print_portal_output($home);
?>
Zachariah
02-24-2006, 05:12 PM
I have read this entire thread and I am still having trouble with...
vBadvanced CMPS v2.1.0 & VBulletin 3.5.4
I keep getting the following error no matter if the module is active or not.
- Do you have Photopost vBGallery 1.0.2 installed ?
mikeclarke
02-25-2006, 08:34 AM
Why would it only show when I'm logged in? We really need guest to see it.
Thanks in advance.
Zachariah
02-25-2006, 01:13 PM
Why would it only show when I'm logged in? We really need guest to see it.
Thanks in advance.
You may have an old ver.
- Current one online should be fine.
bulbasnore
02-25-2006, 06:53 PM
Very nice, except that the images appear ABOVE the title.
any suggestions?
Zachariah
02-25-2006, 09:07 PM
Very nice, except that the images appear ABOVE the title.
any suggestions?
Cool :bunny:
- I seen this before and I do not recall what it was. :rolleyes:
Off hand I would say:
- If an upgrade of an old mod (revert adv_portal_vbgallery templates)
- In the Edit Modules take a look @ "Use Module Shell Template" - toggle the setting
threat
02-26-2006, 01:01 PM
I cant find the adv_portal_gallery_random in my templates! Was I suppose to create one?
Zachariah
02-26-2006, 01:14 PM
I cant find the adv_portal_gallery_random in my templates! Was I suppose to create one?
You have an old ver. with some problems there have been a lot of changes since then.
Try the new one. :) on the 1st post.
threat
02-26-2006, 01:27 PM
I just hit the install button to download it, was that the new version? I just added this 5 min ago.
My only problem is The pictures show up but it throws my homepage way off. And I cant find the gallery random php, or the code that goes in it
Ramsesx
02-28-2006, 05:15 AM
Upgraded to the newest version. Good work Zachariah, thanks. :)
Only one problem, it's only visible for admin but I give every group the right to see this module in the module settings.
CMPS 2.1 vbgallery 1.0.2 vb 3.5.0
TomasDR
02-28-2006, 12:06 PM
- Do you have Photopost vBGallery 1.0.2 installed ?
I am very new to vBulletin (and very happy) but in this last case, very stupid. Sorry.
Zachariah
02-28-2006, 12:12 PM
I am very new to vBulletin (and very happy) but in this last case, very stupid. Sorry.
Never Stupid :) , just not pluged in to the matrix yet. Understanding is later. :squareeyed:
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.
Zachariah
02-28-2006, 01:13 PM
I just hit the install button to download it, was that the new version? I just added this 5 min ago.
My only problem is The pictures show up but it throws my homepage way off. And I cant find the gallery random php, or the code that goes in it
I just re looked @ your post.
Are you trying to make many images span down vs. across the page ?
- https://vborg.vbsupport.ru/showpost.php?p=801685&postcount=10
If so this is old code that was redesigned and I plan to add a next ver. :nervous:
At the moment they can only go across. (I'll see about a snip of code to hold ya over till the update)
QueenBee
02-28-2006, 06:03 PM
i dont understand part 2 of the instructions. i dont see a file to edit named cmps_index.php. can someone help please
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');
momlwt
03-01-2006, 01:28 AM
I just tried to install this and got this error.
Warning: main(./includes/functions_gallery.php): failed to open stream: No such file or directory in /modules/vbgallery_block.php on line 17
Fatal error: main(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bitachon/public_html/forums/modules/vbgallery_block.php on line 17
Any ideas???
I looked for the file /includes/functions_galery.php and it is not there. Not quite sure why.
QueenBee
03-01-2006, 03:33 AM
i dont understand part 2 of the instructions. i dont see a file to edit named cmps_index.php. can someone help please
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');
im still not understanding what edits im supposed to make. thanks in advance. i cant wait to add this:)
Zachariah
03-01-2006, 12:14 PM
im still not understanding what edits im supposed to make. thanks in advance. i cant wait to add this:)
The vBadvanced CMPS Portal came with a "homepage" of the script.
- cmps_index.php (You may have renamed this to another file name.)
Edit this file:
Find:
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
Replace with:
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');
mrsbuzzy
03-03-2006, 12:57 AM
I just tried to install this and got this error.
Warning: main(./includes/functions_gallery.php): failed to open stream: No such file or directory in /modules/vbgallery_block.php on line 17
Fatal error: main(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bitachon/public_html/forums/modules/vbgallery_block.php on line 17
Any ideas???
I looked for the file /includes/functions_galery.php and it is not there. Not quite sure why.
Anyone able to help with this one?
Zachariah
03-03-2006, 01:21 AM
Anyone able to help with this one?
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 ?
Pearl
03-03-2006, 08:46 PM
Nice work.
dug320
03-05-2006, 03:22 AM
Zachariah nice work.
I need to solve this Permissions problem.
For some reason it is not allowing users other than the poster to click on the image and go to that image in gallery. All users are supposed to be able to access each others pictures. IN Gallery all users can access each others pictures.
A click on the picture sends the user back to the login.
;)
mrsbuzzy
03-07-2006, 12:14 AM
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 ?
We actually have photopost installed and we are trying to use this hack to make the photopost images show on the vbadvanced main page.
Thoughts? I am working on this site for someone else: http://www.bitachon.com
Thanks!
Dawn
Zachariah
03-07-2006, 03:27 AM
We actually have photopost installed and we are trying to use this hack to make the photopost images show on the vbadvanced main page.
Thoughts? I am working on this site for someone else: http://www.bitachon.com
Thanks!
Dawn
This is for vBGallery not PRO gallery.
- Try this: http://www.photopost.com/forum/showthread.php?t=121868
gyankow
03-11-2006, 02:20 AM
@ 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.
Any status on this request, I'd love to extend this module to another part of my site.
Any help would be great.
gyankow
03-11-2006, 02:32 AM
@ 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 conversion of this hack.
Any status on this request, I'd love to extend this module to another part of my site. I would like two modules both showing a different quantity of images and possible different image locations
Any help would be great.
Zachariah
03-11-2006, 08:36 AM
I have found ways to globalize the gallery w/ 1 file edit. :D
- There is a better chance of 2 feeds, but I have not jumped on it yet. :(
- on to do list
I was cought lately in some gallery AdminCP add-ons.
gyankow
03-11-2006, 10:50 AM
I have found ways to globalize the gallery w/ 1 file edit. :D
- There is a better chance of 2 feeds, but I have not jumped on it yet. :(
- on to do list
Any time frame?
Zachariah
03-11-2006, 11:28 AM
No :D
- If the workload is down this weeken I'll work on it.
QueenBee
03-11-2006, 02:42 PM
where can i find the cmps portal? is it free?? thanks
Zachariah
03-11-2006, 02:58 PM
where can i find the cmps portal? is it free?? thanks
http://www.vbadvanced.com/products.php?do=productinfo&p=4
Free yes :)
QueenBee
03-11-2006, 03:02 PM
http://www.vbadvanced.com/products.php?do=productinfo&p=4
Free yes :)
thanks you SO much :* <3
derfelix
03-17-2006, 08:20 AM
HI Zachariah
Works like a charm on my installation... even with a very heavily hacked gallery installation.. thx for that hack!
Just one question.. on Your site.. you have the module running in the center.. AND in the left column you have a random pic with info...
Did you install the module twice???
or is that another hack?
Id love to have an aditional block like that one without loosing my center one and being able to configure it differently.
thx for a reply
Felix
Zachariah
03-17-2006, 12:13 PM
HI Zachariah
Works like a charm on my installation... even with a very heavily hacked gallery installation.. thx for that hack!
Just one question.. on Your site.. you have the module running in the center.. AND in the left column you have a random pic with info...
Did you install the module twice???
or is that another hack?
Id love to have an aditional block like that one without loosing my center one and being able to configure it differently.
thx for a reply
Felix
It's a beta project and very messy @ the moment :D
- I was working on 2 independent blocks w/ settings. @ the moment the one on the side is crude w/ settings in the php file itself vs. easy to change in AdminCP.
I'll get some more time into it. :bunny:
derfelix
03-17-2006, 08:11 PM
Looks nice..
Actually i will be preparing something similar..for a site of mine..
but it should pull "featured-random" pictures.. that meens
users that enroll for special feature.. will have their pics displayed randomly.
___________________
But another question.. I looked at the php code of this module for a few minutes..
there is one part that intrigues me..
there was another hack.. that gave errors when there was a simple & instead of && as in:
if ($gallery_permissions["$usergroupid"]['gallery_perms'] & $value)
if (empty($galleryperms))
{
$bbuserino['usergrouparray'] = fetch_membergroupids_array($bbuserinfo);
if (empty($bbuserinfo['usergrouparray']))
{
$bbuserinfo['usergrouparray'] = array(1);
}
foreach ($bbuserino['usergrouparray'] AS $usergroupid)
{
if (empty($gallery_permissions["$usergroupid"]))
{
$usergroupid = 1;
}
foreach ($gallerypermissionsbit AS $option => $value)
{
if (!$galleryperms["$option"] OR in_array($option, array('moderateimages', 'moderateposts')))
{
$galleryperms["$option"] = 0;
if ($gallery_permissions["$usergroupid"]['gallery_perms'] & $value)
{
$galleryperms["$option"] = 1;
}
}
}
}
}
on the second hand
are you sure there isnt one typo among the $bbuserinfo and $bbuserino?
Luc
Zachariah
03-17-2006, 09:47 PM
are you sure there isnt one typo among the $bbuserinfo and $bbuserino?
Luc
Good eye.
foreach ($bbuserino['usergrouparray'] AS $usergroupid)
:banana:
elsupremo
03-20-2006, 01:32 AM
Just installed, and it works nicely. The only problem for me is that I need it to be able to go down (vertical sidebar) instead of across.
Hoping for that functionality soon...thanks for the great hack!
Zachariah
03-20-2006, 02:19 AM
Just installed, and it works nicely. The only problem for me is that I need it to be able to go down (vertical sidebar) instead of across.
Hoping for that functionality soon...thanks for the great hack!
yes i have it in the works.
derfelix
03-20-2006, 03:48 AM
While were at it
there is one feature i would love to see...
being able to add 2. blocks..
in either.. show the newest pics..
and ( a little lower or anywhere else)
random pics...
or could i do that by changing the productid to (example:pp_vbgallery_block_2) in the xml and installing a second time???
Felix
Zachariah
03-20-2006, 10:45 AM
While were at it
there is one feature i would love to see...
being able to add 2. blocks..
in either.. show the newest pics..
and ( a little lower or anywhere else)
random pics...
or could i do that by changing the productid to (example:pp_vbgallery_block_2) in the xml and installing a second time???
Felix
I have not worked it out yet in my head :D
- Yes I have plans too.
Quarterbore
03-22-2006, 01:49 AM
OK, I have PhotoPost PHP Pro version 5.3 and I am guessing that Photopost IS NOT the same as vBGallery.... Or at least if it is this hack didn't work...
I have a sinking fealing in this...
Zachariah
03-22-2006, 02:13 AM
OK, I have PhotoPost PHP Pro version 5.3 and I am guessing that Photopost IS NOT the same as vBGallery.... Or at least if it is this hack didn't work...
I have a sinking fealing in this...
No Sir.
I need to put in a simple text file but:
http://www.photopost.com/forum/showthread.php?t=121868
Beta: - (needs help) - soon :)
http://www.photopost.com/forum/showthread.php?t=121970
Basscat
03-23-2006, 01:33 AM
<font color="Green">*Basscat Clicks Install</font>
Thanks Zachariah!
mikeclarke
03-23-2006, 03:49 AM
For Photopost not vbGallery try this: http://www.vbadvanced.com/forum/showthread.php?t=13538&highlight=photopost
alex4473
03-24-2006, 05:32 PM
Sweet. Works fine. Thanks.
EricaJoy
03-27-2006, 06:41 PM
heya zachariah...great module, i have it installed and working beautifully here: http://www.realzetas.com
however, it might be nice to include what i've quoted in the readme. right now the readme instructions don't match whats in the cmps_index.php which may cause some confusion. the find/replace business is much more easy to understand.The vBadvanced CMPS Portal came with a "homepage" of the script.
- cmps_index.php (You may have renamed this to another file name.)
Edit this file:
Find:
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
Replace with:
$phrasegroups = array('adv_gallery');
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array('gallery_c_cache','adv_gallery_opt','gallery _ugroups');
prettyboi
03-31-2006, 08:41 PM
Zach. mind explaining to me where I can go to correct the setting of the links? The hack went well but after it's finish and all. Pictures is showing up and running but when I click on it. This is what I get http://www.asianunityforum.com/home/asianuni/public_html/gallery/showimage.php?i=3&catid=2
See, the /home/asianuni/public_html/ isn't suppose to be there! Where do I go to correct that?
kazido
04-18-2006, 01:37 PM
Worked great for me!
Thx, clicked install :) :banana: :banana: :banana:
D|ver
05-02-2006, 02:11 PM
i get a WC3 validation error for this random module if i do not add any additional fields under the image, because the <table> will be closed with </table> without any content
can anybody help me out? :)
TheComputerGuy
05-11-2006, 01:38 PM
I have this on my main index page....but when I add it to my other page it doesn't want to display?
Zachariah
05-12-2006, 04:46 PM
Added:
- functions_gallery_store.php
This method works for PHP4x , 5x. I have tested this and it works.
This will "globalize" the needed $phrasegroup and $specialtemplates with 1 file edit so no other file edits are needed on hacks that need the gallery's:
- $phrasegroups
- $specialtemplates
--------------------------------
* This will add all the needed file edits for gallery add-ons.
* This will work on ALL VB powered pages
* This will work on vBAdvanced CMPS pages
* This will work on vPortal pages and Blocks
* This only needs to be done once
- I will update any hack I create with this method. The file will be with every hack until a standard can be added to the main build.
http://www.photopost.com/forum/showthread.php?t=123315
Adem_GEN?
05-12-2006, 07:17 PM
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]
Not to find
Please detailed
Zachariah
05-12-2006, 07:24 PM
Please detailed
Tested on:
- vBulletin 3.5.2
- PhotoPost vBGallery v1.0.2 (vB 3.5)
- vBadvanced CMPS v2.0.0 (vB 3.5)
3)
AdminCP => vBa CMPS => Add Module => [PHP FILE]
This is an option in the AdminCP menu system from the hack vBadvanced CMPS (http://www.vbadvanced.com/products.php?do=productinfo&p=4).
landry
05-24-2006, 08:06 AM
I installed but can not see the picture...help me please!!!!!!!!!
Thanks,
Zachariah
05-24-2006, 12:16 PM
I installed but can not see the picture...help me please!!!!!!!!!
Thanks,
If you do right click on the image and do properties on the missing image where does it point to ? You may just have an extra slash or wrong path.
Where is you gallery in relation to your forums and root of your site ?
root/forums/gallery
or
root/forums
root/gallery
Zachariah
05-28-2006, 12:33 PM
Change Log
===========
1.8
- Added column span support
This will allow you to set a value for how many images span across the block.
Upgrade:
Upload modules/vbgallery_block.php and import XML product.
pingme
05-28-2006, 05:22 PM
Is it possible to show ONE single full size/mid size random image on CMPS istead of showing thmbnails? Any idea how it ca be achieved?
Zachariah
05-28-2006, 05:32 PM
Is it possible to show ONE single full size/mid size random image on CMPS istead of showing thmbnails? Any idea how it ca be achieved?
That should not be a big deal with a little rework. I'll take a look.
pingme
05-29-2006, 07:54 AM
Thanks! I need this desparately :)
That should not be a big deal with a little rework. I'll take a look.
landry
06-05-2006, 06:35 AM
Hi
This is the path of my forum and 2 image detail.
1. On main forum I can not see my image. (Error1.bmp)
2. When I click on my image then open new windows (Error2.bmp)
Thanks,
If you do right click on the image and do properties on the missing image where does it point to ? You may just have an extra slash or wrong path.
Where is you gallery in relation to your forums and root of your site ?
root/forums/gallery
or
root/forums
root/gallery
mlucek
06-09-2006, 01:02 AM
Schweeeettt !! Worked just fine on VB3.5.4/vbAG 1.0.2/CMPS 2.1
Coupla typos:
Catagories should be spelled Categories on the hack Options page.
Is there a way for the options page to appear under the vBa CMPS settings area ? No biggie, but had to hunt for the hack options
Might also clarify the install instructions :
2) Upload the following files:
functions_gallery_store.php to:
/forums/includes
and vbgallery_block.php
to
/forums/modules
Nice hack !! :up: Clicking INSTALL .....
Zachariah
06-09-2006, 01:35 AM
No biggie, but had to hunt for the hack options
Admincp => vBulletin Options => vBGallery - CMPS
Change setting
Save
mlucek
06-09-2006, 05:29 AM
Might also clarify the install instructions :
2) Upload the following files:
functions_gallery_store.php to:
/forums/includes
and vbgallery_block.php
to
/forums/modules
Oh geeeeeeeezzzzzzz, my bad, never mind, I had extracted the archive without the directory path option, so those file weren't in their correct extracted directories.
2nd time I installed went without a hitch :) :up:
daystorm
06-11-2006, 02:08 AM
I am installing on vb 3.5.4 with photopost PHP Pro 5.3.
When I change the init.php file, my Admin Control Panel in VB freaks and gives me this error.
There seems to have been a problem with the Board database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
I would like to fully install this, do you have any suggestions?
Thank you,
Ella
mikelbeck
06-25-2006, 03:41 PM
I am installing on vb 3.5.4 with photopost PHP Pro 5.3.
When I change the init.php file, my Admin Control Panel in VB freaks and gives me this error.
There seems to have been a problem with the Board database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
I would like to fully install this, do you have any suggestions?
Thank you,
Ella
I've got the same issue. Any solution?
Zachariah
06-25-2006, 04:19 PM
I am installing on vb 3.5.4 with photopost PHP Pro 5.3.
I haven't yet put it in a doanload file, but here is a post with it.
http://www.photopost.com/forum/showpost.php?p=1143495&postcount=4
The link will take you to PhotoPost Pro 5.x hack. This is for PhotoPost vBGallery 1.x
krela
07-04-2006, 09:09 AM
I can't get this to work with vb3.6b3 and the 3.6 version of vbadvanceds cmps.
Am I doing something wrong or is it broken?
DementedMindz
07-26-2006, 12:55 AM
any plans to make this Valid XHTML 1.0 Transitional? cause im gettin a few errors with it..
Zachariah
07-26-2006, 11:50 AM
any plans to make this Valid XHTML 1.0 Transitional? cause im gettin a few errors with it..
yes but it will be after 3.6 ver of the gallery.
DementedMindz
07-26-2006, 06:05 PM
So it will be fixed after the 3.6 gallery? will you fix it for 3.5.4 users? cause i been messin with it and cant seem to find where the end tag for "table" which is not finished is. I had the first one good to go but since updated and lost my work.. :( Do you still have the one before this?
Zachariah
07-27-2006, 02:27 AM
So it will be fixed after the 3.6 gallery? will you fix it for 3.5.4 users? cause i been messin with it and cant seem to find where the end tag for "table" which is not finished is. I had the first one good to go but since updated and lost my work.. :( Do you still have the one before this?
My time @ the moment is deep into fixing hacks to operate on a VB 3.6x platform. When I climb out of the workload, I'll address bugs. It's just a little crazy @ the moment.
There is an option I have fixed to disconect the column span from the gallery column span. This will be added to the CMPS, FORUMHOME, any other hacks w/ images.
I have also had thougts of "photo of the day/week/month" hack.
Recent Comments (http://www.gzhq.net/gallery/) (@ the bottem - other projects - need to add bbcode,smile code)
PixelFx
08-04-2006, 05:31 PM
this hacks works with vb360 / photopost gallery 2.0 beta 1, I got it working lastnight, wasn't much of a change, I'm sure z can clean up code, I just changed the product id from 3.5.4 to 3.6.0 :P uploaded files and did the old route for the cmps index.php for this hack ..
demo: http://www.pixelfx.ca/
been hacking vb360 to death since lastnight, still a few bugs to work out :/
Chicago_VLNU_4s
08-07-2006, 07:43 PM
will this work with the Myspace re-write Pro, found here
https://vborg.vbsupport.ru/showthread.php?t=109094&page=59
angkor408
08-19-2006, 10:52 PM
HI for some reason after I follow this instruction below i got a databse error. Now i can't access my admincp anymore when i type
http://www.khmerclub.org/admincp Is there any file I can edit so I can go back? Thank.
- Edit:
forums/includes/init.php
- Find:
require_once(CWD . '/includes/class_core.php');
- Below Add:
require_once(CWD . '/includes/functions_gallery_store.php');
- Upload this file to /forums/includes
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]
Zachariah
08-19-2006, 11:20 PM
HI for some reason after I follow this instruction below i got a databse error. Now i can't access my admincp anymore when i type
http://www.khmerclub.org/admincp Is there any file I can edit so I can go back? Thank.
MySQL Error : Unknown column 'phrasegroup_adv_gallery
This tells me you do not have vBGallery installed.
All you need to do to workaround a broken plugin is to edit forums/includes/config.php and add this code immediate after the first line saying <?php
define('DISABLE_HOOKS', true);
This will disable hooks and plugins until removed, so you should be back to the default vBulletin code.
You can then Uninstall.
angkor408
08-19-2006, 11:57 PM
Hi, I just open edit my config.php to add the following line but got the same issue.
<?php
define('DISABLE_HOOKS', true);
Now I got this error: Parse error: syntax error, unexpected T_VARIABLE in /hermes/web04/b2126/pow.timmy408/htdocs/forums/includes/config.php on line 27
than I go line 27
------
// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
$config['Database']['dbtype'] = 'mysql';
do I have to edit anything in here?
Zachariah
08-20-2006, 12:37 AM
unexpected T_VARIABLE is usaly a missing ' or "
$config['Database']['dbtype'] = 'mysql';
Is default.
angkor408
08-20-2006, 12:45 AM
is there option I can go back to to undo the plugin for VBGallery?
DementedMindz
08-23-2006, 06:32 PM
yes but it will be after 3.6 ver of the gallery.
any plans to make this Valid XHTML 1.0 Transitional yet?
angkor408
08-23-2006, 10:52 PM
I was able to fixed the problem by copy the orginal INIT.php and overwrite the new one. Than, I was able to access admincp.
dholt
08-26-2006, 01:15 AM
Powered by vBadvanced CMPS v2.2.0 and vBulletin Version 3.6.0 with Powered by: PhotoPost PHP vB3 Enhanced
data base set up
gallery is in its own data base
vBulletin is in its own data base
Root set up:
root/Forums
root/Gallery
Data base error.
I need to fix this so how, thanks in advance
Database Error Database error
The Rus-American Forums database has encountered a problem.
Please try the following:
* Load the page again by clicking the Refresh button in your web browser.
* Open the www.bigdogsurf.com home page, then try to open another page.
* Click the Back button to try another link.
The www.bigdogsurf.com forum technical staff have been notified of the error, though you may contact them if the problem persists.
We apologise for any inconvenience.
How can I fix this
Zachariah
08-26-2006, 01:28 AM
Hello,
This is for Photopost vBGallery not the PRO gallery. Everything you should need is in the photopost/inc_features.php.
Take a look (http://www.photopost.com/forum/showpost.php?p=1143495&postcount=4) @ this. (its a big thread)
Powered by vBadvanced CMPS v2.2.0 and vBulletin Version 3.6.0 with Powered by: PhotoPost PHP vB3 Enhanced
data base set up
gallery is in its own data base
vBulletin is in its own data base
Root set up:
root/Forums
root/Gallery
Data base error.
I need to fix this so how, thanks in advance
Database Error Database error
The Rus-American Forums database has encountered a problem.
Please try the following:
* Load the page again by clicking the Refresh button in your web browser.
* Open the www.bigdogsurf.com home page, then try to open another page.
* Click the Back button to try another link.
The www.bigdogsurf.com forum technical staff have been notified of the error, though you may contact them if the problem persists.
We apologise for any inconvenience.
dholt
08-26-2006, 02:16 AM
Thanks
angkor408
08-26-2006, 06:48 PM
Hi, I tried to install but it never work alway got the SQL database error. Should I follow this instruction.
http://www.photopost.com/forum/showpost.php?p=1143495&postcount=4
I want to show last 5 gallery on my frontpage as a block. Is this right file?
Here what I have:
vbulletin 3.5
photopost VB3
Zachariah
08-26-2006, 07:29 PM
Hi, I tried to install but it never work alway got the SQL database error. Should I follow this instruction.
http://www.photopost.com/forum/showpost.php?p=1143495&postcount=4
I want to show last 5 gallery on my frontpage as a block. Is this right file?
Here what I have:
vbulletin 3.5
photopost VB3
Yes.
It has hardcoded values to allow image count, sort order, and span count.
angkor408
08-26-2006, 07:30 PM
i just follow that instruction now I got this error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /gallery/inc_features.php on line 67
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /gallery/inc_features.php on line 143.
is there a way I can fix this error msg? Angkor
www.khmerclub.org
DementedMindz
08-28-2006, 04:15 AM
Zachariah any plans to make this Valid XHTML 1.0 Transitional yet?
Snake
08-30-2006, 03:57 PM
Thanks for the hack! I'll install it right away... :)
DementedMindz
08-30-2006, 05:37 PM
Zachariah thanks for the fast reply.
Milad
09-04-2006, 01:38 AM
cann't be done without of file modification?
Slave
09-09-2006, 08:48 AM
Any way of getting this to work with 3.6?
I've got all the latest versions of vb, vba and vbg .. and I can't get the module to show on the vba front page ..
Any help?
Milad
09-11-2006, 12:25 AM
I got them working:
vB 3.6 Gold, vBa CMPS 2.2.0 amd PP vBgallery 2.0 beta 1
without editing vB files
only the cmps_index.php
Slave
09-11-2006, 07:07 AM
I got them working:
vB 3.6 Gold, vBa CMPS 2.2.0 amd PP vBgallery 2.0 beta 1
without editing vB files
only the cmps_index.php
So what did you change in cmps_index.php ?
Metal-R-US
09-15-2006, 05:39 AM
I found the solution too, edit cpms_index.php (or whatever you renamed it to):
find:
require_once('./includes/vba_cmps_include_template.php');
add below:
require_once('./includes/functions_gallery_store.php');
KevNJ
09-17-2006, 08:09 PM
*clicks uninstall.... but clicks install on the vb3.6 version *
Zachariah
09-17-2006, 08:20 PM
I found the solution too, edit cpms_index.php (or whatever you renamed it to):
find:
require_once('./includes/vba_cmps_include_template.php');
add below:
require_once('./includes/functions_gallery_store.php');
Correct It will work but:
I myself have images and comments on many php pages in different places in the vBulletin forums. I must edit 10 - 30 or so php pages every time I want to update my forums :( . Make 1 file edit to forums/includes/init.php and no other php file edits are needed on any vBulletin powered page. When an upgrade is needed on the forums I now need to only make 1 file edit on the init.php file for all the hacks to work again. :)
This will add all the needed file edits for gallery add-ons.
This will work on ALL VB powered pages
This will work on vBAdvanced CMPS pages
This will work on vPortal pages and Blocks
This only needs to be done once
imported_infitech
10-24-2006, 08:26 AM
im looking to display one large image as well
techenigma
12-07-2006, 03:32 AM
I get the following error when I tried to install this:
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT imageid, images.title, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username, images.title, images.description, images.dateline ,filesize, originalfilesize ,width, height, originalwidth, originalheight, images.views, images.posts, images.lastpostdateline, images.lastpostuserid, images.lastpostusername, votenum, votetotal
FROM adv_gallery_images AS images
WHERE valid = 1
AND images.catid IN (2)
ORDER BY RAND()
LIMIT 4;
MySQL Error : Table '***********.adv_gallery_images' doesn't exist
Error Number : 1146
Date : Thursday, December 7th 2006 @ 12:30:42 AM
Script : http://********/index2.php
Referrer :
IP Address : ***********
Username : ***********
Classname : vb_database
what on earth is causing that, the forums work, and my gallery works just the CMPS shows up as a big database error screen.
Zachariah
12-07-2006, 11:59 AM
I get the following error when I tried to install this:
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT imageid, images.title, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username, images.title, images.description, images.dateline ,filesize, originalfilesize ,width, height, originalwidth, originalheight, images.views, images.posts, images.lastpostdateline, images.lastpostuserid, images.lastpostusername, votenum, votetotal
FROM adv_gallery_images AS images
WHERE valid = 1
AND images.catid IN (2)
ORDER BY RAND()
LIMIT 4;
MySQL Error : Table '***********.adv_gallery_images' doesn't exist
Error Number : 1146
Date : Thursday, December 7th 2006 @ 12:30:42 AM
Script : http://********/index2.php
Referrer :
IP Address : ***********
Username : ***********
Classname : vb_database
what on earth is causing that, the forums work, and my gallery works just the CMPS shows up as a big database error screen.
I am working on something new for this hack. The tables have changed names.
EX: Ver. 1.0, 1.0.1, 1.0.2, 1.0.3, 2.0B1/B2
FROM " . TABLE_PREFIX . "adv_gallery_images
v 2.0 +, v1.1+
FROM " . TABLE_PREFIX . "ppgal_images
techenigma
12-07-2006, 04:22 PM
so what do I have to change to make this work?
so what do I have to change to make this work?
Try going into the php (/modules/vbgallery_block.php) and searching for:
FROM " . TABLE_PREFIX . "adv_gallery_images
Replace with
FROM " . TABLE_PREFIX . "ppgal_images
That's all I did and the module works nicely, you'll have to really dig into it to repair the templates for the most current vb and gallery though.
Jesakos
03-01-2007, 08:35 PM
i have this error
Warning: main(./includes/functions_gallery.php) [function.main]: failed to open stream: No such file or directory in /modules/vbgallery_block.php on line 17
Fatal error: main() [function.require]: Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gwgrirc/public_html/forum/modules/vbgallery_block.php on line 17
anyone know? :confused:
i use 3.6.5v
Jesakos
03-07-2007, 01:17 PM
anyone?
Gayble
05-22-2007, 09:06 PM
i get this error:
XML Error: not well-formed (invalid token) at Line 1
Some one help me?
triff
12-08-2007, 07:08 PM
Great mod and works perfectly!
Just one question: Is there anyway to stop the thumbnails linking to the gally? Just showing the thumbnails but no links?
SGL.
mortydot
07-03-2009, 08:59 PM
I get this error after installation (following the txt instructions)
Warning: unserialize() expects parameter 1 to be string, array given in [path]/modules/vbgallery_block.php on line 20
Warning: unserialize() expects parameter 1 to be string, array given in [path]/modules/vbgallery_block.php on line 21
Warning: unserialize() expects parameter 1 to be string, array given in [path]/modules/vbgallery_block.php on line 22
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/modules/vbgallery_block.php on line 26
I get this error after installation (following the txt instructions)
Warning: unserialize() expects parameter 1 to be string, array given in [path]/modules/vbgallery_block.php on line 20
Warning: unserialize() expects parameter 1 to be string, array given in [path]/modules/vbgallery_block.php on line 21
Warning: unserialize() expects parameter 1 to be string, array given in [path]/modules/vbgallery_block.php on line 22
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/modules/vbgallery_block.php on line 26
I got the same exact Error :cool:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.