A few issues

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
randm
Posts: 8
Joined: Wed Oct 30, 2013 8:38 pm

A few issues

Post by randm »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi - I have successfully added this wonderful guestbook to my page, but I have an issue. The link at the top that says, "Back to MyDomain.com" - when clicked, opens my homepage in the same page (within what looks like an inline frame that used to hold the guestbook) instead of taking the browser back to the actual homepage.

Would appreciate any help. Thanks, randm
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: A few issues

Post by Henrie »

Hello randm,

If you use an inline frame, this backlink is not usefull at all and is best deleted.
You can edit the HTML code for that inside /templates/default/overall_header.php .
Any used words used are inside the language file "language/english.inc.php"

Make sure you backup existing files before making any changes so you can rollback if something goes wrong.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
randm
Posts: 8
Joined: Wed Oct 30, 2013 8:38 pm

Re: A few issues

Post by randm »

Hi Henri

Thank you for your reply. I have found this reference to "Go Back" in the language file:
$lang['t61']='Back to';

But all I can find in overall_header.php that seems applicable is this:
<a href="<?php echo $settings['website_url']; ?>"><?php echo $settings['website_title']; ?></a> |

I deleted that part of the code, but it didn't do anything to the link. Nothing changed. Ideally it would be great if the link would actually take the person back to the homepage, but that's not necessary as I have a "Home" link on the page already. So it would be sufficient to just eliminate the link altogether.

Hoping you can give me a bit more direction, please? Clearly I'm missing something. :oops: Thanks
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: A few issues

Post by Henrie »

If you need some more direction, than please post a link to your guestbook so i can take a look.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
randm
Posts: 8
Joined: Wed Oct 30, 2013 8:38 pm

Re: A few issues

Post by randm »

url deleted
Last edited by randm on Sat Nov 02, 2013 8:52 pm, edited 1 time in total.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: A few issues

Post by Henrie »

randm wrote:But all I can find in overall_header.php that seems applicable is this:
<a href="<?php echo $settings['website_url']; ?>"><?php echo $settings['website_title']; ?></a> |
You found the exact right part to delete.
Did you upload your changed file after changing it? It could also be that the old page was in your browser cache. Try reloading your webpage with CTRL+F5 instead of just F5,

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
randm
Posts: 8
Joined: Wed Oct 30, 2013 8:38 pm

Re: A few issues

Post by randm »

OK, thanks Henri. I will try that now that I'm sure I'm deleting the right thing!! :D
randm
Posts: 8
Joined: Wed Oct 30, 2013 8:38 pm

Re: A few issues

Post by randm »

Update: Strange, I still wasn't able to make the link completely disappear, but at least it's now deactivated. :D
Thank you, Henri, for your excellent help!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: A few issues

Post by Henrie »

If it is only deactivated you did not delete enough of the code.
You need to delete it unp to after the |

Greetings
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
randm
Posts: 8
Joined: Wed Oct 30, 2013 8:38 pm

Re: A few issues

Post by randm »

Henrie wrote:If it is only deactivated you did not delete enough of the code.
You need to delete it unp to after the |

Greetings
Henrie
Hi Henri

OK, so I'm confused then. I deleted that one line that I posted here earlier, including the "|". If I have to delete the code below that, how much of it? I don't want to delete the links that say, "View Guestbook" and "Sign Guestbook" - and because the remaining code references t48 and t60 of the language file, I'm thinking they're for that. I am still learning about reading/writing code.

Cheers & Thanks,
randm
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: A few issues

Post by Henrie »

If you already deleted the code as described above up to after the | than the text should be gone too. Unfortinately I can not see it anymore as you removed the link to your guestbook.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
randm
Posts: 8
Joined: Wed Oct 30, 2013 8:38 pm

Re: A few issues

Post by randm »

Sorry - thought we were done with it. Just don't like to leave my URLs up on open forums. It's www.xxxxxx.com/xxxx/guests.php

Thanks again for your help.
Last edited by randm on Sun Nov 03, 2013 11:42 pm, edited 1 time in total.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: A few issues

Post by Henrie »

Okay, if you do not want to post your website url in public you could have sent me a pm.

When looking at your guestbook here the link Back to Ozone Gas Exposure is still fully working, linking back to the gbook.php file.

I see now that you have guestbook version 1.6 , so there is no overall_header.php file!
To remove the link in version 1.6 you must edit the gbook.php file.
Find lines 1084-1086

Code: Select all

<p style="text-align:center"><a href="'.$settings['website_url'].'">'.$lang['t61'].' '.$settings['website_title'].'</a>
| <a href="gbook.php">'.$lang['t60'].'</a>
| <a href="gbook.php?a=sign">'.$lang['t48'].'</a></p>
and replace it with

Code: Select all

<p style="text-align:center"><a href="gbook.php">'.$lang['t60'].'</a>
| <a href="gbook.php?a=sign">'.$lang['t48'].'</a></p>
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply