Header Photo Info

Golden Gate Park, San Francisco
-- taken May 2008
.

View Steve Rogers's profile on LinkedIn

My status

ShoZu Share-It update

ShoZu

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

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

User login

Recent comments