Re: [PHP] Best practice to re-write a tutorial website

2004-07-23 Thread EE
On Fri, 2004-07-23 at 00:06, Justin Patrin wrote:
 On Thu, 22 Jul 2004 23:48:54 +0300, EE [EMAIL PROTECTED] wrote:
  Dears,
  
  I am planing to rewrite my website. My site is tutorial-type site I
  wrote it, when I first learned php3, as an undergraduate research class.
  I think the code is sloppy as it is mixed with the HTML. I would like to
  rewrite the site utilizing the good things such OOP classes, template,
  etc. I would also like to separate my styles (CSS) from the HTML.

Do you recommend any any tutorial?
  
  I would like to have the following functions:
  
  1. Printer Friendly Version Capability
 
 You can use CSS and @media print to have *different* CSS for printing,
 right from the same site. You could also just have a different
 stylesheet that you include when the user wants to print. Or you could
 have multiple templates. Whatever floats your boat.
 
  2. Search-ability
 
 A CMS could possibly handle this, but may be a bit big for this. If
 you want search capabilities, I'd look into a local solution that
 indexes your site manually. I've had good luck with mnogosearch.
 
How about using MySQL fulltext?

  3. Search Engine Friendly
  
 
 https://www.reversefold.com/tikiwiki/tiki-index.php?page=PHPFAQs#id926344
 

I read the aritcle and it is good.

  Therefore, I have the following questions:
  
  1. What is the best way to store the tutorials. Should they be in a
  database or each in a separate HTML file.
 
 I'd go for database. But if you do that, you may want to look into
 some existing CMS software.

Do you recommend any? I'll appreciate if you point me to the right
track.

 
  
  2. How to implement the above three points?
  
  I know it is a broad question but you can help me on whatever you know?
  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best practice to re-write a tutorial website

2004-07-23 Thread EE
On Fri, 2004-07-23 at 04:57, Justin French wrote:
 On 23/07/2004, at 6:48 AM, EE wrote:
 
  1. Printer Friendly Version Capability
 
 This can be achieved with media specific style sheets stylesheets -- no 
 need for separate templates.
 
Do you recommend any tutorial?

 
  2. Search-ability
 
 For the most part, this can be achieved with MySQL's fulltext search 
 capabilities.  You just need to wrap it all in a search GUI and results 
 page.
 
 
  3. Search Engine Friendly
 
 This relates back to #1.  If you restrict your use of HTML to only 
 semantic page elements (DIVs, H1-6s, Ps, etc), rather that filling it 
 with presentational mark-up (FONT, TABLE, etc) your pages will be 
 lighter, which will allow better indexing by search engines.  This is a 
 really quick overview of course, but standards-based web pages with all 
 presentational stuff moved to a CSS file will help SE's index your 
 content accurately, and it will be a pleasure to maintain.
 
How can I restrict my html to semantic elements? My tutorial has tables.
I don't mean styling table. I mean engineering data tables?

www.eeetc.bjaili.com/tutorial.php?num=7act=dig

how can I move presentational stuff to css file?

 This seems to be a common stylesheet set-up:
 link rel='stylesheet' media='all' href='css/basic.css' /
 link rel='stylesheet' media='print' href='css/print.css' /
 style type='text/css' media='screen'@import 
 url(css/advanced.css)/style
 
 But we're getting WAY off topic here.
 
 
  1. What is the best way to store the tutorials. Should they be in a
  database or each in a separate HTML file.
 
 Either is fine, but searching will be easier in a database -- 
 especially with MySQL's fulltext search built in.
 
 
 Search Google for specific help on any of the above, and you'll be set 
 :)
 
 
 ---
 Justin French
 http://indent.com.au
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best practice to re-write a tutorial website

2004-07-23 Thread Justin Patrin
On Fri, 23 Jul 2004 17:51:52 +0300, EE [EMAIL PROTECTED] wrote:
 On Fri, 2004-07-23 at 00:06, Justin Patrin wrote:
  On Thu, 22 Jul 2004 23:48:54 +0300, EE [EMAIL PROTECTED] wrote:
   Dears,
  
   I am planing to rewrite my website. My site is tutorial-type site I
   wrote it, when I first learned php3, as an undergraduate research class.
   I think the code is sloppy as it is mixed with the HTML. I would like to
   rewrite the site utilizing the good things such OOP classes, template,
   etc. I would also like to separate my styles (CSS) from the HTML.
 
 Do you recommend any any tutorial?
  
   I would like to have the following functions:
  
   1. Printer Friendly Version Capability
 
  You can use CSS and @media print to have *different* CSS for printing,
  right from the same site. You could also just have a different
  stylesheet that you include when the user wants to print. Or you could
  have multiple templates. Whatever floats your boat.
 
   2. Search-ability
 
  A CMS could possibly handle this, but may be a bit big for this. If
  you want search capabilities, I'd look into a local solution that
  indexes your site manually. I've had good luck with mnogosearch.
  
 How about using MySQL fulltext?
 
   3. Search Engine Friendly
  
 
  https://www.reversefold.com/tikiwiki/tiki-index.php?page=PHPFAQs#id926344
 
 
 I read the aritcle and it is good.
 
   Therefore, I have the following questions:
  
   1. What is the best way to store the tutorials. Should they be in a
   database or each in a separate HTML file.
 
  I'd go for database. But if you do that, you may want to look into
  some existing CMS software.
 
 Do you recommend any? I'll appreciate if you point me to the right
 track.
 

Wellthere's tikiwiki, which I'm using on my personal site right
now. It's real quick to get up and use. Then there's TYPO3, which I'm
using for work. It's very large and complex, but a very nice system.

 
  
   2. How to implement the above three points?
  
   I know it is a broad question but you can help me on whatever you know?
  
 

-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Best practice to re-write a tutorial website

2004-07-22 Thread EE
Dears,

I am planing to rewrite my website. My site is tutorial-type site I
wrote it, when I first learned php3, as an undergraduate research class.
I think the code is sloppy as it is mixed with the HTML. I would like to
rewrite the site utilizing the good things such OOP classes, template,
etc. I would also like to separate my styles (CSS) from the HTML.

I would like to have the following functions:

1. Printer Friendly Version Capability
2. Search-ability
3. Search Engine Friendly

Therefore, I have the following questions:

1. What is the best way to store the tutorials. Should they be in a
database or each in a separate HTML file.

2. How to implement the above three points?

I know it is a broad question but you can help me on whatever you know?

Thank you in advance.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best practice to re-write a tutorial website

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 23:48:54 +0300, EE [EMAIL PROTECTED] wrote:
 Dears,
 
 I am planing to rewrite my website. My site is tutorial-type site I
 wrote it, when I first learned php3, as an undergraduate research class.
 I think the code is sloppy as it is mixed with the HTML. I would like to
 rewrite the site utilizing the good things such OOP classes, template,
 etc. I would also like to separate my styles (CSS) from the HTML.
 
 I would like to have the following functions:
 
 1. Printer Friendly Version Capability

You can use CSS and @media print to have *different* CSS for printing,
right from the same site. You could also just have a different
stylesheet that you include when the user wants to print. Or you could
have multiple templates. Whatever floats your boat.

 2. Search-ability

A CMS could possibly handle this, but may be a bit big for this. If
you want search capabilities, I'd look into a local solution that
indexes your site manually. I've had good luck with mnogosearch.

 3. Search Engine Friendly
 

https://www.reversefold.com/tikiwiki/tiki-index.php?page=PHPFAQs#id926344

 Therefore, I have the following questions:
 
 1. What is the best way to store the tutorials. Should they be in a
 database or each in a separate HTML file.

I'd go for database. But if you do that, you may want to look into
some existing CMS software.

 
 2. How to implement the above three points?
 
 I know it is a broad question but you can help me on whatever you know?
 

-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best practice to re-write a tutorial website

2004-07-22 Thread Justin French
On 23/07/2004, at 6:48 AM, EE wrote:
1. Printer Friendly Version Capability
This can be achieved with media specific style sheets stylesheets -- no 
need for separate templates.


2. Search-ability
For the most part, this can be achieved with MySQL's fulltext search 
capabilities.  You just need to wrap it all in a search GUI and results 
page.


3. Search Engine Friendly
This relates back to #1.  If you restrict your use of HTML to only 
semantic page elements (DIVs, H1-6s, Ps, etc), rather that filling it 
with presentational mark-up (FONT, TABLE, etc) your pages will be 
lighter, which will allow better indexing by search engines.  This is a 
really quick overview of course, but standards-based web pages with all 
presentational stuff moved to a CSS file will help SE's index your 
content accurately, and it will be a pleasure to maintain.

This seems to be a common stylesheet set-up:
link rel='stylesheet' media='all' href='css/basic.css' /
link rel='stylesheet' media='print' href='css/print.css' /
style type='text/css' media='screen'@import 
url(css/advanced.css)/style

But we're getting WAY off topic here.

1. What is the best way to store the tutorials. Should they be in a
database or each in a separate HTML file.
Either is fine, but searching will be easier in a database -- 
especially with MySQL's fulltext search built in.

Search Google for specific help on any of the above, and you'll be set 
:)

---
Justin French
http://indent.com.au
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php