PDA

View Full Version : PhotoPost vBGallery - Forum Home


Pages : 1 [2]

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

WhiteOx2
01-03-2006, 05:58 AM
Thankyou very much for that Zachariah. :)

GrendelKhan{TSU
01-03-2006, 06:58 AM
yikes!
more bugs:

---Highest rated gives DATABASE ERROR!!! YIKES!!! o_0
---Most Comments --- give DIFFERENT listing for admin and registered users. :/
---Random: seems to work fine.
---Newest: as stated above.... doesn't work for registered users. works for admin.


any word on these bugs?

Zachariah
01-04-2006, 01:26 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 Only
- 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.

thedvs
01-04-2006, 09:20 PM
worked fine in 3.5.2

and works fine in 3.5.3 :)

swa
01-05-2006, 04:16 AM
I'm having problem with guest unable to view the images. Tried changing the permission, but still no worky

loonytune15
01-05-2006, 04:41 AM
How do I change where it shows up in the forumhome?

I want it to show under my welcome panel and shoutbox but above where my forums start. How do i edit the plugin to allow this?

Nice hack btw :D

swa
01-05-2006, 05:20 AM
try this

To make it a hackless install (no template edits) this places a template on an "anchor" within the FORUMHOME template.

$search_text = '$navbar';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_vbgallery') ,$vbulletin->templatecache['FORUMHOME']);


This says SEARCH for $navbar in template FORUMHOME and place template "forumhome_vbgallery" after.

Edit Plugin: Forumhome: Gallery Main
Find:
$search_text = '$navbar';

Change $navbar to where you wish to place the "BLOCK" of images.

<!-- what's going on box -->
- this will place the block above the what's going on box.

<!-- end what's going on box -->
- this will place the block below the what's going on box.

<body>
- this will place it above the header


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

If you want to edit the forumhome template and place the block where you want vs. use an anchor:

Replace:
$search_text = '$navbar';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_vbgallery') ,$vbulletin->templatecache['FORUMHOME']);


with

eval('$vbgallery = "' . fetch_template('forumhome_vbgallery') . '";');

Edit FORUMHOME: Place in location of choice.
$vbgallery

swa
01-05-2006, 05:41 AM
If your having problem with Unregistered users not being able to view the gallery try changing "category permission" to "use custom permissions"

jarod1981?
01-05-2006, 11:39 PM
Hi all

I have installed Photopost Gallery 1.0.1 for Vbulltin 3.5.2 and it's work fine :rolleyes:

When I install the Hack for the Forum Home, I have a little problem...because I dont' see the images on my forum but I see as here: Link (http://www.p2psin.it/forum/index.php)

How Can I resolve this little problem?
The Gallery work, but i would see the images on my forum home :surprised:

Very Thanks

loonytune15
01-06-2006, 01:52 AM
cool worked great thanks. and installed ;)

Zachariah
01-09-2006, 02:31 AM
i've done it and it's below the forums
but how can I put it inside the "what's going on"
I'd really like that!

Should be an opton in the next update:

Edit plugin: Forumhome: Gallery Cache Templates

From:
if (THIS_SCRIPT == 'index'){
$globaltemplates = array_merge($globaltemplates, array('adv_gallery_imagebit','forumhome_vbgallery' ,'forumhome_vbgallery_newestbits','forumhome_vbgal lery_nav',));
}
To:
if (THIS_SCRIPT == 'index'){
$globaltemplates = array_merge($globaltemplates, array('adv_gallery_imagebit','forumhome_vbgallery' ,'forumhome_vbgallery_newestbits','forumhome_vbgal lery_nav','forumhome_vbgallery_who',));
}
Edit plugin: Forumhome: Gallery Main

Change:
$search_text = '$navbar';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_vbgallery') ,$vbulletin->templatecache['FORUMHOME']);

To:
$search_text = '<!-- end logged-in users -->';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_vbgallery_w ho'),$vbulletin->templatecache['FORUMHOME']);

Make template: forumhome_vbgallery_who
<if condition="$gal_imagebits">
<tbody>
<tr>
<td class="thead" width="100%" colspan="6">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gal')"><img id="collapseimg_forumhome_gal" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_gal].gif" alt="" border="0" /></a>
<div class="smallfont"><b><a href="$vba_options[gallery_url]">$vba_options[gallery_title]</a></b></div>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_gal" style="$vbcollapse[collapseobj_forumhome_gal]">
<tr>
<td rowspan="3" class="alt2" align="center"><img src="$stylevar[imgdir_misc]/gallery.gif" alt="" /></td>
<td valign="top" align="left" class="alt1">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%">
<if condition="$vboptions[vbgnavbar] == '1'">
<td class="alt2" style="padding-top: 0; padding-bottom: 0" colspan="$vboptions[vbglimit]">$gallerynav</td>
</if>
<tr>$gal_imagebits</tr>
</table>
</td>
</tr>
</tbody>
</if>
Upload image: $stylevar[imgdir_misc]/gallery.gif
- images/misc folder of each style

soulface
01-11-2006, 10:32 AM
Don't know why.. but its not working on my forum (vb3.5.3 with photopost vbgallery 1.0.1). there is old hack for vBa Gallery which is still working even i updated to photopost vbgallery, but this hack not working :/

Zachariah
01-11-2006, 12:59 PM
Don't know why.. but its not working on my forum (vb3.5.3 with photopost vbgallery 1.0.1). there is old hack for vBa Gallery which is still working even i updated to photopost vbgallery, but this hack not working :/

For now Try:

Hook Location : forumhome_complete
- Edit: Forumhome: Gallery Main

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

boske
01-12-2006, 12:10 PM
For some reason guest's still cannot view the gallery.

I have followed all of the instructions on setting permission, I have set them thousands of times, I have even set the guests to have admin permission, but it still won't show up.

Anyone know what I'm doing wrong? (attached)

soulface
01-12-2006, 01:16 PM
For now Try:

Hook Location : forumhome_complete
- Edit: Forumhome: Gallery Main

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

In Hook Location : forumhome_complete
- Edit: Forumhome: Gallery Main, i've found bellow code, not those above. but i removed bellow codes, still same. not working :S

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

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

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

boske
01-13-2006, 02:44 AM
^^^ that does it

GrendelKhan{TSU
01-13-2006, 09:50 AM
any word on these bugs?

when I choose "Newest" for image order in admincp:
.... it doesn't work for registered users (doesn't show newest...just some old ones). It only shows newest images when logged in as admin.

lazytown
01-14-2006, 05:57 AM
Anyone who has this installed -- do you get a huge error on your forum home if you set it to show the top rated images? The only options that appears to work properly for all users is random.

-vissa

Masiello
01-14-2006, 08:06 AM
Hello, I'm using vba and vbulletin, this is my structure:

http://www.lottosqueeze.org (vba index)
http://www.lottosqueeze.org/forum (forum home)

The version of my board is vb 3.5.3

I have follow this steps:

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

In your Admin Control Panel

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



2)
// *Note: If you are doing an upgrade skip step "b"
// - it should already be done.


First, open your forum/index.php file and find:

---------------------------------------------------
a)

Find:

$phrasegroups = array('holiday');

Replace with:

$phrasegroups = array('holiday','adv_gallery');
---------------------------------------------------
b)


Find

'mailqueue'

---------------------------------------------------

Replace with:

'mailqueue',
'gallery_c_cache',
'adv_gallery_opt',
'gallery_ugroups'

3)
Admincp => vBulletin Options => vBGallery - Forumhome
Change setting
Save

And all is done, If i try to open my forum home, I showing this page because dont work db comunication:

http://www.lottosqueeze.org/garbage/snap.gif

Why that? I like that Hack but how I fix this issue to works fine?

Thanks in advance and Thanks for sharing this hack.

lifesourcerec
01-14-2006, 04:18 PM
Hello, I'm using vba and vbulletin, this is my structure:

http://www.lottosqueeze.org (vba index)
http://www.lottosqueeze.org/forum (forum home)

The version of my board is vb 3.5.3

I have follow this steps:

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

In your Admin Control Panel

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



2)
// *Note: If you are doing an upgrade skip step "b"
// - it should already be done.


First, open your forum/index.php file and find:

---------------------------------------------------
a)

Find:

$phrasegroups = array('holiday');

Replace with:

$phrasegroups = array('holiday','adv_gallery');
---------------------------------------------------
b)


Find

'mailqueue'

---------------------------------------------------

Replace with:

'mailqueue',
'gallery_c_cache',
'adv_gallery_opt',
'gallery_ugroups'

3)
Admincp => vBulletin Options => vBGallery - Forumhome
Change setting
Save

And all is done, If i try to open my forum home, I showing this page because dont work db comunication:

http://www.lottosqueeze.org/garbage/snap.gif

Why that? I like that Hack but how I fix this issue to works fine?

Thanks in advance and Thanks for sharing this hack.

I kept having the same problem which is why I uninstalled it.

italks
01-17-2006, 04:16 AM
from where all the guys here gets PhotoPost vBGallery v1.0.1 (vB 3.5).

I purchased a license over there and i got Photopost Pro version 5.2.1.And when i tried to use this hack i get errors.Database errors.The index page was not working.

Zachariah
01-17-2006, 01:13 PM
PhotoPost vBGallery v1.0.1 (vB 3.5)
- Is what this hack is for.

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

Photopost Pro version 5.2.1
- This gallery has a different hack.

Try this:
1) https://vborg.vbsupport.ru/showpost.php?p=852809&postcount=225

I do have a new beta hack for PRO that I am working on.

AdminCP settings
* Hack Active - yes/no
* Block Title - fill in blank
* File Path - fill in blank
* Image Order - newest, random, most viewed, top rated, most comments
* Image Count - enter value
* Number of Columns - enter value
* Exclude Catagories - enter value(s)
* Only Catagories - enter value(s)

2) http://www.photopost.com/forum/showthread.php?t=121970

Sean James
01-18-2006, 11:45 AM
im having troubles with extra tables been shown on the forumhome page.

http://www.bluepearl-design.com/forums/

Thing is i only have this problem when i have the "forum_stats_in_header_template" hack installed and enabled. If i disable this hack the gallery tables go back to normal.

I am using these settings:
vba gallery
Number of Columns
The number of columns to display in a single row before splitting down to the next one. = 3

vBulletin
Image Count
How many images would you like to show ? = 3

Any ideas?

Zachariah
01-18-2006, 07:56 PM
im having troubles with extra tables been shown on the forumhome page.

http://www.bluepearl-design.com/forums/

Thing is i only have this problem when i have the "forum_stats_in_header_template" hack installed and enabled. If i disable this hack the gallery tables go back to normal.

I am using these settings:
vba gallery
Number of Columns
The number of columns to display in a single row before splitting down to the next one. = 3

vBulletin
Image Count
How many images would you like to show ? = 3

Any ideas?

Do me a favor and test the Beta 2 I uploaded a day ago or so.
http://www.photopost.com/forum/showthread.php?t=121534

urcracer
01-18-2006, 09:26 PM
I get an error installing this on my vbulletin 3.5.3. I followed directions in the readme.
This is what I get from the forum home:

"There seems to have been a problem with the "----- ---" Forums database."

Any help would be appreciated.

Zachariah
01-18-2006, 09:48 PM
Change Log
===========
1.7 Beta 2
- Fixed usergroups not able to see the hack
- Fixed sort order problems

trackpads
01-18-2006, 09:52 PM
Excellent work Zach!!

Zachariah
01-18-2006, 10:07 PM
Excellent work Zach!!

Thanks Sir, did you get a load of the CMPS block ?
- Maken VPortal blocks soon (after I get the gallery ready for an update :bunny: :eek: )
- If ya got some spare time hop in Mod area over @ the roost

trackpads
01-18-2006, 10:19 PM
Thanks Sir, did you get a load of the CMPS block ?
- Maken VPortal blocks soon (after I get the gallery ready for an update :bunny: :eek: )
- If ya got some spare time hop in Mod area over @ the roost

Not yet, I have been swamped at work and on my masters. Bombd a class so this semester I have to spend more time on it.

I have been over to the site a few times but too busy to really look farther than the mods.

Your hacks are looking good and I am gonna test that mass edit one as well. Great work!!

ProjectCamaro
01-19-2006, 12:38 AM
Just upgraded, still love it but now it's even better!!

PennylessZ28
01-19-2006, 01:47 AM
Awesome work Zach, you've left nothing for me to give you a hard time about.

Zachariah
01-19-2006, 02:46 AM
Awesome work Zach, you've left nothing for me to give you a hard time about.

:ninja: I chop bugs w/ my kung-fu fighting.

:laugh: :paranoid: :sleep:

I think that diet-coke is kicking in for some moonlight oil burning.

lazytown
01-19-2006, 05:24 AM
Appears to work fine for what I've tested!

thanks -vissa

BaconDelight
01-21-2006, 12:48 AM
I installed the plugin, made the 2 index.php edits, and got a database error. Any help?

Zachariah
01-21-2006, 01:43 AM
I installed the plugin, made the 2 index.php edits, and got a database error. Any help?

I took a look @ your site and did not see the gallery installed.
- This is a hack to pull images from the gallery, not the gallery itself.

If you do have the gallery installed and I missed it, what was the error ?

BaconDelight
01-21-2006, 03:40 AM
I took a look @ your site and did not see the gallery installed.
- This is a hack to pull images from the gallery, not the gallery itself.

If you do have the gallery installed and I missed it, what was the error ?Ah. Well, I was trying this on a test board, so you wouldn't see anything...but that being said, you're right I don't have the gallery installed. Didn't realize it was a separate thing. I'm fully up to speed now, so, umm, move along nothing to see here. ;)

GrendelKhan{TSU
01-22-2006, 02:02 AM
when I choose "Newest" for image order in admincp:
.... it doesn't work for registered users (doesn't show newest...just some old ones). It only shows newest images when logged in as admin.


hello zach, great hack...

but I've posted this bug several times and haven't gotten a respose. Any chance that you take a look at it?

BUG:
(vb 3.5.3 + latest version of this hack.)

When image order set to "Newest"...

REGISTERED USERS cannot see any new images posted
(only works for ADMIN).

oldengine
01-23-2006, 12:36 AM
Running vBulletin 3.5.3 and latest vBgallery downloaded for 3.5 off from PhotoPost.

Some user's gallery images work fine and others give:

Fatal error: Call to a member function on a non-object in /home/smoky/public_html/forum/includes/functions_gallery.php on line 1085

Someone said that it was a " or other charcter in the descriptions.

Got this in functions_gallery.php

global $vba_options, $stylevar, $vbulletin, $vbphrase, $show, $adv_sorturl, $catinfo, $counter, $cellwidth, $categoryperms, $showfields, $categorycache, $catopts, $bbcode_parser;

And

$images['description'] = $bbcode_parser->do_parse(stripslashes($images['description']), $catopts["$images[catid]"]['allow_desc_html'], $catopts["$images[catid]"]['allow_desc_smilies'], $catopts["$images[catid]"]['allow_desc_bbcode'], $catopts["$images[catid]"]['allow_desc_bbimgcode']);

Also got this done:

'smiliecache',
'bbcodecache',
'gallery_c_cache',
'adv_gallery_opt',
'gallery_ugroups'

Still, some users images work fine and some give the above error. I've been chasing this all over the web via google, but no thread ties it together. This thread appears to be the most current.

Anyone figure out how to strip from the photo description what ever ASCII character is bugging this thing?

Zachariah
01-26-2006, 09:50 PM
Has there been a fix for this, or did I just screw up the installation?

My board is live now so I'm not all that anxious to install and get DB problems again.

I love the mod and am dying to get it on my board.

Zach...can you help?

Do you have vBGallery installed ?

Zachariah
01-27-2006, 10:34 PM
- This is not a "gallery".
- This is a Add-On to display images posted in Photopost vBGallery.

I understand you have problems, but for me to help you I will have to know some info.

Do you have Photopost vBGallery installed ?
Did you make the needed file edits to your forum index.php page ?
What are the errors ?
When do you see the errors?

Zachariah
01-28-2006, 04:58 AM
OK, I officially qualify as the World's Biggest Idiot.

I know I'm new to vBulletin, but I take the cake.

Sorry Zach, I had no idea that this was not a gallery. I have to go buy Photopost vBGallery...

I'll be back...

No problems :D

oldengine
01-29-2006, 12:55 AM
Now that the dust has settled, has anyone figured out what is causing the error when using the photo description in thumbnails?

ReadOrDie
01-29-2006, 05:00 AM
Is this the gallery where people can have their own gallery?

ReadOrDie
01-29-2006, 05:13 AM
You are very unclear in your directions forum/index template? I have no forum/index template.

ReadOrDie
01-29-2006, 05:19 AM
Now it's giving me this error: Warning: Unknown(./includes/functions_gallery.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 247

Fatal error: (null)(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/local/php4') in /www/g/gaiaevolvedc/htdocs/forum/index.php(485) : eval()'d code on line 247

Can anyone explain the directions more?

EricaJoy
01-29-2006, 05:13 PM
:( I'm getting an error:

Parse error: syntax error, unexpected T_STRING in /****/****/*****/index.php(461) : eval()'d code on line 223

Zachariah
01-29-2006, 05:57 PM
:( I'm getting an error:

Parse error: syntax error, unexpected T_STRING in /****/****/*****/index.php(461) : eval()'d code on line 223

Do you have :

* PhotoPost vBGallery v1.0.1 (vB 3.5)
- This is a Mod for that gallery.

If so, when do you get this error ?

ReadOrDie
01-30-2006, 12:02 AM
Please help me on my error as well.

EricaJoy
01-30-2006, 12:16 AM
Do you have :

* PhotoPost vBGallery v1.0.1 (vB 3.5)
- This is a Mod for that gallery.

If so, when do you get this error ?
Powered by PhotoPost vBGallery v1.0.1 (vB 3.5) <~~from my gallery http://www.wbs-reloaded.com/gallery/

I get that error when i load index.php.

EricaJoy
01-30-2006, 11:25 AM
All set! Thanks once again for your help Zach. :)

* EricaJoy clicks install 3493748789 times.

Zachariah
01-30-2006, 01:00 PM
:( I'm getting an error:

Parse error: syntax error, unexpected T_STRING in /****/****/*****/index.php(461) : eval()'d code on line 223

This error happened when:

Useing: <!-- end what's going on box -->

As an anchor in the plugin for the hack to showup under the "whats going on block" on hhe forumhome. The apostrophe was phased in PHP vs. simple text to search for.

I selected a different search string for the hack to attach to.

All set! Thanks once again for your help Zach. :)

* princessfrozen clicks install 3493748789 times.

No !!! it will break :D

- no problem

DJ XtAzY
02-01-2006, 03:08 AM
strange, i have some posts made in the images, but it still shows up 0 replies on the forum index

Zachariah
02-01-2006, 11:29 AM
strange, i have some posts made in the images, but it still shows up 0 replies on the forum index

There is an option in the settings of the gallery that tracks posts and images in the personal user stats.

I have not personaly seen the hack not pick up on total posts on the image itself.

What do your settings look like ? Perhaps a bug ? :nervous:

DJ XtAzY
02-02-2006, 04:19 AM
There is an option in the settings of the gallery that tracks posts and images in the personal user stats.

I have not personaly seen the hack not pick up on total posts on the image itself.

What do your settings look like ? Perhaps a bug ? :nervous:

settings for the main gallery or the forum home gallery?

Zachariah
02-02-2006, 05:42 AM
settings for the main gallery or the forum home gallery?

vBa Gallery = > Modify Settings
- Uploading Options
-- Count Uploads Towards User Post Counts ?

- Posting Options
-- Count Posts Towards Postcounts?

DJ XtAzY
02-02-2006, 11:28 PM
vBa Gallery = > Modify Settings
- Uploading Options
-- Count Uploads Towards User Post Counts ?

- Posting Options
-- Count Posts Towards Postcounts?

yes they are both enabled.... but itz not about whether the post counts are added or not...

Let say this images have 7 replies. With the Imagebit Post enabled in the vb options for forumhome, it shud display how many replies does that image have. On the gallery itself i shows that it has 7 replies, but on forum home it shows 0 replies

Cebby
02-03-2006, 03:15 PM
I have vB 3.5.3 and Photopost PHP Pro v5.3.

When I use the changed vBulletin index.php file, I get a database error.

Here's the index.php changed portion:

// ################### 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',
'mailqueue',
'gallery_c_cache',
'adv_gallery_opt',
'gallery_ugroups'
);

I also noticed that I'm not getting the vB Gallery listed in the vBulletin Option s list.

Product XML was added as instructed...

I have my photopost stuff under my forum directory.

Forum path is: domain/forum
Photopost path is: domain/forum/photopost

Could that be the problem (it doesn't know where to find the templates?)

Photopost works and so does my forum normally.

EDIT: I searched for the templates called in the changed index.php file. I'm not seeing them anywhere??? I downloaded and installed the PPhotopost yesterday. It this newest version unsuppported by this hack?

Zachariah
02-03-2006, 11:03 PM
I have vB 3.5.3 and Photopost PHP Pro v5.3.
This is the vBgallery hack, follow the link for a PRO gallery hack.
https://vborg.vbsupport.ru/showpost.php?p=875514&postcount=273

ReadOrDie
02-05-2006, 12:40 AM
Please stop ignoring me and help me on my error thank you.

Zachariah
02-05-2006, 12:56 AM
Please stop ignoring me and help me on my error thank you.
- never ignore people.
- I have been very busy. :tired:


I went to your site @ www.gaiaevolved.com.
- Where do you have the gallery installed ?

Lord Brar
02-05-2006, 01:57 PM
Heya mate! Just curious -- is it stable 'nuff now to be used in production environment? :) I really want something like this.

Zachariah
02-05-2006, 02:19 PM
Heya mate! Just curious -- is it stable 'nuff now to be used in production environment? :) I really want something like this.

It needs a little work still in permissions, but other than that it is ok.

To Do's:
- do not show images if category has a password.
- do not show images if category has custom settings per usergroup.

You can Exclude and limit categories all together, but it still does not care about if a usergroup can see the thumbnails in a category with custom usergroup settings.

DAdiguzeL
02-05-2006, 02:23 PM
When I upload product-gallery_home.xml to my panel, forum gives this error:

Warning: Unknown(./includes/functions_gallery.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 3

Fatal error: (null)(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dgkntcom/public_html/forum/index.php(485) : eval()'d code on line 3

Please help me

ReadOrDie
02-05-2006, 11:49 PM
- never ignore people.
- I have been very busy. :tired:


I went to your site @ www.gaiaevolved.com.
- Where do you have the gallery installed ?

Sorry, I uninstalled because I was getting the error. It says edit the index template. I have no index template. Directions are very unclear.

Zachariah
02-06-2006, 12:22 AM
You know this is not a Gallery, but only an Add-On to pull images from a gallery ?

Smiry Kin's
02-06-2006, 02:55 AM
Where do i get that vb gallery?

Smiry Kin's
02-06-2006, 07:55 AM
installed and get effor


Warning: Unknown(./includes/functions_gallery.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 68

Fatal error: (null)(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/index.php(485) : eval()'d code on line 68

shame was needing this

*uninstalls*

DAdiguzeL
02-06-2006, 11:10 AM
You know this is not a Gallery, but only an Add-On to pull images from a gallery ?

Sorry..

is it possible that can we find a Gallery for vbulletin?

balikci
02-07-2006, 07:18 AM
works great for 3.5.3! thank you zachariah

me clicks * install

Zachariah
02-07-2006, 01:24 PM
Sorry..

is it possible that can we find a Gallery for vbulletin?


PhotoPost vBGallery (http://www.photopost.com/forum/showthread.php?t=121701)

chink
02-09-2006, 09:47 AM
Does this work for the latest version of Photopost 5.3? Thanks

Sean James
02-09-2006, 10:13 AM
Does this work for the latest version of Photopost 5.3? Thanks

This only works for vba gallery

Zachariah
02-09-2006, 11:25 AM
Does this work for the latest version of Photopost 5.3? Thanks

https://vborg.vbsupport.ru/showpost.php?p=875514&postcount=273

Sean James
02-09-2006, 09:32 PM
I have a question about styles with this hack.

My main style on my site everything is fine:
http://www.bluepearl-design.com/forums/?styleid=41

but there is 2 skins i have which need modify certain tables to fit in with the style:
http://www.bluepearl-design.com/forums/?styleid=44
http://www.bluepearl-design.com/forums/?styleid=37

In previous versions of this script we added the script manually to our forumhome template, but the new version does this for us so i am not sure hot to go about editing this :(

ReadOrDie
02-10-2006, 04:15 AM
Ok, so this only works for Vbagallery...and you have to pay for Vba gallery...wow...

Zachariah
02-10-2006, 12:38 PM
In previous versions of this script we added the script manually to our forumhome template, but the new version does this for us so i am not sure hot to go about editing this :(

Move where you want: (w/ template edit)
https://vborg.vbsupport.ru/showpost.php?p=863019&postcount=250

Move in "what' going on" (no template edit)
https://vborg.vbsupport.ru/showpost.php?p=868619&postcount=262

QueenBee
02-28-2006, 05:47 PM
hey i tried to install but when i did my forum just gave me this code:

Warning: Unknown(./includes/functions_gallery.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 240

Fatal error: (null)(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/queenie/public_html/forums/index.php(485) : eval()'d code on line 240

does anyone know what i did wrong?

thanks

Zachariah
02-28-2006, 08:21 PM
hey i tried to install but when i did my forum just gave me this code:


Warning: Unknown(./includes/functions_gallery.php): failed to open stream: No such file or directory in /index.php(485) : eval()'d code on line 240

Fatal error: (null)(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/queenie/public_html/forums/index.php(485) : eval()'d code on line 240

does anyone know what i did wrong?

thanks

Do you have vBgallery installed ?

Tested on:

* vBulletin 3.5 - 3.5.3
* PhotoPost vBGallery v1.0.1 - 1.0.2

QueenBee
02-28-2006, 08:32 PM
no i realized i needed to install the other one first but i dont understand the instructions.thanks for your help

vbreal
03-11-2006, 07:04 AM
any chance u will do a version for photopost 5.3

Zachariah
03-11-2006, 08:32 AM
any chance u will do a version for photopost 5.3
- I have a beta I am worken on @ photopost. I need more fine tuneing on it.

vbreal
03-11-2006, 10:19 PM
is the beta released for users to help testing. or u just testing it urself

Zachariah
03-12-2006, 07:45 AM
is the beta released for users to help testing. or u just testing it urself

The PRO gallery ? It's all for members to play with. I have many things I want to do w/ the hack. :D - Time is a little thin @ the moment.

Pro ver.
http://www.photopost.com/forum/showthread.php?t=121970

* Hack Active - yes/no
* Block Title - fill in blank
* File Path - fill in blank
* Image Order - newest, random, most viewed, top rated, most comments
* Image Count - enter value
* Number of Columns - enter value
* Exclude Catagories - enter value(s)
* Only Catagories - enter value(s)

It's also (in current state) - no template edits :bunny:

Hack Placement Location: after $navbar
- FORUMHOME
- SHOWTHREAD
- FORUMDISPLAY
- memberlist
- USERCP_SHELL
- FAQ
- CALENDAR
- MEMBERINFO

Lord Brar
03-12-2006, 09:16 AM
Does is now work with v2.1.0? :)

Zachariah
03-12-2006, 12:59 PM
Does is now work with v2.1.0? :)

I am a little lost Sir. :confused:

Lord Brar
03-12-2006, 01:02 PM
I am a little lost Sir. :confused:
https://vborg.vbsupport.ru/showthread.php?p=908234#post908234

Zachariah
03-12-2006, 01:34 PM
https://vborg.vbsupport.ru/showthread.php?p=908234#post908234

Ah thats why :)
- this is forumhome that was cmps :cross-eyed:

I did update the code to show up on CMPS it should be fine.
- I have a full rework soon on many of the gallery hacks. (perhaps all in 1 hack w/ "on / off" options to show what you want in different places)

vbreal
03-22-2006, 08:41 PM
hey zach is there anything available to show latest gallery additions in a user profile

GoTTi
03-26-2006, 07:31 AM
i installed this and i am getting on the forumhome:

Alert: The gallery is currently turned off!

any ideas?

Zachariah
03-26-2006, 08:15 AM
i installed this and i am getting on the forumhome:

Alert: The gallery is currently turned off!

any ideas?

Did you make the file edit to the forum index page ?

Zachariah
03-26-2006, 08:16 AM
hey zach is there anything available to show latest gallery additions in a user profile

Yes. I'll look for it.

tobe12
03-26-2006, 04:54 PM
Running VB 3.5.4

I would like to add a Photo Gallery to my forums.

Which one would your recommend?
vbGallery or
PhotoPost PHP Pro

hotwheels
03-26-2006, 06:42 PM
Tobe, they are both good.........I am currently running 3 galleries on my site............the photopost is pretty dang good stuff.

Zachariah
03-26-2006, 07:10 PM
Running VB 3.5.4

I would like to add a Photo Gallery to my forums.

Which one would your recommend?
vbGallery or
PhotoPost PHP Pro

Well I always buy for the need.

PhotoPost PHP Pro:
Photos 543,022
Comments 2,169
Views 543,799
Disk Space 26,340.6mb

http://www.trackpads.com/gallery/

vBGallery:
Categories: 187, Images: 110,566, Posts: 830, Total Views: 345,671, Total Disk Space: 9.35 GB
http://www.trackpads.com/media/

- vBgallery is integrated into vBulletin w/ templates, phrases, AdminCP
- VB3.0x / 3.5x needed.

- Pro uses a bridge to connects to the forums, but can connect to like 15 other types of forums, has its own Admin, template system, standalone and integrated.
- Pro hands down has 5 times more the options.

I did vBGallery over Pro for it fit the price I wanted to spend at the time. I also wanted a simple gallery for my site to host images. It was not to be the "main attraction" but only another part of the site.

What are your plans ?

TOZ
03-29-2006, 12:41 PM
Photopost Pro version 5.2.1

Try this:
1) https://vborg.vbsupport.ru/showpost.php?p=852809&postcount=225

This is not working Either, Any of you with 5.21 had any success with this ? Please let me know what else was changed here because so far this is not helping.
Thanks

vbreal
03-30-2006, 01:53 AM
Well I always buy for the need.

PhotoPost PHP Pro:
Photos 543,022
Comments 2,169
Views 543,799
Disk Space 26,340.6mb

http://www.trackpads.com/gallery/

vBGallery:
Categories: 187, Images: 110,566, Posts: 830, Total Views: 345,671, Total Disk Space: 9.35 GB
http://www.trackpads.com/media/

- vBgallery is integrated into vBulletin w/ templates, phrases, AdminCP
- VB3.0x / 3.5x needed.

- Pro uses a bridge to connects to the forums, but can connect to like 15 other types of forums, has its own Admin, template system, standalone and integrated.
- Pro hands down has 5 times more the options.

I did vBGallery over Pro for it fit the price I wanted to spend at the time. I also wanted a simple gallery for my site to host images. It was not to be the "main attraction" but only another part of the site.

What are your plans ?

i wish i would of got vbgallery it does everything i needed. but i got photo post. i didn't know vbgallery was still available. a friend of mine wants a gallery how can u still purchase vbgallery

GoTTi
03-30-2006, 12:29 PM
installed. so far so good.

Zachariah
03-30-2006, 12:58 PM
i wish i would of got vbgallery it does everything i needed. but i got photo post. i didn't know vbgallery was still available. a friend of mine wants a gallery how can u still purchase vbgallery

@ the moment untill there is a Proper Advert.
http://www.photopost.com/forum/showpost.php?p=1141487&postcount=1

Zachariah
03-30-2006, 01:07 PM
This is not working Either, Any of you with 5.21 had any success with this ? Please let me know what else was changed here because so far this is not helping.
Thanks

There are a few ways to get images to your forumhome.

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

Beta (need code skills, simple soon)
http://www.photopost.com/forum/showthread.php?t=121970

Zachariah
03-30-2006, 01:14 PM
Thinking out loud.

- I am working on 1 php file / product and plugins to contain all the needed PHP code to show gallery images in many places of the forums. My current problem with this is global datastore. I have been working on a global datastore call into VB w/ 1 file edit to VB core files. This would stop the need for edit each php file of VBCore to show images on the page via. plugin. This edit also works for any CMPS portal block / page as well as VB powered pages.

I have many small projects in the mix.
I'll see about gathering the code up.

AzianStang
03-31-2006, 05:09 PM
Attempting install on 3.5.4 and I'm unable to find $phrasegroups = array('holiday'); or 'mailqueue' in index.php...

prettyboi
03-31-2006, 05:56 PM
Attempting install on 3.5.4 and I'm unable to find $phrasegroups = array('holiday'); or 'mailqueue' in index.php...

Oh it's there but it's very hard to find. I just found it today and it took me like 30 minutes to try to find it. Just got to look harder dude!

AzianStang
03-31-2006, 06:52 PM
Oh it's there but it's very hard to find. I just found it today and it took me like 30 minutes to try to find it. Just got to look harder dude!
Thanks I'll keep my eyes open! ;)

prettyboi
03-31-2006, 10:40 PM
No problem! :) btw nice page you got there! I like your design and keep up the good looking work you got there :)

AzianStang
04-01-2006, 04:40 PM
Well I thoroughly searched for 20 minutes and used the Find function and still couldn't find it.

All I could find was $phrasegroups = array('cphome'); is this the same thing?

Zachariah
04-01-2006, 05:06 PM
Well I thoroughly searched for 20 minutes and used the Find function and still couldn't find it.

All I could find was $phrasegroups = array('cphome'); is this the same thing?


eh?

forums/index.php

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'index');

// ################### 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',
'mailqueue',
'gallery_c_cache',
'adv_gallery_opt',
'gallery_ugroups'
);

prettyboi
04-01-2006, 05:06 PM
Do you have the vbadvance portal? Don't get mix up with the two index files now.

AzianStang
04-01-2006, 07:21 PM
I do not have vbadvance.

All I have in the "pre-cache templates and data" section are:

// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('cphome');
$specialtemplates = array('maxloggedin');

?

Zachariah
04-01-2006, 07:28 PM
I do not have vbadvance.

All I have in the "pre-cache templates and data" section are:

// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('cphome');
$specialtemplates = array('maxloggedin');

?


You sound like your in /admincp/index.php or modcp/index.php.

You need to edit:
/forums_install_folder/index.php

IE: /forums/index.php

AzianStang
04-01-2006, 08:24 PM
*slaps himself*

OK now I feel stupid!

But I followed the rest of the steps, and for some reason, I'm now getting a forum database error... imported the product and made the two index.php changes, and now I'm getting a database error page.

FYI, I ran a query earlier today for another gallery mod: https://vborg.vbsupport.ru/showthread.php?t=92875

Would this have anything to do with this error?

hotwheels
04-11-2006, 12:52 AM
Zachariah? Is there a way to shut off the image to the public when you are logged off of the site? Right now when you log off, and clear your cookies. Go back to the site and open it, you see the photo bar with the images. I would like to be able to have that option, so that it can't be viewed when a person isn't a registered viewer........

hotwheels

Zachariah
04-12-2006, 12:56 PM
Zachariah? Is there a way to shut off the image to the public when you are logged off of the site? Right now when you log off, and clear your cookies. Go back to the site and open it, you see the photo bar with the images. I would like to be able to have that option, so that it can't be viewed when a person isn't a registered viewer........

hotwheels

Hello Sir.

No images for guests ?

Plugin: Forumhome: Gallery Main
Hook Locaton: forumhome_complete

if ($vbulletin->userinfo['userid']) {

Plugin here

}

Place the code around all that is in that plugin.

hotwheels
04-13-2006, 12:37 AM
Thank you very much sir.............worked like a charm.

RaceJunkie
04-17-2006, 04:50 PM
When I click on a picture on the forum home it does not go to that users Gallery. Is this the way it is supose to be?

http://www.localracechat.com/forums/index.php

Zachariah
04-17-2006, 07:19 PM
When I click on a picture on the forum home it does not go to that users Gallery. Is this the way it is supose to be?

http://www.localracechat.com/forums/index.php

Your images on the hack point to:
http://www.localracechat.com/gallery/index.php?/showimage.php?i=1236&catid=3

vs.

http://www.localracechat.com/gallery/showimage.php?i=1236&catid=3

Take a look at something for me.

AdminCP => vBa Gallery => Modify Settings => Gallery URL

Should be: http://www.localracechat.com/gallery

RaceJunkie
04-17-2006, 07:43 PM
Your images on the hack point to:
http://www.localracechat.com/gallery/index.php?/showimage.php?i=1236&catid=3

vs.

http://www.localracechat.com/gallery/showimage.php?i=1236&catid=3

Take a look at something for me.

AdminCP => vBa Gallery => Modify Settings => Gallery URL

Should be: http://www.localracechat.com/gallery

yup you hit it right on the mark. Changed link and it works..

Thanks

petersweb
04-18-2006, 11:30 PM
I'm unable to see the images on my Forum Homepage. It was working fine until I upgraded vBulletin. I've upgraded to vBulletin 3.5.4 and have made the edits to '/forums/index.php' and re-uploaded the 'product-gallery_home.xml' and allowed it to overwrite.

Any suggestions greatly appreciated!

Zachariah
04-19-2006, 12:26 AM
I'm unable to see the images on my Forum Homepage. It was working fine until I upgraded vBulletin. I've upgraded to vBulletin 3.5.4 and have made the edits to '/forums/index.php' and re-uploaded the 'product-gallery_home.xml' and allowed it to overwrite.

Any suggestions greatly appreciated!

Do you have a custom style that moved the VB (navbar / breadcrumb) out of the FORUMHOME ? (IE: $navbar)

petersweb
04-19-2006, 12:40 AM
Do you have a custom style that moved the VB (navbar / breadcrumb) out of the FORUMHOME ? (IE: $navbar)
I'm using vBPortal - but I was also using that before the upgrade to 3.5.4. The navbar template is still in the same location.

TheAllusionist
04-23-2006, 02:06 AM
Zachariah,
Great hack, I have used it for awhile along with the block of yours for my portal. I recently re-designed my forums and notice anymore that the forum home version of the block doesn't have the text above anymore, the arrows are there and the one block without an arrow shows search. Could you point me in the direction to figure out why the text is missing anymore?

http://www.3dallusions.com/forums/index.php?

Tiny little boxes or a bar pop up when an arrow is selected, so I guess I hosed the code somewhere, but this is plugin form these days (I believe originally it was a template modification) and I am just not certian where to look.

Thanks in advance!

Russell

Zachariah
04-23-2006, 04:10 AM
Zachariah,
Great hack, I have used it for awhile along with the block of yours for my portal. I recently re-designed my forums and notice anymore that the forum home version of the block doesn't have the text above anymore, the arrows are there and the one block without an arrow shows search. Could you point me in the direction to figure out why the text is missing anymore?

http://www.3dallusions.com/forums/index.php?

Tiny little boxes or a bar pop up when an arrow is selected, so I guess I hosed the code somewhere, but this is plugin form these days (I believe originally it was a template modification) and I am just not certian where to look.

Thanks in advance!

Russell

Hello Sir.

forums/index.php
- Add: RED

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

TheAllusionist
04-23-2006, 04:28 AM
Brilliant! Worked like a charm, thank you! ;)

wii
04-23-2006, 09:52 PM
Latest Beta works well - please check the 4 missing tags in the code, according to: http://validator.w3.org/

wii
04-24-2006, 06:44 AM
Is there anyway to edit this hack so all images have the same heigth ?

wii
04-25-2006, 04:43 AM
Btw, the hack conflicts with this one:

https://vborg.vbsupport.ru/showthread.php?t=111631

So, I had to remove the polls at forum home to view the images from this hack correctly.

blkatt
04-26-2006, 05:20 PM
Running:
vBulletin 3.54
PhotoPost vBGallery v1.0.2

Getting thsi error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/username/public_html/forum/index.php on line 31

Ideas?

Thanx.

blkatt
04-26-2006, 05:42 PM
Running:
vBulletin 3.54
PhotoPost vBGallery v1.0.2


Getting thsi error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/username/public_html/forum/index.php on line 31

Ideas?

Thanx.

Got it, I left out a comma in my index.php file edit.
Works fine. Thanks Zach.

blkatt
04-26-2006, 05:49 PM
Got it, I left out a comma in my index.php file edit.
Works fine. Thanks Zach.


i meant to say I left out a quote (') sign in my index.php file edit.

blkatt
04-26-2006, 06:07 PM
Is there a way to limit the number of columns of images .

When I display 6 images it displays 6 images (columns) on 1 row even though Gallery is set to break into another row after 3 images (columns).

I want to break into another row of images after 3 images are displayed.

Murty
05-11-2006, 08:53 AM
*slaps himself*

OK now I feel stupid!

But I followed the rest of the steps, and for some reason, I'm now getting a forum database error... imported the product and made the two index.php changes, and now I'm getting a database error page.

FYI, I ran a query earlier today for another gallery mod: https://vborg.vbsupport.ru/showthread.php?t=92875

Would this have anything to do with this error?

I am having the exact same problem (after uninstalling vbi_gallery) any thoughts?

Zachariah
05-12-2006, 05:01 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

wii
05-15-2006, 08:41 PM
Latest version works fine, but could you please add the missing table tags in the code?

Error Line 762 column 9: end tag for "table" which is not finished.
</table>

Error Line 790 column 9: end tag for "table" which is not finished.
</table>

Error Line 818 column 9: end tag for "table" which is not finished.
</table>

Error Line 846 column 9: end tag for "table" which is not finished.
</table>

parabat
05-17-2006, 12:42 AM
Hi Zachariah

When I add the line
> - Edit:
>forums/includes/init.php
>- Find:
>require_once(CWD . '/includes/class_core.php');
>- Below Add:
>require_once(CWD . '/includes/functions_gallery_store.php');"

I get the following error.
There seems to have been a problem with the Forums database.
Please try again by clicking the Refresh button in your web browser.

Email says:
Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_holiday AS phrasegroup_holiday,
language.phrasegroup_adv_gallery AS phrasegroup_adv_gallery,
language.phrasegroup_global AS phrasegroup_global,
language.options AS lang_options,
language.languagecode AS lang_code,
language.charset AS lang_charset,
language.locale AS lang_locale,
language.imagesoverride AS lang_imagesoverride,
language.dateoverride AS lang_dateoverride,
language.timeoverride AS lang_timeoverride,
language.registereddateoverride AS lang_registereddateoverride,
language.calformat1override AS lang_calformat1override,
language.calformat2override AS lang_calformat2override,
language.logdateoverride AS lang_logdateoverride,
language.decimalsep AS lang_decimalsep,
language.thousandsep AS lang_thousandsep

FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))

Also, the include file is incorrect in your xml.
Code is:
//Latest Images In ForumHome BEGIN

require_once('./includes/functions_gallery.php');
require_once('./includes/class_bbcode.php');

Should be:
//Latest Images In ForumHome BEGIN

require_once('./includes/functions_gallery_store.php');
require_once('./includes/class_bbcode.php');

Any help would be great.

Zachariah
05-17-2006, 12:38 PM
VB 3.5 - 3.5.4
forums/includes/init.php -- Not the XML file that came with the package.

################################################## ###########################
// fetch the core includes
require_once(CWD . '/includes/class_core.php');
require_once(CWD . '/includes/functions_gallery_store.php');

// initialize the data registry
$vbulletin =& new vB_Registry();

// parse the configuration ini file
$vbulletin->fetch_config();

Upload: forums/includes/functions_gallery_store.php

This works on my website.
This step is done so that there is no need to edit forums/index.php. This one edit will also stop the the need to edit any other VB powered pages to show gallery data on them.

In the past you had to do this to show data on FORUMHOME page.
First, open your forum/index.php file and find:

---------------------------------------------------
a)

Find:

$phrasegroups = array('holiday');

Replace with:

$phrasegroups = array('holiday','adv_gallery');
---------------------------------------------------
b)


Find

'mailqueue'

---------------------------------------------------

Replace with:

'mailqueue',
'gallery_c_cache',
'adv_gallery_opt',
'gallery_ugroups'
I found myself with 10 VB core php files with edits to show gallery data. This was a total pain when the forums did an upgrade or the portal system needed an upgrade and file edits were needed again. This way only 1 file edit is needed for site wide availability of data.

parabat
05-17-2006, 01:16 PM
VB 3.5 - 3.5.4
forums/includes/init.php -- Not the XML file that came with the package.

Also, the include file is incorrect in your xml.
Code is:
//Latest Images In ForumHome BEGIN

require_once('./includes/functions_gallery.php');
require_once('./includes/class_bbcode.php');

Should be:
//Latest Images In ForumHome BEGIN

require_once('./includes/functions_gallery_store.php'); (the "_store" is missing from the xml file. Not sure wot line. Am I wrong in my assumption?)
require_once('./includes/class_bbcode.php');
If I don't make this change, there is an error saying the file function_gallery.php can't be found.

Once I've made this change in the xml file the error I get only occures once I add that include file in init.php.

parabat
05-18-2006, 12:20 AM
Never mind, I sorted it out :banana:

H@K@N
05-19-2006, 10:18 PM
Didn't find it on the whole Thread :

How can i display the Images in the Footer instead in the Header ?

thx

Zachariah
05-19-2006, 11:05 PM
Didn't find it on the whole Thread :

How can i display the Images in the Footer instead in the Header ?

thx

Place where you want on forumhome w/ 1 template edit

You will want to edit the forumhome template and place the block where you want vs. use an anchor:

Edit plugin: Forumhome: Gallery Main

Replace:
$search_text = '$navbar';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_vbgallery') ,$vbulletin->templatecache['FORUMHOME']);


with

eval('$vbgallery = "' . fetch_template('forumhome_vbgallery') . '";');

Edit FORUMHOME: Place in location of choice.
$vbgallery

sensimilla
05-24-2006, 08:46 AM
I did upgraded it today and the border is broken now.. Any ideas ? TIA

Sean James
05-26-2006, 05:27 AM
Latest version works fine, but could you please add the missing table tags in the code?

Error Line 762 column 9: end tag for "table" which is not finished.
</table>

Error Line 790 column 9: end tag for "table" which is not finished.
</table>

Error Line 818 column 9: end tag for "table" which is not finished.
</table>

Error Line 846 column 9: end tag for "table" which is not finished.
</table>

Is there a way we can modify this ourselves.

Zachariah
05-26-2006, 12:03 PM
Griffin80 - I'll take a look and get back to ya
- setting up a new DEV install. :)

Sean James
05-26-2006, 12:26 PM
thx Zach, whenever u can ;)

Zachariah
05-26-2006, 01:28 PM
Adding option to have independent "gallery_columns" at the moment.
- by default the column is linked to the count in gallery settings.

:D

ConqSoft
05-30-2006, 02:31 AM
If you have this display on every page, instead of just on forum home, it seems to interfere with the displaying of Poll results. Any ideas?

Zachariah
05-30-2006, 11:56 AM
If you have this display on every page, instead of just on forum home, it seems to interfere with the displaying of Poll results. Any ideas?

I have not had reports on that issue, but I'll do some testing and see whats up.

ConqSoft
05-30-2006, 01:26 PM
Well, I know the hack was only designed for Forum Home, but I like having the thumbnails at the top of every page. It has to be a simple conflict of variables or something, but nothing is jumping out at me.

I changed the plugin to execute at global_start, and I have the output variable at the bottom of my navbar template.

Here's an example of a poll:
http://www.fireblades.org/forums/news-announcements/36871-what-brand-helmet-do-you-wear.html

All the choices should be brand names, and as you can see, only numbers show up. The graphs, number of votes, and percentages are also wrong. If I disable the plugin, it looks correct.

Any ideas on what the conflict could be?

Zachariah
05-30-2006, 01:31 PM
Not off hand, but i'll explore it should not be a big deal.

DJ XtAzY
06-11-2006, 01:05 AM
for some reason i have this error

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /index.php(485) : eval()'d code on line 291

if i enabled this hack

jdingman
06-15-2006, 02:56 AM
I'm getting some wicked SQL errors...

Invalid SQL:

SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_holiday AS phrasegroup_holiday,
language.phrasegroup_adv_gallery AS phrasegroup_adv_gallery,
language.phrasegroup_global AS phrasegroup_global,
language.options AS lang_options,
language.languagecode AS lang_code,
language.charset AS lang_charset,
language.locale AS lang_locale,
language.imagesoverride AS lang_imagesoverride,
language.dateoverride AS lang_dateoverride,
language.timeoverride AS lang_timeoverride,
language.registereddateoverride AS lang_registereddateoverride,
language.calformat1override AS lang_calformat1override,
language.calformat2override AS lang_calformat2override,
language.logdateoverride AS lang_logdateoverride,
language.decimalsep AS lang_decimalsep,
language.thousandsep AS lang_thousandsep

FROM vb_user AS user
LEFT JOIN vb_userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN vb_usertextfield AS usertextfield ON (usertextfield.userid = user.userid) INNER JOIN vb_language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))

WHERE user.userid = 1;

MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'
Error Number : 1054
Date : Wednesday, June 14th 2006 @ 08:52:20 PM

any ideas how to fix this? my board is inactive because this is broken =(

Edit: I was able to get my forum back online, but that problem still exists...

whitetigergrowl
06-16-2006, 07:25 PM
nm* please delete

Zachariah
06-18-2006, 02:35 PM
I'm getting some wicked SQL errors...
any ideas how to fix this? my board is inactive because this is broken =(
Edit: I was able to get my forum back online, but that problem still exists...

MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'

This would be because you do not have vBgallery installed. Perhaps you may have ProtoPost Pro and not vBgallery installed ?

loonytune15
06-18-2006, 02:44 PM
G'day I keep getting adv_gallery_imagebit showing up as uncached. I disabled the product and the error disappeared.

Any ideas on how to fix this?

faisj
06-19-2006, 12:18 PM
Please HELP :(

I installed the xml file
and suddenly I cant do a thing.

All pages show white...


HELP PLEASE PLEASE

I really have tears in my eyes now

msn: faizal at planet dot nl
or please pm or post anything please

faisj
06-19-2006, 12:55 PM
update:

Zack and master are looking in the matter now.

Thank you so much guys

loonytune15
06-19-2006, 01:39 PM
G'day I keep getting adv_gallery_imagebit showing up as uncached. I disabled the product and the error disappeared.

Any ideas on how to fix this?


Sorry but I'm trying to get my vb cleanedup ready for the upgrade to 3.6.

Any ideas on this one?

sensimilla
07-04-2006, 08:54 AM
Bumping again,
I love this hack but i have this tamplate issue

https://vborg.vbsupport.ru/showpost.php?p=986742&postcount=394

If anyone could point me in the right direction,
Thanks in advance

Sean James
07-04-2006, 09:23 AM
Bumping again,
I love this hack but i have this tamplate issue

https://vborg.vbsupport.ru/showpost.php?p=986742&postcount=394

If anyone could point me in the right direction,
Thanks in advance

same, its the only reason i have it disabled atm :(

Kesomir
08-06-2006, 11:39 AM
For those of you having the colspan template issue where multiple boxes are added onto the end of the row, here's my dirty fix.

browse to plugins & products -> plugin manager -> EDIT Forumhome: Gallery Main


find on line 213

$gal_imagebits .= construct_empty_cellbits($vba_options['gallery_columns']);

replace with

$gal_imagebits .= construct_empty_cellbits(1);

I did try replacing with the new variable $vboptions['vbglimit'] which works but gives a division by 0 error. A conditional to make sure the number wasn't 0 might be the proper fix but I'm short on time so leaving that for the hack author! :)

Chicago_VLNU_4s
08-07-2006, 08:16 PM
its not working.... i'm getting this error


Warning: require_once(./includes/functions_gallery.php) [function.require-once]: failed to open stream: No such file or directory in /index.php(486) : eval()'d code on line 585

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/offthaa/public_html/forums/index.php(486) : eval()'d code on line 585


ideas?

geevest.com
08-20-2006, 01:44 AM
my gallery in forum home is not actived?
i want my gallery in forum actived...anyone know how must im setting? thx

b00k
09-01-2006, 04:24 AM
-----------

Chadi
09-21-2006, 07:30 PM
Is there a way to do this vertically, one picture random on forumhome?

goorgoor
09-23-2006, 08:21 AM
why do i get this error?

Warning: Unknown(./includes/functions_gallery.php): failed to open stream: No such file or directory in /index.php(536) : eval()'d code on line 154

Fatal error: (null)() [function.require]: Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/persianp/public_html/forum/index.php(536) : eval()'d code on line 154

GlobalFusion
09-26-2006, 01:49 PM
try editing line 154 in index.php and renaming it to ./includes/functions_gallery_store.php

angkor408
09-27-2006, 05:16 PM
Hi, For some reason it use to work but now when I on member photo where they can leave comments I got this error:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /gallery/forums/vb3.php on line 173

Also, in comments section it to show member photo but now just the IP address only. How can get the member photo to show up when they post? Thank.

http://www.khmerclub.org/forums/gallery/showphoto.php?photo=57

Zachariah
09-27-2006, 06:11 PM
Hi, For some reason it use to work but now when I on member photo where they can leave comments I got this error:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /gallery/forums/vb3.php on line 173

Also, in comments section it to show member photo but now just the IP address only. How can get the member photo to show up when they post? Thank.

http://www.khmerclub.org/forums/gallery/showphoto.php?photo=57

Hello this is a hack for PhotoPost vBGallery not Pro
- Pro hacks (http://www.photopost.com/forum/forumdisplay.php?f=152)

angkor408
09-27-2006, 06:29 PM
Zachariah, ok thank for the info. It weird that it use to work before until I download many plugin for my site, now I don't know what plugin cause that. I had try diasable few plugin but still got same error. Last, I did try re-install my photopost again no help. Angkor

vbreal
10-28-2007, 02:46 PM
hi i am having an issue. this mod adds the below to the search box on the advanced search page.
SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.w idth,p.approved,p.rating,p.numcom,c.catname,c.phot os,c.posts FROM pp_photos p LEFT JOIN pp_categories c ON c.id = p.cat WHERE p.storecat = 0 AND p.approved = 1AND c.cattype = 'c' AND p.cat NOT IN (511) ORDER BY RAND()



is this the most updated version of this mod? i see this one also https://vborg.vbsupport.ru/showthread.php?t=111699&highlight=PhotoPost+Pro+Block

which on is the best one to use? thanks

vbreal
10-28-2007, 02:56 PM
ooops i put this in the wrong thread. i have photopost pro

Konstantinos
07-18-2008, 01:07 PM
how can this work for photopost pro and 3.6.10 ?

appsfinder
09-10-2008, 05:06 PM
Warning: unserialize() expects parameter 1 to be string, array given in [path]/index.php(562) : eval()'d code on line 19

Warning: unserialize() expects parameter 1 to be string, array given in [path]/index.php(562) : eval()'d code on line 20

Warning: unserialize() expects parameter 1 to be string, array given in [path]/index.php(562) : eval()'d code on line 21

displays at top of my forum need your help?

hi all what does this mean and how can i fix it

bugriders
10-11-2008, 06:30 AM
I installed and followed the readme but still get Alert! Galery is turned off!

I activated the hack.

Zachariah
10-11-2008, 10:53 AM
I installed and followed the readme but still get Alert! Galery is turned off!

I activated the hack.

Hey,
You do not need this hack.
vBGallery 2.1 on your site (http://www.bugriders.be) has this built in.

AdminCP => vBGallery => Modify Add-Ons
- vBGallery FORUMHOME

:)

bugriders
10-11-2008, 12:39 PM
Hey,
You do not need this hack.
vBGallery 2.1 on your site (http://www.bugriders.be) has this built in.

AdminCP => vBGallery => Modify Add-Ons
- vBGallery FORUMHOME

:)

Thanks man!!!:up:

But it is enabled and thumbs are not showing on HOME. That is so since I upgraded from 6 to 7. I suppose I have to change something in the Home template...?:erm:

bugriders
10-22-2008, 07:29 AM
Anyone ?? ...:erm:

cindy helmond
12-02-2008, 05:07 PM
working for 3.8 ? thx

Zachariah
12-03-2008, 10:54 PM
working for 3.8 ? thx

There should not be any reason it should not work, but only install if you have vbgallery 2.1 and earlier. Later versions have this built into the program.

haothiencz
01-13-2009, 09:14 AM
Can I ask you how to make default resize of image after upload

Currently it set to
Dimensions: 600 x 450

I just want to have it smaller. 550 x 400

Thank you