No Back button on the Message Board

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
scottygt1983
Posts: 2
Joined: Sun Feb 08, 2009 5:59 am

No Back button on the Message Board

Post by scottygt1983 »

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:
In the Guest Book there is a link that takes you back to your web page, but in the Message Board I can't seem to find one. Is there a way to add this link so someone can just click "back to your site" instead of having to hit the back button several times?

Thanks,
Scott
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Scott,

This requires modifying the mboard.php file

First open mboard.php in a suitable editor.
Find (lines 157-159 in mboard 1.3)

Code: Select all

<td>

<p><a href="#new"><b>New topic</b></a></p>
and change it to something like

Code: Select all

<td>
<?php echo '<p align="center"><a href="'.$settings['website_url'].'">Back to '.$settings['website_title'].'</a></p>'; ?>
<hr>
<p><a href="#new"><b>New topic</b></a></p>
If i am correct the $settings['website_url'] and $settings['website_title'] are already present in the settings.php file and can be set there.

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.
scottygt1983
Posts: 2
Joined: Sun Feb 08, 2009 5:59 am

Post by scottygt1983 »

Thanks Henrie,

The code worked perfect.
Locked