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 
Problem with AGB 2.3.1  XML
Forum Index » Support Forum
Author Message
Costa
Newbie

Joined: 27/08/2004 06:52:05
Messages: 2
Offline

Hello, everyone!

Sorry for my bad english

I have one big problem with my guestbook on http://www.mostok2008.org/guestbook/

I insert gb in my layout:

rename addentry.php to addentry2.php
rename admin.php to admin2.php
rename comment.php to comment2.php
rename index.php to index2.php

create addentry.php with my layout and add <?php include '../guestbook/addentry2.php' ?>
create admin.php with my layout and add <?php include '../guestbook/admin2.php' ?>
create comment.php with my layout and add <?php include '../guestbook/comment2.php' ?>
create index.php with my layout and add <?php include '../guestbook/index2.php' ?>

Modify admin/config.inc.php :
=======8<============================
...

$GB_PG["base_url"] = "htpp://www.mostok2008.org/guestbook/img";

...

if ($GB_PG["base_url"] == "htpp://www.mostok2008.org/guestbook/img") {
$inter_type = php_sapi_name();
if ($inter_type == "cgi") {
if (isset($HTTP_SERVER_VARS["PATH_INFO"]) && !empty($HTTP_SERVER_VARS["PATH_INFO"])) {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["PATH_INFO"]);
} elseif (isset($HTTP_SERVER_VARS["REQUEST_URI"]) && !empty($HTTP_SERVER_VARS["REQUEST_URI"])) {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["REQUEST_URI"]);
} else {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["SCRIPT_NAME"]);
}
} else {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
}
}

=======8<============================

On index.php, admin.php, addentry.php gb work fine. But if I add reply on comment, and hit "Submit", I view a blank page (with my layout). Now, if I hit "Reload" in browser, I get blank page. If I reload index.php, I view 2 reply on comment (first from "Submit, second from "Reload").
Why I get blank page? And how to fix it?

Some little questions:
1. How I can add notification to webmaster by email on add reply? Notification on addentry work fine.
2. Why don't replace [ : ) ] to smiles on reply? On addentry replace work fine.
3. How add smiles box on reply page?

Thank you very mach for your help
Costa
Newbie

Joined: 27/08/2004 06:52:05
Messages: 2
Offline

Costa wrote:...
Why I get blank page? And how to fix it?

Some little questions:
1. How I can add notification to webmaster by email on add reply? Notification on addentry work fine.
2. Why don't replace [ : ) ] to smiles on reply? On addentry replace work fine.
3. How add smiles box on reply page?


Sorry, what about my questions? Do you understand my previous post (my english is bad)? Thanks.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Costa wrote:
Costa wrote:...
Why I get blank page? And how to fix it?

Some little questions:
1. How I can add notification to webmaster by email on add reply? Notification on addentry work fine.
2. Why don't replace [ : ) ] to smiles on reply? On addentry replace work fine.
3. How add smiles box on reply page?


Sorry, what about my questions? Do you understand my previous post (my english is bad)? Thanks.


Why did you goto all the trouble of renaming the pages and then using an include code? Why not just include a header and footer at the start and end of each page?

1 - I assume you mean you want email notification of comments left to other posts. If the emails are just to be sent to yourself then I cannot see it being a problem to write a mod for this.

2 - I'll have a look at feeding the comments through the smiley replace routine.

3 - With some editting of the template file for that page.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum