Title: funlab's Replies | WordPress.org

---

# funlab

  [  ](https://wordpress.org/support/users/funlab/)

 *   [Profile](https://wordpress.org/support/users/funlab/)
 *   [Topics Started](https://wordpress.org/support/users/funlab/topics/)
 *   [Replies Created](https://wordpress.org/support/users/funlab/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/funlab/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/funlab/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/funlab/engagements/)
 *   [Favorites](https://wordpress.org/support/users/funlab/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/users/funlab/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/funlab/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Query Wrangler] Image/Attachment URL](https://wordpress.org/support/topic/imageattachment-url/)
 *  [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/imageattachment-url/#post-8496942)
 * I just did that!
    After struggling a while, I came up with a somewhat easy solution.
   Just added the code below at includes/fields/featured_image.php. But then this
   is no good if f I’m to update the plugin in the future, so I guess there might
   be a better place to add the code, like in your theme, or in the theme-customisations-
   master plugin, but I don’t really know how to make sure it’s loaded on time… 
   The code just duplicates the featured image field code, but replacing wp_get_attachment_image
   with wp_get_attachment_image_src:
 *     ```
       add_filter( 'qw_fields', 'qw_field_featured_image_url' );
       /*
        * Add field to qw_fields
        */
       function qw_field_featured_image_url( $fields ) {
   
       	$fields['featured_image_url'] = array(
       		'title'            => 'Featured Image URL',
       		'description'      => 'The "post_thumbnail" URL of a given row.',
       		'output_callback'  => 'qw_theme_featured_image_url',
       		'output_arguments' => TRUE,
       		'form_callback'    => 'qw_field_featured_image_url_form',
       	);
   
       	return $fields;
       }
       /*
        * Image attachment URL settings Form
        */
       function qw_field_featured_image_url_form( $field ) {
       	//$image_styles = _qw_get_image_styles();
       	$image_styles = get_intermediate_image_sizes();
       	?>
       	<p>
       		<label class="qw-label">Image Display Style:</label>
       		<select class='qw-js-title'
       		        name='<?php print $field['form_prefix']; ?>[image_display_style]'>
       			<?php
       			foreach ( $image_styles as $key => $style ) {
       				$style_selected = ( $field['values']['image_display_style'] == $style ) ? 'selected="selected"' : '';
       				?>
       				<option
       					value="<?php print $style; ?>" <?php print $style_selected; ?>><?php print $style; ?></option>
       			<?php
       			}
       			?>
       		</select>
       	</p>
       <?php
       }
   
       /*
        * Return the images URL
        *
        * @param $post
        * @param $field
        */
       function qw_theme_featured_image_url( $post, $field ) {
       	$style = $field['image_display_style'];
       	if ( has_post_thumbnail( $post->ID ) ) {
       		$image_id = get_post_thumbnail_id( $post->ID, $style );
       		return wp_get_attachment_image_src( $image_id, $style )[0];
       	}
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photonic Gallery & Lightbox for Flickr, SmugMug & Others] Instagram Photos random, not from my account?](https://wordpress.org/support/topic/instagram-photos-random-not-from-my-account/)
 *  [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/instagram-photos-random-not-from-my-account/#post-4008792)
 * Same thing here !
    Otherwise it looks so good !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] Backslahes added > CSS broken](https://wordpress.org/support/topic/backslahes-added-css-broken/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/backslahes-added-css-broken/#post-3492336)
 * I just uploaded a fix on both trunk and 13.09 tag.
    It’s replacing line 86 of
   wp-live-css-editor.php:
 *  `$css = $_POST['css'];`
 *  with this:
 *  if (get_magic_quotes_gpc()) {
    $css = stripslashes($_POST[‘css’]); } else { 
   $css = $_POST[‘css’]; }
 * So far it’s working on wp 3.6 in my server without needing the replace functions.
   But let us know if it breaks !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] My production version](https://wordpress.org/support/topic/my-production-version/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/my-production-version/#post-3651092)
 * Man, that was awesome !
    I just updated the plugin with all your mods. I also
   put you up as contributor, so please feel free to take over if you are still 
   using it and have any more ideas. Feel free to edit the readme as you like. I
   didn’t keep up with the plugin’s life, been quite busy away from the nets, and
   I didn’t have any idea of the so many bugs, and that someone had actually fixed
   them. Pleasant surprise. Good job !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] two feature suggestions](https://wordpress.org/support/topic/plugin-wp-live-css-editor-two-feature-suggestions/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-two-feature-suggestions/#post-2241279)
 * thanks !!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] Edit CSS button is hidden](https://wordpress.org/support/topic/plugin-wp-live-css-editor-edit-css-button-is-hidden/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-edit-css-button-is-hidden/#post-2731942)
 * See last version of the plugin: [http://wordpress.org/support/topic/plugin-wp-live-css-editor-new-version?replies=1](http://wordpress.org/support/topic/plugin-wp-live-css-editor-new-version?replies=1)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] Live Editor Doesn't Check for Login Status??.](https://wordpress.org/support/topic/plugin-wp-live-css-editor-live-editor-doesnt-check-for-login-status/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-live-editor-doesnt-check-for-login-status/#post-2177829)
 * See last version of the plugin: [http://wordpress.org/support/topic/plugin-wp-live-css-editor-new-version?replies=1](http://wordpress.org/support/topic/plugin-wp-live-css-editor-new-version?replies=1)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] Live CSS editor: A big flop.](https://wordpress.org/support/topic/plugin-wp-live-css-editor-live-css-editor-a-big-flop/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-live-css-editor-a-big-flop/#post-2357205)
 * See last version of the plugin: [http://wordpress.org/support/topic/plugin-wp-live-css-editor-new-version?replies=1](http://wordpress.org/support/topic/plugin-wp-live-css-editor-new-version?replies=1)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] Broken, took down my website](https://wordpress.org/support/topic/plugin-wp-live-css-editor-broken-took-down-my-website/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-broken-took-down-my-website/#post-2782640)
 * Hi ivegte ! just a quick answer I hope that’s it ! As I said in the description
   of the plugin:
    You may need to fix a ?bug? in wp-includes/capabilities.php, 
   inserting the following line at the begining:
 * require_once(‘pluggable.php’);
 * See this thread about it: [http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-4?replies=32](http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-4?replies=32)
 * Can you tell me if that solves it?
    In any case, I’m happy you could fix it by
   erasing the plugin files ! I’d like to make sure whether tha bug I tell you is
   the issue, but I won’t ask you to reinstall it to test it. But if you did and
   could see the error message, it would be a great help. It’s already 3 people 
   with the same situation, I might have to bring down the plugin or paint a huge
   WARNING: UNSTABLE sign on it !!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] Edit CSS button is hidden](https://wordpress.org/support/topic/plugin-wp-live-css-editor-edit-css-button-is-hidden/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-edit-css-button-is-hidden/#post-2731939)
 * Hi Simon ! just a quick answer I hope that’s it ! As I said in the description
   of the plugin:
    You may need to fix a ?bug? in wp-includes/capabilities.php, 
   inserting the following line at the begining:
 * require_once(‘pluggable.php’);
 * See this thread about it: [http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-4?replies=32](http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-4?replies=32)
 * Can you tell me if that solves it?
    (Or you may have to erase the plugin through
   FTP to make the site work again)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] It's BROKEN](https://wordpress.org/support/topic/plugin-wp-live-css-editor-its-broken/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-its-broken/#post-2772908)
 * Hi !
    docmurdock, sorry to hear that you had to restore your site from backup
   after using the plugin. I can’t understand how that could happen. Couldn’t you
   just erase the plugin files or disable it? I can’t see how it could actually “
   take down” the site, since it doesn’t change anything at all nor saves any config
   anywhere. And if you use it and save changes to the CSS with which you are not
   happy, it does backup your former CSS and you can restore those just by renaming
   them through any FTP program. I’d like to help you with the plugin if you still
   think it might be usefull for you. But I’d need to understand what exactly did
   go wrong. Can you explain what you mean with “saw no where that this plugin would
   be available for usage”. I have used it with 3.3.2 without trouble. (Other than
   the fix that zoonini -thankyou- kindly pointed out, which worked for me) Now,
   I don’t know if I understand you, but no CSS editor will “create” containers 
   or menus. It will just apply CSS styles on DOM elements, but not create things.
   What this plugin does is the same that you can do -among many other more brilliant
   things- with [firebug](https://addons.mozilla.org/en-US/firefox/addon/firebug/)
   or [Web Developer](https://addons.mozilla.org/en-US/firefox/addon/web-developer/)
   firefox extensions, that is, edit any CSS file that is loaded on your site, and
   see the changes live, with the only added benefit that it allows you to save 
   your changes on the fly. In Drupal there’s also the [sweaver module](http://drupal.org/project/sweaver),
   which does the same, but in an entirely graphical way -you choose the CSS selector
   by clicking on a breadcrumb trail, and then use the graphic interface to choose
   colors, change properties… Anyway, hope your site is doing well after the restore
   and that it didn’t take you much effort. Again, if I can help in anyway, I’d 
   be happy !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] Searching CSS](https://wordpress.org/support/topic/plugin-wp-live-css-editor-searching-css/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-searching-css/#post-2323202)
 * Hi !
    Sorry to answer so late ! The plugiin has just been updated and now it 
   uses ACE text editor, so yes, now search is enabled, thanks to guybedfords efforts.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] CSS Live edit Displays CSS as just 1 line](https://wordpress.org/support/topic/plugin-wp-live-css-editor-css-live-edit-displays-css-as-just-1-line/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-css-live-edit-displays-css-as-just-1-line/#post-2324592)
 * Sorry it took so long, and I could not help before. I’ve had a child that took
   up all my time -which made me very happy, actually. Now she’s 7 months I’ve managed
   to get close to a computer… so, the plugin is updated as by the original Drupal
   Module by guybedford. Most issues are solved now. You may want to check it out.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] How exactly do I enable "edit CSS"?](https://wordpress.org/support/topic/plugin-wp-live-css-editor-how-exactly-do-i-enable-edit-css/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-how-exactly-do-i-enable-edit-css/#post-2144522)
 * Hola !
    I just updated the plugin with the code from the original Drupal module
   by guybedford, and this solves almost all of the problems that have been pointed
   out. And also now the plugin is seen and used only by logged in administrators.
   Check it out !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Live CSS Editor] [Plugin: WP Live CSS Editor] Role and search issue](https://wordpress.org/support/topic/plugin-wp-live-css-editor-role-and-search-issue/)
 *  Plugin Author [funlab](https://wordpress.org/support/users/funlab/)
 * (@funlab)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-live-css-editor-role-and-search-issue/#post-2183779)
 * Finally 9 months later -my girl is only 7 months old, but you know the nest syndrome…
   
   I updated the plugin with guybedford’s code from the original Drupal module, 
   and found how to fix a bug in capabilities class, read the readme file for details,
   so now the plugin is only seen by logged in administrators, and I think all issues
   mentioned are solved. Need testing !

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/users/funlab/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/funlab/replies/page/2/?output_format=md)