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 
Link Back To Main Site  XML
Forum Index » Support Forum
Author Message
MajickSprings
Newbie
[Avatar]

Joined: 02/10/2003 04:38:50
Messages: 1
Offline

How do I add a link back to my main site from the guestbook? I got it all set up and installed and such and have got the color settings how I want them BUT I need to be able to put a link back to the main site so people can get back to it. How????

~*~ April ~*~
http://apbts.majicksprings.com
Anonymous



First you will need to add a Book Message in the Language/english file:
$LANG["BookMess11"] = "Return to Home Page"; (I called mine BookMess11, with the message, "Return to Home Page".

Then edit your Templates/body.php file.
(You might find it easier to print out a copy of the original script to make it easier to make other changes later.........or to go back to the original if you have problems)

Remove everything in bold:

<td width="44%" align="right" class="font2">
<img src="$GB_PG[base_url]/img/signing.gif" width="90" height="30" border="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br> <img src="$GB_PG[base_url]/img/sign.gif" width="9" height="12"> <a href="$GB_PG[addentry]"><b>$LANG[BookMess3]</b></a>
<b>| <img src="$GB_PG[base_url]/img/lock.gif" width="9" height="11"> <a href="$GB_PG[admin]">$LANG[BookMess5]</a></b>

(This will remove the Sign the Guestbook logo in the top right corner and add a link to your home page to the left side of the "Sign the Guestbook" link.)

Replace it with the bold here..........changing "yourdomain.com", etc. to your URL.

<td width="44%" align="right" class="font2">
<a href="http://www.yourdomain.com/index.html"><B>$LANG[BookMess11]</b></a>
<b>|
<img src="$GB_PG[base_url]/img/sign.gif" width="9" height="12"> <a href="$GB_PG[addentry]"><b>$LANG[BookMess3]</b></a>
<b>| <img src="$GB_PG[base_url]/img/lock.gif" width="9" height="11"> <a href="$GB_PG[admin]">$LANG[BookMess5]</a></b>

I had added my own logo and another image and found that it worked better without the "Sign the Guestbook" logo in the top right. You can probably leave the logo if you want it.......in which case don't remove the first example, and just add the script in the second example right after the <br>.

Hope this helps
Robert
Beginner

Joined: 06/10/2003 07:25:36
Messages: 5
Location: Tennesee
Offline

Thanks for the details. Nicely done.
[ICQ]
Anonymous



Thank you so very much! Sorry it took me so long to reply. I really appreciate the help!

I have another question though now. Is there a way to change the whole background from being a solid color to an image? I'd like to change it from being a plain gray color to the following image:


Thanks again!
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

if your using a style sheet the code for it is...



The second line tells it not to repeat the image.
The third means it stays in the same place and doesn't stay
with the same bit in view. I.e. you scroll down you see the
rest of the background pic rather than it following you down.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum