Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 09-21-2006, 06:52 PM
noodles Offline
pp veteran
 
Join Date: Apr 2006
Posts: 55
Smile how to direct front page

Hi All,

Currently, i have one domain name maegabriel.com and on that page i have my photoblog. I also have a foodblog which is maegabriel.com/riceandnoodles.

I would like to have a front page [this is still work on progress] where if anybody comes to maegabriel.com, what you'll see is a page where i can put the two links ie, the photoblog and foodblog [they're both on pixelpost]. At the moment when you go to maegabriel.com, the photoblog is set to come up straightaway. Though i'm not very good with codes [my knowledge is very limited], i know that it has something to do with index.php. Now i've been trying to moderate it but it doesn't work. I have a back-up of course!

Please can somebody help me? What do i have to do?

MANY THANKS FOR THE HELP IN ADVANCE
Reply With Quote
  #2  
Old 09-21-2006, 06:55 PM
codepoit's Avatar
codepoit Offline
pixelpost guru
 
Join Date: Mar 2006
Location: Danbury, CT
Posts: 186
In the root directory of maegabriel.com, you need to have an index.html which is just your splash page. What you will need to do is create a photoblog directory (domain.com/photoblog) and cut/paste your pixelpost files into that directory, just like how you have the foodblog now. That way, you'll have splash page with links to your two sites...domain.com/photoblog and domain.com/foodblog.
__________________
The Last Rewind
Reply With Quote
  #3  
Old 09-21-2006, 06:56 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Try to put this "splash screen" into the index.html file and then put it into root dir of your webpage. If you have set static pages as first to look as default page then it will work otherwise you must change this setting or i.e. put pixelpost to subdir and then call it just like foodblog.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #4  
Old 09-21-2006, 09:03 PM
noodles Offline
pp veteran
 
Join Date: Apr 2006
Posts: 55
Thanks codepoit! I'll have to think if this is what i'd really like to do. I mean doing the photoblog as sub dir.

GeoS, thanks!

Quote:
Try to put this "splash screen" into the index.html file and then put it into root dir of your webpage. If you have set static pages as first to look as default page then it will work otherwise you must change this setting
I'm sorry but would you mind to kindly show me how to do the "splash screen" into the index.html?

Thanks again!
Reply With Quote
  #5  
Old 09-21-2006, 09:15 PM
janickg's Avatar
janickg Offline
pp regular
 
Join Date: Oct 2005
Location: Boston
Posts: 27
Send a message via AIM to janickg Send a message via Skype™ to janickg
A better and more elegant solution would be to redirect your default directory index using .htaccess

Do this in your .htaccess file

DirectoryIndex temp_splash_index.html

This means when anyone goes to http://yourdomain.com it will load whatever you've done in temp_splash_index.html

While you as the developer can simply continue to work with your index.html or index.php and test it, no one will be the none the wiser. Once you're done with testing and developing, you can remove that line in your .htaccess file.
__________________
"That is not polite behaviour with integrals" - P.G.

My homepage
Reply With Quote
  #6  
Old 09-22-2006, 06:00 AM
Connie
Guest
 
Posts: n/a
Wink

janicq,

if he does not understand GeoS answer, .htaccess would be too tricky I think

what GeoS wanted to suggest:

write an index.htm or index.htm

in this page, add links to Pixelpost and to the blog

in the Blog you can add a link to the startpage + to Pixelpost
in Pixelpost main page you can add a link to the startpage + to the Blog

that is fairly easy and needs no modification of any system parameters like editing .htaccess would be

never do simple things in a complicated way...
Reply With Quote
  #7  
Old 09-22-2006, 07:31 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
More or less I agree with Connie.

There is only small trick to janickg reply: some Apache servers have this DirectoryIndex directive set by default as:
Quote:
DirectoryIndex index.html index.htm index.php index.cgi ...
So if there is also in your case it means that the most important filename which server will look for is on the left side (if it didnt find this then server is looking for next going to right side).

So there is enough to put this the most on right file name to root dir of site and then server sends it as default page for site visitors leaving the rest of files as they are without need of doing next subdirs and so on.
Other thing is also that default setting is more optimal for server working but that isnt so important as you dont host to many sites on your machine.

This what janickg suggest to you is doing this default DirecotryIndex setting on own hand with own priority of documents. It is useful when server have other order of files then you want or then you can accept.

I belive that not it is a little more clear then it was few post ago.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #8  
Old 09-24-2006, 06:45 PM
noodles Offline
pp veteran
 
Join Date: Apr 2006
Posts: 55
Thanks everyone,

Connie, while your answer seems easy, i'm afraid it's still complicated to me. Sorry, it's me not you.

I have an index.php on my root directory. In it, has loads of codes about the page. I'm not sure how to add links to Pixelpost and to the blog. Ouch.

This has become too complicated for me. Like i've said, not you, but me.

Thanks for trying...
Reply With Quote
  #9  
Old 09-24-2006, 07:30 PM
Connie
Guest
 
Posts: n/a
Thumbs up

noodles, don't be a noodle ;=)
you really think it is more complicated than it is unfortunately

you have one file "index.htm"
this has links to Pixelpost and to other things
Code:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>This is my webpage</title>
</head>
<body>
<p>Watch my <a href="index.php">PixelPost Photoblog!</a> </p>
<p>Read my <a href="wp/index.php">WordPress Blog!</a> </p>
</body>
</html>
because in 99,78% the browser first opens files with the extension ".htm" or ".html" you can have an "index.htm" which links to "index.php" (your Pixelpost) in the same directory!

really not difficult

you can have

index.htm
index.html
index.php

in the same directory, but not 2 times index.php
Reply With Quote
  #10  
Old 09-25-2006, 01:10 PM
janickg's Avatar
janickg Offline
pp regular
 
Join Date: Oct 2005
Location: Boston
Posts: 27
Send a message via AIM to janickg Send a message via Skype™ to janickg
Wink

I think Connie was trying to tell you that you create that index.html in your root directory of your homepage, and have the contents of the created index.html (as Connie pointed out) -link to your other photoblogs / blogs.
__________________
"That is not polite behaviour with integrals" - P.G.

My homepage

Last edited by janickg; 09-25-2006 at 11:11 PM.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:50 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs