If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Adv Guestbook 2.3 - Problem accessing Admin in PN .71  XML
Forum Index » Support Forum
Author Message
ralph
Beginner

Joined: 14/03/2002 23:48:24
Messages: 12
Offline

Have guestbook set up and running fine within PN .71

Except.....when I try to log into the admin enter it accepts my login (I think) and tries to load the admin page but all I get is the following warning:

Warning: Cannot add header information - headers already sent by (output started at /usr/home/courtboss/mainfile.php:1) in /usr/home/radatattat/modules/gbook/index.php on line 63

Thanks for any assistance!!!!!
ralph
Beginner

Joined: 14/03/2002 23:48:24
Messages: 12
Offline

another note......

I can access the admin fine if I use a direct http://c.........../gbook/admin access (with out he PN module access).

The problem is only accessing admin from within the embedded PN.71 display.
Anonymous



the reason is the redirection code in line 60

header("Location: $GB_PG[admin]");

turn output buffering in your
'mainfile.php' off.

<?php
ob_start();
.
.
.
?>
ralph
Beginner

Joined: 14/03/2002 23:48:24
Messages: 12
Offline

did it.....

It worked........yes........thanks!!!!

Now what did I do? Hate to admit it but I'm not a php script guru. I do pretty good usually making needed modifications. Can you direct me to a source where I can read and understand what I just did.

Thanks again!!!!!!!!
Anonymous



http://www.php.net/manual/en/function.ob-start.php
Anonymous



Well.....at it again.

Decided to try and run under vbportal. Tried to install Adv. Guestbook. Still runs fine as a standalone.

Under vbportal, when I try and access Adv. Guestbook as a module I get:

Fatal error: Call to undefined function: modules_get_language() in /usr/home/courtboss/modules/gbook/index.php on line 21

Line 21 in index.php is:

modules_get_language();

Been working on firguring this one out. Any suggestions???????????????
Anonymous



Ok, I commented line 21 out and guess what........it works.......almost.

The page comes out great, but across the very top of my page above the header, I get:

BACKGROUND-COLOR: #CFCFCF } TEXTAREA, .bginput { FONT-SIZE: 12px; FONT-FAMILY: Verdana,Arial,Helvetica,sans-serif; COLOR: #000000; BACKGROUND-COLOR: #CFCFCF } A:link, A:visited, A:active { COLOR: #003300; } A:hover { COLOR: #FF4400; } #cat A:link, #cat A:visited, #cat A:active { COLOR: #000000; TEXT-DECORATION: none; } #cat A:hover { COLOR: #000000; TEXT-DECORATION: underline; } #ltlink A:link, #ltlink A:visited, #ltlink A:active { COLOR: #003300; TEXT-DECORATION: none; } #ltlink A:hover { COLOR: #FF4400; TEXT-DECORATION: underline; } .thtcolor { COLOR: #FFFFCC; } .lf { FONT-FAMILY: verdana, arial, helvetica, sans-serif; FONT-SIZE: 14px; .nf { FONT-FAMILY: verdana, arial, helvetica, sans-serif; FONT-SIZE: 12px; } .sf { FONT-FAMILY: verdana, arial, helvetica, sans-serif; FONT-SIZE: 10px; }

Now, go figure. Anyone know how to fix this??????????????????
Anonymous



I didn't look close enough, there's more. Immediately below my footer I get:

HTTP/1.1 200 OK Date: Fri, 29 Mar 2002 23:42:32 GMT Server: Apache/1.3.20 (Unix) mod_fastcgi/2.2.8 PHP/4.0.6 mod_ssl/2.8.4 OpenSSL/0.9.6a X-Powered-By: PHP/4.0.6 Content-Length: 986 Keep-Alive: timeout=15 Connection: Keep-Alive Content-Type: text/html

And then......another instance of my page appears with the guestbook in place and without all of the above mess.

Any ideas where I'm at anyone???????????????
Anonymous



Tried putting this in my mainfile.php ........and got this when I try and access Adv GuestBook

<meta http-equiv="M
ralph
Beginner

Joined: 14/03/2002 23:48:24
Messages: 12
Offline

obviously stuck here.

Have installed and have another guestbook operational but I sure do like Advanced Guest book. Wish I could get it working.

Thanks in advance for any help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum