Web template

This is a discussion on "Web template" within the Web Page Design section. This forum, and the thread "Web template are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 5th, 2007, 21:43
Junior Member
Join Date: Aug 2007
Location: uk
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Web template

Hi

I would be greatful if someone could offer advice regarding redesigning my website. I am trying to create a template to display a vertical and horizontal menu that is consistent throughout the site, would asp be best for this?

Also I have uploaded my 10,000 products I intend to sell on the site to mySQL on my host. How would I access each page displaying the categories field of the database and how would that fit into the template.

Would it be possible to change the page by using variables in PHP of a link or search from in the search box.

Sorry I know its a lot of questions but I am pushed to find answers to these questions. If I have got it completely wrong please let me know.
Reply With Quote

  #2 (permalink)  
Old Sep 5th, 2007, 21:55
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Web template

use php includes for the menu throughout the site.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #3 (permalink)  
Old Sep 5th, 2007, 22:15
Junior Member
Join Date: Aug 2007
Location: uk
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

great thanks for your comments. should i stay away from frames or are they still regarded as ok.
Reply With Quote
  #4 (permalink)  
Old Sep 5th, 2007, 22:20
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Web template

they are regarding as anything but okay!
we hate them
wait there,
i'll copy and paste the the reasons again
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #5 (permalink)  
Old Sep 5th, 2007, 22:21
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Web template

here we go
Quote:
1. Indexing programs (search engines such as AltaVista, Harvest, and
InfoSeek) do not automatically index the content of frames.

2. Bookmarks don't work as expected; you can bookmark the top-level
(frameset) page, but not necessarily what's displayed on your screen.

3. What you see on screen and what gets printed are usually not the
same.

4. Frames are harder to code, with syntax that includes frameset tags
and target windows. Pages with frames are also harder to maintain. For
instance, the number of files to track for each page with frames is the
number of windows plus the frameset page (usually 3-4 pages).

5. wher the hell is 5?

6. A few browsers can't deal with frames (e.g., some AOL versions,
lynx).

7. Netscape 2.x doesn't supply "back" navigation with frames.

8. When frames are nested within frames, text can become unreadable.

9. Frames can be coded to open a new, external window. Most systems take
quite a while to open a new window, and some viewers find this "feature"
annoying.

10. If you want to check the source code of a frame, you have to open at
least two documents.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #6 (permalink)  
Old Sep 5th, 2007, 22:35
Junior Member
Join Date: Aug 2007
Location: uk
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

Gotcha...frames are bad...loud and clear! thanks alex
Reply With Quote
  #7 (permalink)  
Old Sep 5th, 2007, 22:40
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Web template

your welcome good luck with the site.
any other questions?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #8 (permalink)  
Old Sep 6th, 2007, 00:08
Junior Member
Join Date: Aug 2007
Location: uk
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

Sorry. One more thing how do you enter speech marks into php for example it wont accept:

echo "<img src="image.gif" >";

or should it be:

echo "<img src='image.gif'>";

thanks
Reply With Quote
  #9 (permalink)  
Old Sep 6th, 2007, 00:18
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

I think you have to escape them so something like this:

Code: Select all
echo "<img src=\"image.gif\" >";
It basically tells the PHP machine thingy to ignore the quotation marks as it doesn't really understand nested quotation marks.

Pete.
Reply With Quote
  #10 (permalink)  
Old Sep 6th, 2007, 01:25
Junior Member
Join Date: Aug 2007
Location: uk
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

I'll give that a go thanks
Reply With Quote
  #11 (permalink)  
Old Sep 6th, 2007, 08:29
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

A pedantic point but when you're echoing html with PHP it is better (faster) to use single quotes unless you plan to embed variables in them.

With single quotes php will simply output the text but with double quotes it checks the whole string to see if anything needs interpreting before outputting.

As pa007 says you do have to escape single quotes with \'

Cheers.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #12 (permalink)  
Old Sep 6th, 2007, 12:41
Junior Member
Join Date: Aug 2007
Location: uk
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

thanks for that rakuli. I started coding my new site last night and was amazed that creating templates for menus and headers in php is so easy. cant believe I didnt do it last time.
Reply With Quote
  #13 (permalink)  
Old Sep 6th, 2007, 16:05
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Web template

totally agree with you.
i love php and how easy it is.
i got so cocky, i tried a new language like java.
and was pretty disappointed when i couldn't even do the hello world tut
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #14 (permalink)  
Old Sep 6th, 2007, 17:58
Junior Member
Join Date: Aug 2007
Location: uk
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

Quote:
Originally Posted by Rakuli View Post
A pedantic point but when you're echoing html with PHP it is better (faster) to use single quotes unless you plan to embed variables in them.

With single quotes php will simply output the text but with double quotes it checks the whole string to see if anything needs interpreting before outputting.

As pa007 says you do have to escape single quotes with \'

Cheers.
I had some trouble escaping the single qoutes when I echoed html the backslash appeared in the html along with the single quotation. I removed the backslash and it was ok after that. I read a bit about it here: http://www.tizag.com/phpT/echo.php

Will it cause problems across other browsers without escaping. i am currently using firefox.

Chris
Reply With Quote
  #15 (permalink)  
Old Sep 6th, 2007, 18:06
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

If you're surrounding everything with single quotes the only thing you need to worry about escaping is single quotes.

echo 'I\'m going to have to escape that apostrope';

When you're using double quotes there are a few more special characters to take into account but you normally only have to escape double quote's

echo "Rakuli said \"Using single quotes in double quotes isn't a problem\"";

You won't experience any browser problems because you won't get that far PHP will throw a parsing error if you get the quotes wrong. What I was saying earlier is you should use

echo 'this format';

rather than

echo "this format";

when echoing a lot of HTML simply because php does it a little quicker

You may not be aware that you can also "break out" of PHP completely when you don't need to use any code.

<?php
echo '<b>Hello', $username, '</b>';
?>
<p>From here on in I don't need to worry about quotes at all.

Hope that helps.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #16 (permalink)  
Old Sep 6th, 2007, 18:16
Junior Member
Join Date: Aug 2007
Location: uk
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

Something to mull over thanks for the advice.
Reply With Quote
  #17 (permalink)  
Old Sep 6th, 2007, 21:05
Junior Member
Join Date: Aug 2007
Location: uk
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Web template

Me again...When you send a variable to a php file how long will that variable last for is it when the user navigates away from the page or is it when the browser is closed or different.

Thanks
Reply With Quote
  #18 (permalink)  
Old Sep 6th, 2007, 21:09
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Web template

it will only last as long as that particular script
to pass variable about there are various methods.
i'm assuming this is a sort of login system or something else
so best to use $_SESSION
a bit of googling will get you there.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
Reply

Tags
asp, mysql, php, template

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
Template I have bought from template-design.info suggestion Flash & Multimedia Forum 6 Sep 30th, 2007 18:25
Need some CC on my template Raz E Graphics and 3D 6 Aug 1st, 2007 02:18
New Template ICEMINISTRIES Free Web Site Critique 4 May 20th, 2007 19:11
Need help with template please..! Maxis Web Page Design 2 Nov 15th, 2005 23:41
I need a template Browning PHP Forum 1 Oct 15th, 2005 22:51


All times are GMT. The time now is 23:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43