|
General Details
|
|
PHP (Hypertext Preprocess...
|
|
Posted 246 Days Ago
|
|
156 Views
|
|
Received 0 Ratings
|
|
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 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. |
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
|