Pligg auto tagging script.

Register an Account
Closed Thread
 
Thread Tools Display Modes
  #31 (permalink)  
Old 05-09-2008, 03:37 PM
Casual Pligger
 
Join Date: Apr 2008
Posts: 48
Quote:
Originally Posted by xenfra View Post
I have found some feed with tags and i import them.
with the other feed I import feed_category in pligg_tags and it work great: in story there is almost a 1 tag.
But the tags that I import don't work with tag cloud.
somebody know why?
The reason it doesn't work is because when RSS_Import imports the tags, it does not have methods in place to separate the tags by themselves, so what happens (depending on the feed) is the tags either become one word (with no spaces) or become one entire tag with spaces.

I initially thought this would be easy to fix, but I have found it difficult to figure out how the import script works exactly. There doesn't seem to be a *middle man* through the whole process, so the only way to do it would be to auto detect it *hack* in link.php (strpos the tag field for spaces and strlen for more than a certain amount of characters) and then explode/impode the tags with commas... But even this is not fail proof... I don't know if there is a solid solution.
  #32 (permalink)  
Old 01-10-2009, 05:45 AM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Jan 2009
Posts: 10
Quote:
Originally Posted by na3s View Post
The reason it doesn't work is because when RSS_Import imports the tags, it does not have methods in place to separate the tags by themselves, so what happens (depending on the feed) is the tags either become one word (with no spaces) or become one entire tag with spaces.

I initially thought this would be easy to fix, but I have found it difficult to figure out how the import script works exactly. There doesn't seem to be a *middle man* through the whole process, so the only way to do it would be to auto detect it *hack* in link.php (strpos the tag field for spaces and strlen for more than a certain amount of characters) and then explode/impode the tags with commas... But even this is not fail proof... I don't know if there is a solid solution.
Ok, so I've been playing with Yahoo pipes to import RSS (still testing cron btw!) and I have a pipe setup to basically truncate entries to 250 chars on my site. Having seen how it works on Yahoo and reading the thread here, it may be possible to use pipes for a solution?

My idea is to have pipes extract each word from the title in each post and turn these into the tags for that particular imported item. Based on how the current 'tuncator' pipe works, it looks like it is possible to add in spaces, commas, other seperators to a field in a feed?

Anyway, the reason for writing this is that getting some help on pipes would be grand :-)

This is my 'truncator' pipe which may be a good starting point?

http://pipes.yahoo.com/pipes/pipe.info?_id=23ff986feea047aa9dd5646492acf1d5

I've also found another pipe which pulls the delicious tags from any url given to it, which might also work, although I guess it will need popular urls to suggest tags from, otherwise delicious won't make any suggestions? This pipe is here btw

Pipes: delicious tag extractor
  #33 (permalink)  
Old 01-10-2009, 06:08 PM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Jan 2009
Posts: 10
Quote:
Originally Posted by 3ruce View Post
Ok, so I've been playing with Yahoo pipes to import RSS
Based on the above, the following yahoo pipe attempts to take a feed from newsgator and prep it for pligg. The idea is to;

* truncate content of each post to 250 chars
* automatically add tags

The results so far are at Pipes: Shorten stories + lower case tags + tags - common words

While the pipe seems to add tags to each new story, they don't (yet!) appear in the tag cloud?

e.g.

Dig for Leadership - John Chambers, CEO of Cisco at MIT on Enterprise 2.0
  #34 (permalink)  
Old 01-10-2009, 06:10 PM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Jan 2009
Posts: 10
Quote:
Originally Posted by na3s View Post
then explode/impode the tags with commas... But even this is not fail proof... I don't know if there is a solid solution.
I've added commas to m tags at Pipes: Shorten stories + lower case tags + tags - common words but they don't show in the tag cloud, only on story pages themselves?!?

e.g.

Dig for Leadership - The business partner model: 10 years on - Lessons learned

Any ideas people?
  #35 (permalink)  
Old 03-07-2011, 01:39 PM
gnrsu's Avatar
Casual Pligger
Pligg Version: 1.2.0
 
Join Date: Jul 2010
Location: CHINA
Posts: 41
Send a message via Skype™ to gnrsu
but where is the script.?
  #36 (permalink)  
Old 03-07-2011, 05:19 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Quote:
Originally Posted by gnrsu View Post
but where is the script.?
This thread is 2 years old. Closing it.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg integration with SMF Forum autoinc Questions and Comments 66 08-27-2010 04:04 AM
I'm looking for : Auto Sitemaps for pligg l2aelba Questions and Comments 12 10-23-2009 02:46 PM
Pligg Donation Drive 2009 chuckroast Questions and Comments 0 03-23-2009 05:42 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development