ShoZu Share-It update
I have been testing a few updates to my Share-It plug-in, first to make sure that if I created another user account and blogged to that it still worked OK , which it does.
And secondly I have now added an Admin menu option to allow the definition of the width and height of the image that is added to the blog entry. The admin setting will only affect new uploads as it is used to resize the original upload when it is received, but this also seems to work OK.
Update
I have now managed to add 'tags' to entry uploads, although currently I am not sure why I had to create the first array item as a blank, so that all terms had a revision of 1??. I will post a full query about this in a separate entry when I have the time. But a code snippet is show below.
$terms = array(
'tags'=> array('',$categories), // not sure why this is needed??
);
taxonomy_node_save($node->nid,$terms);
where $categories is a comma separated list of the passed keywords. Not sure why I need the blank array element to get the vid to be 1, but probably my misunderstanding of how this works.
Post new comment