Login   Register  
PHP Classes
elePHPant
Icontem

Category tags

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      RSS Feed Reader  >  All threads  >  Category tags  >  (Un) Subscribe thread alerts  
Subject:Category tags
Summary:Hack to get Category tags
Messages:2
Author:Ryan Bishop
Date:2009-07-26 12:43:38
Update:2009-07-26 13:01:39
 

  1. Category tags   Reply  
Picture of Ryan Bishop
Ryan Bishop
2009-07-26 12:43:38
great and simple parser :)

Added this at line 129 to pull category tags.

$this->output[$this->counter]['category'][] = $item->category;

stores all category tags for an item in an array.

  2. Re: Category tags   Reply  
Picture of Ryan Bishop
Ryan Bishop
2009-07-26 13:01:39 - In reply to message 1 from Ryan Bishop
edit - that didn't work. only stored the first category with the simple xml parser. had to use the regular xml parser and add these lines.

line 266:

case "CATEGORY":
$this->category .= $data;
break;

line 291:
$this->output[$this->counter]['category'] = trim($this->category);

* basically just asks the xml parser to look for another tag. you can have it look for any tag you want by updating the lines above.