40 replies [Last post]
abates
Offline
Enthusiast
Buffalo NY
Last seen: 12 years 44 weeks ago
Buffalo NY
Timezone: GMT-4
Joined: 2007-10-19
Posts: 79
Points: 0

I have a styled navigation menu of about thirty links that I would also like to have function as a placemarkers. By this I mean, when a user clicks on an item within this menu, they are taken to the corresponding page, and the menu item that led them there has changed appearance so that the viewer can tell where they are within the list of links. Please see attached image for an example of what I'd like to do.

My question is, how can I acceptably do this? I am interested in finding the markup I need to override the

  • specs already declared. I need this to work in both FF and IE.
  • Thanks for any help, and Merry Christmas..

    Art

    AttachmentSize
    screen.gif2.53 KB
    Hugo
    Hugo's picture
    Offline
    Moderator
    London
    Last seen: 5 years 47 weeks ago
    London
    Joined: 2004-06-06
    Posts: 15668
    Points: 2806

    This topic has been covered

    This topic has been covered many times on the forum,

    Could you try having a search through the forum archives, try phrases such as 'active nav' 'highlight page navigation' active links'or variations thereof

    Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
    ----------------------------------------------------------------
    Please post ALL your code - both CSS & HTML - in [code] tags
    Please validate and ensure you have included a full Doctype before posting.
    Why validate? Read Me

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Thanks, sorry I guess I

    Thanks, sorry I guess I didn't really know what to look for. I read a few of the articles and this seems to be geared towards small navigational menus of half a dozen links or less. I have about 80 pages, all separate links. Would assigning an ID to each of these pages be the best solution? I'm using the following tutorial:

    http://www.hicksdesign.co.uk/journal/highlighting-current-page-with-css

    I'm not concerned with the work involved in assigning a separate ID to each page, I'm more concerned with the amount of CSS that will have to be created in my style sheet. Each menu item needs to have a bit of of CSS. Essentially:

    body#content a#content

    then the active link styling follows at the end of the list. Again, I'm concerned about having 80+ declarations like that in my CSS style sheet. Any opinions?

    Thank You!

    gary.turner
    gary.turner's picture
    Offline
    Moderator
    Dallas
    Last seen: 23 hours 47 min ago
    Dallas
    Timezone: GMT-6
    Joined: 2004-06-25
    Posts: 9774
    Points: 3856

    You might want to use server

    You might want to use server side scripting to make life a bit easier. In very rough PHP pseudo code:

    $pagename = $_SERVER['PHP_SELF'] //yields the path and document name
    For $links in $list {
      if grep($pagename) {
        $link = $link . "class="thispage";
      }
    }

    Then code the css, .thispage {color: pink;}

    Alternatively, you could use the javascript window.location property, and split it to get the page name. Then walk the DOM. When you get to a match, set this.style="thispage".

    Sorry about the rough algorithms, but I'm too tired to try to actually code something. Smile

    cheers,

    gary

    If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Gary, I've been trying to

    Gary, I've been trying to find a similar php solution online to explain your solution in a little more detail. I'm just really cutting my teeth on CSS, with much much more to learn, and my php experience is virtually nil.

    I came across an example of a php solution:

    http://www.alistapart.com/articles/keepingcurrent/

    But, this solution requires me to move my entire navigation list into another file. The navigation links on my site are very keyword rich, so I'd really like to keep them on the page. Can you please suggest an online tutorial (or if you feel up to walking me through it) that I could explore more with?

    Thanks Gary,

    Art

    Deuce
    Deuce's picture
    Offline
    Guru
    Somewhere, USA
    Last seen: 3 years 20 weeks ago
    Somewhere, USA
    Timezone: GMT-5
    Joined: 2005-11-20
    Posts: 4424
    Points: 1843

    I am guessing that when you

    I am guessing that when you say another file you are referring to a file that will be included or required in your site.
    This is a very valid way of doing navigation and makes life much easier in the long run and does not hurt or help SEO in any way.

    When the site is parsed, your navigation will be pulled back in before any user or spider ever sees it.

    all » http://dictionary.reference.com/browse/all

    Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Ohhhh..OK., thanks Deuce.

    Ohhhh..OK., thanks Deuce. Yes, this part of the tutorial on that site had me a little concerned:

    "We’ll start by removing the navigational menu from all pages and placing it in a separate document called navigation.php. This document will contain just the (X)HTML that makes up your navigational menu. In this case, it will contain the above

    As you remove the navigational menus from each page, you’ll add in a pinch of PHP. All it takes is some basic PHP to include the content of navigation.php"

    How does the solution sound to you on that site?

    Deuce
    Deuce's picture
    Offline
    Guru
    Somewhere, USA
    Last seen: 3 years 20 weeks ago
    Somewhere, USA
    Timezone: GMT-5
    Joined: 2005-11-20
    Posts: 4424
    Points: 1843

    that you will be creating a

    that you will be creating a file called navigation.php and that you will use the php code to include that file into your site.

    just think - after doing this, when you decide to add a new page or remove a page, you only have to edit one navigation file, just think how easy life will be.

    all » http://dictionary.reference.com/browse/all

    Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    That's true very nice

    That's true Smile very nice option to have..Thanks, I'll give this a go and report back.

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Silly question #1, is there

    Silly question #1, is there a way I can test this locally? Could I install php here on my desktop and run accurate tests?

    UPDATE: I'm using dreamweaver and they have a small tutorial on installing php for testing. Let's see how I can mess this up Smile

    Hugo
    Hugo's picture
    Offline
    Moderator
    London
    Last seen: 5 years 47 weeks ago
    London
    Joined: 2004-06-06
    Posts: 15668
    Points: 2806

    Don't even think about That

    Don't even think about That weaver of lies for testing anything.

    Work sensibly download XAMP Apache server package, a package that has PHP and MySQL. Use this to test your files in using naturally a browser rather than DW.

    It may mean you have to eschew the methods that DW tries to get you to follow to work with site pages and structure, but if you work in a proper sever environment it has many advantages and isn't that difficult to implement (installing XAMP takes but a few minutes, and is usable as a development server straight away)

    Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
    ----------------------------------------------------------------
    Please post ALL your code - both CSS & HTML - in [code] tags
    Please validate and ensure you have included a full Doctype before posting.
    Why validate? Read Me

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Thanks Hugo...hehe I found

    Thanks Hugo...hehe I found out that while I was following DWs tutorial, it became more apparent it wasn't what I wanted to do (mainly install a IIS server). Apache is the way I want to go, as my webhost uses Apache.

    I run windows xp, will I still be able to run this?

    Hugo
    Hugo's picture
    Offline
    Moderator
    London
    Last seen: 5 years 47 weeks ago
    London
    Joined: 2004-06-06
    Posts: 15668
    Points: 2806

    Yes Operating system poses

    Yes Operating system poses no particular problems, I run windows XP boxes in an ad hoc network each with Apache setups for dev work, try if posible to keep all your dev 'stuff' as agnostic as possible, I have to dable with IIS for work requirements and I like it very little everything is slightly more awkward to deal with than Apache.

    Running Apache locally also means that you can mirror your web host file structure allowing you to work with vhost setups and set up local domain names and if it works locally then it will simply (or should) be a matter of uploading and all will function as per your local setup

    Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
    ----------------------------------------------------------------
    Please post ALL your code - both CSS & HTML - in [code] tags
    Please validate and ensure you have included a full Doctype before posting.
    Why validate? Read Me

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    O.K., well I had everything

    O.K., well I had everything setup, I tested a php doc to make sure everything was correctly installed and I'm having a problem getting the php code to show up in my html. I decided to upload it to my host, thinking perhaps it might be a misconfiguration error on my part. Same problem. I constructed my list, then made two links "live". I figured I'd code the rest of the links upon successful testing.

    Live Page 1:
    http://www.soviet-awards.com/test/order-of-victory.html

    Live Page 2:
    http://www.soviet-awards.com/test/order-of-service-motherland.html

    Navigation.php:
    http://www.soviet-awards.com/test/navigation.php

    Can't seem to get the php bit to include itself into the html, whether in my XAMPP here or remotely. :?

    thepineapplehead
    thepineapplehead's picture
    Offline
    Guru
    Last seen: 37 weeks 20 hours ago
    Joined: 2004-06-30
    Posts: 9668
    Points: 801

    http://www.soviet-awards.com/

    Verschwindende wrote:
    • CSS doesn't make pies

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    (No subject)

    :bigoops:

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    O.K., got everything working

    O.K., got everything working -errm- I mean renamed, and this does what it's supposed to do, but I want to do something else. The original "stock" version will alter the styling of the anchor. However, I want the entire li item to change..background color, bullet and everything. I'm sure it has to be a matter of targetting the tags correctly which I'm having a hard time doing. Here's the validated CSS. The declarations in question incorporate the #currentpage id about 3/4 of the way down.

    /* Credit for the 3 Column-Flanking Menus layout goes to bluerobot. See the original layout here: http://bluerobot.com/web/layouts/layout3.html */

    body {
    color:#333;
    background-color:#CC0066;
    margin:10px;
    padding:0px;
    font:11px verdana, arial, helvetica, sans-serif;
    }
    h1 {
    margin:0px 0px 15px 0px;
    padding:0px;
    font-size:28px;
    font-weight:bold;
    color:#999999;
    background-color: #33FF99;
    }
    h2 {
    margin:0px 0px 0px 0px;
    padding:0px;
    background-color: #33FF99;
    font-size: 1.25em;
    font-weight: bold;
    }
    h3 {
    border-bottom:2px solid #333;
    text-align:left;
    font-size: 1.375em;
    padding: 0;
    background-color: #33FF99;
    font-family: "Times New Roman", Times, serif;
    margin: 0px 0px 0px 15px;
    ;
    font-weight: bold;
    }
    p {
    font:11px/20px verdana, arial, helvetica, sans-serif;
    margin:0px 0px 0px 0px;
    padding:0px;
    background-color: #FF6699;
    }
    .Content>p {
    margin:0px;
    background-color: #33FF33;
    }
    .Content>p+p {
    text-indent:30px;
    background-color: #000933;
    }

    a {
    color:#09c;
    font-size:11px;
    font-family:verdana, arial, helvetica, sans-serif;
    font-weight:500;
    text-decoration:none;
    }
    a:link {color:#09c;}
    a:visited {color:#07a;}
    a:hover {background-color:#eee;}

    /* All the content boxes belong to the content class. */
    .content {
    position:relative; /* Position is declared "relative" to gain control of stacking order (z-index). */
    width:auto;
    min-width:100px;
    margin:0px 190px 20px 185px;
    border:1px solid black;
    background-color:#9966CC;
    padding:10px;
    z-index:3; /* This allows the content to overlap the right menu in narrow windows in good browsers. */
    }

    #auctioncode {
    position:absolute;
    width:190px;
    top:10px;
    right:10px;
    border:1px dashed black;
    background-color:#99FF66;
    padding:10px;
    z-index:1;
    /* Here is the ugly brilliant hack that protects IE5/Win from its own stupidity.
    Thanks to Tantek Celik for the hack and to Eric Costello for publicizing it.
    IE5/Win incorrectly parses the "\"}"" value, prematurely closing the style
    declaration. The incorrect IE5/Win value is above, while the correct value is
    below. See http://glish.com/css/hacks.asp for details. */
    voice-family: "\"}\"";
    voice-family:inherit;
    width:160px;
    }
    /* I've heard this called the "be nice to Opera 5" rule. Basically, it feeds correct
    length values to user agents that exhibit the parsing error exploited above yet get
    the CSS box model right and understand the CSS2 parent-child selector. ALWAYS include
    a "be nice to Opera 5" rule every time you use the Tantek Celik hack (above). */
    body>#auctioncode {
    width:160px;
    }

    /* -------------------------------------------------------LIST MENU BELOW */

    /* Any div with the class ".menustyling" declared will be styled thusly: */
    .menustyling{
    width:175px;
    margin:0px;
    background-color:#FFFFCC;
    left: 10px;
    border: 1px inset black;
    position: absolute;
    z-index: 2;
    /* Again, the ugly brilliant hack. */
    voice-family: "\"}\"";
    voice-family:inherit;
    width:175px;
    }
    /* Again, "be nice to Opera 5". */
    body>.menustyling {width:175px;}

    /* Any UL existing within the menustyling div will be styled thusly: */
    .menustyling ul{
    list-style:none;
    padding: 0px;
    margin: 0px;
    }

    /* Any LI existing within the menustyling div will be styled thusly: */
    .menustyling li{
    padding-left: 10px;
    background-image: url(images/dash.gif);
    background-repeat: no-repeat;
    background-position: .25em .5em;
    background-color: #00FFCC;
    }

    /* Any links not visited or hovered over in any list within the "nav" class umbrella will be styled thusly: */
    .nav li a:link{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    background-color: transparent;
    }
    /* http://www.alistapart.com/articles/keepingcurrent/ */
    .nav #currentpage li{
    padding-left: 10px;
    background-image: url(images/arrow.gif);
    background-repeat: no-repeat;
    background-position: .25em .5em;
    background-color: #00FFCC;
    }
    .nav #currentpage a{
    color: #3333CC;
    background-color: #FFFFFF;
    }
    /* Any hovered over anchor in any list within the "nav" class umbrella will be styled thusly: */
    .nav li a:hover{
    color: #CCFF00;
    background-color: #66FFFF;
    }
    /* Any anchor that has been clicked on, but not released, in any list within the "nav" class umbrella will be styled thusly: */
    .nav li a:active{
    color: #CCFF00;
    background-color: #66FFFF;
    }
    /* Any visited anchor in any list within the "nav" class umbrella will be styled thusly: */
    .nav li a:visited{
    font-family: Arial, Helvetica, sans-serif;
    }
    /* When used with menustyling, move top down by X pixels */
    .titles {
    top:20px;
    }

    /* When used with leftnav, move top down by X pixels */
    .orders {
    top:175px;
    }

    /* When used with leftnav, move top down by X pixels */
    .medals {
    top:512px;
    }

    /* -------------------------------------------------------LIST MENU ABOVE */

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Sorry, this would probably

    Sorry, this would probably help also..I wasn't sure if anyone needed the html as the code is almost void of content. Also please note that I am testing only two awards here in this list. The Order of Victory, and the Order Service to Motherland. Here is navigation.php:

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    damn..still can't target

    damn..still can't target those li items to make the background image change when id=currentpage.. :curse: my eyes are glassing over. I was hoping it would have been something like .nav #currentpage li, as .nav #currentpage a styles with no problem :shrug:

    thepineapplehead
    thepineapplehead's picture
    Offline
    Guru
    Last seen: 37 weeks 20 hours ago
    Joined: 2004-06-30
    Posts: 9668
    Points: 801

    abates wrote:damn..still

    abates wrote:
    damn..still can't target those li items to make the background image change when id=currentpage.. :curse: my eyes are glassing over. I was hoping it would have been something like .nav #currentpage li, as .nav #currentpage a styles with no problem :shrug:

    .nav #currentpage li

    refers to a list-item INSIDE an element with an ID of "currentpage".

    What you want is

    .nav li#currentpage

    which refers to a list item with an ID of "currentpage"

    Verschwindende wrote:
    • CSS doesn't make pies

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Thanks Paul..works like a

    Thanks Paul..works like a charm.

    thepineapplehead
    thepineapplehead's picture
    Offline
    Guru
    Last seen: 37 weeks 20 hours ago
    Joined: 2004-06-30
    Posts: 9668
    Points: 801

    How are you getting on with

    How are you getting on with it now? Have you got the menu into a usable state and want to tackle some more, or are you still tweaking?

    Verschwindende wrote:
    • CSS doesn't make pies

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Hi Paul, Thanks for asking.

    Hi Paul,

    Thanks for asking. The mechanics of the menu work great. I figured rather than waste time to make every one of those menu items "live" I'll finish the mechanics on the rest and simply use the live completed layouts as templates for the rest.

    I've got two major issues I need to address. I'll post back when I have something to show.

    Art

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Guys, I need your advice on

    Guys,

    I need your advice on something I would like to do..My site is about collecting military awards, each has a unique design. When people visit my site, more often than not, it is for award indentification. I know this because they easily get frustrated by not being able to immediately identify their awards, and they email me asking if I can tell them what it is, and come to find out it is in front of them, albeit somewhat difficult to find. As my site is constructed now, the only way someone can identify an award is by looking through the entire site, page by page.

    What I'd like to do is to create on the navigation menu, fly-out thumbnail pictures for each award (see attached mock-up). When a mouse hovers over, an identifying thumbnail pops up showing an identifying closeup feature of the award (perhaps a portrait on the medallion, or bit of text, or section of ribbon, etc.)

    I've used the CSS pop-up thing before on my site and it worked out great. The CSS code was based on this tutorial here:

    http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/

    Is CSS the best way to do this? I'm trying to make the site as lean as I can, while adding features I think are beneficial.

    Thanks

    Art

    AttachmentSize
    flyout.jpg 24.25 KB
    thepineapplehead
    thepineapplehead's picture
    Offline
    Guru
    Last seen: 37 weeks 20 hours ago
    Joined: 2004-06-30
    Posts: 9668
    Points: 801

    CSS is something I'd suggest

    CSS is something I'd suggest for that, yes. You could also have a look at www.cssplay.co.uk or http://meyerweb.com/eric/css/edge/

    Verschwindende wrote:
    • CSS doesn't make pies

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    I need everyone's

    I need everyone's opinion..I'm at a creative/functional impasse. I created a successful test of the "menu thumbnail" it works fine, but I'm guessing the amount of code bloat for this feature (and for the php current page feature) is excessive..which set me to thinking, why exactly am I doing these things? do they really add to the functionality/usability of the site or am I doing it because it will look cool? I'm trying to create something that is lean and mean. I don't want to start adding bells and whistles simply because I can. I need to justify each bit of code. I'm thinking that I could accomplish the same thing by simply providing a well placed link to an online identification chart of some sort. Any thoughts?

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    O.K., after much thought

    O.K., after much thought I've decided to scrap the thumbnail flyout menu. It seemed to add to much weight to the code. I could offer a beginners section and have all these laid out on a separate page.

    I'm going to code the entire menu with the code for the php currentpage discussed above. Perhaps you guys can answer this:

    Seeing as I'm creating one page for each unique award, I'd like good keyword specific page names while avoiding extraneous wording. For example one of the awards I will have a page for is the "Order for Service to the Motherland in the Armed Forces of the USSR". I assume it would be crazy for me to name one of my pages that entire string. Would I just pick a few keywords out and do this for example "order-service-motherland-armed-forces-ussr.php"

    Still seems kind of wordy..what do you guys think?

    thepineapplehead
    thepineapplehead's picture
    Offline
    Guru
    Last seen: 37 weeks 20 hours ago
    Joined: 2004-06-30
    Posts: 9668
    Points: 801

    I don't suppose awards have

    I don't suppose awards have any numerical designation, do they?

    Verschwindende wrote:
    • CSS doesn't make pies

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Not really, there is no

    Not really, there is no name/numbering convention, only names are recognized. Why do you ask? I was thinking for SEO, I'm curious how numbers would be used unless I'm misunderstanding something?

    BTW, I wanted to try putting the php include from the ala "keeping current" article into a xhtml strict doc type and running it thru the W3 validator just to see what would happen..it failed due to the use of "short tags". I don't know if this is important or not, apparently there is some controversy on that issue. I posted a question about this on a php forum, just to ask opinions. If anyone knows of a workaround that is validatable (I don't believe that is even a word) please let me know.

    Thanks,

    Art

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Never mind regarding the

    Never mind regarding the validator question Smile I asked someone and they said "duh...that's because the the validator is validating html, not php. The validator rose the red flag cause is expected something and something wasn't there.."

    makes sense Smile

    gary.turner
    gary.turner's picture
    Offline
    Moderator
    Dallas
    Last seen: 23 hours 47 min ago
    Dallas
    Timezone: GMT-6
    Joined: 2004-06-25
    Posts: 9774
    Points: 3856

    The filename, itself,

    The filename, itself, doesn't matter. For example:
    Order for Service to the Motherland in the Armed Forces of the USSR
    The search engines see this as a link to "Order for Service to the Motherland in the Armed Forces of the USSR", not 32a.php.

    If, in 32a.php you have

    Order for Service to the Motherland in the Armed Forces of the USSR

    The search engines see the name/title of the page as "Order for Service to the Motherland in the Armed Forces of the USSR".

    Does that help?

    cheers,

    gary

    If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Gary, I'm confused. I use

    Gary, I'm confused. I use VbSEO for my forum, and one of its best selling features is URL rewriting. Taking meaningless URLs output via a stock VBulletin and re-writing them with juicy keywords..am I getting the URL and the physical file name confused? doesn't seem like there should be a difference.

    thepineapplehead
    thepineapplehead's picture
    Offline
    Guru
    Last seen: 37 weeks 20 hours ago
    Joined: 2004-06-30
    Posts: 9668
    Points: 801

    The reason I asked about

    The reason I asked about numbers was to name your pages, eg if an award was model #95673-12 then the page could be

    /awards/soviet/95673-12.php

    but since they don't then I'm not sure how you're going to name them. Using file names like "motherland-commemoration-gold-medal.php" does seem a little spammy but if not that then what? A random name? "Medal1.php"?

    Verschwindende wrote:
    • CSS doesn't make pies

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    I guess I'll try to be as

    I guess I'll try to be as dead-on to my keywords, while being as concise as possible. Perhaps I'll limit myself to two dashes and see what happens. Thanks guys. I'll post the completed menu live on my site when it's done. I'd like to hear your opinions on load time and response time when the links are clicked.

    Deuce
    Deuce's picture
    Offline
    Guru
    Somewhere, USA
    Last seen: 3 years 20 weeks ago
    Somewhere, USA
    Timezone: GMT-5
    Joined: 2005-11-20
    Posts: 4424
    Points: 1843

    thepineapplehead wrote:Using

    thepineapplehead wrote:
    Using file names like "motherland-commemoration-gold-medal.php" does seem a little spammy

    Have you ever been to a blog?
    I've seen entire sentences being used in the URL because of "safe url" options in the blog.
    Having a few words in the URL is far from spammy, having a 400 character URL... now that's getting spammy.

    all » http://dictionary.reference.com/browse/all

    Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

    Hugo
    Hugo's picture
    Offline
    Moderator
    London
    Last seen: 5 years 47 weeks ago
    London
    Joined: 2004-06-06
    Posts: 15668
    Points: 2806

    'Clean urls' are desirable,

    :? 'Clean urls' are desirable, even if one isn't re-writing them, using descriptive named directories along with index. files is better than nothing, but if one can perform some basic url re-writing all the better.

    Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
    ----------------------------------------------------------------
    Please post ALL your code - both CSS & HTML - in [code] tags
    Please validate and ensure you have included a full Doctype before posting.
    Why validate? Read Me

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    I guess this all depends on

    I guess this all depends on who (or what) will be indexing my pages. If I had a site dealing with mesothelioma, and 75% of the page was google adsense and other advertising I could see where I would incur a penalty. However ideally the page names should match the content of each page, in order to help better find the page with the index should it not?

    So, for dead on match results, my "worst" length award is:

    order-of-service-to-the-motherland-in-the-armed-forces-of-the-ussr.php

    however, that may be a little "wordy". I'm fairly anal about neatness and stuff like that. So I'm thinking someone will most likely use the following keywords in a search for this award:

    order-service-motherland.php

    I'm thinking maybe a two dash maximum for neatness?

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    Guys, I'm trying to use

    Guys, I'm trying to use dreamweaver CS3 to preview my php locally via xampp. Has someone done this that can help me set this up? I've tried but have gotten frustrated and given up. Now I'm handcoding and ftp'ng into a test folder to my remote website providers machine. I'm spending more time uploading files than working Sad

    If anyone could point me to an online tutorial that would be great.

    Hugo
    Hugo's picture
    Offline
    Moderator
    London
    Last seen: 5 years 47 weeks ago
    London
    Joined: 2004-06-06
    Posts: 15668
    Points: 2806

    abates wrote:Guys, I'm

    abates wrote:
    Guys, I'm trying to use dreamweaver CS3 to preview my php locally via xampp. Has someone done this that can help me set this up? I've tried but have gotten frustrated and given up. Now I'm handcoding and ftp'ng into a test folder to my remote website providers machine. I'm spending more time uploading files than working Sad

    If anyone could point me to an online tutorial that would be great.
    :mad: Smile This has already been mentioned; why are you trying to use DW to preview? Don't! what is the problem having your browser running and pointed to your localhost dev server pages? There shouldn't be a problem.

    Use DW simply as code editor, it will not preview the page properly only a browser can do that.

    Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
    ----------------------------------------------------------------
    Please post ALL your code - both CSS & HTML - in [code] tags
    Please validate and ensure you have included a full Doctype before posting.
    Why validate? Read Me

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    The preview works fine with

    The preview works fine with the local xampp setup, but I'm having problems with path names when I upload to the remote server that my website now resides on. My remote tests have been done in a directory called "test" which resides in my root. It seems that I either have to create a new site with the remote webservers pathnames in place (disabling local xampp preview) or create the site with local pathnames, and hand edit them all before uploading to the remote server. My confusion arises in the difference between local pathnames structure and remote pathnames structure.

    abates
    Offline
    Enthusiast
    Buffalo NY
    Last seen: 12 years 44 weeks ago
    Buffalo NY
    Timezone: GMT-4
    Joined: 2007-10-19
    Posts: 79
    Points: 0

    I think I see what I'm doing

    I think I see what I'm doing wrong..my relative pathnames root folder is wrong. Heh hmmmm. I'd better experiment some more.