0

I have created my online community portal.
I want to create simple blog using php and not want to use wordpress.
How can I create my own blog???
Please help me!

8
Contributors
15
Replies
24
Views
7 Years
Discussion Span
Last Post by FlashCreations
0

I do not want script of blog. There is best script WORDPRESS.
I am trying to create my own blog.

I do not want to add mutiple functionalities. I just want to add post, view post, reply post and add post in archive(sorting monthwise)

Please help for coding.

Anybody????????????

0

I do not want script of blog. There is best script WORDPRESS.
I am trying to create my own blog.

I do not want to add mutiple functionalities. I just want to add post, view post, reply post and add post in archive(sorting monthwise)

Please help for coding.

Anybody????????????

Log in to admin panel and set things up

0

Log in to admin panel and set things up

I do not want to use any script or wordpress
I want to create my blog from scratch.
I am working but there are many problems

0

I do not want to use any script or wordpress
I want to create my blog from scratch.
I am working but there are many problems

Didi you see this?
What problems are you facing?

0

1. Design a relational db in MySQL to hold your data.
2. Write the pHp to add/edit/delete posts.
3. Set up forms and display pages.

Your DB will be the vital element in this. Everything else is easy. How you relate threads/replies.

0

You have a few options as to how you set up your DB - depends on the complexity. Do you allow anonymous posts or just members (logged in)? One method (using members model):

[users]
user_id;username;email;avatar_file;rights (etc)
[threads]
thread_id;user_id;title;datetime;body;tags
[replies]
reply_id;thread_id;user_id;datetime;comment;status (approved/pulled etc)

This is a really basic model, but that's what you're looking for, I believe.

As this is a relational DB, your MySQL SELECT queries will need to have INNER JOIN clauses.

You can build a 'protected' admin page to allow you to approve/delete/edit comments.

You need to decide whether you will allow HTML in the comments. If so, you may find using a WYSIWYG editor useful. There are loads out there, e.g. Spaw2, Yahoo!, TinyMCE, CKEditor, WYMEditor etc etc. Even if you don't want to use them for replies/comments, you probably would like to use them for threads (your blog posts).

Just a note - if using video / sound - your allowed bandwidth could be swallowed up very quickly by users playing your media. Blogger does all the hosting, so to do this, uploading video to YouTube or Vimeo and using the embed code could be useful.

0

If I may add my ten cents, I believe that CodeIgniter.com has a great 20 minute tutorial on creating a basic blog. Not sure if you consider CI "a feature", but its a great way to create applications without having to worry about internals. This way you can learn the structure and required parts before you have to dive in and start from scratch. You can use some of the models ardav described and implement them in CI as a starting point. After you understand how everything fits together, then move on to starting from scratch.
If you are one of those dive-in-and-try-it people, then by all means, disregard the above and take a shot at it. Post any questions you may have here or in a new appropriate thread.
--
For the purists out there, I'm not endorsing CI as a start to PHP. I believe it's much better to learn and be comfortable with PHP basics & OOP before using a framework. In this case, I think a framework could help illustrate relationships and basic functionality.

All the Best,
PhpMyCoder

Edited by FlashCreations: n/a

0

If I may add my ten cents, I believe that CodeIgniter.com has a great 20 minute tutorial on creating a basic blog. .........................

For the purists out there, I'm not endorsing CI as a start to PHP. I believe it's much better to learn and be comfortable with PHP basics & OOP before using a framework. In this case, I think a framework could help illustrate relationships and basic functionality.

All the Best,
PhpMyCoder

I second PhpMyCoder on CI once you get passed the basic PHP and OOP
It is great framework thoug I have barely scratched the surface

0

Thanks Steve!
It is a great framework, though I am embarrassed to say that I haven't worked with it that much either. :D
Someone on the PHP form has to be a CI guru. If there isn't and vizz has a question about CI, I guess we have some reading to do...
-PhpMyCoder

EDIT: It's been so long since I've been on Daniweb, I almost forgot how strange the smilies looked!

Edited by FlashCreations: n/a

0

Thanks Steve!
It is a great framework, though I am embarrassed to say that I haven't worked with it that much either. :D
Someone on the PHP form has to be a CI guru. If there isn't and vizz has a question about CI, I guess we have some reading to do...
-PhpMyCoder

EDIT: It's been so long since I've been on Daniweb, I almost forgot how strange the smilies looked!

I will be making Big PHP project in few months to come and I will use CI so slowly I'm getting familiar with it. Controllers/Views are Just breeze and I'm learning how to do "messy" things in Models.

0

Yeah, the MVC usually doesn't vary between frameworks; you only have to get used to the little quirks (such as CI Models) and extras. If your ambitious enough, you could design your own framework (something I've been working on as a side project), but thats a lot of work compared to downloading & learning CI!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.