postnuke block?!?

Stokes

Joined: 2003-09-29
Posts: 8
Posted: Tue, 2003-09-30 00:48

sorry I am new to this, and I have my gallery up and running, but I dont know how to get the block on my main site, i have my site like this:

http://ug.dorm.org/gallery

then my normal site:

http://ug.dorm.org

how do i install the module for postnuke?

 
logik

Joined: 2003-10-14
Posts: 11
Posted: Wed, 2003-11-26 22:51
Stokes wrote:
sorry I am new to this, and I have my gallery up and running, but I dont know how to get the block on my main site, i have my site like this:

http://ug.dorm.org/gallery

then my normal site:

http://ug.dorm.org

how do i install the module for postnuke?

Anybody have answer to this question? I'm having the same problem?

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Wed, 2003-11-26 23:39

Get the Joerg Random Block from http://www.holzapfel-online.de.

Quote:
Make a "pnblocks"-directory in your gallery-module directory and place the gallery_random.php in that directory. The only thing to change in the source is the name of the gallery dir. In most cases this schould be "gallery".

Now you can place the block into PostNuke using normal add-Block function. You will find the block named "gallery/gallery random".

This is from the random_read.me file. Find this file, it describes how to configure it once the block is installed.

 
logik

Joined: 2003-10-14
Posts: 11
Posted: Thu, 2003-11-27 02:28

I installed the random block script V1.0 from here. I guess it doesn't work for newer gallery versions. You are the MANN! Thanks I will try it as soon as I get home :D

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Thu, 2003-11-27 04:51

Oh thanks! That helps stengthens my masculinity 8)

Glad to be of service.

 
logik

Joined: 2003-10-14
Posts: 11
Posted: Thu, 2003-11-27 06:00

I installed the block, but I getting these errors. Whats happening?

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /usr/local/etc/httpd/htdocs/modules/gallery/classes/database/mysql/Database.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/etc/httpd/htdocs/modules/gallery/classes/database/mysql/Database.php:37) in /usr/local/etc/httpd/htdocs/includes/pnAPI.php on line 1097

 
logik

Joined: 2003-10-14
Posts: 11
Posted: Thu, 2003-11-27 06:27

Warren,

I just wanna say thanks in advance..I searched the forum and found the answer. Here is the code below to fix my problem..

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

Joined: 2002-07-24
Posts: 794
Posted: Fri, 2003-11-28 03:06

You beat me it looks like. Good work!

 
robdog711

Joined: 2003-06-08
Posts: 13
Posted: Sun, 2003-12-07 23:09

I was wondering is someone could look at my errors upon "block addition" and tell me if the above is the same fix?

Warning: Access denied for user: 'www-data@localhost' (Using password: NO) in /usr/web/brinkofdystopia/htdocs/html/modules/gallery/classes/database/mysql/Database.php on line 34
Warning: MySQL Connection Failed: Access denied for user: 'www-data@localhost' (Using password: NO) in /usr/web/brinkofdystopia/htdocs/html/modules/gallery/classes/database/mysql/Database.php on line 34
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /usr/web/brinkofdystopia/htdocs/html/modules/gallery/classes/database/mysql/Database.php on line 35
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /usr/web/brinkofdystopia/htdocs/html/modules/gallery/classes/database/mysql/Database.php on line 39
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /usr/web/brinkofdystopia/htdocs/html/modules/gallery/classes/database/mysql/Database.php on line 43

Also, why does it say password=no when the admin has a password and I typed the password into the Gallery install wiz?

Thanks in advance ..

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Sun, 2003-12-07 23:25

Yes... same fix 8)

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Sun, 2003-12-07 23:27

Well depending on if you just upgraded to PHP-Nuke 6x or higher from a lower version with Gallery 1.3.x. There was the same error back then too.

 
robdog711

Joined: 2003-06-08
Posts: 13
Posted: Sun, 2003-12-07 23:38

yeah - i changed it to "postnuke" and it all works well again. thanks for everyones help!

 
jr1001

Joined: 2003-05-04
Posts: 13
Posted: Tue, 2003-12-16 03:46

saved by the bell - same issue - thanks!