Jump to content

Using Tags in PHP


emma57573

Recommended Posts

Im in the process of adding tags to my site to manage the shopping areas

 

This is the site to give you an idea misi.co.uk

 

At the moment the items are placed into categories but what Im going to do is get the user to choose a category and then enter some tags to go with it.

So you are able to browse/search through tags within each category.

 

Im fine with getting users to insert the tag code into MYSQL Im thinking more on the lines of how to manage the search/browse function and what is the best way around it. Does anyone have links to some good tag tutorials? Or links to sites that use tags to manage their categories that I could look at? Tags are becoming increasingly popular but I cant seem to find any infomation on them from a coding point of view.

Im not 100% sure how to best go about it.

 

 

Link to comment
https://forums.phpfreaks.com/topic/133174-using-tags-in-php/
Share on other sites

I'm not sure about how this is coded, I'm assuming with a SELECT query using LIKE, but I'm not really sure.

 

When you mentioned websites that use tags. The Garrys Mod website comes to mind.

 

http://garrysmod.org/

 

It uses a Tag system with the tags constantly changing order and font size depending on what are the most searched tags. It's a fairly good example.

Link to comment
https://forums.phpfreaks.com/topic/133174-using-tags-in-php/#findComment-692596
Share on other sites

Thank you for that example, that is exactly the type of thing that I'm thinking.

A tag cloud at the top of each category page in order of the most popular tag first.

Its just good to know what I'm doing before I go and code it as its quite a big change to the site and I want to get it 'right'.

I suppose it would be very similar to the search function I have that searches through titles/descriptions within the category.

 

If anyone has anymore examples I would find that extremely useful

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/133174-using-tags-in-php/#findComment-692610
Share on other sites

you probably can use your current search function you have with some minor changes, and make a text file or something, where you can store tags and links for the tags that users have input when searching. Then use the tags to do what is on garrysmod website.

Link to comment
https://forums.phpfreaks.com/topic/133174-using-tags-in-php/#findComment-692616
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.