frankindelicato
Forum Replies Created
-
Forum: Requests and Feedback
In reply to: Feature Request: REST APIYes, would be useful!!
Thank you for solving the focus problem in the widget and it works on Mac. The title field was still being replaced by whatever app_id you put in. (ie., Set up the title and the app_id in the widget and then edit the widget and the app_id will show up as the title). I think I fixed that by changing in your fields array:
array( 'name' => 'App ID', 'desc' => '', 'id' => 'title', 'type' => 'text', 'default' => '', 'desc' => '<a href="https://developers.facebook.com/apps/" target="_blank">Get an App ID</a>' ),To:
array( 'name' => 'App ID', 'desc' => '', 'id' => 'app_id', 'type' => 'text', 'default' => '', 'desc' => '<a href="https://developers.facebook.com/apps/" target="_blank">Get an App ID</a>' ),Really like the Plugin!!! Thank you.
Thank you very much. I will download the new version tomorrow and test it. Since you do not have a Mac if the focus problem in the widget still exists I will go ahead and fix it and let you know what I find. Other than these beta problems the plugin is great! Thank you for taking the time to write it and make it available to everyone.
I am using Mac Safari Version 5.1.7 (6534.57.2)
Thank you. Also, when you click on the app_id field to put in the app_id the focus goes to the title field preventing you from putting it in.
Forum: Hacks
In reply to: Fix for bug in wp_get_attachment_thumb_fileI dont understand your question.
wp_get_attachment_thumb_urlreturns the http urlwp_get_attachment_thumb_filereturns the file path on the server. Is that what you are asking?Forum: Hacks
In reply to: A "do stuff with this picture" link in the Media Galleryjohngorenfeld,
I am just modifying the Edit Media page by adding fields to it that I save in a database so my HREF just goes to the Edit Media page and I pass an extra argument to let the page know to set up and save my fields:$extra='&myfield=true'; $newaction['adddata'] = '<a href="' . get_edit_post_link($post->ID, true) . $extra . '" title="Add to Database" rel="permalink">' . __('Add to Database') . '</a>';I check for the extra argument in the $_GET array and if it is present I add the extra fields using a filter:
add_filter('attachment_fields_to_edit', 'cm_fields_to_edit',10,2);I hope that helps you out…
Forum: Hacks
In reply to: A "do stuff with this picture" link in the Media GalleryOk. You have to specify the priority and number of args in the add_filter function:
add_filter('media_row_actions', 'add_media_action',10,2);
and now the link in the action can be put in so the ID of the media will be passed.
$newaction['adddata'] = '<a href="' . get_permalink($post->ID) . '" title="Add To Database" rel="permalink">' . __('Add To Database') . '</a>';Forum: Hacks
In reply to: A "do stuff with this picture" link in the Media GalleryI am researching the media_row_actions filter and have added a “Add to Database” link.
The problem I am having is understanding the arguments passed by the filter code. I set up the following:add_filter('media_row_actions', 'add_media_action'); function add_media_action( $actions, $post ) { $newaction['adddata'] = '<a href="" title="Add To Database" rel="permalink">' . __('Add To Database') . '</a>'; return array_merge($actions,$newaction); }The call for the filter is in wp-admin/upload.php on line 429:
$actions = apply_filters( 'media_row_actions', $actions, $post );I assumed when my filter was called that it would be passed $actions and $post but I get an error when I use the $post field in the add_media_action function. Any ideas on how this works?
Forum: Fixing WordPress
In reply to: using current_filterSorry, the above was worded wrong. I have searched the forums and looked at the WordPress code that uses the function current_filter() but when I call it nothing is returned. I need to know which action/filter hook is currently active as I am trying to debug two plugins that I am developing. As background info: I have a PHP call to strip_tags() that allows user defined HTML tags. When the tag
- is stripped I get multiple action/filter callbacks to my plugins. When the
- tag is NOT stripped the multiple action/filter callbacks stop. Very weird! Something may be getting corrupted. I would like to know which action/filter is currently active to help in debugging.
Forum: Networking WordPress
In reply to: Tools Network Menu with Old MUThanks Andrea_r, I will read the wpmututorials you posted and give it all another try. Thanks for your response.
Forum: Installing WordPress
In reply to: 3.01 Subdomain problemsipstenu,
I do not understand your question. My understanding is that a separate copy of wordpress must be installed for each subdomain. Then you set up multisite to include each subdomain. Is that incorrect?
batrachoid,
Yes, that is what I have. The subdomain directory is inside the root of the main multisite directory. So I need to create a directory outside of the multisite root?Forum: Installing WordPress
In reply to: 3.01 Subdomain problemsJames,
Thank you for your response. I installed it as a folder in the root of the wordpress-mu (now version 3.01) directory. Do I need to have the directory outside of the wordpress-mu directory?Forum: Themes and Templates
In reply to: Edit RSS WidgetIn the file wp-includes/default-widgets.php in the function wp_widget_rss_output towards the bottom of the function is the line:
echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";change that line by adding the target=’_blank’ so it look like this:
echo "<li><a class='rsswidget' href='$link' target='_blank' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";And all your RSS links with open in their own window. The line in your initial post where you modified
$title =may have been causing why it did not work for you.Forum: Fixing WordPress
In reply to: Possible Fix for Sticky Problems in function &get_posts()Yes, I tested it and it works fine. It did not make a difference whether I used is_frontpage or is_home in your code. I learned a lot about WordPress in this exercise. Thank you.