It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Question about a Sidebar

Question about a Sidebar

Postby JM-13 on Sun Aug 03, 2008 3:43 am

I have a website with a sidebar that containz links to all tha pagez with videoz you can download. Tha thing iz, that I everytime I put up a new video, I have to go and change each page of my site so that tha link to tha new page iz on tha sidebar. I don't know much about HTML, but I'm tryna figure out a way to make it so I can have maybe somethin like a file called 'sidebar.html', and place that in my pagez somehow, and then I will only have to update tha sidebar file.

Please excuse my ignorance of HTML -- maybe my idea doezn't make sense.
JM-13
 
Posts: 3
Joined: Sun Aug 03, 2008 3:25 am

Postby chubzyko on Sun Aug 03, 2008 12:42 pm

haiya! HOw about using a frameset? hahah! But they told me that using frameset is not SE friendly. Well, i've been searching on how to fix my problem with my site for about 3days I think. haha!
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby JM-13 on Mon Aug 04, 2008 2:50 am

Thank you. I will see if I can do that. And sorry, but what's SE?
JM-13
 
Posts: 3
Joined: Sun Aug 03, 2008 3:25 am

Postby Johnathan on Mon Aug 04, 2008 3:26 am

SE is search engine. If your server supports PHP you can use PHP includes. So you will need to change the file extensions of all the pages you want the sidebar on to .php instead of .htm or .html or whatever it is. Now make a file sidebar.php and put your sidebar inside it. Then on all the other pages where you want the sidebar to go put <?php include("sidebar.php"); ?> then all you need to do is edit sidebar.php
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Postby JM-13 on Mon Aug 04, 2008 7:36 am

Thank you both very much.
Johnathan -- I took your advice, and it works fine. And I made a PHP include for my menu too. Thank you.
JM-13
 
Posts: 3
Joined: Sun Aug 03, 2008 3:25 am

Postby Johnathan on Mon Aug 04, 2008 11:39 am

Glad I could help :D.
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Postby chubzyko on Mon Aug 04, 2008 4:24 pm

Thanks for that Jonathan! I know what to do now. harhar!
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines


Who is online

Users browsing this forum: No registered users and 8 guests