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 
Messages posted by: Costa
Forum Index » Profile for Costa » Messages posted by Costa
Author Message
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.
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
 
Forum Index » Profile for Costa » Messages posted by Costa
Go to:   
Based on the open source JForum