New Random Photo Block (lots of extras)

J-Mann

Joined: 2003-03-21
Posts: 90
Posted: Tue, 2003-11-04 21:02

I've reworked my random block so that it now displays a Random Photo, as well as the last 5 updated albums with the dates they were updated AND it shows the single most popular item accross all of your albums, as well as the total number of items and total number of albums.

The package includes the block, a "Most Popular" items module and a readme file with instructions for modifying the variables to work with your site.

You can view the block at www.perfectcell.org and you can see the module at www.perfectcell.org/modules.php?name=Top_Screensavers.

You can download the package from www.perfectcell.org/Random_Block.zip or you can download JUST the module from www.perfectcell.org/Most_Popular.zip

Let me know if there are any issues.

My Info page is done and I'll have it packaged with a readme soon. You can see it at www.perfectcell.org/modules.php?name=Info

J-
www.perfectcell.org

 
chriswilliams

Joined: 2003-10-01
Posts: 8
Posted: Wed, 2003-11-05 03:52

This is awesome! too bad for me it is phpnuke. Anyone know how to port something like this over to postnuke?

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Wed, 2003-11-05 18:50
J-Mann wrote:
You can download the package from www.perfectcell.org/Random_Photo.zip

FYI...This link is broken...

 
J-Mann

Joined: 2003-03-21
Posts: 90
Posted: Thu, 2003-11-06 23:13

woops, sorry about that...

try this:
http://www.perfectcell.org/Random_Block.zip

Thanks for bringing this up, sorry it took me so long to respond.

J-

 
visitor101

Joined: 2003-10-02
Posts: 104
Posted: Fri, 2003-11-07 01:29

Very nice add in.

Has anyone tested it yet with 1.4 pl2 yet?

 
mpmchugh

Joined: 2003-04-26
Posts: 6
Posted: Mon, 2003-12-08 09:08

I second the request for a postNuke version of this great block!

-mpm

 
mhedstrom

Joined: 2003-04-25
Posts: 7
Posted: Thu, 2003-12-25 23:19

I having problems with this block in 1.4.1. I get "Your Gallery settings were configured with an older version of Gallery, and are out of date. Please re-run the Configuration Wizard!"

When the config wizard is re-run, the same message occurs in the block. My Gallery itself is fine.

The apache log shows "PHP Warning: Invalid argument supplied for foreach() in /server/html/family/modules/gallery/session.php on line 64" That's the line in the sessions file that we had to change. Changing it back results in the same error.

 
nukestud
nukestud's picture

Joined: 2003-03-25
Posts: 114
Posted: Sat, 2004-01-03 04:20

I am using gallery 1.3.3 and nuke 6.5 and I get the following errors:

Most Popular:
ERROR: requested index [12] out of bounds [11]
Fatal error: Call to a member function on a non-object in /my/server/path/main/modules/gallery/classes/Album.php on line 737

And on index page:
Warning: fopen(/my/server/path/main/modules/gallery/albums/top-pics.cache) [function.fopen]: failed to create stream: No such file or directory in /my/server/path/main/modules/gallery/platform/fs_unix.php on line 53

Any ideas? I haven't had much luck with these type blocks but this composite looks really nice ;-)

Cheers

 
daryl.com

Joined: 2004-01-07
Posts: 43
Posted: Tue, 2004-01-13 02:49

Anyone?

 
grantiago

Joined: 2002-08-23
Posts: 78
Posted: Thu, 2004-01-22 16:53
mwyner wrote:
I having problems with this block in 1.4.1. I get "Your Gallery settings were configured with an older version of Gallery, and are out of date. Please re-run the Configuration Wizard!"

When the config wizard is re-run, the same message occurs in the block. My Gallery itself is fine.

The apache log shows "PHP Warning: Invalid argument supplied for foreach() in /server/html/family/modules/gallery/session.php on line 64" That's the line in the sessions file that we had to change. Changing it back results in the same error.

me too! any answers yet?

march/04 I took care of this by updating my albums.

grant

 
corine41
corine41's picture

Joined: 2004-03-01
Posts: 4
Posted: Mon, 2004-03-01 14:29

hello

i have upload and modify all files and i have error :

Fatal error: Call to a member function on a non-object in /home/public_html/portal/modules/Most_Popular/index.php on line 366

and

Warning: Division by zero in /home/allsexef/public_html/portal/modules/Most_Popular/index.php on line 374

you can help me please? thanks

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Wed, 2004-03-03 23:40

corine41, not sure if you have this block mentioned in this thread, but if you are using Joerg's block this error is probably from using the Use resize and the Use photo not thumb together. You're best to use the thumbs only.

 
dbmathis

Joined: 2003-12-10
Posts: 52
Posted: Sat, 2004-04-24 16:11

I am using gallery 1.4.2 and PHP-Nuke 7.0 under linux.

I am getting this.

Gallery needs Reconfiguration

Your Gallery settings were configured with an older version of Gallery, and are out of date. Please re-run the Configuration Wizard! Here's how:



Unix with shell access 
% cd /path/to/your/gallery 
% sh ./configure.sh 

Unix with FTP access 
ftp> chmod 666 .htaccess 
ftp> chmod 666 config.php 
ftp> chmod 755 setup 

Windows 
C:\> cd \path\to\your\gallery 
C:\> configure.bat 

 


Then launch the Configuration Wizard. If you experience problems, you can find help on the Gallery Help Page.

So I reconfigured it and I am still getting the message.

??

The block also seems to throw off my css stuff?

Any ideas?

Thanks

 
dbmathis

Joined: 2003-12-10
Posts: 52
Posted: Sun, 2004-04-25 06:57

Whoever made or modified this block. It does not work under the above enviroment.

 
khsjr1970

Joined: 2004-04-24
Posts: 271
Posted: Mon, 2004-04-26 03:00

can this be installed in gallery 1.4.3 ? on powweb servers ?

Thanks in advance
KHSjr

 
ophidite

Joined: 2004-03-26
Posts: 26
Posted: Thu, 2004-04-29 13:35

PHP NUKE 7.0.1
gallery 1.4.http://stenope.ophidite.net/info.php

I just installed random block of J MAnn

and here is my error when i click on Most popular

Fatal error: Call to a member function on a non-object in /Library/WebServer/Documents/SQL/PHP-Nuke-7/html/modules/Most_Popular/index.php on line 324

and when i use random block

Warning: fopen(/block-random.cache): failed to open stream: Permission denied in /Library/WebServer/Documents/SQL/PHP-Nuke-7/html/modules/gallery/platform/fs_unix.php on line 55

What's the problem

Any clue ?

Thanks

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Thu, 2004-04-29 14:22

FAQ Gallery:c.15 possibly? Be sure you apply it to your albums/ directory.

 
ophidite

Joined: 2004-03-26
Posts: 26
Posted: Thu, 2004-04-29 18:57

Still the same problem

http://stenope.ophidite.com

 
massdigitalmedia
massdigitalmedia's picture

Joined: 2003-09-05
Posts: 18
Posted: Mon, 2004-10-04 00:53

When I try to view the top 100, I got this:

Warning: Division by zero in /home/httpd/vhosts/noccruisers.com/httpdocs/modules/Top_Photos/index.php on line 374

UNTIL I activated the block. It seemed to work fine, but I have nothing in the top 100 area.

 
Oyjord

Joined: 2003-03-10
Posts: 17
Posted: Tue, 2004-10-26 23:31
grantiago wrote:

march/04 I took care of this by updating my albums.

grant

Hiya grant, I'm having the same problem, mind telling me what you mean when you said you "upgraded" your albums? Would greatly appreciate it.

Cheers,
Oy.