Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 03:51 am EST
Geeklog Forums
Geekbook,- almost working,- need some help.
Status: offline
geirj
Forum User
Junior
Registered: 11/15/03
Posts: 19
Hi there, it's me again.
In my work building my Geeklogsite, time has come for adding a guestbook (Geekbook).
I have manually created the databases described in 'geekbook.sql'. Here's what I'v modifyed in the files /admin/install.php, /admin/index.php and /geekbook/gbfuctions.php :
/admin/install.php:
include_once('/home/geirj/public_html/lib-common.php');
/admin/index.php
include_once('/home/geirj/public_html/geekbook/gbfunctions.php');
require('/home/geirj/public_html/admin/auth.inc.php');
/geekbook/gbfuctions.php
include('/home/geirj/public_html/lib-common.php'); // If this path doesn't work correct path. It should work.
$dbusername = 'myUsername';
$dbpassword = 'myPassword';
$dbname = 'myDatabase';
$geekbookdir = "geekbook"; // Directory geekbook will refer too.
$lockgeekbook = 0; // 1 for Yes 0 for No Limits geekbook to admin(s)
$messageforlock = "Sorry, working on improving features."; //Message to leave for visitors when geekbook is closed
$entriesperpage = 10; //Entries per page
$html = "Yes"; //Can HTML be used Yes or No(case-sensitive)
$notifynew = 0; //Notify of a new entry? 0 or 1
$privatemessages = "No"; // Use Yes or No. Private Messages are e-mailed to $adminemail
$db = mysql_connect("localhost", "$dbusername","$dbpassword");
$siteurl = $_CONF['http://www.mannenigata.com'];
$referers = array('mannenigata.com', 'www.mannenigata.com');
mysql_select_db("$dbname",$db);
?>
Now, when I try to sign the guestbook, everything sems to be alright (except from that the images ICQ,AOLIM,YAHOO and MSN doesn't show). I write in my name, email and my comment. When I hit "Add to GeekBook !", I get a message saying "Entry Successful: Thanks for signing! Thanks for signing my geekbook! ". Then I'm taken back to the 'main' guestbook site, and I can see my new post, everything is there, except the comment I wrote.
If I use phpMyAdmin to browse the database, I can see the comment, so it has been written to the database, it's just not showning up on the guestbook site,
Anyone have any ide what might be wrong?
Here's the link to my guestbook so that you can try it your self:
MyGuestbook
In my work building my Geeklogsite, time has come for adding a guestbook (Geekbook).
I have manually created the databases described in 'geekbook.sql'. Here's what I'v modifyed in the files /admin/install.php, /admin/index.php and /geekbook/gbfuctions.php :
/admin/install.php:
include_once('/home/geirj/public_html/lib-common.php');
/admin/index.php
include_once('/home/geirj/public_html/geekbook/gbfunctions.php');
require('/home/geirj/public_html/admin/auth.inc.php');
/geekbook/gbfuctions.php
include('/home/geirj/public_html/lib-common.php'); // If this path doesn't work correct path. It should work.
$dbusername = 'myUsername';
$dbpassword = 'myPassword';
$dbname = 'myDatabase';
$geekbookdir = "geekbook"; // Directory geekbook will refer too.
$lockgeekbook = 0; // 1 for Yes 0 for No Limits geekbook to admin(s)
$messageforlock = "Sorry, working on improving features."; //Message to leave for visitors when geekbook is closed
$entriesperpage = 10; //Entries per page
$html = "Yes"; //Can HTML be used Yes or No(case-sensitive)
$notifynew = 0; //Notify of a new entry? 0 or 1
$privatemessages = "No"; // Use Yes or No. Private Messages are e-mailed to $adminemail
$db = mysql_connect("localhost", "$dbusername","$dbpassword");
$siteurl = $_CONF['http://www.mannenigata.com'];
$referers = array('mannenigata.com', 'www.mannenigata.com');
mysql_select_db("$dbname",$db);
?>
Now, when I try to sign the guestbook, everything sems to be alright (except from that the images ICQ,AOLIM,YAHOO and MSN doesn't show). I write in my name, email and my comment. When I hit "Add to GeekBook !", I get a message saying "Entry Successful: Thanks for signing! Thanks for signing my geekbook! ". Then I'm taken back to the 'main' guestbook site, and I can see my new post, everything is there, except the comment I wrote.
If I use phpMyAdmin to browse the database, I can see the comment, so it has been written to the database, it's just not showning up on the guestbook site,
Anyone have any ide what might be wrong?
Here's the link to my guestbook so that you can try it your self:
MyGuestbook
5
5
Quote
Status: offline
geKow
Forum User
Full Member
Registered: 01/12/03
Posts: 445
About your icons:
There are some real stupid php errors in that geekbadd.php
should be:
<IMG ALIGN="ABSMIDDLE" SRC="<?php echo $siteurl. "/".$geekbookdir; ?>/icons/icon_icq.gif">
maybe you found another error
but besides that. Your whole page doesn't work in Opera
geKow
There are some real stupid php errors in that geekbadd.php
Text Formatted Code
<IMG ALIGN="ABSMIDDLE" SRC="<?php echo $siteurl ?>/$geekbookdir/icons/icon_icq.gif"> should be:
<IMG ALIGN="ABSMIDDLE" SRC="<?php echo $siteurl. "/".$geekbookdir; ?>/icons/icon_icq.gif">
maybe you found another error
but besides that. Your whole page doesn't work in Opera
geKow
7
4
Quote
Status: offline
destr0yr
Forum User
Full Member
Registered: 07/06/02
Posts: 324
nice theme
Suggestion, for the gallery bar to light up, in the header.thml, try the following:
if ($_SERVER['PHP_SELF'] == "/gallery/index.php" || $_SERVER['PHP_SELF'] == "/gallery/view_album.php" ||
$_SERVER['PHP_SELF'] == "/gallery/albums.php") {
print '<a href="{site_url}/gallery/" class="selected"> gallery </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/gallery/" class="plain"> gallery </a> <span class="netscape4"> </span>';
}
-- destr0yr
"I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
Suggestion, for the gallery bar to light up, in the header.thml, try the following:
Text Formatted Code
if ($_SERVER['PHP_SELF'] == "/gallery/index.php" || $_SERVER['PHP_SELF'] == "/gallery/view_album.php" ||
$_SERVER['PHP_SELF'] == "/gallery/albums.php") {
print '<a href="{site_url}/gallery/" class="selected"> gallery </a> <span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/gallery/" class="plain"> gallery </a> <span class="netscape4"> </span>';
}
-- destr0yr
"I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
6
8
Quote
Status: offline
geirj
Forum User
Junior
Registered: 11/15/03
Posts: 19
@ geKow:
Thank's,- Replacing the code like you said sorted the problem I was having with the icons.
I know that my page doesn't work in opera. Don't know why tho,- it's the only browser I have tryed that can't 'read' my site. Probably somthing with the TabularDynamics-theme.
@ destr0yr:
Thank's,- and I will try your suggestion.
@ everybody:
If anyone have the slightest idea why the comment's in my Geekbook doesn't show, please post.
I think I will try to reinstall the guestbook later tonight and see if I missed something the first time.
Thank's,- Replacing the code like you said sorted the problem I was having with the icons.
I know that my page doesn't work in opera. Don't know why tho,- it's the only browser I have tryed that can't 'read' my site. Probably somthing with the TabularDynamics-theme.
@ destr0yr:
Thank's,- and I will try your suggestion.
@ everybody:
If anyone have the slightest idea why the comment's in my Geekbook doesn't show, please post.
I think I will try to reinstall the guestbook later tonight and see if I missed something the first time.
6
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by geirj: If anyone have the slightest idea why the comment's in my Geekbook doesn't show, please post.
It's possible that it's simply not working. The guestbook is pretty old and there have been changes in the Plugin API regarding comments since then ...
bye, Dirk
9
6
Quote
Status: offline
geirj
Forum User
Junior
Registered: 11/15/03
Posts: 19
Quote by Dirk:
It's possible that it's simply not working. The guestbook is pretty old and there have been changes in the Plugin API regarding comments since then ...
bye, Dirk
It's possible that it's simply not working. The guestbook is pretty old and there have been changes in the Plugin API regarding comments since then ...
bye, Dirk
Hmm... I had not thought about that.
Is there an alternative guestbook you could recommend?
9
6
Quote
Status: offline
geirj
Forum User
Junior
Registered: 11/15/03
Posts: 19
Problem solved!
In index.php,- rename all occurrences of 'comment' with 'COMMENT'. (The row in the geekbook database is named COMMENT, and not comment).
That's it.
Edit:
You'll have to do the same with /admin/plugins/GeekBook/index.php.
Then you can edit /geekbook/index.php and /geekbook/gkaddentry.php to make it look the way you want. (I'm no programmer, but I managed).
In index.php,- rename all occurrences of 'comment' with 'COMMENT'. (The row in the geekbook database is named COMMENT, and not comment).
That's it.
Edit:
You'll have to do the same with /admin/plugins/GeekBook/index.php.
Then you can edit /geekbook/index.php and /geekbook/gkaddentry.php to make it look the way you want. (I'm no programmer, but I managed).
5
6
Quote
Status: offline
geKow
Forum User
Full Member
Registered: 01/12/03
Posts: 445
Quote by Dirk: It's possible that it's simply not working. The guestbook is pretty old and there have been changes in the Plugin API regarding comments since then ...
bye, Dirk
bye, Dirk
pffff.... ---> my geekbook
geKow
5
5
Quote
I've finally managed to get GeekBook installed to my liking (JeffAndCrystal.com), but have one final item that I haven't managed to figure out.
Specifically, in the "User Functions" block the link to the GeekBook is "geekbook" and I'd like to change it to "Guest Book".
Does anyone know how to do this?
Also, it seems that only admins are able to access/view the geekbook. Anonymous and logged in users get the following error message: "Only Root Users have Access to this Page. Your user name and IP have been recorded."
Any idea how to allow anonymous/logged-in users to post?
Any information that you may be able to provide would be greatly appreciated, thanks!
Jeff.
Specifically, in the "User Functions" block the link to the GeekBook is "geekbook" and I'd like to change it to "Guest Book".
Does anyone know how to do this?
Also, it seems that only admins are able to access/view the geekbook. Anonymous and logged in users get the following error message: "Only Root Users have Access to this Page. Your user name and IP have been recorded."
Any idea how to allow anonymous/logged-in users to post?
Any information that you may be able to provide would be greatly appreciated, thanks!
Jeff.
3
8
Quote
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by jbpaul17: Specifically, in the "User Functions" block the link to the GeekBook is "geekbook" and I'd like to change it to "Guest Book".
If it's not in the language file then it is most probably in functions.inc .
Geeklog Polish Support Team
9
10
Quote
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by jbpaul17:Any idea how to allow anonymous/logged-in users to post?
Just guessing but you could remove this SEC_hasRights limits from index.php.
Not sure which version are you using. Have you customized it?
Geeklog Polish Support Team
2
4
Quote
Status: offline
jbpaul17
Forum User
Chatty
Registered: 05/14/04
Posts: 49
Location:New York City
I checked the language file and made all the changes possible, checked the functions.inc file and removed the SEC_hasRights from index.php, but none of these changes seems to have worked to address my two questions.
Does anyone else have any ideas?
Does anyone else have any ideas?
3
7
Quote
All times are EST. The time is now 03:51 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content