View Full Version : Idea...
mburt
03-31-2007, 01:52 PM
Okay. My latest project has been to create a website where you create your account, blah blah, and you can post articles (news, blogs, whatever). It does work thus far, and here's the link:
http://livejournal.funpic.org/
Just wanted to see what you think.
Thanks,
Mike
thetestingsite
03-31-2007, 02:01 PM
Nice little site. Could be a few mods to it, but nothing really major. I think you should incorporate either a Rich Text Editor or a BBcode editor for the stories (or at least the nl2br function to convert new lines to actual new lines on the page). Also, I noticed that after I logged in, it keeps wanting to go back to the login page but then quickly redirects me to the page that I was going to in the first place. You may want to fix that as well.
Other than this, nice layout and idea for it. Good job.
mburt
03-31-2007, 02:04 PM
Thanks... Actually, I was so hung up on the user registration part I forgot about the actual text-editing part. I'll do the nl2br function. And as for the slow redirecting. It's because I'm use meta tag redirects which are slower. header() won't work for some reason. It keeps saying that I already called a header function, or something.
thetestingsite
03-31-2007, 02:06 PM
How are the "sessions" stored (cookie or actual sessions)? Also make sure that you do not have anything being sent to the browser other than "header" info (such as cookies, sessions, etc) before you call the header redirect.
Hope this helps.
mburt
03-31-2007, 02:23 PM
I simply call "session_start()" once at the top of my index.php. The index is a template, and I include the other pages through arrays with the "q" variable.
If I use session_start(), how can I use a header redirect after that?
thetestingsite
03-31-2007, 03:09 PM
Now you said that you use index.php as your template, is it in the format of something like this:
<?php
session_start();
function head() {
?>
Top portion of HTML goes here
<?php
}
function foot() {
?>
Bottom portion of HTML goes here
<?php
}
head();
include($_GET['q']);
foot();
?>
(Just an example, not tested code).
Or do you define the variables in another page, then call the include? I would recommend making defining your html in another page (continue using your index.php as the main page; of course, and have the session_start(); there as well), and just include the page like you usaully do.
Now in each page; when you are going to output text, simply call the head and foot functions (to display your HTML), then whatever text you have on that page as well. This will make it to where you can control the output of the text, and allow you to use the header() function.
Hope this helps.
mburt
03-31-2007, 03:24 PM
I simply include the php files directly into my template. It makes it alot easier to manage my pages.
For example, I might use an array like this:
$input = array("main","codepage");
$output = array("index.php","_codepage.html");
boxxertrumps
03-31-2007, 04:44 PM
Umm, live jornal already exists, http://www.livejournal.com/ I envy you, if you've never heard about it...
A large portion of the site is emo middle class suburban teenagers whining about how their lives suck. Rather funny, when you think about it.
but anyways, there is a (customizable) BBcode script that one of the DD members made, im sure that would be better than writing one from scratch.
Here it is: Blm126's Simple BBcode (http://www.webtech101.com/PHP/simple-bb-code)
Aidanx
03-31-2007, 04:50 PM
I just wanted to ask how long you expect your emails from the website after registration to reach their destination. I registered about 10 minutes ago. Just wondered whether this is normal.
mburt
03-31-2007, 06:41 PM
Hmm... mine was sent immediately. thetestingsite had no problems either. Your e-mail address had everything spelled correctly.
A large portion of the site is emo middle class suburban teenagers whining about how their lives suck. Rather funny, when you think about it.
Lol... didn't know it even exisisted. I first thought of Word Press, but coincidentaly that was taken. (wordpress.org, blogging site).
thetestingsite
03-31-2007, 06:45 PM
Also, you may want to take into consideration email server lag (although, 10 minutes does sound like a long time for a server lag).
mburt
03-31-2007, 09:56 PM
Also, to Aidanx, I activated your account. Weird though, because it should've sent the e-mail. Ten minutes is a long time for server lag.
Aidanx
03-31-2007, 11:03 PM
Ill have a go at writing some stuff to test the site for you. [Objectively]
Aidanx
03-31-2007, 11:07 PM
I uploaded one of my own, more humourous short stories.
Aidanx
03-31-2007, 11:10 PM
Ok, MAJOR problem. When I uploaded my story it created 2 copies. One with the headings but no content and one with the headings and content. Upon deletion of the one with only headers, the other was stripped of content. Something to look into.
mburt
04-01-2007, 01:11 AM
I noticed... and thanks for the post, I appreciate it.
I'm trying to get it worked out, but my ftp is holding me up. It won't let me in.
mburt
04-01-2007, 01:19 AM
Okay, everything is fixed, and should be working fine.
Aidanx
04-02-2007, 06:57 AM
Ill have another go.
mburt
04-05-2007, 01:04 AM
All is good now. I have my FAQ posts under a category on the menu as well...
Okay. My latest project has been to create a website where you create your account, blah blah, and you can post articles (news, blogs, whatever). It does work thus far, and here's the link:
http://livejournal.funpic.org/
Just wanted to see what you think.
Thanks,
Mike
looks good, my only suggestions is to make it look more modern, round edges, shadows, clean text, ect...
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.