• Welcome to The Campaign Builder's Guild.
 

News:

We're back!

Main Menu

Site design

Started by Matt Larkin (author), September 30, 2006, 02:50:21 PM

Previous topic - Next topic

Lmns Crn

Okay, here's a challenging question.

I've gotten the hang of using php with links to create a changing content pane within index.php, but how do I do this if I want a single link to affect two changing content panes?

I have this code within index.php:
<div id=content>
<?php 
$page 
$_GET['page'];
if (!
$page) {$page 'intro'; }
require_once (
"$page.html"); ?>

</div>

<div id=menu>
<?php 
$page 
$_GET['menu'];
if (!
$menu) {$menu 'mbase'; }
require_once (
"$menu.html"); ?>

</div>
I've been trying with links to "index.php?page=abc&menu=xyz", but it doesn't work the way it seems like it should.

Is my code wrong, or are my links wrong, or is it both?
I move quick: I'm gonna try my trick one last time--
you know it's possible to vaguely define my outline
when dust move in the sunshine

brainface

on line 11, you're setting the variable $page to $_GET['menu'], then you're asking what $menu says on like 12. this does not work. if you make line 11 say: $menu=$_GET['menu'] then it should work.
"The perfect is the enemy of the good." - Voltaire

Lmns Crn

Ah, it works so well, and it is glorious! Bless you, Brainface, and curse my careless copy/paste errors!
I move quick: I'm gonna try my trick one last time--
you know it's possible to vaguely define my outline
when dust move in the sunshine

Ishmayl-Retired

Any screen shots of the site yet?  I'm working on mine too, it's pretty exciting.
!turtle Ishmayl, Overlord of the CBG

- Proud Recipient of the Kishar Badge
- Proud Wearer of the \"Help Eldo Set up a Glossary\" Badge
- Proud Bearer of the Badge of the Jade Stage
- Part of the WikiCrew, striving to make the CBG Wiki the best wiki in the WORLD

For finite types, like human beings, getting the mind around the concept of infinity is tough going.  Apparently, the same is true for cows.

Matt Larkin (author)

Quote from: IshmaylAny screen shots of the site yet?  I'm working on mine too, it's pretty exciting.
Can't wait to see them both.
Latest Release: Echoes of Angels

NEW site mattlarkin.net - author of the Skyfall Era and Relics of Requiem Books
incandescentphoenix.com - publishing, editing, web design

Lmns Crn

Quote from: IshmaylAny screen shots of the site yet?  I'm working on mine too, it's pretty exciting.
You can view the site in progress, since it's already in the Hosting section. Issues of php as a server-side language (and the Firefox copy/paste problems in phpEdit) make it easier for me to just build it online, rather than build it offline and upload it later.

There is very little actual content at the moment. So far, I have been working on getting the site organized, wrangling CSS into shape, trying to make navigation intuitive, putting in pages, and making sure all the links go where I want them to. But you can still go look around and tell me my menus are ugly. :)

Edit: Ha ha, at first, I linked you guys to a 404. x.
I move quick: I'm gonna try my trick one last time--
you know it's possible to vaguely define my outline
when dust move in the sunshine

Matt Larkin (author)

Quote from: Luminous CrayonYou can view the site in progress, since it's already in the Hosting section. Issues of php as a server-side language (and the Firefox copy/paste problems in phpEdit) make it easier for me to just build it online, rather than build it offline and upload it later.

There is very little actual content at the moment. So far, I have been working on getting the site organized, wrangling CSS into shape, trying to make navigation intuitive, putting in pages, and making sure all the links go where I want them to. But you can still go look around and tell me my menus are ugly. :)

Edit: Ha ha, at first, I linked you guys to a 404. x.
I actually started to use AceHTML as an edittor.  Very bare bones, but it keeps me organized and its coloring makes it easier to spot errors in code.  And free.

I use IE to copy and paste text into our hosting section (sadly that's about the only thing I use it for over FireFox).  If you look at the content of a file in the hosting section, it deletes all spaces, which would make editting much harder later.
Latest Release: Echoes of Angels

NEW site mattlarkin.net - author of the Skyfall Era and Relics of Requiem Books
incandescentphoenix.com - publishing, editing, web design

Lmns Crn

I've been doing the "edit web pages locally, upload later" routine for years, but this is the first site I've made that has used php, and that's thrown a wrench into the works. I can edit php in a text editor, but since it's a server-side language, I can't just open up a locally stored .php file in a web browser.
I move quick: I'm gonna try my trick one last time--
you know it's possible to vaguely define my outline
when dust move in the sunshine

Matt Larkin (author)

Yeah, but once you get the php code working, your other pages don't need to use php.  Of course it means you have to upload something to view it properly, but for working on content, you generally don't need to see it to know how it will look.

I typically write several, upload them to check how they look, and so forth.  But still work offline.  Plus, that gives me off-line copies of everything.
Latest Release: Echoes of Angels

NEW site mattlarkin.net - author of the Skyfall Era and Relics of Requiem Books
incandescentphoenix.com - publishing, editing, web design

Lmns Crn

Very true. I guess that will become a much more viable method of working on things once I get the php and css issues nailed down, and I can be confident in the site's general appearance and workings.

But I definitely need to get offline copies of my files, in case of catastrophe. I knew I was forgetting something.
I move quick: I'm gonna try my trick one last time--
you know it's possible to vaguely define my outline
when dust move in the sunshine

Ishmayl-Retired

I like it, LC... when I asked earlier, I was secretly thinking "I hope he uses a green theme".  Any ideas for a title image yet?
!turtle Ishmayl, Overlord of the CBG

- Proud Recipient of the Kishar Badge
- Proud Wearer of the \"Help Eldo Set up a Glossary\" Badge
- Proud Bearer of the Badge of the Jade Stage
- Part of the WikiCrew, striving to make the CBG Wiki the best wiki in the WORLD

For finite types, like human beings, getting the mind around the concept of infinity is tough going.  Apparently, the same is true for cows.

Lmns Crn

Quote from: IshmaylAny ideas for a title image yet?
Not yet. I've decided that most of the images on the site are going to be two-color, in the almost-white (#ddffcc) and almost-black (#113300) shades of green that you can see already in the layout. (That should make it easy to scan things from the sketchbook as line art, and digitally manipulate them for color fairly easily.) Beyond that, I have no idea.
I move quick: I'm gonna try my trick one last time--
you know it's possible to vaguely define my outline
when dust move in the sunshine

Ishmayl-Retired

Okay, here's the general gist of my new site:

http://www.shadowfell.org/newSiteDesign/

I'm sorry for all those linkless links to the far right, I just put them there to get an idea of what the site would look like with links.  Also, so far, I'm unable to make the site look good in IE.  I would apologize for that, but if you're using IE, I have very little sympathy for you ;)  There's a lot of work to be done, but I finally at least have the general layout and color scheme done.
!turtle Ishmayl, Overlord of the CBG

- Proud Recipient of the Kishar Badge
- Proud Wearer of the \"Help Eldo Set up a Glossary\" Badge
- Proud Bearer of the Badge of the Jade Stage
- Part of the WikiCrew, striving to make the CBG Wiki the best wiki in the WORLD

For finite types, like human beings, getting the mind around the concept of infinity is tough going.  Apparently, the same is true for cows.

Matt Larkin (author)

Nice start; I like the brown bar coloring.  I was found of your prior banner graphic.  Do you plan to use that when you are done?

Technically, the expression is to make "ends meet."

I also noticed my site doesn't quite look as good in IE.
Latest Release: Echoes of Angels

NEW site mattlarkin.net - author of the Skyfall Era and Relics of Requiem Books
incandescentphoenix.com - publishing, editing, web design

limetom

Well, me and my big mouth got me appointed as webmaster of the University of Hawaii's Anime Club.

This is what the last webmaster left me with... no offense to them, but I think I've got some work to do.  At very least, the background is gone... it hurts my eyes.  At most, the site will be completely overhauled.  Wish me luck.

Additionally, if there's anything anyone thinks I should know about KompoZer, please let me know.