Page 1 of 1

A few issues

Posted: Wed Oct 30, 2013 8:59 pm
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

Re: A few issues

Posted: Thu Oct 31, 2013 10:16 pm
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

Re: A few issues

Posted: Fri Nov 01, 2013 9:28 pm
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

Re: A few issues

Posted: Sat Nov 02, 2013 12:17 am
by Henrie
If you need some more direction, than please post a link to your guestbook so i can take a look.

Greetings,
Henrie

Re: A few issues

Posted: Sat Nov 02, 2013 12:34 am
by randm
url deleted

Re: A few issues

Posted: Sat Nov 02, 2013 8:42 pm
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

Re: A few issues

Posted: Sat Nov 02, 2013 8:54 pm
by randm
OK, thanks Henri. I will try that now that I'm sure I'm deleting the right thing!! :D

Re: A few issues

Posted: Sat Nov 02, 2013 9:41 pm
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!

Re: A few issues

Posted: Sat Nov 02, 2013 9:56 pm
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

Re: A few issues

Posted: Sat Nov 02, 2013 10:44 pm
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

Re: A few issues

Posted: Sun Nov 03, 2013 6:25 am
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

Re: A few issues

Posted: Sun Nov 03, 2013 6:57 pm
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.

Re: A few issues

Posted: Sun Nov 03, 2013 7:14 pm
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