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 
Guestbook Question  XML
Forum Index » Support Forum
Author Message
Anonymous



I have guestbook install and all is working ok ... I would like to make a change in code and cannot figure out where to do it.... Actually what I would like to do is add a few links in the drop down menu that has "Guestbook" in it located on the right side below the sign guestbook admin area.

I have found in the english.php file in the lang directory where under $LANG["FormSelect"] = "Guestbook"; is where the name is being pulled from .... So how do I add more links here and make them active?

thanks for any help from a newbie to PHP
Anonymous



I have alos found in body.php temlate the following

<!--Start JumpMenu -->

$TPL[GB_JUMPMENU]

<!--End JumpMenu -->

If I remove this then the drop down menu goes away... so once again how do I add more links into this?

/very confused
Anonymous



I would also like to add a few things like Home Page and Pictures to my Jump Menu. Any code I modify crashes the script, so I decided not to touch it. Thanks ahead of time!
Anonymous



if you want to add new URLs eg. your homepage it's so easy for me. Stay here i'll come back later w/ the answer
Anonymous



Any answer?
Anonymous



If you look at the guestbook on this site and click the box with the 'Go' button it simply displays the next 20 messages.
I think that you should leave the jump menu alone and instead insert your own header with a drop down menu of your own. ??
Anonymous



How to alter the Advanced guestbook.
I wanted to personalise the guestbook
a) to have my own logo
b) to be able to move back to my home page.

This is how I did it:-
First I should explain that I am a novice as far as PHP and also as far as hand coding HTML are concerned.
However, by dint of examing the source code of the gbook pages I worked it out.

The first and easiest trick was to substitute my own logo.gif for the original.
here's how:

go to /public_html/guestbook/img
rename logo.gif to logo.bac [incase you need to start over again]. Now
upload your own logo.gif (with that name)
That's the first bit done!

Next, to be able to escape from the Guestbook back to your homepage....

Go to /public_html/guestbook/templates

Click on body.php

now for safety sake copy this as it is (I did a ctrl A, ctrl C and popped it into a notepad file with ctrl V and saved it. You can then get back to the original if all goes pear shaped)

now edit body.php as follows

After the entry
<td width="56%"> <img src="img/logo.gif" width="225" height="42">
which you will find there
insert the following code

</td> <a href="http://www.your site.co.uk" ><img src="img/btback.gif"> </a>

where I have used the image file 'btback.gif' you must use your own image.
The 'btback' image is the one that is used throughout my site to return to base.
There yiou are done and dusted

Hope this helps.
Any snags, or better still any improvements, email me at
Keith@kaybee.fsworld.co.uk



;
Anonymous



whonoes wrote:I have alos found in body.php temlate the following

<!--Start JumpMenu -->

$TPL[GB_JUMPMENU]

<!--End JumpMenu -->

If I remove this then the drop down menu goes away... so once again how do I add more links into this?

/very confused


well, was looking on how to remove that, thanks a lot!
JTD
Graduate

Joined: 08/05/2004 21:52:50
Messages: 529
Location: Arkansas
Offline

Here ya go whonoes.

Trevor wrote:Hi Mastersmurfie,

I had a look at your guestbook.html script and it looks like you've got a bit of script missing.

Try this - open gb.class.php (in the lib sub-directory) and scroll down to where it says...
function generate_JumpMenu() {

My guess is that the next line is either...
$menu_array[] = "<select name=\"entry\" class=\"select\">";

or it's
$menu_array[] = "<option value=\"www.faithtabernacleupc.net" class=\"select\">Home Page</option>";

If that's the case then you need to make a small change. Find this again...
function generate_JumpMenu() {

Make the following changes, the blue is already part of the script and doesn't need changing, it's the bit in red that you need to make sure is included.
function generate_JumpMenu() {
$menu_array[] = "<select name=\"entry\" onChange=\"urlJump('self',this)\" class=\"select\">";
$menu_array[] = "<option value=\"http://www.faithtabernacleupc.net\" class=\"select\">Home Page</option>";
$menu_array[] = "<option value=\"0\" selected>".$this->db->LANG["FormSelect"]."</option>";

This should add a link to your home page. I've tested it on my site and it works fine. (note the backslash at the end of the URL - important).

With this menu you don't need to click the 'go' button, once you click a heading from the drop down list you're taken straight to the page. You may want to get rid of the 'go' button, look for the following line of text and delete it (it's a few lines further down)...
$menu_array[] = "<input type=\"submit\" value=\"".$this->db->LANG["FormButton"]."\" class=\"input\">";


I hope that helps.

Regards,

Trevor

LINK-> Use Lazarus Guestbook
[WWW] [Yahoo!] aim icon [MSN]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum