Personal computing discussed

Moderators: renee, SecretSquirrel, just brew it!

 
steelcity_ballin
Gerbilus Supremus
Topic Author
Posts: 12072
Joined: Mon May 26, 2003 5:55 am
Location: Pittsburgh PA

Sun Nov 20, 2005 12:17 pm

So when you go to PerfectCR.com you want the blog to come up instead of the home page ? Is that correct?

If so, the easiest way to do it (one line of code if you can call it that) is design your blog whereever it wants to go (say perfectCR.com/blog.php)

What you can do is write a simple html refresh into the head of the index page that says "As soon as someone gets to my homepage, redirect them to my blog page"

Would that suffice?

sorry for hte edits, in between things..

Okay, if that's good enough for you, just add this in the HEAD of your document somewhere

<meta http-equiv="refresh" content=".25;URL=myblogpage.php">


where content = the time you want it to take to redirect them, I chose .25 or 1/4 of a second so it happens right away. The url should equal the actual location of your blogpage. Keep the quotes and everything just as they are and just plug and chug.
 
steelcity_ballin
Gerbilus Supremus
Topic Author
Posts: 12072
Joined: Mon May 26, 2003 5:55 am
Location: Pittsburgh PA

Sun Nov 20, 2005 12:33 pm

PerfectCr wrote:
pete_roth wrote:
So when you go to PerfectCR.com you want the blog to come up instead of the home page ? Is that correct?

Well that's one way to do it, but no. I've been to many websites where the blog is "embedded" so to speak. The .com IS the blog, with no redirection necessary to another page. Do you know what I mean? I do not know how to describe it in technical terms, but the website is the blog, no redirection, you just pull it up and there it is.


I get what you're saying now. So the blog is the index page. I never used a blog let alone go daddy's but it's a slow day in the office, lemme see what I can pull up. I have an account with them too, though im disatisfied with it. Back in a few. ^_^ keke
 
steelcity_ballin
Gerbilus Supremus
Topic Author
Posts: 12072
Joined: Mon May 26, 2003 5:55 am
Location: Pittsburgh PA

Sun Nov 20, 2005 12:40 pm

Just curious, I was checking out pLog and its for Linux hosting only from what I'm reading... is that what you're using?
 
steelcity_ballin
Gerbilus Supremus
Topic Author
Posts: 12072
Joined: Mon May 26, 2003 5:55 am
Location: Pittsburgh PA

Sun Nov 20, 2005 4:36 pm

PerfectCr wrote:
pete_roth wrote:
<meta http-equiv="refresh" content=".25;URL=myblogpage.php">

Ok pete I've setup your little suggestion as a workaround right now and it works great. I'd still love to know how the hell to get it to work the other way. I'd also like to edit the template to be able to add a pic. I'll try and figure that one out too., ;)


Sorry I didn't get back sooner, I didn't get a chance to muck around as much as I though. I'll try to figure something out by tonight when im kicking your ass at ut2k4 ^_^ OMG GRINCH MAH TREE YA RLY
 
Rookie
Gerbil XP
Posts: 365
Joined: Wed Mar 16, 2005 12:39 pm
Location: ND

Sun Nov 20, 2005 9:19 pm

I always thought it PerfectCr stood for Perfrect Circle, but I guess I was wrong.
ah, Perfect Creation - now I know :)
Look on the bright side...when you hit rock bottom - there's no where to go but up
 
titan
Grand Gerbil Poohbah
Posts: 3376
Joined: Mon Feb 18, 2002 7:00 pm
Location: Great Smoky Mountains
Contact:

Sun Nov 20, 2005 9:30 pm

Rookie wrote:
I always thought it PerfectCr stood for Perfrect Circle, but I guess I was wrong.
ah, Perfect Creation - now I know :)


I always thought it was "Perfect Circle" too.
The best things in life are free.
http://www.gentoo.org
Guy 1: Surely, you will fold with me.
Guy 2: Alright, but don't call me Shirley.
 
Usacomp2k3
Gerbil God
Posts: 23043
Joined: Thu Apr 01, 2004 4:53 pm
Location: Orlando, FL
Contact:

Mon Nov 21, 2005 2:29 am

Wow, young'ins. 8)
 
tu2thepoo
Gerbil Team Leader
Posts: 266
Joined: Thu Aug 15, 2002 3:42 pm
Location: WEBSITE OFF THE STARBOARD BROWSER, CAP'N!

Mon Nov 21, 2005 3:17 am

It's generally considered bad form to have a meta refresh on your index page - it tends to confuse people who haven't been to the site before. If they have a very slow or very fast connection, they'll either see part of your index page and then it'll suddenly change to another URL, or they'll see the entire page, start to read it/navigate, and then have the page refresh without them knowing why. Your potential viewer might think they did something wrong ("What'd I press?!!") or that it's annoying ("What the hell's going on?"). If you do use a meta refresh, it's a good idea to also leave a link to the refresh target just in case the meta refresh doesn't work.

<html>
<head>
<meta http-equiv="refresh" content=".25;URL=myblogpage.php">
<body>
<p>you should be redirected <a href="newplace.com">here</a> in a few seconds.</p>
</body>
</html>


The most elegant way would be to edit the configuration file for your particular blog package/content management system before you install it (movabletype, for example, has a file called "mt.cfg" where you can change all the installation settings, including where it'll install to). Generally, it'll be an editable value like "Path to blog=/home/username/public_html/". Howe'er, if you're using a blog package that's a "click and install" dealie, that's probably more effort than it's worth.

What I'd do is to change your index file from index.html (or index.htm or whatever it is currently) to "index.php". Then, I'd use a PHP include in your index.php file, pointing to your blog.

PHP includes work like this:

1) I've got a file located at soandso.com/file1.php, and I want it to show the stuff I've got on soandso.com/file2.php

file1.php:
<html>
<body>
<p>hello</p>
</body>
</html>


file2.php:
<p>I've got awesome stuff here!</p>


so if I make file1.php look like this:
file1.php:
<html>
<body>
<!-- include file2.php -->
<?PHP include "file2.php" ?>
<!-- include file2.php -->
</body>
</html>


what you'll actually see when you visit http://www.soandso.com/file1.php is:

file1.php:
<html>
<body>
<!-- include file2.php -->
<p>I've got awesome stuff here!</p>
<!-- include file2.php -->
</body>
</html>


(except, obviously, it'll look like a webpage and not html code)

So, the easiest way to do it would be to have a file named "index.php" in your root directory (i.e., one you can find by clicking on http://perfectcr.com/index.php ). Make sure you don't have any other index files (like index.htm, index.html, or index.shtml), and have this (and only this) as your HTML markup for the page:

index.php:
<?PHP include "serendipity/index.php" ?>


And that's it.

There are a few problems with this approach, too - namely, if you have a lot of visitors or are trying to PHP include a very large file (>500kB, say), it'll use up all the CPU time on the server and you'll probably get an angry email from your webhost. For most folks, though, it's a good enough workaround and it's much more interwebuser-friendly than a .25 second meta refresh.

[edit]
made it a lot simpler.

also, here's some more info about PHP include: http://www.tizag.com/phpT/include.php
 
derFunkenstein
Gerbil God
Posts: 25427
Joined: Fri Feb 21, 2003 9:13 pm
Location: Comin' to you directly from the Mothership

Mon Nov 21, 2005 9:18 am

Wow, The 'Burbs was a terrible movie.
I do not understand what I do. For what I want to do I do not do, but what I hate I do.
Twittering away the day at @TVsBen
 
JdL
Graphmaster Gerbil
Posts: 1025
Joined: Thu Aug 29, 2002 11:45 am
Location: United States of America

Mon Nov 21, 2005 12:36 pm

Sorry I'm a day late at this conversation.

Most server-side apps, including content management systems, portals, blogs, and website "frameworks" get installed to a specific directory from which they load. If you wanted the blog software to run from the root directory (i.e. ".com/" instead of ".com/blog/"), you just have to install it to the root directory, then make sure that there is only one index file for the web browsers to pick up. You don't need to mess with any workarounds.

BTW, here are some other great blogs to consider. These are, by far, among the best that exist. I like Wordpress especially. Another great one is Drupal, which is actually the same software they use to power SpreadFireFox.com.
JdL
286DX > Pentium Pro 200 > Athlon 1000 @ 1.4 GHz > Athlon 64 2.2 GHz > Athlon XP 3200+ > Core 2 Duo 3300 @ 4.0 GHz > Core 2 Quad 6600 G0 @ 3.2 > Core i7 3770 @ stock
 
thegleek
Darth Gerbil
Posts: 7460
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Mon Nov 21, 2005 12:44 pm

JdL wrote:
I like Wordpress especially. Another great one is Drupal, which is actually the same software they use to power SpreadFireFox.com.


Both wordpress and drupal are #1 above the entire rest for the blogging suggestions mentioned here.

i've tried 10-20 others and i stand by those 2 fully.
––•–√\/––√\/––•–– nostalgia is an emotion for people with no future ––•–√\/––√\/––•–-
 
siddman
Gerbil First Class
Posts: 192
Joined: Thu Dec 27, 2001 7:00 pm
Location: NYC
Contact:

Mon Nov 21, 2005 12:50 pm

I must be going blind. No one recommended http://www.blogger.com FREE and lots of features to post, you can do it from Word, Cell Phone, Firefox, IE, email, 3rd party software.
http://www.siddvicious.com
In Siddmanland, I Rule!
 
siddman
Gerbil First Class
Posts: 192
Joined: Thu Dec 27, 2001 7:00 pm
Location: NYC
Contact:

Mon Nov 21, 2005 12:58 pm

Depending on the host, IMO they can be tuff to setup. I've tried out http://www.Movabletype.org before. Gave up afterwards when it broke. :[ BUT I'm getting too old for this shizzle. Or could be just a lazy bastard. :]
http://www.siddvicious.com

In Siddmanland, I Rule!
 
thegleek
Darth Gerbil
Posts: 7460
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Mon Nov 21, 2005 1:23 pm

siddman wrote:
I've tried out http://www.Movabletype.org before.


moveable type i rate as one of the most difficult apps to install, get working right, and blah blah.

wordpress was moderate as long as everything was created with the mysql db beforehand

drupal was by far the easiest install of them all, but again, a minor
knowledge of mysql always helps out and is essential in all aspects of
anything blog-related in todays standards.

other ones i've installed and played with which all sucked were: xoops, wiki, and plone
––•–√\/––√\/––•–– nostalgia is an emotion for people with no future ––•–√\/––√\/––•–-
 
siddman
Gerbil First Class
Posts: 192
Joined: Thu Dec 27, 2001 7:00 pm
Location: NYC
Contact:

Mon Nov 21, 2005 1:36 pm

Glad I'm not the only one. :) I've ready somewhere one should be focusing on blog content more than the setup.
http://www.siddvicious.com

In Siddmanland, I Rule!
 
thegleek
Darth Gerbil
Posts: 7460
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Mon Nov 21, 2005 1:55 pm

siddman wrote:
Glad I'm not the only one. :) I've ready somewhere one should be focusing on blog content more than the setup.


if you spend couple of minutes to read this article:

http://www.alistapart.com/articles/clientcontent/

you will be greatly enlightened by what is stated there
––•–√\/––√\/––•–– nostalgia is an emotion for people with no future ––•–√\/––√\/––•–-
 
siddman
Gerbil First Class
Posts: 192
Joined: Thu Dec 27, 2001 7:00 pm
Location: NYC
Contact:

Mon Nov 21, 2005 2:18 pm

I'm enlightened, thanks. :)
http://www.siddvicious.com

In Siddmanland, I Rule!
 
thegleek
Darth Gerbil
Posts: 7460
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Tue Nov 22, 2005 10:13 am

my question out of curiousity, is what made you choose
Serendipity - a PHP Weblog/Blog software?
––•–√\/––√\/––•–– nostalgia is an emotion for people with no future ––•–√\/––√\/––•–-
 
thegleek
Darth Gerbil
Posts: 7460
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Tue Nov 22, 2005 11:48 am

PerfectCr wrote:
Why are you suggesting a noob like me use something easier? :wink:


lol i never claimed you to be of n00b material, but i'd really like you
to install wordpress for a blog system - you'd love it 10x more then
that seredipty thing.

and drupal is great, but not for bloggin
––•–√\/––√\/––•–– nostalgia is an emotion for people with no future ––•–√\/––√\/––•–-
 
Usacomp2k3
Gerbil God
Posts: 23043
Joined: Thu Apr 01, 2004 4:53 pm
Location: Orlando, FL
Contact:

Tue Nov 22, 2005 12:46 pm

If you want to check out wordpress, check out the blog in my 'www' link. Oh heck, http://usacomp.zapto.org/blog/.

Anyway, it is quite easy to install, and runs quite well. There's a myriad of plugins, and yeah. I'm not a fount of knowledge when it comes to programming, so when I say that it was pretty easy, that's coming from someone who doesn't know much about web stuff.
 
Usacomp2k3
Gerbil God
Posts: 23043
Joined: Thu Apr 01, 2004 4:53 pm
Location: Orlando, FL
Contact:

Tue Nov 22, 2005 1:13 pm

Oh, and my sister has one installed on hers as well, and lets just say that she's a graphical designer, and has very little knowledge of such things as well.

PS, if you need any help, I'll be in town this weekend, and probably all of x-mas break too 8)
 
tu2thepoo
Gerbil Team Leader
Posts: 266
Joined: Thu Aug 15, 2002 3:42 pm
Location: WEBSITE OFF THE STARBOARD BROWSER, CAP'N!

Tue Nov 22, 2005 2:19 pm

PerfectCr wrote:
So I tried this and the site never pulled up. Is the code you entered above the ONLY thing I literally need in the whole index.php file, or do I need other text?

It depends on how your webhost has set up their PHP install, but you could also try:

<?PHP include "http://perfectcr.com/serendipity/index.php" ?>


or you could try an absolute path to the file, which can vary a lot between webhosts. for example, if it were on my webhost, it'd be something like:

<?PHP include "/home2/username/public_html/serendipity/index.php" ?>


Also, don't forget to delete any index.html/.shtml/.htm files you have in your root directory.

(As far as I know, there're a few differences between the different ways to include files - using a http:// path increases traffic/overhead, while a direct path is fastest, etc. But as far as I'm concerned it's academic until someone has as much traffic as http://www.dooce.com or http://www.kottke.org )

[edit]
As for backups:
"First of all, you should make a backup of your existing installtion by copying your whole directory and by creating a Database dump (use phpMyAdmin or something similar)."


Looks like you just have to make a copy of your /serendipity folder (using FTP or however you like) and a copy of whatever SQL database serendipity has set up for you. GoDaddy should have some kind of "MySQL Console" or "PHPMyAdmin" link in the control panel for your website - then it's just a matter of finding which MySQL database Serendipity is using (usually, it'll be the only one you see).

As for the SQL databases themselves, they'll usually be set up for you by the blog software when you're doing the 1st install/config.

[edit2]
and as far as i'm concerned, it's movabletype or NOTHIN'. but i'm a masochist like that.
 
thegleek
Darth Gerbil
Posts: 7460
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Wed Nov 23, 2005 10:41 am

PerfectCr wrote:
Well guys thanks to all your help and from the SY9 forums I have successfully installed Serendipity on my own with my own database!


cool! congratz!

PerfectCr wrote:
I DID try Wordpress, but I actually founder it hard to use than Serendipity. It is a lesser know blog software but the user interface is sleek and I like how the plugins are integrated well. I also have it installed on the top level. ;)


oh yeah, if you wanna check out how my wordpress on my site is, i used
a different skin which looks nothing like the default... link below:

http://www.thegleek.com/wordpress/

PerfectCr wrote:
Check out my www link below and let me know what you think. As for the content of the site, I'll just be posting whatever I feel like with no real purpose other than to assume myself.


looks good, only saw one thing which i know you see as well, a broken
image link which tries to find:

http://perfectcr.com/templates/default/img/empty.gif

you need to download a blank.gif and rename it to empty.gif and upload
that file to your server under the directory /templates/default/img/
––•–√\/––√\/––•–– nostalgia is an emotion for people with no future ––•–√\/––√\/––•–-

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On