help with banner updating

This is a discussion on "help with banner updating" within the Starting Out section. This forum, and the thread "help with banner updating are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 3rd, 2007, 21:47
Junior Member
Join Date: Sep 2007
Location: usa
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
help with banner updating

I have a website that has a lot of sub pages. I have some banners (images hosted and linked to external places) on it right now but they are coded into each of my pages. I want to find a way to put some code into each page so that looks at a file on my domain which gives it the location of the external image link and the hyperlink. In the future I do not want to have to go to every single page and update the banners and links.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 3rd, 2007, 21:48
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: help with banner updating

PHP includes?
if you don't know what that is,
take a look on w3schools.com
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 4th, 2007, 00:39
Junior Member
Join Date: Sep 2007
Location: usa
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with banner updating

ok. I seem to be having a little trouble with dreamweaver. I first created a main page (home.php) then created a page with a banner (titlebanner.php). Dreamweaver is not letting me adjust the size of the titlebanner.php page to be the exact same size as the image or any other size for that matter, the options are all grayed out (i figure thats how i am suppose to do it). I then say screw it and try to add the titlebanner.php into the home.php using the code

<body>
<?php include(titlebanner.php); ?>
</body>
</html>

all it gives me is a little box with php in it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 4th, 2007, 00:55
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: help with banner updating

okay first of all
<?php include(titlebanner.php); ?>
i usually have it with apostrophes
<?php include('titlebanner.php'); ?>

and secondly, do you have a host? your not going to be able to see the result in dreamweaver. you need someone to host your website so that the .php extension can be handled
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 4th, 2007, 01:24
Junior Member
Join Date: Sep 2007
Location: usa
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with banner updating

oops had deleted the line and forgot to put those back. yeah the problem was i needed to upload it to the host. thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 4th, 2007, 01:29
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: help with banner updating

y'welcome,
glad you got it working
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 4th, 2007, 01:44
Most Reputable Member
Join Date: Dec 2006
Location: San Francisco
Age: 57
Posts: 1,567
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with banner updating

Quote:
your not going to be able to see the result in dreamweaver. you need someone to host your website so that the .php extension can be handled
Actually you can view locally. It is as simple as setting up a server on your local computer. I personally use Xampp. It is phpadmin, mysql and an Apache server. integrated and working flawlessly together. I use it to locally test my site. Saves having to upload/download and fix.
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 4th, 2007, 01:48
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: help with banner updating

Quote:
Originally Posted by sannbe View Post
Actually you can view locally. It is as simple as setting up a server on your local computer. I personally use Xampp. It is phpadmin, mysql and an Apache server. integrated and working flawlessly together. I use it to locally test my site. Saves having to upload/download and fix.
yeah and in dreamweaver cs3,
you can see included file
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 4th, 2007, 07:14
Junior Member
Join Date: Sep 2007
Location: usa
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with banner updating

is there a way to use the include function in the header? All i have seen is in the body of a page. Just thought of it as im heading to sleep.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Sep 4th, 2007, 10:38
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: help with banner updating

i don't really know what you mean
could explain?
thanks
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Sep 4th, 2007, 15:30
Junior Member
Join Date: Sep 2007
Location: usa
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with banner updating

I have only seen
<body>
<?php include('name.php'); ?>
</body>

i would like to add the include to the head

<head>
<?php include('name.php'); ?>
</head>

does this work or is there another way i can do this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Sep 4th, 2007, 15:31
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with banner updating

You can do that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Sep 4th, 2007, 21:05
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: help with banner updating

Quote:
Originally Posted by ziplock122949 View Post
I have only seen
<body>
<?php include('name.php'); ?>
</body>

i would like to add the include to the head

<head>
<?php include('name.php'); ?>
</head>

does this work or is there another way i can do this?
Yeah to do stuff like meta tags and stylsheets,
putting content in there such as <p> and <div> would mess up your code
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Sep 5th, 2007, 02:40
Junior Member
Join Date: Sep 2007
Location: usa
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with banner updating

the code i am trying to use on some pages and not others is from the following site. Its possible for me to leave the head code in the template page I am creating but all the unnecessary code will just increase my bandwidth usage when it is not needed.
http://www.dynamicdrive.com/dynamici...pmenuindex.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Sep 5th, 2007, 07:48
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: help with banner updating

in the code your could put something like this:
PHP: Select all

<?php 
$page 
basename($_SERVER['SCRIPT_NAME']);
if (
$page == "nameofapageyoudontwantiton.php|| $page == "anotherpageyoudont.php") {
} else {
echo 
"jabascript here";
}

you can add as many pages to that ass you like. || means or. likewise && is and.
and there's an opposite way of this
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
code help

Thread Tools

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
Updating a record Wheatus7 Classic ASP 0 Jun 3rd, 2007 06:56
Updating Links mrbernz Web Page Design 7 Dec 2nd, 2006 22:36
updating database franknu PHP Forum 4 Oct 8th, 2006 20:32


All times are GMT. The time now is 10:02.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42