Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
DannyIsOnFire
Danny Westhorpe
Send A Message
Screenshot
View Full Size
ddddd.jpg ( 0.16Mb )
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
PHP (Hypertext Preprocess...
Posted 246 Days Ago
156 Views
Received 0 Ratings
More Codes By This Author
Drag&Drop Blog
Auto-Download
Basic Calculator
File Uploader

Drag&Drop Blog


Description
A blogging script with a difference. Contains only a few files to upload and can easily be copied and pasted into your existing website to match it's current style. Script requires one MySQL database.

You can see a live preview at:
http://www.dannywesthorpe.co.uk/web-development/draganddrop-blog/
Technical
For full installation instructions check out the README file included in the download.

Installing Drag&Drop Blog can be a slightly tricky process. These instructions aim to make it as simple as possible, assuming you follow them.

First up, you need to create a MySQL database and user to link to it. If you're unsure of how to do this check out - http://www.siteground.com/tutorials/php-mysql/mysql_database_user.htm - for a simple tutorial.

Then open up database.sql and find the two lines at the top containing the word. "you_blog". These both need changing to the name of the database you've just set up. Once that's done, copy the contents of database.sql, paste it into your brand new database and run the query.

Now open up index.php and you should see some details at the top. These need changing to match your own website. The first set are fairly straight forward - website name, website url, your name, etc. The second set relate to the database you've just set up - database name, database user and database password. The third set consists of the password your going to use to access the admin area, and how many blog entries you want to display on each page. If you want to display every entry (not reccomended) change the number to something like 99999999999.

Next upload all three files (index.php, admin.php, and rss.xml). If you already have an index file you can simply copy and paste the code into it where you want the blog to be displayed.

Before you start making posts you need to CHMOD rss.xml to 777. This gives the script permission to update the file everytime you make a new entry.

That's about it, the script should be installed and your ready to start posting. You can access the admin area at - index.php?action=admin - and write your first entry. You can also edit and delete posts and comments from here too. Happy blogging!

Extra & Optional Installation Instructions
---
The following are extra bits of information if you want to customise your blog further:

You may want to include this code -
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/rss.xml" /> inbetween your head tags of your sites pages. It lets the browser recognise your blogs RSS feed.

On line 326 of index.php is the line -
echo "".prepare_text(substr($row[content],0,1500)."...")."\n";
The number (1500) refers to how many characters you want you to show before cutting the blog entry off and displaying the Read More and comments link. If you want to display the whole post simply set the number to something ridiculas. e.g. 100000000000000000000000.

On line 101 is the line - $allowed_tags = '<a><b><i><u>'; - This tells the script which tags both you and readers can use when posting. For usability reasons the <img> tag hasn't been included. Feel free to include it, but readers could easily abuse the feature (even more so than links which similarly, I debated including from the start).
Source Code
Download Download Source Code
draganddrop-blog.zip ( 0.01Mb )
NEVER open a .exe, .bat, .cmd, or other executable file since that is where viruses are likely to live. Please virus scan all files you download.
Comments
Please login to post comments.
Page 1 of 1
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved