Be a Supporter!

Newgrounds Site layout?

  • 585 Views
  • 20 Replies
New Topic Respond to this Topic
Dark-Scythes
Dark-Scythes
  • Member since: Jun. 15, 2006
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Newgrounds Site layout? 2006-08-16 19:10:42 Reply

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
Response to Newgrounds Site layout? 2006-08-16 19:12:18 Reply

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 ]

BBS Signature
Dark-Scythes
Dark-Scythes
  • Member since: Jun. 15, 2006
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to Newgrounds Site layout? 2006-08-16 19:23:04 Reply

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
Response to Newgrounds Site layout? 2006-08-16 19:34:43 Reply

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.....


Hello, from the past!
[ PHP: Main ]

BBS Signature
Momo-the-Monkey
Momo-the-Monkey
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 45
Musician
Response to Newgrounds Site layout? 2006-08-16 19:40:25 Reply

At 8/16/06 07:34 PM, Momo_the_Monkey wrote:
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.....

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.


Hello, from the past!
[ PHP: Main ]

BBS Signature
Dark-Scythes
Dark-Scythes
  • Member since: Jun. 15, 2006
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to Newgrounds Site layout? 2006-08-16 19:44:33 Reply

At 8/16/06 07:40 PM, Momo_the_Monkey wrote:
At 8/16/06 07:34 PM, Momo_the_Monkey wrote:
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.....
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.

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
Response to Newgrounds Site layout? 2006-08-16 19:51:12 Reply

At 8/16/06 07:44 PM, Dark_Scythes wrote:
At 8/16/06 07:40 PM, Momo_the_Monkey wrote:
At 8/16/06 07:34 PM, Momo_the_Monkey wrote:
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.....
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.
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.

um, yup. It's just simple html. By the way....This google search helps with any more including in HTML questions.... :)


Hello, from the past!
[ PHP: Main ]

BBS Signature
Dark-Scythes
Dark-Scythes
  • Member since: Jun. 15, 2006
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to Newgrounds Site layout? 2006-08-16 20:29:12 Reply

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
Response to Newgrounds Site layout? 2006-08-16 20:44:03 Reply

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..


Hello, from the past!
[ PHP: Main ]

BBS Signature
JeremysFilms
JeremysFilms
  • Member since: Feb. 18, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to Newgrounds Site layout? 2006-08-16 20:56:45 Reply

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
Response to Newgrounds Site layout? 2006-08-16 21:06:53 Reply

SHTML is sooo ugly.

JeremysFilms
JeremysFilms
  • Member since: Feb. 18, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to Newgrounds Site layout? 2006-08-16 21:34:24 Reply

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
Response to Newgrounds Site layout? 2006-08-16 21:37:50 Reply

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


BBS Signature
WoogieNoogie
WoogieNoogie
  • Member since: Jun. 26, 2005
  • Offline.
Forum Stats
Member
Level 15
Programmer
Response to Newgrounds Site layout? 2006-08-16 22:00:31 Reply

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
Response to Newgrounds Site layout? 2006-08-16 22:02:06 Reply

At 8/16/06 10:00 PM, WoogieNoogie wrote:
At 8/16/06 09:37 PM, DFox2 wrote: your mom jokes > everything
Your mom > everything.

damn.. that's hard to top

DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to Newgrounds Site layout? 2006-08-16 22:02:24 Reply

At 8/16/06 10:00 PM, WoogieNoogie wrote: Your mom > everything.

lol. That was pure gold.


BBS Signature
Pilot-Doofy
Pilot-Doofy
  • Member since: Sep. 13, 2003
  • Offline.
Forum Stats
Member
Level 37
Musician
Response to Newgrounds Site layout? 2006-08-17 00:27:25 Reply

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
Response to Newgrounds Site layout? 2006-08-17 17:45:13 Reply

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
Response to Newgrounds Site layout? 2006-08-17 19:16:01 Reply

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
Response to Newgrounds Site layout? 2006-08-18 04:14:28 Reply

yea they just use php for header and footer


<3

BBS Signature
Zendra
Zendra
  • Member since: Sep. 7, 2003
  • Offline.
Forum Stats
Member
Level 51
Blank Slate
Response to Newgrounds Site layout? 2006-08-18 04:40:51 Reply

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. :)