Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Creating a "tag" system to find relevant "related" pages

This is a discussion on "Creating a "tag" system to find relevant "related" pages" within the PHP Forum section. This forum, and the thread "Creating a "tag" system to find relevant "related" pages 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 Mar 20th, 2008, 00:16
New Member
Join Date: Mar 2008
Location: states
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Creating a "tag" system to find relevant "related" pages

Hello,

I'm wondering what everyone's opinion is on what would be the best way to implement comma-separated tags on a web site using PHP, MySQL, and Javascript. Each page should have tags which are created along with the page that describe the content on that page. I want to compare tags between pages to find the most relevant "related" pages on my site.

In case that isn't clear, what I am trying to explain would be very similar to the comma-separated "Tags" field just below this text box on the forum where "you may add 5 tag(s) to this thread."

What is the best way to implement this? Does anyone have a script that might get me started? Thanks in advance.
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 Mar 20th, 2008, 01:00
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,616
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Creating a "tag" system to find relevant "related" pages

Sorry, what are the Tags for? I mean what is the purpose?
Cheers...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 20th, 2008, 03:29
New Member
Join Date: Mar 2008
Location: states
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a "tag" system to find relevant "related" pages

The tags will be for showing "related pages," more specifically for determining whether or not the pages are actually related. At the bottom of each article displayed on my site, I would like to display a "related articles" section that shows links to 5 related articles determined by tags.

The article author will add tags to the article when it is created. on the .PHP page for an article, I would place code at the bottom that generates the list of links based on the tag algorithm that determines the 5 most relevant articles. I can think of a few different ways to do it, but I know there must be a lot of scripts out there that do already do this... so rather than trying to reinvent the wheel from scratch I thought I'd ask you guys for some suggestions. Thanks a lot for your reply!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 21st, 2008, 01:06
Junior Member
Join Date: Jan 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a "tag" system to find relevant "related" pages

Lots of ways depending on exactly what you're after.

A simple method is to store all content for pages in a database. When the data gets added, run a script that counts which words/phrases occurs most often and store the top five in a separate field in the database, comma separated.

This then gets listed with each article, and turn each word into a key link. This then does a search and finds other articles in the database that have keywords in common.

That's just one of many possible ways of doing something along these lines...

Dan
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
these are what imean

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
Creating a "Reservation/Booking" System Scotalia PHP Forum 3 Mar 17th, 2008 17:11
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 Oct 16th, 2007 02:22
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Starting Out 6 Aug 8th, 2007 14:48
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript Forum 0 Feb 18th, 2007 00:09
Need to build a "Trip" or "Journey Planner" jswebdev PHP Forum 4 Dec 6th, 2005 00:22


All times are GMT. The time now is 05:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8