I am currently working on a site for my work.. This will be the largest site I have built interms on number of pages that will be included... What I want to know is if any of you know of a tutorial or something that will help me so I can make it so that If i need to make chances to either my side bar or my top bar... that it can change on ever page... so that I don t have to go through them all each one by one and make the change... Does anyone have any thoughts? So basically what you see i want to me able to open and change in one file and it will change over all my pages... Then whats in the white area will be my content for each page
If you are well brushed up on your languages then you can use php includes to do this. 1. Save your header as a separate php file and assign it to a variable. 2. Repeat this for your sub menu. 3. Include these files in every page for your site and call the variable that your header is stored in and variable your menu is stored in. 4. Display the contents of your page by echoing these variables. If you know php this is easily done, if not, i suggest you read up on how includes can be used. Very powerful and efficient Even though im new here, hope this helps.
Try w3schools.com It has a section explaining the php include statement there as well as many others. There you should be able to see how its used and combining that with how to create simple php files (and including html within php expressions) it should be a walk in the park for you If you have any other questions about it feel free to pm me.
I agree with Oxi, definitely using php includes is the way forward. killerphp.com is quite a good place to get some decent tutorials on php.
You can also simply save your header and footer in PHP files and then use <?php include(your_header_or_footer_file); ?>
Here another question for you fine gentlemen Everytime i build a site with any sort of flash... I get that bar at the top when I open it in explorer... Is there a way for me to build it so I dont get that message?? I know there are site all over the place that use falsh and dont have that problem.... I get the same message when I build my interative buttons as well.... Thanks again guys...
You get this message only when the files are on your pc (localhost) due to flash security. When you will put the website live you will not see this message.
It's ok to use flash buttons.Google can get links from flash if the flash is optimized for that.But the easiest way is to have the buttons in flash and into the footer to add a html version of website menu.
I'm not a flash expert... and i didn't know u can optimize flash for that. Nice to know if i ever run into that ... hope it never happens. It's ok to put the links into the footer ... but doesn't google give more importance to them if they are placed before or near the content?
The idea is just to let google know there are more pages to be indexed. You can also make a non-flash (html) version of websie.Is very easy to do that with swfobject.Also that will help users whitch don't have flash player to know that to see the website correctly you must install flash player.
I agree. The non-flash version of the site is a good solution and it's not blackhat if you respect the html version.