tags

Implementing tags on Google App Engine

I've read the similar question on adding tags to a Django Blog model, where it mentions maintaining tags on the article as a StringList and a separate object to keep a count of these objects, which is good because I'd basically come up with the same idea myself, however I'm struggling to work how how to maintain the count. I'm overridin...

ajax get anchor tag name

i have a href like this: <a href="images/prevFeb-1.jpg" name="day-1" onclick="swap(this); return false;"> <img src="images/thumbFeb-1.jpg" width="50" height="50" alt="" title="thumbFeb-1.jpg" /> </a> when the user clicks on a thumbnail, the images get swap. i will like to get the href name upon on click. and i will explode("-",$href...

How to show related content using like in mysql?

I currently have a table for products with it's own set of tags and a table for news with it's own set of tags. I wanted to add related news to the products page so I was thinking of using like but since the column tags in the products page is something like (Products) tags- manutd, man utd, football (news) tags - manutd, blah, bruha ...

ajax get hrf anchor tag jquery

here is my code below. i have a lists of thumbnail images. when the user click a small thumbnail image, it swaps it to show the full image. i have been trying to get the anchor tag name so that, i can explode the value "i". but i get no luck, any ideas? many thanks! my javascript function swap(image) { document.getElemen...

How to enable PHP short tags ?

I have a web application on a Linux server which starts with <? I needed to copy this application to a windows environment and everything is working fine except that an SQL statement is being rendered differently. I don't know if this has to do with the script beginning with <?php instead of <? because I don't know from where to enable ...

How do I structure a SELECT query for the following...

Hoping that someone here will be able to provide some mysql advice... I am working on a categorical searchtag system. I have tables like the following: EXERCISES exerciseID exerciseTitle SEARCHTAGS searchtagID parentID ( -> searchtagID) searchtag EXERCISESEARCHTAGS exerciseID (Foreign key -> EXERCISES) se...

Adding a tag cloud to an OpenCMS website

Hi! I'm working on an intranet website based on OpenCMS and I'd like to include a tag cloud to the site. I've found some opensource tagcloud java libraries (like OpenCloud). Do you have any experience with wiring those two (or other tagcloud libraries+OpenCMS) together? ...

Sphinx search engine and related tags

I'm using Sphinx search engine to index all my Intranet documents using tags. With that I don't have any trouble to find specific documents with one ore more tags. I want to go further with a new feature like the StackOverflow "related tags" feature. Does anybody know the best way to do this with Sphinx ? Thanks ...

jquery append element from string + do not close tags properly

Hello, I have the following string elements that i want to append to the DOM, but in IE the tags do no close. Example: $("#accordion").append('<div id="mydiv" class="sortme">bla bla bla</div><div id="panel" class="accordionPanel"></div>'); After IE render it the div elements for instance are rendered without closing tag. It was suppo...

How to use Django templatetags in static media files?

Hi, Im using a flash gallery and the settings xml file is stored in /media/xml/gallery.xml In the gallery.xml file I want to add this snippet of code: <items> {% for image in images %} <item source="{{ MEDIA_URL }}{{ image.image }}" thumb="" description="{{ image.title }}" /> {% endfor %} </item> But the source="... rend...

How to tag and categorize Life, the Universe, and Everything?

Jokes aside, I am trying to build a tag hierarchy for a library of icons that could contain potentially anything. The problem is how to make clear and simple hierarchy of (most) objects? I am not trying to make super specific categories, just to help users with searching (if I can narrow down 10k icons into categories of 100s that should...

How to add attribute to first P tag using PHP regular expression?

WordPress spits posts in this format: <h2>Some header</h> <p>First paragraph of the post</p> <p>Second paragraph of the post</p> etc. To get my cool styling on the first paragraph (it's one of those things that looks good only sparingly) I need to hook into the get_posts function to filter its output with a preg_replace. The goal is ...

avoiding tag misspellings an erroneous tag data

I'm working on implementing a tagging system in my application. I've been reading some of the other questions on SO about database schemas used to implement tags and they've been very helpful, but I havent' found any that talk about how to combat tag spelling errors and things. So if two people enter the same tag but they are spelled ...

How to retrieve attributes of xml tag in Python?

hello I'm looking for a way to add attributes to xml tags in python. Or to create a new tag with a new attributes for example, I have the following xml file: <types name='character' shortName='chrs'> .... ... </types> and i want to add an attribute to make it look like this: <types name='character' shortName='chrs' fullName='MayaCh...

Find and Store (Regex, PHP)

I'm grabbing a list of tags used on a post with the $posttags array. In this there's a special tag that I want to store separately: profile-somename. How do I: Find this special profile-somename tag from the list (The value after profile- is dynamic, keeps changing, somename is just an example) Strip profile- from it and Store in a ...

Is it possible to use different tags files for omnicomplete and general tag browsing in Vim?

Hi, I've been using ctags in Vim for years, but I've only just discovered omnicomplete. (It seems good.) However, I have a problem: to get omnicomplete working properly I have to use the --extra=+q option when generating the tags, which is fine, but this then changes the behaviour of general tag browsing in ways that I do not like. F...

SVN find revision of tag

Is there any way of showing which revision is equivalent to a certain tag? ...

Which browsers support the <embed> and <object> tags?

I am working on a department website that needs to be standards compliant (xhtml 1.0 transitional), but embedded flash keeps breaking the validation. We use the <embed> tag because we need to support most major browsers. We can't use external tools, since the site is managed through a system and the admins don't like us putting extra to...

Handling tags like categories?

Hello! I want to use tags in my site. How to handle the tags most efficiently? Is it OK to put every tag in a table (like categories) and than in the post just reference them with their id? (like in wordpress) ...

jquery , selector

Hi , I have a quick question about jquery .. I want to find < a > tag witch has some text. For ex my HTML : <a href="#">A</a> <a href="#">B</a> <a href="#">C</a> <a href="#">D</a> And I want to find for ex the tag what has text "A" . PS: In my logic it is something like this $("a").text("A").css("background", ...