PDA

View Full Version : PhotoPost vBGallery - Forum Home


Pages : [1] 2

Zachariah
09-12-2005, 10:00 PM
Ok it's Beta time !!!!!
Please only install to beta test. Even thow I have it running there may be problems still in the works. (there were many countless errors in the past)

- Feedback Please :squareeyed:

/* -----------------12/13/2005 6:41pm -----------------
Add Gallery Images to your Forum Index v1.7 (vB 3.5)

Tested on:

vBulletin 3.5 - 3.5.3
PhotoPost vBGallery v1.0.1 - 1.0.2


Demo:
- http://www.gzhq.net/forums/index.php

// ------------------------------------------------------

Overview:

Import Product XML
1 file edit in 2 places
Adds 1 Query to FORUMHOME


Hack includes:
- Hack Active (yes / no)
- Enable Navbar (yes / no)
- Image Count (number of images)
- Image Order (Random, Newest, Most Views, Most Comment, Highest Rated)
- Exclude Catagories
- Only Catagories
- On/Off options for all of the "info" per image
- If gallery is not active hack will vanish (all usergroups)
** Admin will get "Alert: The gallery is currently turned off!" on FORUMHOME

- If gallery settings of a usergroup does not see "thumbnails" the hack will vanish
- No Template edits

Change Log
===========
1.7 Beta 2 - 01.17.06
- Fixed usergroups not able to see the hack
- Fixed sort order problems

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

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

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

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

Whats Going On (https://vborg.vbsupport.ru/showpost.php?p=868619&postcount=262)


Please click " install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=96152) " for updates

-=Sniper=-
09-13-2005, 03:43 PM
thanks, I'll need this when GOLD comes out.

GrendelKhan{TSU
09-13-2005, 06:37 PM
omg THANK YOU!! THANK YOU!!!!

been waiting forever for this!!

<<< runs to install :D :D

GrendelKhan{TSU
09-13-2005, 06:40 PM
yay!! working....kinda

1. I changed the value of number of images to display at 5. (default 4) and got a extra box at the end.

see image below. :/

any ideas?

2. what phrase do I need to change so that the title reads "Random Image" and so I can translate into another language (I run a site with two languages.)

thanks again for this though...sooooooooo needed it. :D

Zachariah
09-13-2005, 08:06 PM
Number of Columns
The number of columns to display in a single row before splitting down to the next one.

AdminCP - vBa Gallery - Modify Settings - Browse Category Options - Number of Columns:


If that changes other things on your site you do not want Changed below to the # of images you wish to show up.


This is the code you were told to paste into your forumhome.
<!-- start Gallery Images -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$vba_options[gallery_columns]">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gallery_random')">

Zachariah
09-13-2005, 09:49 PM
2. what phrase do I need to change so that the title reads "Random Image" and so I can translate into another language (I run a site with two languages.)




Change Log
===========
1.02
- added Phrase support

1st post updated.

P.Jackson
09-15-2005, 05:06 PM
any ideas how we can add this on a non vb page ? like on a home page?

And random..

Would be a great addition :)

Zachariah
09-15-2005, 08:05 PM
any ideas how we can add this on a non vb page ? like on a home page?

And random..

Would be a great addition :)


Ok ill toss that in soon ;D

dbembibre
09-16-2005, 09:45 AM
Great work :)

GrendelKhan{TSU
09-23-2005, 11:29 PM
can I ask how would I make it so the row appeared with two different sets of images?

that is, if there are 5 images I want to make it so:

--1 (one) random image appears in first box. (with "Random Image" in the title)
--then 4 new images after it (with "New Images" in the title).

is this possible?

I tried a few things and failed miserably. :(

Wayne Luke
09-26-2005, 02:22 PM
Can we exclude galleries by ID?

dbembibre
09-26-2005, 02:40 PM
Can we exclude galleries by ID?

No, is based in gallery permissions

Zachariah
09-26-2005, 06:36 PM
Can we exclude galleries by ID?


Plugin - Forumhome: Gallery Main

Try this:

Find:
$getrand = $db->query_read("
SELECT imageid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
$query[tables]
WHERE $privcatids valid = 1 $ignquery
ORDER BY $galleryorderby
LIMIT $galleryimagelimit
");

Replace
$getrand = $db->query_read("
SELECT imageid, catid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
$query[tables]
WHERE $privcatids valid = 1 $ignquery
AND catid in (1,2,3,4,5,6,7,8,9)
ORDER BY $galleryorderby
LIMIT $galleryimagelimit
");

The RED can be filled in by Cat ID's

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

Wayne Luke
09-26-2005, 06:45 PM
Thanks.. That seems to be working. I wanted to exclude public galleries. We use the gallery as an image host as well. I didn't want signature images, profile pictures and such to show on the main page.

Zachariah
09-26-2005, 06:49 PM
Thanks.. That seems to be working. I wanted to exclude public galleries. We use the gallery as an image host as well. I didn't want signature images, profile pictures and such to show on the main page.

I hear ya, Ill do an update on this and add a few things in a few days .... keep your eyes open :D

GrendelKhan{TSU
09-30-2005, 07:41 AM
can I ask how would I make it so the row appeared with two different sets of images?

that is, if there are 5 images I want to make it so:

--1 (one) random image appears in first box. (with "Random Image" in the title)
--then 4 new images after it (with "New Images" in the title).

is this possible?

I tried a few things and failed miserably. :(

any ideas on how to do this?

Zachariah
09-30-2005, 02:12 PM
any ideas on how to do this?
I'll look in on it - it will take me a bit.

GrendelKhan{TSU
10-01-2005, 10:18 AM
I'll look in on it - it will take me a bit.

cool thanks!! :D

also, as a general note to all...if you have this installed already, and then upgrade to vb3.5.0, this hack needs to be REINSTALLED after the upgrade. This produces some funky error lines at the top of the forum after the upgrade an upgrade.

A simple reinstall of this hack clears it up. ;) :D

Zachariah
10-01-2005, 05:30 PM
cool thanks!! :D

also, as a general note to all...if you have this installed already, and then upgrade to vb3.5.0, this hack needs to be REINSTALLED after the upgrade. This produces some funky error lines at the top of the forum after the upgrade an upgrade.

A simple reinstall of this hack clears it up. ;) :D

Yes the file edit is killed.

Michael-DLR
10-03-2005, 12:18 AM
I uploaded a few photos to test this and only admins can see the photos. I have tripled check permissions and I can't seem to find where to change this. Any ideas?

Thank you,

Michael


Figured out my issue. See here for the fix:
http://www.vbadvanced.com/forum/showpost.php?p=41052&postcount=328

Colejo
10-03-2005, 01:02 AM
I tried this but got an error on my forum after I did it. It was looking for a gallery.php file that I don't have. Is there a file I need to upload that I'm not seeing?

Colejo
10-03-2005, 01:36 AM
Here is the error I get.

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

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

Zachariah
10-03-2005, 02:08 AM
I tried this but got an error on my forum after I did it. It was looking for a gallery.php file that I don't have. Is there a file I need to upload that I'm not seeing?

This hack is not a "gallery" . It allow images to be pulled from vBadvanced Gallery (http://www.vbadvanced.com/products.php?do=productinfo&p=5) to your FORUMHOME template.

Colejo
10-03-2005, 02:09 AM
This hack is not a "gallery" . It allow images to be pulled from vBadvanced Gallery (http://www.vbadvanced.com/products.php?do=productinfo&p=5) to your FORUMHOME template.

AH. I guess I should read closer. Thanks.

sensimilla
10-04-2005, 10:36 AM
could this hack work on CMPS index.php ? I would like to see the code added under navbar..

Zachariah
10-04-2005, 12:47 PM
could this hack work on CMPS index.php ? I would like to see the code added under navbar..

I do not see why not. With a few edits. I'll make a mod soon. :alien:

csidlernet
10-05-2005, 03:12 AM
/me installs

yellowchaser
10-05-2005, 03:31 PM
quick question, I noticed that the only images that show on my forum page are from the main album, how do I get it to pull images from member created categories as well?

yellowchaser
10-05-2005, 03:34 PM
nevermind... I was impatient they starte showing up :)

dieselpowered
10-05-2005, 07:58 PM
I hear ya, Ill do an update on this and add a few things in a few days .... keep your eyes open :D

Hey there, did you make those changes you are referring to?

I do not want it to pull from some of the galleries for the same reason as Wayne...

Thanks man, great hack I will install as soon as you let me know :)

Zachariah
10-05-2005, 08:01 PM
Hey there, did you make those changes you are referring to?

I do not want it to pull from some of the galleries for the same reason as Wayne...

Thanks man, great hack I will install as soon as you let me know :)


:tired: I'll get in it ;)

dieselpowered
10-05-2005, 08:02 PM
:tired: I'll get in it ;)

Man you are fast...you have 100 browser windows open just refreshing your pages watching for new post? ;)

Thanks man let me know!

Zachariah
10-06-2005, 01:09 AM
Man you are fast...you have 100 browser windows open just refreshing your pages watching for new post? ;)

Thanks man let me know!

45 sir :P

dieselpowered
10-06-2005, 04:34 PM
45 sir :P

LOL excellent...

Nutz
10-06-2005, 09:11 PM
Can anyone get this to work with vB 3.5 Gold. when ever i turn the pluin on the index fails to load.

Any help would be great :)

Thanks,
Mat

Zachariah
10-06-2005, 09:50 PM
http://www.gzhq.net/forums/ vb3 gold - what is your error ?

Can anyone get this to work with vB 3.5 Gold. when ever i turn the pluin on the index fails to load.

Any help would be great :)

Thanks,
Mat

PennylessZ28
10-08-2005, 01:44 AM
Plugin seems to work, but with it on I get this at the top of my page

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

Nutz
10-08-2005, 03:43 PM
http://www.gzhq.net/forums/ vb3 gold - what is your error ?

The page just fails to load the forum templates.

Thanks,
Mat

Nutz
10-08-2005, 03:49 PM
Never mind it was my fault :)

Thanks for the hack, keep up the good work!

Thanks,
Mat

Zachariah
10-08-2005, 08:01 PM
Never mind it was my fault :)

Thanks for the hack, keep up the good work!

Thanks,
Mat

Happy to help.
__________________
eXtremepixels.com

Nice :D

Zachariah
10-08-2005, 10:25 PM
Change Log
===========
1.3
- Display images from specific categories.

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

// $catlimit = 3;

PennylessZ28
10-09-2005, 01:41 AM
BAM, new error message when I try to import

"XML Error: XML_WAR_UNKNOWN_VERSION at Line 27"

Zachariah
10-09-2005, 08:53 AM
BAM, new error message when I try to import

"XML Error: XML_WAR_UNKNOWN_VERSION at Line 27"

I have tested the curent file and have no problems.

AdminCP => Plugin System => Manage Products => [Add/Import Product]

Nutz
10-09-2005, 11:21 AM
Thanks :)

I'm having a little problem, only admins can see the images on the forum home :ermm:
I've tried setting the gallery usergroup permissions to the same as the admin usergroups with no luck, I?m sure this is me again due to your example working fine.

Any help would be appreciated :)

Thanks,
Mat

PennylessZ28
10-10-2005, 03:34 AM
I have tested the curent file and have no problems.

AdminCP => Plugin System => Manage Products => [Add/Import Product]

Oh you don't say becuase

BAM!
XML Error: XML_WAR_UNKNOWN_VERSION at Line 27

What would be a root cuase of this? I'm amazed that you have no problems becuase your system probably ain't the same as mine. :rolleyes:

PennylessZ28
10-10-2005, 03:37 AM
I had this installed before hand, but becuase it through an error, I uninstalled, but since you upgraded it I reinstalled it.

REFERENCE POST #34

Plugin seems to work, but with it on I get this at the top of my page

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

Zachariah
10-10-2005, 11:19 AM
I had this installed before hand, but becuase it through an error, I uninstalled, but since you upgraded it I reinstalled it.

REFERENCE POST #34

I have installed it 30-40 times on forums. I have never seen this error. I have found some other code errors, but never a problem on install.

Have you made the file Edits ?

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

'mailqueue'

Replace with:

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

I have a few bugs to crush - Hit me up on IM if your still stuck.

sensimilla
10-10-2005, 12:12 PM
how can I setup usergroups to see it or not ?

and I really need it under navbar in CMPS... thanks ;)

it works like a charm

jluerken
10-10-2005, 12:12 PM
Installing this hack brings me:
Parse error: parse error in /xyz/html/forum/index.php(470) : eval()'d code on line 173

Yes, I have made the file edit!

Zachariah
10-10-2005, 12:16 PM
Installing this hack brings me:
Parse error: parse error in /xyz/html/forum/index.php(470) : eval()'d code on line 173

Yes, I have made the file edit!

That's so weird . I'll plug on it and see what I can find out. :disappointed: :tired:

how can I setup usergroups to see it or not ?

and I really need it under navbar in CMPS... thanks ;)

it works like a charm

That should carry over from the gallery.

thedvs
10-10-2005, 01:04 PM
If i have....

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

...in my config then on the home display page the collapse menu bar only goes above 3 images and not over the 4th image.

its fine if I set it to $galleryimagelimit = 3;

Zachariah
10-10-2005, 01:08 PM
If i have....

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

...in my config then on the home display page the collapse menu bar only goes above 3 images and not over the 4th image.

its fine if I set it to $galleryimagelimit = 3;


Number of Columns
The number of columns to display in a single row before splitting down to the next one.

AdminCP - vBa Gallery - Modify Settings - Browse Category Options - Number of Columns:


If that changes other things on your site you do not want Changed below to the # of images you wish to show up.


This is the code you were told to paste into your forumhome.
<!-- start Gallery Images -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$vba_options[gallery_columns]">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gallery_random')">

thedvs
10-10-2005, 01:14 PM
This also seems not work with Firefox or netscape?

The display when viewing forum home with mozilla firefox (or netscape) its completely collapsed and not showing the images (even with clicking the collapse button nothing shows). - Yet both browsers have no problem with other collapsables, only this hacks one.

Zachariah
10-10-2005, 02:15 PM
This also seems not work with Firefox or netscape?

The display when viewing forum home with mozilla firefox (or netscape) its completely collapsed and not showing the images (even with clicking the collapse button nothing shows). - Yet both browsers have no problem with other collapsables, only this hacks one.

I am doing a revamp of the code - There is a lot of garbage in there from 5 other people that made edits to the code since it was 1st designed.

I'll have something soon.

thedvs
10-10-2005, 02:18 PM
I am doing a revamp of the code - There is a lot of garbage in there from 5 other people that made edits to the code since it was 1st designed.

I'll have something soon.

That's great, that issue is the only thing letting this down.

*INSTALLED*

jluerken
10-10-2005, 02:49 PM
I am doing a revamp of the code - There is a lot of garbage in there from 5 other people that made edits to the code since it was 1st designed.

I'll have something soon.

Yes thats great. Could you send an update around when this is done?

Zachariah
10-10-2005, 02:57 PM
Yes thats great. Could you send an update around when this is done?

Edited: Beta removed.

Blackhat
10-10-2005, 03:06 PM
I'm trying to add this to my sidebar but nothing shows up :(
I guess its because I'm trying to add it to my sidebar custom template so how can I make it work there?

http://www.librarium-online.com/forums/index.php

Zachariah
10-10-2005, 03:19 PM
I'm trying to add this to my sidebar but nothing shows up :(
I guess its because I'm trying to add it to my sidebar custom template so how can I make it work there?

http://www.librarium-online.com/forums/index.php

How did you add the sidebar ?

thedvs
10-10-2005, 03:20 PM
Sure, I have something done now. Anyone care to test before I SPAM all the installers of the new ver ?

Beta Only:
Everyone in general, please do not upgrade your hacks. This is not an "update".
It is for beta testers only.

I need browser compatability and test of $catlimit.

I know of a few phrases that are missing.

Works okay now in Firefox & Netscape :)

Zachariah
10-10-2005, 03:29 PM
Beta testers:
If anyone has some time I am in the vb.org IRC server. For a while. It would be better than mass messages here.

https://vborg.vbsupport.ru/chat.php?

/join #help

Blackhat
10-10-2005, 04:23 PM
How did you add the sidebar ?

I just made a custom template and modified FORUMHOME with tables then made a hook for the $sidebar template that I included in the FORUMHOME custom table.

GrendelKhan{TSU
10-10-2005, 04:52 PM
love this hack and its continued improvements...
one problem...

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

anyone else get this to actually work?

Blackhat
10-10-2005, 06:11 PM
My picture is stuck, same over and over again and it does not work in explorer. The latest comments and rating does not work either

Zachariah
10-10-2005, 08:04 PM
My picture is stuck, same over and over again and it does not work in explorer. The latest comments and rating does not work either

Good to note, there is still a lot to work out :) - The 1st time the hack was made it had a lot of problems. You are reporting on the beta file ?


EDIT:
The only problems I see so bar w/ the beta is:

phrases:
Filesize
Dimensions
Category

And to kill the table that is on the forumhome when a user/usergroup can not see thumbnails.

patsalko
10-10-2005, 08:27 PM
I installed the hack and it works fine except only admin can see it on FORUMHOME.
All users can see images when they go directly to the gallery.

Any ideas why???

Nutz
10-10-2005, 08:32 PM
Hi patsalko,

I had just the same issue. Try the new Beta here:
https://vborg.vbsupport.ru/showpost.php?p=791982&postcount=57

That did the trick for me :)

Thanks,
Mat

PennylessZ28
10-10-2005, 09:39 PM
I have installed it 30-40 times on forums. I have never seen this error. I have found some other code errors, but never a problem on install.

Have you made the file Edits ?



I have a few bugs to crush - Hit me up on IM if your still stuck.

Yup I made file edits, this error is given when I try to import the XML file only. Could this be related to a previous install or perhapps another plugin?

I already had one other plugin in that seemed to conflict with another one.

PennylessZ28
10-10-2005, 09:42 PM
Ok, the only thing I did different since last night was try to install the beta. Seems to be working, it's possible my download was corupt.

Zachariah
10-10-2005, 09:44 PM
Ok, the only thing I did different since last night was try to install the beta. Seems to be working, it's possible my download was corupt.

The beta is closer to being gold. The other file does have a lot of junk. I seen you in chat, then you left. :p

- I pop in and out reason for no responce instant, trying to code also ;D
* HR3rdGen has joined #help
<HR3rdGen> Vambam
<HR3rdGen> I'm in
<HR3rdGen> Zac
* HR3rdGen has quit IRC (Visit the Dev|Core IRC Java Chat: http://irc.devcore.co.uk/chat/)

PennylessZ28
10-10-2005, 09:51 PM
Yeah someone called me, then they hung up. Blah.

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

PennylessZ28
10-10-2005, 09:53 PM
Plugin - Forumhome: Gallery Main

Try this:

Find:
$getrand = $db->query_read("
SELECT imageid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
$query[tables]
WHERE $privcatids valid = 1 $ignquery
ORDER BY $galleryorderby
LIMIT $galleryimagelimit
");

Replace
$getrand = $db->query_read("
SELECT imageid, catid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
$query[tables]
WHERE $privcatids valid = 1 $ignquery
AND catid in (1,2,3,4,5,6,7,8,9)
ORDER BY $galleryorderby
LIMIT $galleryimagelimit
");

The RED can be filled in by Cat ID's


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

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

Zachariah
10-10-2005, 09:56 PM
no problem :D but dont use that.

Plugin - Forumhome: Gallery Main

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

//$catlimit = 3;

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

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


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

PennylessZ28
10-10-2005, 10:04 PM
:( ok they are still showing up :(

PennylessZ28
10-10-2005, 10:05 PM
Crap, too late

PennylessZ28
10-10-2005, 10:05 PM
Ok that does it, I'll just wait. :)

GrendelKhan{TSU
10-11-2005, 05:00 AM
love this hack and its continued improvements...
one problem...

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

anyone else get this to actually work?

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

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

any ideas?

GrendelKhan{TSU
10-11-2005, 03:55 PM
also.... is there a way to limit/control the size of the thumbnail?

or does follow the vbGallery setting?

Zachariah
10-11-2005, 04:56 PM
also.... is there a way to limit/control the size of the thumbnail?

or does follow the vbGallery setting?

gallery setting ( it pulls the thumbnails already made)

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

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

Rukas
10-12-2005, 03:20 AM
Im getting this error:

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

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

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

Rukas
10-12-2005, 03:25 AM
And the beta gives me these errors:

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

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

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

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

Zachariah
10-12-2005, 03:43 AM
Did you do the file edit on: forums/index.php // you also have to make the Template change that is in the main Zip file.

The Beta is only the XML file of the hack.

And the beta gives me these errors:

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

Warning: Invalid argument supplied for foreach() in /index.php(463) : eval()'d code on line 231

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

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

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

Rukas
10-12-2005, 04:19 AM
^^ Yes.

Rukas
10-12-2005, 04:24 AM
Ok Ive gotten rid of the error (made a silly mistake i wont even mention hehe) and now it "works", but it doesnt actually display any photos.

http://www.streethop.com/forum/

Rukas
10-12-2005, 04:25 AM
Alright, the beta seems to work now, great.

Zachariah
10-12-2005, 04:18 PM
Change Log
===========
1.5
- <If> usergroup can not see thunbnails FORUMHOME edit will not show up.

1.4
- Removed Phrase to name gallery <table> now use $vba_options[gallery_title]
- Added 3 prases in "global" - filesize,category,dimensions

Upgrade needs a reinstall of XML product over the old one and replace FORUMHOME template edit.

The file edit did not change.

jluerken
10-12-2005, 05:44 PM
Hi Zachariah,

I updated to 1.5 and still get the error:

Parse error: parse error in /path/forum/index.php(470) : eval()'d code on line 141

I want to use this hack so let find out how to solve this :D

Zachariah
10-12-2005, 06:50 PM
Hi Zachariah,
I updated to 1.5 and still get the error:
Parse error: parse error in /path/forum/index.php(470) : eval()'d code on line 141
I want to use this hack so let find out how to solve this :D

I have not ran into this error.
Take a look @ syntax - perhaps a space or " ' ; that was removed.

Looking @ the index.php file around that area it is erroring, perhaps another hack you have installed ?

// ### TODAY'S EVENTS
line 141
if (!is_array($vbulletin->eventcache) OR $future != $vbulletin->eventcache['date']){

Did you add a plugin for the calendar or something to do w/ events or birthdays?

mholtum
10-12-2005, 06:51 PM
Number of Columns
The number of columns to display in a single row before splitting down to the next one.

AdminCP - vBa Gallery - Modify Settings - Browse Category Options - Number of Columns:


If that changes other things on your site you do not want Changed below to the # of images you wish to show up.


This is the code you were told to paste into your forumhome.
<!-- start Gallery Images -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$vba_options[gallery_columns]">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gallery_random')">
Works like a friggen charm. After I read this post 12 times trying to figure out exactly what you meant. I have been on a steady diet of some pretty heavy pain meds for the last 6 weeks trying to recover from, well, anyway, today is my first day out of bed and I have upgraded my site and have almost everything ready again.. I have been starinig at this post ( all three of them) for the last 20 minutes and it finally sunk in... I need a beer. Thanks man..

Zachariah
10-12-2005, 06:56 PM
... I need a beer. Thanks man..
Don't drink them all :D - Its what gets me past the parse errors durring code.

I realy should of changed it to the same value as $galleryimagelimit so that when changes are made to the # of images show, it fixes the size of the table.

That was in the original hack. Perhaps if there is something else to add / fix I'll sneak it in.

jluerken
10-13-2005, 08:20 AM
I have not ran into this error.
Take a look @ syntax - perhaps a space or " ' ; that was removed.

Did you add a plugin for the calendar or something to do w/ events or birthdays?

I have installed:
Event Forums 1.0 Creates tight integration between a forum and a calendar.

but even if I deactive this its not working.

GrendelKhan{TSU
10-13-2005, 09:16 AM
btw...
are there any specific instructions for upgrading?

or do I just upload the product with overwrite ON? just checking.

:)

thedvs
10-13-2005, 10:11 AM
hehe if i turn the TITLE on, its now showing at the bottom of the thumbs,
on the beta it was above...

Zachariah
10-13-2005, 12:27 PM
btw...
are there any specific instructions for upgrading?

or do I just upload the product with overwrite ON? just checking.

:)


Upgrade needs a reinstall of XML product over the old one and replace FORUMHOME template edit.

The file edit did not change.

HMBeaty
10-13-2005, 05:34 PM
My little...........bar in the header doesn't go all the way across the template and I can't find where to change that at. Can someone help me on this please? Thanks. (See attachment to see what I mean)

thedvs
10-14-2005, 12:00 PM
@NRR see post https://vborg.vbsupport.ru/showpost.php?p=791903&postcount=52

HMBeaty
10-14-2005, 04:30 PM
@NRR see post https://vborg.vbsupport.ru/showpost.php?p=791903&postcount=52
Awesome, that worked. Thank you very much

Blackhat
10-14-2005, 06:41 PM
I get this:

Fatal error: Call to a member function on a non-object in /home/usr/public_html/forums/includes/functions_gallery.php on line 1082

Zachariah
10-15-2005, 01:34 PM
I get this:

Fatal error: Call to a member function on a non-object in /home/usr/public_html/forums/includes/functions_gallery.php on line 1082

Line 1082:
$images['description'] = $bbcode_parser->do_parse(stripslashes($images[' .........................

(there is more, but i killed the rest)



Set:
$showfields['description'] = 0;

There may be problems with the "description" part of the hack. Try that to see if it works.

mooj
10-17-2005, 09:30 AM
Thanks :)

I'm having a little problem, only admins can see the images on the forum home :ermm:
I've tried setting the gallery usergroup permissions to the same as the admin usergroups with no luck, I?m sure this is me again due to your example working fine.

Any help would be appreciated :)

Thanks,
Mat


the same problem .. :ninja:
would you kindly see over it ..?

mooj
10-17-2005, 09:46 AM
i tried to cedit (each) group permission and save it as it is, in order to change it from (Default Permissions ) to (Custom Permissions) .. ( and it works properly :) .. )

Nutzz,
try to do it from (Category Permissions > and change the yellow color to red ) ..

:)

Zachariah
10-17-2005, 12:09 PM
@mooj and others.

The only thing that will stop the images from showing up on the forumhome is in ver. 1.5 of the hack.

1.5
- <If> usergroup can not see thunbnails FORUMHOME edit will not show up.

AdminCP => vBa Gallery => Usergroup Permissions => Modify Permissions =>

Can view thumbnails: [ ]yes [x]no

Jason McConnell
10-17-2005, 03:03 PM
Line 1082:
$images['description'] = $bbcode_parser->do_parse(stripslashes($images[' .........................

(there is more, but i killed the rest)



Set:
$showfields['description'] = 0;

There may be problems with the "description" part of the hack. Try that to see if it works.

Back when KW802 first released this hack, he had a problem with the word stripslashes... for some reason they were getting an extra space added in there somewhere.

I'm also glad to say it's working fine on this end :D Any plans on releasing this as a CMPS Module?

Zachariah
10-17-2005, 06:36 PM
Back when KW802 first released this hack, he had a problem with the word stripslashes... for some reason they were getting an extra space added in there somewhere.

I'm also glad to say it's working fine on this end :D Any plans on releasing this as a CMPS Module?

Yes sir. on the Module - ill look on the error to see if KW got an fix on that error.

jlaine
10-18-2005, 06:17 AM
Line 1082:
$images['description'] = $bbcode_parser->do_parse(stripslashes($images[' .........................

(there is more, but i killed the rest)



Set:
$showfields['description'] = 0;

There may be problems with the "description" part of the hack. Try that to see if it works.

It doesn't (at least not for me - I'm having the same issue) - looking into the comment on the whitespace issue above though...

MotoUp
10-18-2005, 09:05 PM
Works great, thanks. :D

Michael-DLR
10-18-2005, 11:45 PM
I get this:

Fatal error: Call to a member function on a non-object in /home/usr/public_html/forums/includes/functions_gallery.php on line 1082

I upgraded tonight and now I am in the same situation. Any time frame when we think we will have a fix?

Thank you,

Michael

Zachariah
10-19-2005, 12:16 PM
I upgraded tonight and now I am in the same situation. Any time frame when we think we will have a fix?

Thank you,

Michael

I found this @ Vbadvanced.com. My personal Gallery already has this edit, but it might help.

Quote:
Fatal error: Call to a member function on a non-object in /path/to/forums/includes/functions_gallery.php on line 1082


... un-ticking the "Descriptions" on the Gallery Settings, Main Page display, allows the front page to load up fine. Thoughts?


If you'll look in your includes/functions_gallery.php file for this code:
global $vba_options, $stylevar, $vbulletin, $vbphrase, $show, $adv_sorturl, $catinfo, $counter, $cellwidth, $categoryperms, $showfields, $categorycache, $catopts;


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


Then find:
$images['description'] = parse_bbcode2(stripslashes($images['description']), $catopts["$images[catid]"]['allow_desc_html'], $catopts["$images[catid]"]['allow_desc_bbimgcode'], $catopts["$images[catid]"]['allow_desc_smilies'], $catopts["$images[catid]"]['allow_desc_bbcode']);


Replace with:
$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']);


And that should take care of the problem.

Michael-DLR
10-19-2005, 12:40 PM
I found this @ Vbadvanced.com. My personal Gallery already has this edit, but it might help.




If you'll look in your includes/functions_gallery.php file for this code:
global $vba_options, $stylevar, $vbulletin, $vbphrase, $show, $adv_sorturl, $catinfo, $counter, $cellwidth, $categoryperms, $showfields, $categorycache, $catopts;


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


Then find:
$images['description'] = parse_bbcode2(stripslashes($images['description']), $catopts["$images[catid]"]['allow_desc_html'], $catopts["$images[catid]"]['allow_desc_bbimgcode'], $catopts["$images[catid]"]['allow_desc_smilies'], $catopts["$images[catid]"]['allow_desc_bbcode']);


Replace with:
$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']);


And that should take care of the problem.

Thank you so much for helping. My file already has these changes in it as well. I wonder what the problem could be?

jlaine
10-21-2005, 04:02 AM
There definitely was a whitespace error inside my functions_gallery - but it did not remedy the situation. Zachariah - can I send you my existing functions_gallery.php file so you can compare it to yours? (or the other way around, whichever...)

Perhaps you can do a live swap to see if there is another whitespace error somewhere inside that file that I didn't see - at least it could be ruled out that way anyway. Seems to have to do something with the actual parsing function itself - because I've found if the images it pulls up have no image descriptions at all - the page loads fine. Doesn't seem to effect it one way or the other if I disable or enable the display descriptions inside the mod you've made though.

Acers
10-21-2005, 07:22 AM
anyway to make this work so that the images are shown only in a specific forumdisplay rather than the forumhome?
eg if i have a movie forum, then in that forumdisplay i want to show the images from the gallery (moovie subsection)

Zachariah
10-21-2005, 11:50 AM
anyway to make this work so that the images are shown only in a specific forumdisplay rather than the forumhome?
eg if i have a movie forum, then in that forumdisplay i want to show the images from the gallery (moovie subsection)

The plugins will not be a problem to re-route. The only big thing @ the moment is the file(s) that need to be edited.

This hack edits forums/index.php. To show on a fourmdisplay there will have to be some edits to forumdisplay.php and/or showthread.php. Untill VB DEVS re-code $specialtemplates to allow a plugin.

Acers
10-21-2005, 12:16 PM
hmm ok ready to do file edits if that can be done.
can you give the code if its possible :)

Zachariah
10-21-2005, 02:35 PM
hmm ok ready to do file edits if that can be done.
can you give the code if its possible :)

Try this out. ( I have not tested this yet)

1)
edit plugin: Forumhome: Gallery Main
change hook to: forumdisplay_complete

2)
edit forumdisplay.php
Find:
'mailqueue'

Replace with:

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

3)
Now add the following in your 'FORUMDISPLAY' template where you would like the images to appear change $forumid to forums you want.

<!-- start Gallery Images -->
<if condition="$forumid=1,2,3,4,5">
<if condition="$randomimagebits">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$vba_options[gallery_columns]">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gallery_random')">
<img id="collapseimg_forumhome_gallery_random" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0"/>
</a>
<a href="$vba_options[gallery_url]">$vba_options[gallery_title]</a>
</td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_gallery_random" style="$vbcollapse[collapseobj_forumhome_gallery_random]">
<tr>$randomimagebits</tr>
</tbody>
</table><br /></if></if>
<!-- end Gallery Images -->

To show on every page of a thread vs. forum index
edit: showthread.php

Find
'hidprofilecache'

Replace with:

'hidprofilecache',
'gallery_c_cache',
'adv_gallery_opt',
'gallery_ugroups'

3)
Now add the following in your 'SHOWTHREAD' template where you would like the images to appear change $forumid to forums you want.

<!-- start Gallery Images -->
<if condition="$forumid=1,2,3,4,5">
<if condition="$randomimagebits">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$vba_options[gallery_columns]">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gallery_random')">
<img id="collapseimg_forumhome_gallery_random" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0"/>
</a>
<a href="$vba_options[gallery_url]">$vba_options[gallery_title]</a>
</td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_gallery_random" style="$vbcollapse[collapseobj_forumhome_gallery_random]">
<tr>$randomimagebits</tr>
</tbody>
</table><br /></if></if>
<!-- end Gallery Images -->

Zachariah
10-21-2005, 08:15 PM
I upgraded tonight and now I am in the same situation. Any time frame when we think we will have a fix?

Thank you,

Michael

Sir try this:


Plugin: Forumhome: Gallery Main

Find:
require_once('./includes/class_bbcode.php');

after add:
$show['category'] = true;

Michael-DLR
10-21-2005, 08:48 PM
Sir try this:


Plugin: Forumhome: Gallery Main

Find:
require_once('./includes/class_bbcode.php');

after add:
$show['category'] = true;

Hi,

Thank you so much for looking into this for me. I have added the code as per your instructions and I get the same error.

Thank you,

Michael

Michael-DLR
10-21-2005, 10:48 PM
I opted to use this http://www.vbadvanced.com/forum/showthread.php?t=10224

Until we can figure out why the call member function is not working correctly for me.

Thank you!

Michael

cbr929rrerion
10-22-2005, 09:29 PM
Plugin - Forumhome: Gallery Main

Try this:

Find:
$getrand = $db->query_read("
SELECT imageid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
$query[tables]
WHERE $privcatids valid = 1 $ignquery
ORDER BY $galleryorderby
LIMIT $galleryimagelimit
");

Replace
$getrand = $db->query_read("
SELECT imageid, catid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
$query[tables]
WHERE $privcatids valid = 1 $ignquery
AND catid in (1,2,3,4,5,6,7,8,9)
ORDER BY $galleryorderby
LIMIT $galleryimagelimit
");

The RED can be filled in by Cat ID's


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


where is this code located?

Zachariah
10-22-2005, 10:15 PM
where is this code located?

Please click " install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=96152) " for updates

Old code: now looks like this.

USEAGE:

When you create the Module:
Title Row Colspan: image count (you choose a value)


Admincp => Plugin Manager => Hook Location : forumhome_complete => Forumhome: Gallery Main => EDIT



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

// $catlimit = 3;

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

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

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

lazytown
10-24-2005, 11:11 AM
I had some serious problems when I installed this. It worked at first, but then threw off my entire forum. I'd like to run it, so please let me know when there is an update or other people are running this stable.

-V

cbr929rrerion
10-24-2005, 11:06 PM
That worked.. awesome.. ya may want to add.. maybe I missed it, the cat numbers listed are cats that will be shown, want one not to show leave that # out..

Great idea short term but when a gallery get huge, 50000 cats it will stink..

Need a toold to list just the ones to not use and will use all others by default...

But hey.. works for now.. Thanks...

PennylessZ28
10-24-2005, 11:08 PM
Is this thing every going to be updated?

Zachariah
10-24-2005, 11:36 PM
Oh yes, I plan to. Trying now to organize my code projects / harddrives.

You know 450k files on my desktop and 2500 "New Folder, New Folder (1),New Folder (2), New Folder (300)"

Did you know @ 75 folders deep there is a filelock In win2k/XP that even if empty you can not Del some folders. (even in safe mode) - but you can in "dos mode" if you will (boot from CD)

:eek: :D :p

PennylessZ28
10-24-2005, 11:43 PM
I'm stupid < FOOT IN MOUTH>

Zachariah
10-25-2005, 12:12 AM
I'm stupid < FOOT IN MOUTH>

:laugh: :confused: :confused:

I am lost what ?


That worked.. awesome.. ya may want to add.. maybe I missed it, the cat numbers listed are cats that will be shown, want one not to show leave that # out..

Great idea short term but when a gallery get huge, 50000 cats it will stink..

Need a toold to list just the ones to not use and will use all others by default...

But hey.. works for now.. Thanks...

Great idea - will add to the next update.

cbr929rrerion
10-26-2005, 11:20 PM
Any way to add 2 rows of pics, maybe one random one newest, or just 2 rows, 5 each of the newest pics...

Zachariah
10-26-2005, 11:41 PM
Any way to add 2 rows of pics, maybe one random one newest, or just 2 rows, 5 each of the newest pics...
Sure you could do another row w/ its own config settings.

2 queries 1 per row.

cbr929rrerion
10-26-2005, 11:51 PM
example pretty please

cbr929rrerion
10-26-2005, 11:55 PM
I have newest now.. How about from just 1 catagory or what can my options be..

and KUDO's to you for the fast reply.. much appreciated

Zachariah
10-27-2005, 12:42 AM
I have newest now.. How about from just 1 catagory or what can my options be..

and KUDO's to you for the fast reply.. much appreciated

I will have to work on 2 blocks each w/ settings.

Admincp => Plugin Manager => Hook Location : forumhome_complete => Forumhome: Gallery Main => EDIT

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

// $catlimit = 3;

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

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

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

Later Ver will have these settings in a gallery admin menu area (for speed and easy settings change)

I hate to try and REM what fricken plugin to edit to do what. :tired:

cbr929rrerion
10-27-2005, 12:50 AM
so I just need to replace the existing with this 2 have 2 rows?

cbr929rrerion
10-27-2005, 12:56 AM
here is my site, I havae 2 rows on there but both show the same thing.. I want 1 Newest and 1 random..

www.crotchrocketracing.com..

Thanks

Blackhat
10-27-2005, 10:04 AM
How is this project working now? Have you updated the first post so I can try again ?

Blackhat
10-27-2005, 10:13 AM
I have downloaded and done all the stuff in the readme text file and I get this error:

Fatal error: Call to a member function on a non-object in /home/usr/public_html/forums/includes/functions_gallery.php on line 1082

This error shows up randomly, it works sometimes

and one last thing, can it be possible to rate the image from this "gallery block"?

Zachariah
10-27-2005, 12:30 PM
I have downloaded and done all the stuff in the readme text file and I get this error:

This error shows up randomly, it works sometimes

and one last thing, can it be possible to rate the image from this "gallery block"?

Ill look @ that, personaly I have never had this error on 8 forums I have installed it too. :disappointed:


@cbr929rrerion - Not yet sir on 2 rows. Ill look @ what I can do.

SpaceStar
10-27-2005, 07:36 PM
Get this error when installed:

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

Fatal error: (null)(): Failed opening required './includes/functions_gallery.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/index.php(462) : eval()'d code on line 3

any clue??

SpaceStar
10-27-2005, 07:49 PM
//Latest Images In ForumHome BEGIN

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

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
this file is not included in the zip folder for 3.5 ???

SpaceStar
10-27-2005, 08:20 PM
I've got the answer after reading other posts :)

Zachariah
10-27-2005, 09:16 PM
I've got the answer after reading other posts :)

Please click " install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=96152) " for updates

:)

divided_by_fear
10-29-2005, 05:14 AM
is there any way you could get this working for vBadvanced CMPS v2.0.0 and if so thank you very much... cause i have both installed was hoping i could merge them together somehow...

Zachariah
10-29-2005, 09:13 AM
is there any way you could get this working for vBadvanced CMPS v2.0.0 and if so thank you very much... cause i have both installed was hoping i could merge them together somehow...

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

divided_by_fear
10-29-2005, 01:13 PM
**sorry**

Zachariah
10-29-2005, 02:35 PM
**sorry**

Not a problem, happy to help.

*Tip - take a look in the profile area (https://vborg.vbsupport.ru/member.php?u=6872) of the person who made the hack. This site lists everything done by the programer "coder". Not only will ya find quicker :o answers but great ideas (like window shoping). :D

divided_by_fear
10-29-2005, 02:46 PM
hell yeah now you really have me window shoping on yours lol

Uyaphiafrica
11-04-2005, 12:52 PM
Would this work with a photpost gallery ( I very much doubt though)

Zachariah
11-04-2005, 01:42 PM
Would this work with a photpost gallery ( I very much doubt though)

No, but perhaps I can work something up.

VaaKo
11-08-2005, 09:39 AM
I'm facing a weird problem
I have edited index.php and uploaded it, and everything is normal till now, but when I upload the xml file, it starts giving me a blank page on the main page of the forum whenever I refresh...

any suggestions?

Zachariah
11-08-2005, 10:03 AM
I'm facing a weird problem
I have edited index.php and uploaded it, and everything is normal till now, but when I upload the xml file, it starts giving me a blank page on the main page of the forum whenever I refresh...

any suggestions?

1) Upload the XML - would mean import the XML file as a "Product" correct ?
2) Have you made the ForumHome template edit ?
3) VBA gallery installed ( it is required - this hack is not a gallery)

VaaKo
11-08-2005, 06:36 PM
1) Upload the XML - would mean import the XML file as a "Product" correct ?
yes of course

2) Have you made the ForumHome template edit ?

no, not yet, I just changed the php file and imported the xml file

3) VBA gallery installed ( it is required - this hack is not a gallery)
it's installed

SpaceStar
11-11-2005, 05:33 PM
Excellent - Installed

dieselpowered
11-11-2005, 09:11 PM
I'm facing a weird problem
I have edited index.php and uploaded it, and everything is normal till now, but when I upload the xml file, it starts giving me a blank page on the main page of the forum whenever I refresh...

any suggestions?

Same problem here?????

Any resolution to this??

dieselpowered
11-11-2005, 09:14 PM
1) Upload the XML - would mean import the XML file as a "Product" correct ?
2) Have you made the ForumHome template edit ?
3) VBA gallery installed ( it is required - this hack is not a gallery)

I have done all of this and still get a blank page on forum home.

Any thoughts?

Zachariah
11-11-2005, 09:42 PM
I have done all of this and still get a blank page on forum home.
Any thoughts?

VB 3.5.0 or .1 ? - I have not tested w/ 3.5.1 - yet, but it should not matter.

divided_by_fear
11-11-2005, 10:29 PM
works fine on my 3.5.1

Zachariah
11-11-2005, 10:57 PM
works fine on my 3.5.1
Thank you Sir.

divided_by_fear
11-12-2005, 04:01 PM
no thank you for a excellent mod...

dieselpowered
11-12-2005, 04:31 PM
VB 3.5.0 or .1 ? - I have not tested w/ 3.5.1 - yet, but it should not matter.

I was trying it on a 3.5 board. :)

VaaKo
11-13-2005, 05:30 PM
I have done all these steps and still getting a blank page when I import the xml file, i'm on 3.5.1

any help plz

dieselpowered
11-14-2005, 12:22 AM
I have done all these steps and still getting a blank page when I import the xml file, i'm on 3.5.1

any help plz

I feel your pain...hopefully there will be a resolution.

Zachariah
11-14-2005, 01:07 AM
Guys and gals, gimi a day or so, I am installing a new forums ... lots of OFF line stuff going on and not a lot of "hack" time. Ill shoot off some fixes soon.

dieselpowered
11-14-2005, 03:19 AM
I did get it to work on my 3.5.1 forums, however, did not work on my 3.5 :)

mooj
11-17-2005, 04:28 PM
can I ask how would I make it so the row appeared with two different sets of images?

that is, if there are 5 images I want to make it so:

--1 (one) random image appears in first box. (with "Random Image" in the title)
--then 4 new images after it (with "New Images" in the title).

is this possible?

I tried a few things and failed miserably. :(

:) ..
.................

VaaKo
11-19-2005, 02:05 PM
any news on the bug fix?

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

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

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

They are on the drawing board again for a rework.

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

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

moonclamp
11-24-2005, 12:38 AM
I have unhashed the $catlimit in order to exclude some categories so it now reads

$catlimit = 2,4,5,9,10;


But now I get the following

Parse error: parse error, unexpected ',' in /home/serverpath/public_html/forums/index.php(466) : eval()'d code on line 4

PennylessZ28
11-24-2005, 12:44 AM
I have unhashed the $catlimit in order to exclude some categories so it now reads

$catlimit = 2,4,5,9,10;


But now I get the following

Parse error: parse error, unexpected ',' in /home/serverpath/public_html/forums/index.php(466) : eval()'d code on line 4

Join the club.

Zachariah
11-24-2005, 01:10 AM
Join the club.

Multi Cats - Add single quotes around ##'s

$catlimit = '2,4,5,9,10';

$catlimit = 2;

Thats all part of the updates. - it will work better

PennylessZ28
11-24-2005, 01:13 AM
Multi Cats - Add single quotes around ##'s

$catlimit = '2,4,5,9,10';

$catlimit = 2;

Thats all part of the updates. - it will work better

It never said that in the directions you slutch!!!! :mad:



j/p

Zachariah
11-24-2005, 01:14 AM
It never said that in the directions you slutch!!!! :mad:



j/p

I know man ...... its been one of those years.

Grant Sherwood
11-24-2005, 04:19 PM
Multi Cats - Add single quotes around ##'s

$catlimit = '2,4,5,9,10';

$catlimit = 2;

Thats all part of the updates. - it will work better

Ok, tell me what im doing wrong.

the cat. ID i want to make where it doesn't pull images from is 13. so would i put this?
//$catlimit = 13;

if thats what im supposed to do it isn't working. any suggestions?

Zachariah
11-24-2005, 09:58 PM
Ok, tell me what im doing wrong.

the cat. ID i want to make where it doesn't pull images from is 13. so would i put this?
//$catlimit = 13;

if thats what im supposed to do it isn't working. any suggestions?

This only limits pulling from XYZ not skip XYZ. There will be a new ver. soon.

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

Grant Sherwood
11-24-2005, 10:25 PM
This only limits pulling from XYZ not skip XYZ. There will be a new ver. soon.

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

well i am willing to test it for ya. but as of right now there is no way to make it not pull images out of that category

Zachariah
11-24-2005, 10:48 PM
well i am willing to test it for ya. but as of right now there is no way to make it not pull images out of that category

Not yet - I will see what I can come up with, but it may be on hold for the new beta.

Grant Sherwood
11-25-2005, 09:31 AM
ok. thanks.

dodgechargerfan
11-25-2005, 03:15 PM
Couldn't you just specify all categories EXCEPT 13 in the "$catlimit =" statement?

croportal
11-25-2005, 08:56 PM
demo link ????

PennylessZ28
11-25-2005, 09:13 PM
this pile work yet? :p

Zachariah
11-26-2005, 12:44 PM
demo link ????

Link (http://www.gzhq.net/forums/index.php?)


this pile work yet? :p

ehhehehe yes mostly, but not finished yet sir.

@ the moment to put some of photopost.com forums together and stamp out some bugs in the gallery. I have not forgot.

I also have a few add-ons in mind.
http://www.photopost.com/forum/showpost.php?p=1131925&postcount=15

moonclamp
11-26-2005, 08:36 PM
I've just discovered that this bypasses the ignore feature (ie ignored users photos are still being displayed.)

Zachariah
11-29-2005, 01:59 PM
I've just discovered that this bypasses the ignore feature (ie ignored users photos are still being displayed.)

Thanks for the info.

trancetopia
12-02-2005, 05:16 AM
I've upgrade vB from 3.5.0 RC3 to 3.5.1 but this modno longer works. I get the following error:

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

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

Anyone know how to fix this?

Thanks.

UPDATED: Ignore this, I didn't redo the file edit!! DOH!!

RaceJunkie
12-05-2005, 11:13 PM
When I click a image on the forum home it takes me to the gallery but I do not see any photos. Any idea what's going on..

http://www.localracechat.com/forums/index.php? (http://)

cmeinck
12-09-2005, 02:26 PM
I tried installing this on VB 3.5. Does it matter that PhotoPost is in a different directory than /forum/.

I installed the XML. I left the configurations as is...
I then edited the index.php as instructed.
I added code to forumhome template.

I'm getting the following error:
Warning: Unknown(./includes/functions_gallery.php): failed to open stream: No such file or directory in /index.php(393) : eval()'d code on line 35

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

Any suggestions?
Chris

dieselpowered
12-09-2005, 02:41 PM
I tried installing this on VB 3.5. Does it matter that PhotoPost is in a different directory than /forum/.

I installed the XML. I left the configurations as is...
I then edited the index.php as instructed.
I added code to forumhome template.

I'm getting the following error:
Warning: Unknown(./includes/functions_gallery.php): failed to open stream: No such file or directory in /index.php(393) : eval()'d code on line 35

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

Any suggestions?
Chris

My friend, I think this is only for vBa Gallery :)

cmeinck
12-09-2005, 02:54 PM
My friend, I think this is only for vBa Gallery
I'm confused. I thought vBa Gallery had become photopost. I posted a request on Photopost forums and was directed to this script.

I guess that's why it doesn't work.

VaaKo
12-09-2005, 03:08 PM
im still getting a blank page when I edit the index.php :(

klaush
12-09-2005, 03:22 PM
im still getting a blank page when I edit the index.php :(


Same here! Any idea, Zachariah?

Zachariah
12-09-2005, 04:39 PM
@ cmeinck - my fault :( , look at your thread @ photopost.com
@ RaceJunkie - what link ? It is broke.

@ Don Corleone, klaush - I have the hack in my hands now, some reasons of MIA.
- I do not know yet why your getting "white" page after file edit yet.
- Did you make the template edit to "forumhome" ?



Hack Update Note:
- Install w/ product and 2 edits in 1 file.
- Killed the need for FORUMHOME template edit.
- 3/4 done w/ AdminCP options to change the hack settings (I hate plugin settings - edits)
- Added: Option to move the display in the Forumhome from under the $navbar to above "what's going on box".
- Added: Parts of the gallery's Nav bar w/ dropdowns
(My Stuff*, What's New, What's Popular,Search) to the hack with on/off option.

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

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


There is something I forgot I know. :tired:

SCREEN(s) !!!!!!

They still have a basic look but you can edit the look :)

I will rework the VBA block and make a Vportal block soon after.

klaush
12-09-2005, 04:53 PM
@ Don Corleone, klaush - I have the hack in my hands now, some reasons of MIA.
- I do not know yet why your getting "white" page after file edit yet.
- Did you make the template edit to "forumhome" ?



Yep. I just perform a fresh install; so i will report later!

Zachariah
12-09-2005, 05:09 PM
Yep. I just perform a fresh install; so i will report later!

Thank you Sir.

klaush
12-09-2005, 05:32 PM
Thank you Sir.

Zachariah, same result. After doing the changes to the index.php the forum page won?t load, i mean i get a blank whitey page - just if it knows that in South Germany snow was falling the last days.

vbulletin 3.5.1 first, now 3.5.2.......

Simone
12-11-2005, 06:53 PM
Hi!

Could you please explain what I have to do exactly? I do not understand it?!

Or could anyone help me to do it? I even did not find "hook"?!
Thanks, Simone

1 file edit
1 template edit
3 phrase
1 query to FORUMHOME

Change Log
===========
1.5
- <If> usergroup can not see thunbnails FORUMHOME edit will not show up.

1.4
- Removed Phrase to name gallery <table> now use $vba_options[gallery_title]
- Added 3 prases in "global" - filesize,category,dimensions

1.3
- Display images from specific categories.

1.2
- added Phrase support

--------------------------------------------------*/
USEAGE:

Admincp => Plugin Manager => Hook Location : forumhome_complete => Forumhome: Gallery Main => EDIT

Zachariah
12-11-2005, 07:56 PM
What you listed was a re-cap / Change log of the progress of the hack and some common settings to look for.

readme.txt - that came with the hack tells all. (its a big post if i posted all in the text file.)

4 steps:
*** How to Install:
1)
2)
3)
4)

I have a new updated one soon
- XML product
- 1 file edit
- AdminCP settings

VaaKo
12-12-2005, 09:35 AM
im still getting the blank page error when I edit index.php

Zachariah
12-12-2005, 11:00 AM
im still getting the blank page error when I edit index.php

95% done with the new ver Sir.

VaaKo
12-12-2005, 08:09 PM
95% done with the new ver Sir.

I didn't get it :\

NuclioN
12-13-2005, 06:18 PM
This errors emerge after upgrading to 3.5.2.

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

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

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

VaaKo
12-13-2005, 06:29 PM
I installed the other non-product version and it worked

klaush
12-13-2005, 06:33 PM
I installed the other non-product version and it worked

Which one do do you mean?

Zachariah
12-14-2005, 12:47 PM
1.7 Beta

Hack includes:
- Hack Active (yes / no)
- Enable Navbar (yes / no)
- Image Count (number of images)
- Image Order (Random, Newest, Most Views, Most Comment, Highest Rated)
- Exclude Catagories
- Only Catagories
- On/Off options for all of the "info" per image
- If gallery is not active hack will vanish (all usergroups)
** Admin will get "Alert: The gallery is currently turned off!" on FORUMHOME

- If gallery settings of a usergroup does not see "thumbnails" the hack will vanish
- No Template edits

C.Birch
12-14-2005, 06:06 PM
how can we move it below the forum list?

RaceJunkie
12-14-2005, 06:48 PM
@ RaceJunkie - what link ? It is broke.


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



One more time.. :nervous:

Zachariah
12-14-2005, 07:06 PM
how can we move it below the forum list?

In the Works.
- with many choices of location.

To keep the hack so that it needs no template edits I did this.

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

Translation:
- Search template FORUMHOME for $navbar and place template forumhome_vbgallery after.


Hook Location : forumhome_complete
- Edit: Forumhome: Gallery Main

Search for:
$search_text = '$navbar';

replace with
$search_text = '<!-- /main -->';

You may have to edit template:
- forumhome_vbgallery

and add: <br />
after: <if condition="$gal_imagebits">

I have planes of a dropdown in AdminCP with 4-5 locations.

- $navbar (* current location)
- Above / below header
- Above what's going on box
- Inside what's going on box

Zachariah
12-14-2005, 07:08 PM
RaceJunkie

I have been real buzy :o
- How can I help you ?

tbroush
12-15-2005, 03:41 PM
Install the beta and is working.

Thanks

mikehawk
12-15-2005, 10:09 PM
im still getting the blank page error when I edit index.php

Same here. :ermm: 3.5.1

Stachel
12-16-2005, 06:09 PM
I didn't want signature images, profile pictures and such to show on the main page.Totally Agree!

The first thing I do to the way my pics are displayed is take all that data away. It's much cleaner looking, and 97% of all people don't care about exactly how many kb or dimensions it is -- they just want to look at the pictures!

Those 3% that do care about dimensions, they probably know how to find them (by looking at properties of the pic).

Thanks Zachariah!

Stachel

TitanJeff
12-16-2005, 07:20 PM
I'm having a bit of trouble.

I feel I installed everything properly but am getting a "gallery turned off" message at the top of the forum index though I know the gallery is still on.

http://www.gotitans.com/goForum/
http://www.gotitans.com/gallery/

Any ideas? Thanks.

RaceJunkie
12-17-2005, 12:15 AM
RaceJunkie

I have been real buzy :o
- How can I help you ?


Don't worry about it. I will wait untill you are done with the new version then install..

Thanks

Zachariah
12-17-2005, 12:58 AM
Don't worry about it. I will wait untill you are done with the new version then install..

Thanks

The beta does not work ?

Zachariah
12-17-2005, 12:59 AM
All the data has options to enable and disable.

Totally Agree!

The first thing I do to the way my pics are displayed is take all that data away. It's much cleaner looking, and 97% of all people don't care about exactly how many kb or dimensions it is -- they just want to look at the pictures!

Those 3% that do care about dimensions, they probably know how to find them (by looking at properties of the pic).

Thanks Zachariah!

Stachel

RaceJunkie
12-17-2005, 01:06 AM
The beta does not work ?

Oh no. I have the original one installed. I was just waiting untill this was updated, so i can remove the other and install this..

Zachariah
12-17-2005, 01:10 AM
Oh no. I have the original one installed. I was just waiting untill this was updated, so i can remove the other and install this..

1st post has the new Beta :D
Take a look @ the readme, scrn shots and new demo.

TitanJeff
12-17-2005, 01:19 AM
Hey Zachariah,

Any ideas about my problem? I'm figuring its not seeing the gallery. I'm hoping it's a simple fix.

Zachariah
12-17-2005, 01:24 AM
Hey Zachariah,

Any ideas about my problem? I'm figuring its not seeing the gallery for whatever reason.

Guests or all users ?
- when was the last time you updated your gallery ?
- did you have the old ver of the hack installed before the beta ? - if so was it working ?

TitanJeff
12-17-2005, 01:30 AM
It was everyone. And totally my goof. I didn't do part B because I read the instructions wrong. :(

Works perfectly!!! Many thanks.

Zachariah
12-17-2005, 01:51 AM
It was everyone. And totally my goof. I didn't do part B because I read the instructions wrong. :(

Works perfectly!!! Many thanks.
Reading wrong is not a problem.
- I speak english and bad english :D
- There is an on going bug w/ guests not being able to see on some installs. I have not found yet what the cause is.

I have installed in 2-3 different setups w/o problems.

I had the same problem .. the change I did was go to

Admin CP >> Vba Gallery >> Category Permissions >> and make a change to one of the groups

I added a new group and change its premission and now it works just fine B=0
I hope this helps & have this fixed

Thanks Zachariah for the Hack

TitanJeff
12-17-2005, 06:00 PM
I do have one more question. I am able to see it on my index at http://www.gotitans.com/goForum but it doesn't appear to show up for registered users or guests.

P.Jackson
12-17-2005, 08:14 PM
installed looks great :)

TitanJeff
12-19-2005, 01:14 AM
Admin CP >> Vba Gallery >> Category Permissions >> and make a change to one of the groups
This took care of my problem of it not showing up for guests and registered users.

Zachariah
12-19-2005, 01:52 AM
This took care of my problem of it not showing up for guests and registered users.

yep
- 1 of the bugs that need killed

looks good man ! :bunny:

midnightwalker
12-19-2005, 11:56 PM
That 's all I get: MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'

I'm using vbb 3.5.2 photopost 5.2.1

GrendelKhan{TSU
12-20-2005, 01:27 AM
bug?

adminCp > vbOptions > vbaGallery -Forumhome > Image Order > Newest

--GUESTS and REGISTERED users can't see NEW IMAGES on forumhome, but admin CAN. :/ Its "stuck" on the images uploaded before I updated to BETA. (had it orginal installed).
--new images show up in gallery, proper, just not on forumhome.

Again, newest image setting is working for all NON-admin.
NOTE: random works fine.

/me is running 3.5.2 and the BETA of this hack.
is it just me? or do other have that issue as well?

GrendelKhan{TSU
12-20-2005, 01:36 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.

Zachariah
12-20-2005, 01:49 AM
That 's all I get: MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'

I'm using vbb 3.5.2 photopost 5.2.1

PhotoPost vBGallery 1.0.1

not

PhotoPost Pro 5.2.1

try:

This is a Plugin.

<?xml version="1.0" encoding="ISO-8859-1"?>

<plugins>
<plugin active="1" product="vbulletin">
<title>Photopost Feature Block</title>
<hookname>forumhome_complete</hookname>
<phpcode><![CDATA[include('/home/photopost/inc_features.php');]]></phpcode>
</plugin>
</plugins>


Change the RED to your the PATH


- Next Place:
$photopostfeature
In your forumhome template below $navbar

- Lastly - inc_features.php
// Number of photos to display
$num_display = 4;

// Number of columns (1 for vertical)
$columns = 4;

// which type of images do you want to show (random, most_view, latest)
$q_switch = "random";

// == END CONFIGURATION ==

Demo:
http://www.mitsubishiunited.com/forums/index.php?

jarod1981?
12-26-2005, 01:15 AM
I have installed this hack but I have this error...:

Database error in vBulletin 3.5.2:

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 = 3)

WHERE user.userid = 1;

MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'
Error Number : 1054
Date : Monday, December 26th 2005 @ 04:11:24 AM
Script : http://www.p2psin.it/forum/index.php?
Referrer : http://www.p2psin.it/forum/admincp/index.php?do=head
IP Address : *******
Username :
Classname : *********

Zachariah
12-26-2005, 01:47 AM
Need to install:
* vBulletin 3.5.2
* PhotoPost vBGallery v1.0.1 (vB 3.5)

Do you have PhotoPost vBGallery v1.0.1 (vB 3.5) installed ?

Looking @ your error:
- MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'

You do not.
I have installed this hack but I have this error...:

Database error in vBulletin 3.5.2:

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 = 3)

WHERE user.userid = 1;

MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'
Error Number : 1054
Date : Monday, December 26th 2005 @ 04:11:24 AM
Script : http://www.p2psin.it/forum/index.php?
Referrer : http://www.p2psin.it/forum/admincp/index.php?do=head
IP Address : *******
Username :
Classname : *********

jarod1981?
12-26-2005, 01:56 AM
Hi Zachariah

Excusme, but Photoplog Gallery and Photopost are different Gallery?

I think it's the same gallery...pardon me

Zachariah
12-26-2005, 02:55 AM
Hi Zachariah

Excusme, but Photoplog Gallery and Photopost are different Gallery?

I think it's the same gallery...pardon me

PhotoPlog: The Lite Gallery ? ... yes they are different.



Photopost (http://www.photopost.com) has 2 gallery script packages.

Photopost Pro @ ver 5.xx
- Independent and can install as standalone or bridge to many forums DB's.

Photopost vBGallery 1.0.1
- Needs vBulletin 3.x / 3.5 to operate.

This is for the vBGallery 1.0.1

Pro ver. (I think)
https://vborg.vbsupport.ru/showpost.php?p=852809&postcount=225

divided_by_fear
12-26-2005, 07:01 AM
any word on when this might be able to chose which section it pulls the images from... cause it kinda sucks if you have mp3s installed it will pull there image and all

Zachariah
12-26-2005, 12:16 PM
Hack includes:
- Hack Active (yes / no)
- Enable Navbar (yes / no)
- Image Count (number of images)
- Image Order (Random, Newest, Most Views, Most Comment, Highest Rated)
- Exclude Catagories
- Only Catagories
- On/Off options for all of the "info" per image
- If gallery is not active hack will vanish (all usergroups)
** Admin will get "Alert: The gallery is currently turned off!" on FORUMHOME

any word on when this might be able to chose which section it pulls the images from... cause it kinda sucks if you have mp3s installed it will pull there image and all

divided_by_fear
12-26-2005, 12:20 PM
sorry i ment this for the vbadva. one i dont run this one no more

Zachariah
12-26-2005, 12:28 PM
sorry i ment this for the vbadva. one i dont run this one no more

:nervous: ?

- This is for the old VBA gallery / now Photopost vBGallery.
- You need some settings for the PRO ver ?

divided_by_fear
12-26-2005, 03:16 PM
nah need it with the settings i had said cause the other one just grabs everything..

- Exclude Catagories
- Only Catagories

i just dont use the one on forums home no more since running vbadvanced

exilera
12-28-2005, 08:49 PM
This took care of my problem of it not showing up for guests and registered users.

What did you do to take care of that problem? I have the same issue; haven't been able to fix it...

Dennis B
12-29-2005, 11:32 PM
Zach,

Man, my index.php is original, although I have quite a few hacks installed... when I upload index.php with the changes, I just get a blank page, even if I turn the hack off in the ACP settings. The only way to get the home page loading again is disabling the hack.

There's probably an interference with some other hack... where should I start looking?

Thx

Zachariah
12-30-2005, 01:10 AM
What did you do to take care of that problem? I have the same issue; haven't been able to fix it...

Admin CP >> Vba Gallery >> Category Permissions >> and make a change to one of the groups

Zach,

Man, my index.php is original, although I have quite a few hacks installed... when I upload index.php with the changes, I just get a blank page, even if I turn the hack off in the ACP settings. The only way to get the home page loading again is disabling the hack.

There's probably an interference with some other hack... where should I start looking?

Thx

right off the bat
- if you are sure the install is ok
- update your gallery to the current one @ photopost.

When was the last time you did an update ?

Dennis B
12-30-2005, 10:43 AM
Zach,

Yes, the install looks good. I updated the gallery the day after VBAG was "move" to PP. Were there any changes since then?

Thx

Rich
12-30-2005, 11:06 AM
Hello,

I am still running the vbadvanced gallery by Brian. I installed this yesterday on my 3.5.2 board and everything went fine. I run vbcmps as well so my forum index page was renamed. For the record, my site is HEAVILY modified. None of the modifications I have installed are causing a problem with this. (At least not yet. ;) )

Zachariah
12-30-2005, 11:50 AM
No no changes to the downloaded package yet.

- I am working with a heavy edited ver w/ many added bug fixes from the forums @ PP that was found and moved from advadvanced.

- I'll do a flat new install and see what I can come up with. This could take a little time. Don't have a lot of time @ moment.


Zach,

Yes, the install looks good. I updated the gallery the day after VBAG was "move" to PP. Were there any changes since then?

Thx

Dennis B
12-30-2005, 05:22 PM
No no changes to the downloaded package yet.

- I am working with a heavy edited ver w/ many added bug fixes from the forums @ PP that was found and moved from advadvanced.

- I'll do a flat new install and see what I can come up with. This could take a little time. Don't have a lot of time @ moment.

Since I'm running 3.5.1 I'll also upgrade and enable the hacks one by one, starting with this one. This should sort it out. :)

Thx

XtremeOffroad
12-30-2005, 05:53 PM
Very Nice
Clicks Install.
Anyway to add this to my portal?
thanks

Zachariah
12-30-2005, 06:11 PM
Very Nice
Clicks Install.
Anyway to add this to my portal?
thanks

CMPS (soon)
https://vborg.vbsupport.ru/showthread.php?s=&threadid=98982

Vportal (after)




- scrn shot
https://vborg.vbsupport.ru/attachment.php?attachmentid=40072

Landlord
01-02-2006, 02:14 AM
ok i installed the plugin and i got this on my main index...

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

Fatal error: (null)(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/local/lib/php') in /homepages/6/d93858489/htdocs/owa/forums/index.php(470) : eval()'d code on line 3

Zachariah
01-02-2006, 08:16 AM
ok i installed the plugin and i got this on my main index...


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

Fatal error: (null)(): Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/local/lib/php') in /homepages/6/d93858489/htdocs/owa/forums/index.php(470) : eval()'d code on line 3


Q: Do you have PhotoPost vBGallery or PRO gallery installed ?
- This hack is for vBGallery (aka. old vBAdvanced.com product).
- If you need forumhome for the PRO ver. try this. (https://vborg.vbsupport.ru/showpost.php?p=852809&postcount=225) .

Snake
01-02-2006, 08:32 AM
Installed! ;)

Landlord
01-02-2006, 02:20 PM
Zachariah: Does that work with 3.5.2?

Zachariah
01-02-2006, 02:46 PM
Zachariah: Does that work with 3.5.2?

Yes
- Hit me up on IM (info in profile)

WhiteOx2
01-02-2006, 09:38 PM
How can I move this to below the welcome box?
I had the previous version there but can't figure out how to move this one. :confused:

Zachariah
01-02-2006, 11:40 PM
How can I move this to below the welcome box?
I had the previous version there but can't figure out how to move this one. :confused:

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