Submit Your Article Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read


Webmaster Resources Discussion Forum Sitemaps and robots and logfiles -- Oh My! If you have any questions, comments, concerns and/or ideas about the tools currently available to webmasters to make their lives... 'easier'. Here's where you need to be. Know of a good tool? Post it here. Got something funny in your logfiles? Maybe we can help.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2009, 01:02 PM
WebProWorld Member
 
Join Date: Oct 2006
Location: Costa Rica
Posts: 31
Kinembe RepRank 0
Default sidebar help

ok, i want to create a website that i will be adding to over time. i want to be able to make changes(add a link) in my sidebar and have it reflected in all the pages in my site without changing it on every page.

how can this be done?

i'm sure i need to learn some new stuff, but i need it to work like this.
__________________
-Kinembe
Reply With Quote
  #2 (permalink)  
Old 06-14-2009, 01:55 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,897
wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10
Default Re: sidebar help

There are a few different ways to do it, but they all depend on what your server can handle, and how you will be developing your site. For example, if you intend to build a static html site, the best way would be to use Server Site Includes, assuming your site is on an Apache server. You would, however, need to check with your hosting provider to make sure SSI is supported.

Otherwise, if you are going to be using PHP to make a dynamic site, you can use PHP includes to include the contents of another file in the page.
__________________
The best way to learn anything, is to question everything.
WigeDev - Freelance web and software development
Reply With Quote
  #3 (permalink)  
Old 06-14-2009, 04:16 PM
WebProWorld Member
 
Join Date: Oct 2006
Location: Costa Rica
Posts: 31
Kinembe RepRank 0
Default Re: sidebar help

just a static site, but plan on adding pages over time. i use lunarpages hosting and yes it is an apache and supports ssi.

any recommended reading or tutorials? or advice, i have a basic knowledge of html, but not much more.
__________________
-Kinembe
Reply With Quote
  #4 (permalink)  
Old 06-14-2009, 06:53 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,897
wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10
Default Re: sidebar help

This is the comprehensive official starters guide to using SSI on an Apache server: Apache Tutorial: Introduction to Server Side Includes - Apache HTTP Server

Basically, the two things you need to know are what SSI does, which in your case will consist of embedding the contents of an external text file into the document being served to the client, and how to do it.

To create an SSI page, you need to use .shtml as the extension, instead of .html. That tells the server to look for SSI components. You would then create a text file that has the contents you want to embed in your various pages. On the page you want to embed the content into, you would add: <!--#include virtual="/path/to/text/file.html" --> where you want the file contents to be placed. That string will then be replaced with the contents of the file.
And thats pretty much it.
__________________
The best way to learn anything, is to question everything.
WigeDev - Freelance web and software development
Reply With Quote
  #5 (permalink)  
Old 06-14-2009, 06:58 PM
WebProWorld Member
 
Join Date: Oct 2006
Location: Costa Rica
Posts: 31
Kinembe RepRank 0
Default Re: sidebar help

seems simple enough, gonna give it a try, thanks.
__________________
-Kinembe
Reply With Quote
  #6 (permalink)  
Old 07-19-2009, 10:25 AM
ExtremeEzine.com's Avatar
WebProWorld Member
 
Join Date: Oct 2006
Location: Belleville, MI USA
Posts: 29
ExtremeEzine.com RepRank 1
Default Re: sidebar help

I may be over simplifying things but have you considered a WordPress blog format? It's a simply task to make a nice blog theme look like it isn't a blog while keeping the blog features. Sidebar and widget controls are a breeze.
__________________
Brian D. Hawkins
Extreme Ezine
Reply With Quote
  #7 (permalink)  
Old 09-22-2009, 01:35 PM
WebProWorld Member
 
Join Date: Sep 2009
Posts: 31
myfreelance RepRank 2
Default Re: sidebar help

Why don't you a create a page where you can do all the modifications in your site. Usually the page that contains all the functions of your site is function.php or configuration.php then in return you will just call this function to all of your pages so that it will appear in every pages of your site.
__________________
AlgoZone | Ecommerce Wisdom | Anything Online

Last edited by myfreelance; 09-22-2009 at 01:40 PM.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Webmaster Resources Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where did the left sidebar go? bj WebProWorld: Guidelines/Announcements/Suggestions 7 08-07-2007 12:34 AM
Javascript to create non-sidebar bookmark in Firefox? littlegiant Graphics & Design Discussion Forum 0 09-29-2005 04:08 PM
New Watson Sidebar for MSN Search WPW_Feedbot Search Engine Optimization Forum 0 09-23-2005 10:30 AM
Jupiter Analysts on Google's Sidebar/Browser/Windows Co-Opt WPW_Feedbot Search Engine Optimization Forum 0 08-23-2005 02:00 PM
Content and Sidebar Divs bobby9101 Graphics & Design Discussion Forum 6 08-08-2005 07:30 AM


All times are GMT -4. The time now is 05:16 AM.



Search Engine Optimization by vBSEO 3.3.0