Newgrounds Site layout?
- Dark-Scythes
-
Dark-Scythes
- Member since: Jun. 15, 2006
- Offline.
-
- Forum Stats
- Member
- Level 03
- Blank Slate
How dose newgrounds make it so every page has the newgrounds header and that they can change it instantly and it affects all pages?
- elbekko
-
elbekko
- Member since: Jul. 23, 2004
- Offline.
-
- Forum Stats
- Member
- Level 16
- Blank Slate
They use PHP to include a header and a footer ;)
"My software never has bugs. It just develops random features. " - Unknown
[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]
- Dark-Scythes
-
Dark-Scythes
- Member since: Jun. 15, 2006
- Offline.
-
- Forum Stats
- Member
- Level 03
- Blank Slate
At 8/16/06 07:12 PM, elbekko wrote: They use PHP to include a header and a footer ;)
Oh, any other way to do that without serverside scripting?
- Momo-the-Monkey
-
Momo-the-Monkey
- Member since: Oct. 15, 2005
- Offline.
-
- Forum Stats
- Member
- Level 45
- Musician
At 8/16/06 07:23 PM, Dark_Scythes wrote:At 8/16/06 07:12 PM, elbekko wrote: They use PHP to include a header and a footer ;)Oh, any other way to do that without serverside scripting?
html: <!-- #include file(../blah.php) --> or something like that.....
- Momo-the-Monkey
-
Momo-the-Monkey
- Member since: Oct. 15, 2005
- Offline.
-
- Forum Stats
- Member
- Level 45
- Musician
At 8/16/06 07:34 PM, Momo_the_Monkey wrote:At 8/16/06 07:23 PM, Dark_Scythes wrote:html: <!-- #include file(../blah.php) --> or something like that.....At 8/16/06 07:12 PM, elbekko wrote: They use PHP to include a header and a footer ;)Oh, any other way to do that without serverside scripting?
actually, it's
<!--#include file="FILE YOU WANT INCLUDED.php" -->
but you have to have the file in the same directory (folder) as the one your are including it in, if you don't, use this
<!--#include virtual="/FOLDER NAME/FILE.html" -->
Make sure to add your own stuff on the italic stuff.
- Dark-Scythes
-
Dark-Scythes
- Member since: Jun. 15, 2006
- Offline.
-
- Forum Stats
- Member
- Level 03
- Blank Slate
At 8/16/06 07:40 PM, Momo_the_Monkey wrote:At 8/16/06 07:34 PM, Momo_the_Monkey wrote:actually, it'sAt 8/16/06 07:23 PM, Dark_Scythes wrote:html: <!-- #include file(../blah.php) --> or something like that.....At 8/16/06 07:12 PM, elbekko wrote: They use PHP to include a header and a footer ;)Oh, any other way to do that without serverside scripting?
<!--#include file="FILE YOU WANT INCLUDED.php" -->
but you have to have the file in the same directory (folder) as the one your are including it in, if you don't, use this
<!--#include virtual="/FOLDER NAME/FILE.html" -->
Make sure to add your own stuff on the italic stuff.
Thanks so much! I've been looking for how to do this for so long. I thought I would have to learn another whole scripting language or somthing. I had no idea it was so simple.
- Momo-the-Monkey
-
Momo-the-Monkey
- Member since: Oct. 15, 2005
- Offline.
-
- Forum Stats
- Member
- Level 45
- Musician
At 8/16/06 07:44 PM, Dark_Scythes wrote:At 8/16/06 07:40 PM, Momo_the_Monkey wrote:Thanks so much! I've been looking for how to do this for so long. I thought I would have to learn another whole scripting language or somthing. I had no idea it was so simple.At 8/16/06 07:34 PM, Momo_the_Monkey wrote:actually, it'sAt 8/16/06 07:23 PM, Dark_Scythes wrote:html: <!-- #include file(../blah.php) --> or something like that.....At 8/16/06 07:12 PM, elbekko wrote: They use PHP to include a header and a footer ;)Oh, any other way to do that without serverside scripting?
<!--#include file="FILE YOU WANT INCLUDED.php" -->
but you have to have the file in the same directory (folder) as the one your are including it in, if you don't, use this
<!--#include virtual="/FOLDER NAME/FILE.html" -->
Make sure to add your own stuff on the italic stuff.
um, yup. It's just simple html. By the way....This google search helps with any more including in HTML questions.... :)
- Dark-Scythes
-
Dark-Scythes
- Member since: Jun. 15, 2006
- Offline.
-
- Forum Stats
- Member
- Level 03
- Blank Slate
hmm.. the html ways didnt seem to work no matter what I did with them. I found that I could get the same thing from javascript though from your search. I'll just stick with that.
- Momo-the-Monkey
-
Momo-the-Monkey
- Member since: Oct. 15, 2005
- Offline.
-
- Forum Stats
- Member
- Level 45
- Musician
At 8/16/06 08:29 PM, Dark_Scythes wrote: hmm.. the html ways didnt seem to work no matter what I did with them. I found that I could get the same thing from javascript though from your search. I'll just stick with that.
hmm....they should work. The first one if the file is in the same directory, the second one if it's not.....
Are you sure you copy and pasted it right? and added the right file with the right included? It worked for me..
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
At 8/16/06 08:44 PM, Momo_the_Monkey wrote: It should work blah blah
Ugh, moron.
In order to use this, it must be a SHTML file. Instead of using .htm or .html, make the extension .shtml
For your knowledge:
http://en.wikipedia.org/wiki/Shtml
- cherries
-
cherries
- Member since: Jun. 7, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
At 8/16/06 09:06 PM, -cherries- wrote: SHTML is sooo ugly.
like your mom?
<3
- DFox
-
DFox
- Member since: Aug. 9, 2003
- Offline.
-
- Forum Stats
- Member
- Level 30
- Blank Slate
At 8/16/06 09:34 PM, JeremysFilms wrote:At 8/16/06 09:06 PM, -cherries- wrote: SHTML is sooo ugly.like your mom?
<3
your mom jokes > everything
- WoogieNoogie
-
WoogieNoogie
- Member since: Jun. 26, 2005
- Offline.
-
- Forum Stats
- Member
- Level 15
- Programmer
At 8/16/06 09:37 PM, DFox2 wrote: your mom jokes > everything
Your mom > everything.
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
At 8/16/06 10:00 PM, WoogieNoogie wrote:At 8/16/06 09:37 PM, DFox2 wrote: your mom jokes > everythingYour mom > everything.
damn.. that's hard to top
- DFox
-
DFox
- Member since: Aug. 9, 2003
- Offline.
-
- Forum Stats
- Member
- Level 30
- Blank Slate
At 8/16/06 10:00 PM, WoogieNoogie wrote: Your mom > everything.
lol. That was pure gold.
- Pilot-Doofy
-
Pilot-Doofy
- Member since: Sep. 13, 2003
- Offline.
-
- Send Private Message
- Browse All Posts (12,142)
- Block
-
- Forum Stats
- Member
- Level 37
- Musician
If you want to buy Dreamweaver, they have a BEAUTIFUL templating system that only requires HTML. It's simply adored by me.
- Dark-Scythes
-
Dark-Scythes
- Member since: Jun. 15, 2006
- Offline.
-
- Forum Stats
- Member
- Level 03
- Blank Slate
At 8/17/06 12:27 AM, Pilot-Doofy wrote: If you want to buy Dreamweaver, they have a BEAUTIFUL templating system that only requires HTML. It's simply adored by me.
Already Bought it ;D
Im using it to make the site.
- Cybex
-
Cybex
- Member since: Mar. 4, 2005
- Offline.
-
- Forum Stats
- Member
- Level 20
- Blank Slate
At 8/16/06 07:23 PM, Dark_Scythes wrote:At 8/16/06 07:12 PM, elbekko wrote: They use PHP to include a header and a footer ;)Oh, any other way to do that without serverside scripting?
If you get dreamweaver, you can easily make templates, although they annoy me quite a lot because you need to re-upload every page everytime you change something to the template.
- Senri
-
Senri
- Member since: Oct. 15, 2005
- Offline.
-
- Forum Stats
- Member
- Level 11
- Blank Slate
yea they just use php for header and footer
- Zendra
-
Zendra
- Member since: Sep. 7, 2003
- Offline.
-
- Send Private Message
- Browse All Posts (13,663)
- Block
-
- Forum Stats
- Member
- Level 51
- Blank Slate
At 8/17/06 07:16 PM, Cybex wrote: If you get dreamweaver, you can easily make templates, although they annoy me quite a lot because you need to re-upload every page everytime you change something to the template.
That is way most webmaster include the headers and footers or they use a self-coded template system. :)



