Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: wolfetundra on February 12, 2012, 11:04:43 PM

Title: Search Tags
Post by: wolfetundra on February 12, 2012, 11:04:43 PM
I am currently using Tagging System (http://mods.simplemachines.org/index.php?mod=579). However, there's no "search" feature and that's what I'm trying to achieve.

I've looked at possibly using sql but I'm not sure how to do that. There's 2 tables that hold the data for Tags. Those are tags and tags_log. "tags" has "id_tag" (the number associated with the tag) and "tag" (the actual name of the tag). "tags_log" has "id" (the placement within the log), "id_tag" (associated with "tags" table) and "id_topic" (the topic the tag is associated with). I want to have it search so the results show similar to "google" does. I would prefer the "topic title" and some of the body is shown in the results, but I'd be happy with just the title showing.