Photo Block

Lawman-TRG

Joined: 2003-09-02
Posts: 7
Posted: Tue, 2003-09-02 21:36

I am using the latest version of Gallery and I am using Postnuke. I have the gallery running in the module and I have a link in the main menu.

I have been using Magnish (and still am at the moment) and I love the block that it uses. I would like to set up a block of a similar nature - a random block or a photo of the week - that when clicked would link to the gallery module.

I have seached the forum for something and I have followed the instructions to set up a Featured Photo block but this killed my Gallery and I had to start again.

Does anyone know of a block that will just "Slot" in and won't need loads of manual re-configuring?

ANY help will be much appreciated as I really like this Gallery but without this block I can't see me sticking with it! :cry:

Rich

 
nb69

Joined: 2003-06-04
Posts: 13
Posted: Wed, 2003-09-03 04:38

Don't know if this will help, but I had this working:

http://gallery.menalto.com/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=23

And after searching a little , I also found thi sreference:

http://www.portalzine.de/displayarticle788.html

Let me know how it turns out.

 
nb69

Joined: 2003-06-04
Posts: 13
Posted: Wed, 2003-09-03 06:47

wow... just ran my pn with the original random block script.. and it totally crashed my server nice... LOL

Hmm... don't try this on a production machine

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Wed, 2003-09-03 14:44

Moved in from Nuke forum.

 
birdisthelaw
birdisthelaw's picture

Joined: 2002-10-25
Posts: 10
Posted: Sat, 2003-09-13 11:35

Just download the latest source from Jorg's site. It works fine with gallery 1.4RC2.

http://www.holzapfel-online.de/modules.php?op=modload&name=Downloads&file=index&req=getit&lid=9

 
PhilyFn
PhilyFn's picture

Joined: 2003-10-07
Posts: 11
Posted: Tue, 2003-10-14 17:12

Thank you soooo much! Works fine for me as well with the new relese of gallery!

 
matsinet

Joined: 2002-07-24
Posts: 16
Posted: Tue, 2003-10-14 19:43

Hey I just downloaded this and it worked perfectly on my site also.

Thanks for let us know.

 
Reptile

Joined: 2003-10-15
Posts: 2
Posted: Wed, 2003-10-15 20:44

I've been checking this site daily waiting to see if anyone would update the random block. I'm very happy to see that we have a working version again. Thanks for posting the link! It worked great.

 
Skit

Joined: 2003-10-07
Posts: 3
Posted: Tue, 2003-10-21 00:15

I've just installed the latest build of the random block on my site. Worked fine compared to the current release with the configuration triggers.

Only problem is that it's only displaying random images from the two albums that were then when I uploaded it.

So it's not displaying images for the album I created via Gallery Remote after I installed the random block.

Any one else seeing this with the latest build?

 
Skit

Joined: 2003-10-07
Posts: 3
Posted: Wed, 2003-10-22 00:01

Strange, it's now seeing all the albums including the ones I added last night.

I was playing with the database, just looking at the tables no editing. Either my tinkers with the DB triggered a refresh or the adding of new albums triggered it. :P

 
ty2d

Joined: 2003-01-04
Posts: 103
Posted: Mon, 2003-10-27 09:57

Hi,

i don't know how you come to the statement, that the latest block is working.

i'm using postnuke .726 and the latest gallery. i also downloaded the latest source for the random-gallery block and when i create the block in my postnuke environment i get the following error:

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 44 bytes) in /homepages/46/d67174514/htdocs/webroot/pictorials.de/modules/gallery/classes/Album.php on line 454

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 64 bytes) in Unknown on line 0

any help in this, i searched the forum a long time but didn't find anything

rgds,
ty2d

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Tue, 2003-10-28 22:06
ty2d wrote:
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 44 bytes) in /homepages/46/d67174514/htdocs/webroot/pictorials.de/modules/gallery/classes/Album.php on line 454

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 64 bytes) in Unknown on line 0

Try allowing more memory in your php.ini then restart the web server (apache?).

 
Skin
Skin's picture

Joined: 2003-05-06
Posts: 56
Posted: Wed, 2003-10-29 09:45

I have the same problem: "Fatal error: Allowed memory size of ...."
but only if I use the last version of gallery.

I cant modify my php.ini....are there other solutions in order to make it working?

Thanks

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2003-10-29 10:33
 
uk_dave

Joined: 2003-11-01
Posts: 2
Posted: Sun, 2003-11-02 00:17
Skit wrote:
Strange, it's now seeing all the albums including the ones I added last night.

I was playing with the database, just looking at the tables no editing. Either my tinkers with the DB triggered a refresh or the adding of new albums triggered it. :P

I may be wrong in this but I believe there is a cache of 24 hours built into the random script so you have to either wait a day or change the time value in seconds of the cache in the script before new pictures will show up. The line in the code is:

define(CACHE_EXPIRED, 86400);

That aside, I'm just glad to see that somone has updated the random script so that it actually works. I've gone from error messages to hanging my site with trying to use the original script. Now if the working script can just be posted somewhere that's easier to find, like updating the Downloads, Feature Customization page :)

 
glendo

Joined: 2002-11-29
Posts: 60
Posted: Tue, 2003-11-18 11:08

I Just tried that block, the album is visible now but this error is in the header:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/manifest/public_html/Phoenix/html/modules/gallery/classes/database/mysql/Database.php on line 37

Any suggestions?
Gerald

 
ragenchaos

Joined: 2003-11-21
Posts: 2
Posted: Fri, 2003-11-21 23:05
Quote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/manifest/public_html/Phoenix/html/modules/gallery/classes/database/mysql/Database.php on line 37

Yes Actually i got this Error Also.. here is the fix if your using postnuke

look for this

$GALLERY_MODULENAME = "gallery"; //Change this to your module Name
$GALLERY_BASEDIR = "modules/$GALLERY_MODULENAME/";
$GALLERY_EMBEDDED_INSIDE = "nuke";
$GALLERY_NO_SESSIONS = true;

and change it to

$GALLERY_MODULENAME = "gallery"; //Change this to your module Name
$GALLERY_BASEDIR = "modules/$GALLERY_MODULENAME/";
$GALLERY_EMBEDDED_INSIDE = "postnuke";
$GALLERY_NO_SESSIONS = true;

that seems to have fixed it with my install of Post Nuke 0.7.2.6 :-) hope it Helps let me know if it did

 
gooberlx

Joined: 2003-11-24
Posts: 6
Posted: Mon, 2003-11-24 23:40

Thanks so much! I was having this problem too.

FYI if anyone is curious: Joerg's latest random-image block...after this fix, seems to work fine in gallery version 1.4.1 rc4 with postnuke 0.7.2.3-phoenix

 
ragenchaos

Joined: 2003-11-21
Posts: 2
Posted: Tue, 2003-11-25 01:27

Im Glad it worked :-) im also using the 1.4.1 and it worked with 0.7.2.6 :-)

 
ZoinkS

Joined: 2003-11-25
Posts: 1
Posted: Tue, 2003-11-25 02:42

It works for me too, but if you click on the image it opens in a new window instead of the center.. Is this fixable? I just installed gallery about 30 minutes ago.. Bear with me :) Thanks

 
wildwolf

Joined: 2003-12-02
Posts: 4
Posted: Tue, 2003-12-02 13:14

I'm having similar problem with the script only using images from one album.

I changed the line:

define(CACHE_EXPIRED, 86400);

to

define(CACHE_EXPIRED, 30);

assuming that would change it to 30 seconds, but it still only uses images from one album. I really like the script, except for that problem. I would appreciate some assistance.

<update>
This can't be the only issue (cache time). The "configure" function of the administration block for the random image block only shows two albums choices: "No special album" and the one that does show up, even though I have two total albums, I cannot choose the 2nd album, even manually.
</update>

 
gregg

Joined: 2003-07-04
Posts: 3
Posted: Thu, 2003-12-25 00:24

OK, here's the next problem:
When using ver. 0.41 gallery "not configured" dialog shows up.
When using ver. 0.54b - after activating, nothing shows up. I mean the entire page is blank - snow white. After deactivating, everything is back.
PostNuke - ver. 0.726.
Any ideas?

 
Diversq

Joined: 2003-08-29
Posts: 5
Posted: Thu, 2004-08-05 15:32

I aggree. I upgraded without deactivating the random block (forgot to) and then ended up killing the site. Took out the block the old fashion way then upgraded the module and reinstalled the randoms and it seems to work fine now. I too think this random image script should be a sticky or eaiser to find.

 
kkinderen
kkinderen's picture

Joined: 2004-08-22
Posts: 10
Posted: Tue, 2004-08-24 06:10

Very helpful thread and a cool block for postnuke.

I've not had any of the problems mentioned here, just lucky I guess. I'm running PN 0.726 and Gallery 1.44pl1.

Had one little glitch from a dumb mistake... I forgot to name the block. In the theme I'm using, the silver bar that's normally over the block ran through the middle of the block.

Also, some of my pictures - usually the odd-sized ones aren't scaled right in the random picture. I figure it's a setting I have to play with.

Thanks for a nice block and an unusually helpful thread.

K

 
engunneer

Joined: 2004-08-29
Posts: 7
Posted: Thu, 2004-09-09 21:02

Just added to gallery 1.4.4-pl2 in pn 0.7.5.0 - works great

Thanks for an easy add-in

 
shamus

Joined: 2005-02-24
Posts: 3
Posted: Wed, 2005-03-09 03:03

Hi.

I added this and I get the following error now when I go to add a new block from the ACP:

Quote:
Fatal error: Call to undefined function: is_user() in /home/.garp/shamusland/shamusland.org/modules/gallery/init.php on line 210

My system environment is Gallery 1.5RC, Postnuke 0.7.5.0 Gold plus security patches from February, PHP 4;3;10, Apache 1.3.31.

 
jaw

Joined: 2002-08-15
Posts: 1
Posted: Mon, 2006-05-15 18:51

I have the same problem with G1.5.3 and pn762 - any sugetions?

shamus wrote:
Hi.

I added this and I get the following error now when I go to add a new block from the ACP:

Quote:
Fatal error: Call to undefined function: is_user() in /home/.garp/shamusland/shamusland.org/modules/gallery/init.php on line 210

My system environment is Gallery 1.5RC, Postnuke 0.7.5.0 Gold plus security patches from February, PHP 4;3;10, Apache 1.3.31.

 
cc5henry

Joined: 2006-06-15
Posts: 12
Posted: Fri, 2006-06-16 22:22
engunneer wrote:
Just added to gallery 1.4.4-pl2 in pn 0.7.5.0 - works great

Thanks for an easy add-in

Yeah same here! Works awesome!