I\’ve been screwing around with your widgets again.
I\’ve modified the tag widget to display checkboxes instead of the text field, based on a widget setting. It works on my installation, but of course you can test scenarios I haven\’t thought of…. here\’s the modified tag widget file.
Hey, I’ve had a go with this one and initial thoughts are it looks good – I’m going to give it some modification to get a dropdown instead of checkboxes (the list of tags on most blogs is monstrous!) and also to alphabetize this list – currently they’re coming out in order the tag was created (I think!).
Thanks for the easy starting point – I’ll be sure to put up any changes I make here.
Because I can’t get a dropdown at all! To be honest, I can’t figure out how to get a dropdown instead of or in addition to the checkboxes, and I can’t get the tags to sort alphabetically. It would be great to get the following: a dropdown list of all tags in my wordpress install which is sorted alphabetically.
I want users to be able to choose one from my predefined list of tags which is quite lengthy – hence a dropdown prevents the page from being 1,000 miles long! I just can’t seem to get this working – at first glance it seemed straightforward, but I figure it would be easier for you since you did the original work!
I’m prepard to make a decent donation too for this, as it would make my life much simpler
When you think about a new upload widget, why not include a connection with the Download-Manager-Plugin? We hacked TDMOF a little for that with that code in /include/tdomf-upload-functions.php Line 559:
// Start: Integration with Download Manager
$_file_path = str_replace('//', '/', strstr($newpath, '/wp-content/uploads/'));
$_file_path = str_replace('/wp-content/uploads/', '/', $_file_path);
$_file_size = filesize($newpath);
$_file_name = $theirfiles[$i]['name'];
tdomf_log_message( "SQL: INSERT INTO $wpdb->downloads VALUES (0, '$_file_path', '$_file_name', '', '$_file_size', 0, CURDATE(), CURDATE() , NULL , 0, 0)");
$_dbok = $wpdb->query("INSERT INTO $wpdb->downloads VALUES (0, '$_file_path', '$_file_name', '', '$_file_size', 0, CURDATE(), CURDATE() , CURDATE() , 0, 0)");
$_file_id = mysql_insert_id();
if ($_dbok) {
$modifypost = true;
$content .= '[download id="' . $_file_id . '"]';
if (!preg_match('/(\.mp3)|(\.wmv)|(\.3gp)|(\.mov)|(\.flv)|(\.avi)|(\.mp4)$/i', $_file_name)) $options['a'] = false;
}
// End: Integration with Download Manager
It’s just for our needs, but maybe it inspires you…
just curios, if you could add support for an advanced taxonomy plugin, I’ll give you some links as an example:
http://wordpress.org/extend/plugins/custom-taxonomies/
http://wordpress.org/extend/plugins/custom-field-taxonomies/
http://wordpress.org/extend/plugins/simple-taxonomies/
http://wordpress.org/extend/plugins/gd-taxonomies-tools/
I am interested in this because I am building a site where visitors are able to submit events. All events go into the events category and I’d like to create a custom taxonomy instead of using tags, like this:
taxonomy: Music, contains: live, rock, pop, etc.
and so on… this could be achieved with one of the above plugins, but I am unsure how to integrate them into the form. so if possible, give me some hints
anyone done somethign similar?
Mark Cunningham
Administrator
December 18th, 2008 at 10:00 am
Cool. I’ll have a proper look though the code after christmass.
The Tag widget is one area that could do with a lot of work. I’d like to be able let users select specific tags that are displayed and then use similar options to categories, I’d also like to incorporate the “tag suggest” feature that is now in WP2.7 as well. Hopefully I’ll get round to it in the new year!
Permalink | Quote