Hello, stevep234:
Ok, so keep working on the question this way, if you are worried if
I will continue my work, just look at this answer of mine:
http://answers.google.com/answers/threadview?id=249209
Where I first answered the question and after that, all the work was
done using the request for clarifications feature. Also, don't tip
until the work it's almost finished.
Regards. |
Clarification of Answer by
joseleon-ga
on
20 Oct 2003 04:34 PDT
Hello, stevep234:
Regarding task #8, there is no html command or attribute to limit
the amount of text in a text area, so you have to use Javascript, I
have added a function to your head.php that it's useful to limit the
amount of text in any field:
function limitText(field, maxlimit)
{
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
}
I have updated your coupon.php to limit the amount of text to 125
characters, this way:
<TEXTAREA NAME="SQ1" ROWS="2" COLS="60"
onKeyDown="limitText(this,125);"
onKeyUp="limitText(this,125);"></TEXTAREA>
So you can use it in another parts of the website.
Regards.
|
Request for Answer Clarification by
stevep234-ga
on
20 Oct 2003 10:48 PDT
Regarding #8, Great answer - I will be using it to limit the inputs in
the text areas on other pages.
Thanks.
Steve
|
Clarification of Answer by
joseleon-ga
on
20 Oct 2003 13:15 PDT
Hello, stevep234:
I have finished task #6, to track your visitors using cookies and to
show a popup when leaving the website without visiting specific pages.
Right now, trackorders.php and affiliates.php are being tracked and
the popup contents are placed on a file called leaving.htm, which
opens full window, if you want to customize the window, just let me
know.
To add more pages to be tracked and checked, do the following:
-Edit the .php file that contains the page and add this lines at the
very top, will cause an error if added elsewhere:
<?php
$script=basename($_SERVER["PHP_SELF"]);
setcookie($script,"1");
?>
Are the same lines for all pages, you don't have to change anything.
-Now, to check if the user has visited that page, edit the file
head.php and search a routine called checkVisitedPages(), here are the
contents right now:
function checkVisitedPages()
{
//Add more cookies here to be checked
if (
(!get_cookie('trackorders.php')) &&
(!get_cookie('affiliates.php'))
)
{
MM_openBrWindow('leaving.htm','','')
}
}
If you want to add one more page, just copy the line:
(!get_cookie('trackorders.php')) &&
And paste it just below, let's take a look at this sample:
function checkVisitedPages()
{
//Add more cookies here to be checked
if (
(!get_cookie('trackorders.php')) &&
(!get_cookie('yournewpage.php')) &&
(!get_cookie('affiliates.php'))
)
{
MM_openBrWindow('leaving.htm','','')
}
}
This way, you can perform more complicated options, for example, the
user has visited page A, but not page B, then, I show a popup..., etc,
etc.
I hope this is what you were looking for, if not, please, don't
hesitate to request for any clarification.
Regards.
|
Request for Answer Clarification by
stevep234-ga
on
20 Oct 2003 22:08 PDT
Hello, JoseLeon,
Regarding #6, yes, I think thats exactly what I wanted, except there
should be some time limit for when it would pop-up again, for example,
6 hours, if they come back again 6 hours later but don't visit the
necessary pages a second time; if more than 6 hours later (or 1 day or
whatever I hard code into it) the exit pop-up should pop-up again.
Also I'm not familiar with javascript - please check my codeing in the
"leaving.htm" file - I'm not sure how to close a javascript pop-up.
And do I need a head tag and body tag, etc. in this "leaving.htm"
javascript pop-up? Ideally I'd like the pop-up to be a small box (not
a whole page) and to look as close to a pop-over as possible to keep
the appearance consistent. Can I set the hover-over link colors in
"leaving.htm" like in a pop-over?
Thank you again.
Steve
|
Clarification of Answer by
joseleon-ga
on
21 Oct 2003 00:58 PDT
Hello, stevep234:
I have modified the popup script to set a cookie during 6 hours,
this way, we prevent to show the popup in that period. To change it,
look for this line:
SetCookieEx('popup','1',6);
On the head.php script, 6 is the number of hours you want the cookie
to be set, 24 it's 1 day and so on.
I have also modified the leaving.htm to close the window, the command
to close a popup (not a pop-over) is this:
onClick="window.close();"
I have also added all your CSS styles in the popup, so links now look
the same as in pop-overs.
Regards.
|
Request for Answer Clarification by
stevep234-ga
on
21 Oct 2003 03:22 PDT
hi,
What is this cookie's name?
Steve
|
Clarification of Answer by
joseleon-ga
on
21 Oct 2003 03:50 PDT
Hello, stevep234:
The name of the cookie it's popup, you can change it to whatever you
want, but also change the line above that reads the cookie.
Regards.
|
Clarification of Answer by
joseleon-ga
on
21 Oct 2003 11:31 PDT
Hello, stevep234:
I have been inspecting your website to optimize it for search
engines and to fix some common mistakes with the HTML, I have used the
validation service of the w3 organization here:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.the-battery-shoppe.com
And I have fixed this error:
Fatal Error: No DOCTYPE specified!
by adding this line in the top of the index.php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
You should edit all your .php pages and add this declaration at the
very top.
If I run the validator again I get 363 errors, but you don't have to
worry too much, are not ending tags and so on.
Regarding optimize your site for search engines, tell you that you
don't have a robots.txt file placed in your root dir, a simple file
like this would be enough, I have already placed a copy on your
server:
User-agent: *
Disallow: /images/
This allow all robots to index your site, but prevent indexing to the
images directory.
Regarding your metatags, the title tag it's too large, 81 chars while
60 chars is the maximum recommended
<TITLE>The-Battery-Shoppe.com - Buy Any Battery For Your Device Online
Here - HOME PAGE</TITLE>
The description tag it's also too large, 219 chars while 150 chars is
the maximum recommended
<META NAME="Description" CONTENT="Buy any battery online here. Your
laptop battery, cell phone battery, camcorder battery, any
rechargeable battery plus battery charger and accessories. Cordless
phone battery, digital camera battery, all batteries here.">
The keyword tag it's also too large, 916 chars while 874 it's
recommended
<META NAME="Keywords" CONTENT="battery, batteries, laptop battery,
battery charger, cell phone battery, camcorder battery, rechargeable
battery, battery plus, lithium battery, nimh battery, cordless phone
battery, cellular phone battery, Panasonic battery, notebook battery,
Motorola battery, rechargable battery, computer battery, nokia
battery, digital camera battery,lithium ion battery, Sony battery,
phone battery, battery pack, cellular battery, alkaline battery,
laptop computer battery, Sanyo battery, eveready battery, mobile phone
battery, replacement battery, Toshiba battery, notebook computer
battery, Compaq battery, Toshiba laptop battery, Motorola cell phone
battery, dell battery, lithium ion battery, Sony camcorder battery,
nimh battery charger, Compaq laptop battery, nickel metal hydride
battery, Dell laptop battery, JVC camcorder battery, nokia cell phone
battery, IBM laptop battery, Sony laptop battery, replacement laptop">
Also, this tag may not work in some spiders because the following
keywords are repeated more than 3 times:
The word battery was repeated 45 times
The word laptop was repeated 8 times
The word phone was repeated 7 times
This may be considered "word spamming" by some search engines, and
also, the keyword relevancy to page content is poor (50%), I suggest
you to use less keywords and without repeating battery.
I hope this information it's useful to you.
Regards.
|
Request for Answer Clarification by
stevep234-ga
on
21 Oct 2003 12:49 PDT
Yes, it works great! Where do you set the dimensions of the pop-up,
or does the browser do that automatically? And can the pop-up page
margin be set to zero somewhere so the yellow table border is at the
edges like in a pop-over?
Great work.
Thanks.
Steve
|
Request for Answer Clarification by
stevep234-ga
on
21 Oct 2003 13:11 PDT
The information is Very useful and appreciated. So you suggest I
change my keywords to :
battery, batteries, laptop, charger, cell phone, camcorder,
rechargeable... etc?
Will the search engines (especially google) still find it with phrases
like "laptop battery" or "battery charger" if they are not listed
phrases in the keywords?
Thanks
|
Clarification of Answer by
joseleon-ga
on
22 Oct 2003 11:43 PDT
Hello, stevep234:
You can setup the dimensions of the popup in the head.php script,
this is the line:
MM_openBrWindow('leaving.htm','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=720,height=210')
Not only the dimensions (width=720,height=210), but the rest of the
attributes.
Unfortunately the border cannot be set to zero in an easy way, that
is, you will need to use chromeless windows that adds a little
overhead and a lot of incompatibilities with browsers. If you want to
elaborate more on this matter after all tasks are finished, you are
welcome ;-)
And regarding keywords, it's not exactly to separate *all* terms, but
don't repeat battery/batteries so many times, because if there are
more than 3/4, some spiders just ignore the keywords. The key here is
to be concise and put the most important words first, as some spiders
use only the first ones. This is something you don't need to worry too
much to get listed, keywords are not so important, the important is
the content of your page and how many other sites link to your site.
Regards.
|
Clarification of Answer by
joseleon-ga
on
22 Oct 2003 12:32 PDT
Hello, stevep234:
I have just finished tasks 9 and 10, please, check it out. Tell me
if there is something left.
Regards.
|
Request for Answer Clarification by
stevep234-ga
on
22 Oct 2003 14:41 PDT
YES, BEAUTIFUL! I would consider this as finished. If there is any
other clarifications needed, I'll ask in my next posted question.
Wait about an hour for me to prepare my next question. I have another
question I will be posting for you as soon as its prepared.
Thank you, JoseLeon, you do great work.
Steve
|
Request for Answer Clarification by
stevep234-ga
on
22 Oct 2003 14:46 PDT
One last question here, what browser did you use to do this work in?
Thank you again.
Steve
|
Clarification of Answer by
joseleon-ga
on
22 Oct 2003 14:48 PDT
Hello, stevep234:
I had to use IE because your site doesn't work well with Netscape/Mozilla.
Looking forward for your next question ;-)
Regards.
|
Request for Answer Clarification by
stevep234-ga
on
22 Oct 2003 17:06 PDT
hi JoseLeon,
I believe I put the next posted question in the wrong category. You
will find it under computers, not computers-programming.
Thanks.
Steve
|
Request for Answer Clarification by
stevep234-ga
on
22 Oct 2003 18:00 PDT
hi,
The new question has been moved to the correct category: computers - programming.
Thanks.
|
Clarification of Answer by
joseleon-ga
on
22 Oct 2003 23:32 PDT
Hello, stevep234:
I'm going to check it out, thanks for trust in me again.
Regards.
|
Request for Answer Clarification by
stevep234-ga
on
01 Jun 2004 13:55 PDT
Hi JoseLeon,
Do you still participate in this forum? I have posted a new question
for you here http://answers.google.com/answers/threadview?id=354541
Thanks.
Steve
www.thebatteryshoppe.com
|
Clarification of Answer by
joseleon-ga
on
09 Jun 2004 08:34 PDT
Hello, stevep:
This is just to remove the needing for a clarification on my researcher center.
Regards.
|