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 
Messages posted by: fatjacK
Forum Index » Profile for fatjacK » Messages posted by fatjacK
Author Message
some - yeah - if they deserve it!

sorry that is the standard reply is set up as you say but there are occasions when . . .
I think this is more to do with outlook express than advanced guestbook. But perhaps someone has already solved this, couldn't find it on posts though.

When receiving auto email confirmation from AGB, if the guest has supplied an email address, the from field in OE will contain that address. If you then reply that address appears in the To: field - all good so far.

If you then click send it seems that the email address is now the name field and visa versa.

Of course you can then change it round by hand, but much neater if that wasn't neccessary.
In the short while I’ve been dropping in this forum I’ve seen several pleas for merging the guestbook into an html page, to help keep design continuity in a website.

It would seem that the expert’s point of view is to simply change the header and footer files is the best solution. However they tell us you can in-bed the guestbook if you really insist - but the instructions I’ve seen up to now assume a fair bit of experience with tweaking forms so I’m going to try to post a newbies step by step guide.

I’ve now incorporated the guestbook into two sites, I’ve only bothered with the “add entry” and “view the guestbook” pages as it seems to me the admin page is all the better for looking merely functional. Strangly the confirmation page has merged too, I’m sure there’s a very good reason for this - but it was a bit of a bonus anyway.

The sites I experimented on are:
http://www.jrmmusic.co.uk/gbook/index.phpand http://flynnsbeefarm.co.uk/GuestBook/index.php

Have a look and if it’s not what you’re trying to do there’s no need to read further.

I attempt this by way of thanks to the real experts on this site who have been a great help to me. I hope I’m not just airing my ignorance but I’m sure someone will tell me if that’s so.

Some knowledge assumed: You can change permissions for the files that need editing, you can wade through html in a simple text editor and you can access & edit the files within advanced guestbook.

• Make your HTML template page; that is any header, footer, navigation bars and page decorations you want to see on your guestbook.
• Make sure all your pictures and hyperlinks have the full path to your files, i.e. http://www.mysite.co.uk/images/apicture.jpg or http://www.mysite.co.uk/mypage.html
• Leave an empty table where you want the guestbook to appear make a note of the width in pixels. If the position of the table is difficult to find place an html comment inside.
• Save your file in a simple text editor (notepad) call it template if you like.


• Go to the style settings in administration set the table width to the same as the table in your html template. Adjust colors and fonts while you’re there if required.
• Now find index.php – it’s in the guestbook folder you may need to use your control panel to access this file. Change permissions if necessary. Copy and paste the file in notebook save it ‘cos if you mess up you can simply paste it back again!
• It should now be on your clipboard if not copy again and paste the whole thing where you put your comment in the html template.
• Select all; copy then paste the merged document in index.php overwriting everything that’s already there. Save it (your new index.php) if it won’t save search the forum for “permissions”.


• VIEW YOUR GUESTBOOK I found that the bit above the guestbook data and below the header looked a bit naff so I had to edit body.php which you can reach through guestbook administration/templates - this is pretty easy as it’s basically html.
• Now if you want the add entry page to be encased in your beautiful website your going to have to repeat the whole procedure with addentry.php. You kept a copy of your plain html template didn’t you? The file for editing the top of the addentry.php file is form.php.

Well that’s enough I’ve spent over an hour on this, reading back it makes sense to me I hope it does to you.

With thanks and apologies to amber222 who really explained this in much fewer words.
dunno if this will help,
on my guestbook:
http://flynnsbeefarm.co.uk/GuestBook/index.php

I just changed the colours in the style settings to match then exchanged the gbook gif with my own banner gif

gbook gif is

open templates/body.php then look for

<img src="$GB_PG[base_url]/img/gbook.gif" width="140" height="15">


not perfect - but easy to do
Thank You

Will do as you say, perhaps a future tweak?
try this:

if(document.book.gb_email.value.search(/^.+@.+\..+$/)) {
alert("$LANG[ErrorPost12]");
document.book.gb_name.focus();
return false;
}
I've just tried it myself and the link I gave you explained how to get rid of the required fields but not really how to add them.

I'm a bit of a newbie myself but I tried this and it seemed to work:

1. open form.php and find:


if(document.book.gb_name.value == "") {
alert("$LANG[ErrorPost1]");
document.book.gb_name.focus();
return false;
}


copy and paste it immediately below and change gb_name to gb_email and ("$LANG[ErrorPost1]") to ("$LANG[ErrorPost12]")

thus:

if(document.book.gb_email.value == "") {
alert("$LANG[ErrorPost12]");
document.book.gb_name.focus();
return false;
}


2.still in form.php find

<td width="25%" class="font1"><img src="$GB_PG[base_url]/img/email.gif" width="15" height="15"> $LANG[FormEmail]:</td>


and just add an * between [FormEmail] and :</td>

3. open english.php in the lang directory find the lines that begin with $lang and insert this one:

$LANG["ErrorPost12"] = "You forgot to fill in the email field. Please correct it and re-submit.";

as to verifying the email address I suspect a $VARS needs creating to ensure input is wildcard@wildcard - but thats beyond me.
think this is the posting you want

http://proxy2.de/forum/viewtopic.php?t=2877
I'm sure the answers already been posted but I can't find it.

I want to keep the first (site owners) message (post) as the first to appear on the advanced guestbook.
Thank You Carbonize

Right on the mark again following links from there I got tohttp://www.pageresource.com/cgirec/ptut1.htm

So hopefully I'll be able to write my own script - given time
Does anyone know of a simply installed program/script that would enable a user (after a password log-in) to edit a single page in a website I've just come across this one at
http://www.hotscripts.com/CGI_and_Perl/Scripts_and_Programs/Content_Management/more10.html
described as
RearSite is an automated Web publishing tool allowing the management of files from a WWW user interface. RearSite has been written to give users the opportunity to update themselves their WWW personnal home pages without using any market product or FTP. An administrator creates users accounts (user name, user passwd, and user home directory), users get logged in and then receive access to their documents. RearSite is written in PERL (CGI.pm based) and use a FastCGI compliant HTTP server (like APACHE).
but I bet one of you knows better
Yeah it has to be that I suppose but the weird thing is when I uploaded the new page to where I'd previously successfully installed the applet it worked.

Then put exactly the same page back on the site I'm currently working on with all the files in the same directory, just the same as the first site it can't find the file.

Well I think I'll let it go now - found a much better solution on the site you suggested, all the script on the page and no $%&* applets.

Thanks Again
Perfect for the quick fix thank you. The scripts seem much better there.

Though you know I'd still like to know what I was missing with the other it's a bit like giving up on a puzzle.

But thanks again for the tip, it looks a terrific resource.
This probably does not belong in this forum but you seem a knowledgable bunch so I'll try it anyway.

I'm almost embarrassed to say I'm very attached to my scroller applet that sits on my homepage at the fun site http://www.fatjack.co.uk/drink. All the script requires is a “DJScroller.class” file, an archive “DJFiles.zip” file and a configuration “tengine.txt” loaded to the same directory as the calling html.

I'm now producing a site at http://www.flynnsbeefarm.co.uk/for a friend and want to install the applet on the "relaxation CDs" page. Got it working nicely locally I then uploaded all the relevant files only to get the "load: class DJScroller not found" error when viewing live.

To test the html I uploaded the flynns page to the drink web to see if it would call the .class and .zip file that reside there. It did.

So I re-uploaded the applet files and tried again no go. I carefully checked filenames & cases, uploaded all to the root directory - no go. Tried to contact the author of the script but the link is dead - tried javaboutique (where I originally downloaded the script) - no help but I did download a fresh batch of files in case of corruption.

I have tried uploading in ASCII as well as (the recommended) binary.
I have tried allowing all permissions to the files.
I have tried changing the directory.
I have tried uploading the bare html script in case another page element was interfering with it.

I've spent 24 hours on a silly scroller that I don't even know that I want on the site - but you know what its like - just can’t stand defeat after all this effort.

Please help if you can, all suggestions gratefully received.

Bet it's something silly.
it's 3:30am and I've just found & changed my permissions !
wheres the emoticon for knackered?
 
Forum Index » Profile for fatjacK » Messages posted by fatjacK
Go to:   
Based on the open source JForum