HTML talk

For all things related to Pirate-Community and its websites.
Forum rules
Please keep the forum rules and guidelines in mind when creating or replying to a topic.
neo
General
Posts: 8780
Joined: Sun May 29, 2005 12:27 am
Tings: 80255

Re: HTML talk

Post by neo »

I use IE ffs lol. :lol: :P :x :evil: :cry:
Hunchman801
Bad Rayman
Posts: 87699
Joined: Thu Aug 07, 2003 6:50 pm
Location: Paris, France
Contact:
Tings: 640607

Re: HTML talk

Post by Hunchman801 »

According to statistics, 45.6% of PC members used IE this month, while 36.6% used Firefox.
neo
General
Posts: 8780
Joined: Sun May 29, 2005 12:27 am
Tings: 80255

Re: HTML talk

Post by neo »

Really? Well, I have both. ^^
Hunchman801
Bad Rayman
Posts: 87699
Joined: Thu Aug 07, 2003 6:50 pm
Location: Paris, France
Contact:
Tings: 640607

Re: HTML talk

Post by Hunchman801 »

That's 53% for IE, 32.5% for Firefox and 9.9% for Opera.
neo
General
Posts: 8780
Joined: Sun May 29, 2005 12:27 am
Tings: 80255

Re: HTML talk

Post by neo »

I used Firefox here a couple of times. ^^
Hunchman801
Bad Rayman
Posts: 87699
Joined: Thu Aug 07, 2003 6:50 pm
Location: Paris, France
Contact:
Tings: 640607

Re: HTML talk

Post by Hunchman801 »

I wonder who uses Opera. That's quite a nice browser :D
Reese Riverson
Razorbeard
Posts: 40247
Joined: Wed Sep 03, 2003 5:32 pm
Location: R̸̨̧̛̝͎͔̹͉̫̞͚͎͈̫̲̘͕̞͔̼̣͍̞̤̹̫̘̼͚̤̮̟͍̺̯͍̜̹͓̤͖͎͌̀̿͗̍͌̈́̿̿͑̄̀͌̒̅͛̄̾̈͠ͅayman Pirate-Community Lodge
Contact:
Tings: 533882

Re: HTML talk

Post by Reese Riverson »

A useful code to add with your HTML site (with the .php) at the end is:

Code: Select all

<?PHP include "text.txt"; ?>
This very simple PHP code is very useful for when adding a navigation system onto your site.

For example.

On the RayGallery site, the language navigation (where you can switch to the English, French, or even the Dutch version's of the site) with this code in place:

Code: Select all

<?PHP include "lang.txt"; ?>
Which will take the code right from the text file, called "lang". The included file does NOT have to be a php, HTML, css or et cetera. In this case, I chose to use the text file, simple.

what is contained in the text file is:

Code: Select all

English(EN)  |  Fran&ccedil;ais(FR)  |  Nederlandse(DU)
and that is it. Right now they are NOT setup as links. Because I'll get to that a bit later.

As you can see, no "HTML" or "BODY" takes in the text file. The reason is simple, you do not need them. If you add them, they'll be in the index file twice. Seeing the index already has the html and body tags, the text file will not need them. it goes for all files which are included into the index page.

This simple php code is actually a time saver. Think about it...

You wouldn't have to edit the navigation in every single page! If your site has 50+ pages, each with a navigation added in it, and you wanted to add something to the navigation, and if you do not have this simple PHP code in it, you will be editing 50+ pages which takes a while. Now if you used this code, and it is in each page, your navigation code will be only in one file. If you edit the file to add something, it is edited in EVERY page. See how much time it'd save? :D
Hunchman801
Bad Rayman
Posts: 87699
Joined: Thu Aug 07, 2003 6:50 pm
Location: Paris, France
Contact:
Tings: 640607

Re: HTML talk

Post by Hunchman801 »

This is the reason why the include function is used in every script here ;) ^^ What's great with it is that you just have to edit one file in order to modify the whole website :)
Reese Riverson
Razorbeard
Posts: 40247
Joined: Wed Sep 03, 2003 5:32 pm
Location: R̸̨̧̛̝͎͔̹͉̫̞͚͎͈̫̲̘͕̞͔̼̣͍̞̤̹̫̘̼͚̤̮̟͍̺̯͍̜̹͓̤͖͎͌̀̿͗̍͌̈́̿̿͑̄̀͌̒̅͛̄̾̈͠ͅayman Pirate-Community Lodge
Contact:
Tings: 533882

Re: HTML talk

Post by Reese Riverson »

^^

As for PHP codes in forums, I still don't understand them. ^^;
neo
General
Posts: 8780
Joined: Sun May 29, 2005 12:27 am
Tings: 80255

Re: HTML talk

Post by neo »

I want to learn all this code and make my own forum lol.
Hunchman801
Bad Rayman
Posts: 87699
Joined: Thu Aug 07, 2003 6:50 pm
Location: Paris, France
Contact:
Tings: 640607

Re: HTML talk

Post by Hunchman801 »

It took me weeks to understand them ;)
Reese Riverson
Razorbeard
Posts: 40247
Joined: Wed Sep 03, 2003 5:32 pm
Location: R̸̨̧̛̝͎͔̹͉̫̞͚͎͈̫̲̘͕̞͔̼̣͍̞̤̹̫̘̼͚̤̮̟͍̺̯͍̜̹͓̤͖͎͌̀̿͗̍͌̈́̿̿͑̄̀͌̒̅͛̄̾̈͠ͅayman Pirate-Community Lodge
Contact:
Tings: 533882

Re: HTML talk

Post by Reese Riverson »

It'll take quite some time to make your own forum, Neo. It is not easy. It requires full knowlege of HTML, XHTML, CSS, PHP, MYSQL, and et cetera.
neo
General
Posts: 8780
Joined: Sun May 29, 2005 12:27 am
Tings: 80255

Re: HTML talk

Post by neo »

Oh... I will have to take the time to understand it all, I will have time after this year. ^^
Hunchman801
Bad Rayman
Posts: 87699
Joined: Thu Aug 07, 2003 6:50 pm
Location: Paris, France
Contact:
Tings: 640607

Re: HTML talk

Post by Hunchman801 »

I learnt this all years ago ^^
Post Reply