My Blog Engine...small problem!

This is a discussion on "My Blog Engine...small problem!" within the PHP Forum section. This forum, and the thread "My Blog Engine...small problem! are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 6th, 2007, 17:36
Highly Reputable Member
Join Date: Jun 2007
Location: Canterbury
Age: 20
Posts: 726
Thanks: 0
Thanked 0 Times in 0 Posts
My Blog Engine...small problem!

Ok...I've written a blog system for myself. It works fine.

The problem i have is the following:

The home page is set to display 500 characters of each post with a continue reading link...

Below that the category is displayed.

It works fine excpet when I have a tag half open in the 500 words for example. The first 500 words of this article are:

Code: Select all
Its not often you have the opportunity to have your website professionally designed at no cost, but <a href="http://www.1840dsgn.co.uk">1840dsgn</a> are now offering a basic web design package for <strong>free</strong> to non-profit organisations and individuals.

The package will include:
<ul style="margin-left: 20px;"><li class="bullet">A static XHTML/CSS website hand-coded to be standards compliant</li><li class="bullet">Creation of basic imagery for your site
As you can see the 500 charcter limit cuts off half way through an open <li> element. This means the category displayed below is indented like the bullet point.

What I need to do is somehow ensure all html tags from the 500 words are closed off before it display the category...can anyone help me?

If you don't understand what I',m getting at please ask.

Thanks guys.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 7th, 2007, 08:38
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: My Blog Engine...small problem!

From personal experience, I have found that using a blog system where I'm the only contributor, simply checking these things and putting them right at preview is the easiest solution. With a forum, using bb codes like we use here is a better approach - it means that the site author and admins can control the attributes / features to be supported. But there's nothing at all to stop you using the bb code technique in your blog.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
blog, mysql, php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with travel site search engine 62vye Search Engine Optimization (SEO) 4 May 25th, 2008 19:46
A Small layout problem in IE6 but not in Firefox leroytrolley Web Page Design 1 Jul 5th, 2007 12:49
small css problem yoda Web Page Design 1 Mar 22nd, 2007 17:40
problem with blog displaying images remo PHP Forum 3 Nov 24th, 2006 12:00


All times are GMT. The time now is 17:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42