Title: roffel's Replies | WordPress.org

---

# roffel

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More] From https:// to localhost > paths/url Google Embed Links not working](https://wordpress.org/support/topic/from-https-to-localhost-paths-url-google-embed-links-not-working/)
 *  Thread Starter [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/from-https-to-localhost-paths-url-google-embed-links-not-working/#post-10413410)
 * Cory,
 * Thank you. I have sent a ticket and you responded very quickly. Now waiting for
   the bugfix that will come next week… just great!
 * Thanks again, keep up the good work!
 * Cheers,
 * Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Lightbox & Gallery] Doesn't work properly on mobile](https://wordpress.org/support/topic/doesnt-work-properly-on-mobile/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/doesnt-work-properly-on-mobile/page/2/#post-5329249)
 *     ```
       //Custom Gallery Output
   
       add_filter('post_gallery', 'my_post_gallery', 10, 2);
       function my_post_gallery($output, $attr) {
           global $post;
   
           if (isset($attr['orderby'])) {
               $attr['orderby'] = sanitize_sql_orderby($attr['orderby']);
               if (!$attr['orderby'])
                   unset($attr['orderby']);
           }
   
           extract(shortcode_atts(array(
               'order' => 'ASC',
               'orderby' => 'menu_order ID',
               'id' => $post->ID,
               'itemtag' => 'dl',
               'icontag' => 'dt',
               'captiontag' => 'dd',
               'columns' => 3,
               'size' => 'thumbnail',
               'include' => '',
               'exclude' => ''
           ), $attr));
   
           $id = intval($id);
           if ('RAND' == $order) $orderby = 'none';
   
           if (!empty($include)) {
               $include = preg_replace('/[^0-9,]+/', '', $include);
               $_attachments = get_posts(array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby));
   
               $attachments = array();
               foreach ($_attachments as $key => $val) {
                   $attachments[$val->ID] = $_attachments[$key];
               }
           }
   
           if (empty($attachments)) return '';
   
           // Here's your actual output, you may customize it to your need
           //$output = "<div class=\"slideshow-wrapper\">\n";
           //$output .= "<div class=\"preloader\"></div>\n";
           //$output .= "<ul data-orbit>\n";
   
           // Now you loop through each attachment
           foreach ($attachments as $id => $attachment) {
               // Fetch the thumbnail (or full image, it's up to you)
       //      $img = wp_get_attachment_image_src($id, 'medium');
       //      $img = wp_get_attachment_image_src($id, 'my-custom-image-size');
               $img1 = wp_get_attachment_image_src($id, 'large');
               $img = wp_get_attachment_image_src($id, 'thumbnail');
   
               //$output .= "<li>\n";
   
               $output .= "<div class=\"col-xs-4 col-md-3\">\n";
               $output .= "<div class=\"box-gallery-thumbnail\">\n";
   
               $output .= "<a href=\"$img1[0]\" class=\"swipebox fade\" title=\"myCaption\"><img src=\"{$img[0]}\" alt=\"image\" /></a>\n";
               //$output .= "</li>\n";
   
               $output .= "</div>\n";
               $output .= "</div>\n";
   
           }
   
           //$output .= "</ul>\n";
           //$output .= "</div>\n";
   
           return $output;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Lightbox & Gallery] Doesn't work properly on mobile](https://wordpress.org/support/topic/doesnt-work-properly-on-mobile/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/doesnt-work-properly-on-mobile/page/2/#post-5329248)
 * [@dfactory](https://wordpress.org/support/users/dfactory/), yes, I understand
   that! Thanks for the reply. You could mention in your plugin, SwipeBox is not
   fully supported? Or that it is broken… 😉
 * I’m not a die hard programmer. But isnt’t it possible to attach an extra jQuery
   only used for the SwipeBox scripts?
 * [@squazz](https://wordpress.org/support/users/squazz/): I could write a complete
   tutorial about it… 😉
 * It comes down to the following (Google the sentences below!):
 * 1. Deregister WordPress jQuery (THIS MIGHT BREAK OTHER PLUGINS). Use Google’s
   latest jQuery with WordPress. Or enqueue your own.
    2. Read Swipebox instructions.
   2. Enqueue Javascripts and CSS from Swipebox. 3. Add a filter to your WordPress
   gallery output, so you can use the Gallery function with your photo’s and add
   the right classes SwipeBox needs. It’s something like this: add_filter(‘post_gallery’,
   etcetera (see below). SwipeBox is picky, so use exactly the right markup (that
   part took me some time). 4. Enjoy your work!
 * Any thoughts and feedback comments are appreciated.
 * Cheers!
 * Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Lightbox & Gallery] Doesn't work properly on mobile](https://wordpress.org/support/topic/doesnt-work-properly-on-mobile/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/doesnt-work-properly-on-mobile/#post-5329245)
 * Hi!
 * Indeed. It is a shame. Good plugin. But not anymore. At least, for me… I waited
   for two weeks for a solution and then decided to not bother my client any longer.
 * I tried the following:
    Used jQuery latest version (hosted by Google / with jQuery
   updater plugin) and put the most recent Swipebox files in the dFactory plugin
   directories. Did not work. The whole thing broke apart.
 * Then I tried the following:
    Deleted the dFactory plugin (shame!). Again used
   the latest jQuery version (I have a simple website so this action doesn’t break
   anything for me). Then I implemented the jQuery plugin manually. That did work.
   I tried it on a lot of devices and I am happy. Of course, you need to do it all
   yourself, but you get ‘more freedom’ as well. You can see the results here: [http://www.ericvanlokven.com/](http://www.ericvanlokven.com/)(
   Swipebox is working on underlaying pages).
 * Cheers,
 * Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Lightbox & Gallery] Doesn't work properly on mobile](https://wordpress.org/support/topic/doesnt-work-properly-on-mobile/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/doesnt-work-properly-on-mobile/#post-5329241)
 * Hi,
 * Thanks for this plugin. But it’s not as good as it was… It’s basically useless
   now. Having the same problems mentioned above.
 * The Swipebox is not working on most mobile devices (old version of iPad worked,
   on new version of iPad it’s not working anymore). Iphone and Android: the same.
 * Swipebox jQuery plugin (used by dFactory’s plugin) needs an update, but WP jQuery
   version is not working with newest version of this jQuery plugin. dFactory’s 
   forum shows a lot of people having the same problem.
 * Is there a (detailed and well explained) fix for this? Untill WordPress updates
   jQuery that would be nice. Squazz post is not exactly clear to me. Could you 
   tell me a bit more? Where to put the code, for example?
 * Otherwise I have to implement the Swipebox into WP itself. Using a jQuery update
   plugin, for example. That should work..?
 * Any ideas? Suggestions?
 * I’d love to use this plugin.. if I can make it to work again..
 * Cheers,
 * Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Black Studio TinyMCE Widget] Visual & Text tabs displaying blank/empty after saving edits to content](https://wordpress.org/support/topic/visual-text-tabs-displaying-blankempty-after-saving-edits-to-content/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/visual-text-tabs-displaying-blankempty-after-saving-edits-to-content/#post-5442036)
 * Marco,
 * Okay, thanks again! Really nice..
 * Cheers,
 * Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Black Studio TinyMCE Widget] Visual & Text tabs displaying blank/empty after saving edits to content](https://wordpress.org/support/topic/visual-text-tabs-displaying-blankempty-after-saving-edits-to-content/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/visual-text-tabs-displaying-blankempty-after-saving-edits-to-content/#post-5442010)
 * Marco,
 * Thanks for the reply. I downloaded and installed the new dev version and it works!
   Great man!
 * Maybe it is good to know I also tested it on another WP install (with a couple
   of different plugins installed, like Contact Form 7) and there the problems didn’t
   occur (just like you tested it).
 * BTW: do I have to install the original Plugin folder or can I just rename your
   dev version when I like to update your plugin?
 * Again, really appreciate your help! Keep up the good work!
 * Cheers,
 * Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Black Studio TinyMCE Widget] Visual & Text tabs displaying blank/empty after saving edits to content](https://wordpress.org/support/topic/visual-text-tabs-displaying-blankempty-after-saving-edits-to-content/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/visual-text-tabs-displaying-blankempty-after-saving-edits-to-content/#post-5441995)
 * Marco,
 * Thanks for the reply. Did you try it on a Mac? On a PC it seems to work fine..
 * Below my output copied from the console (Safari/Mac):
 * [Error] TypeError: ‘undefined’ is not an object (evaluating ‘a.createRange’)
   
   getRng (wp-tinymce.php, line 6) getNode (wp-tinymce.php, line 6) (anonieme functie)(
   wp-tinymce.php, line 54) r (wp-tinymce.php, line 8) fire (wp-tinymce.php, line
   9) setContent (wp-tinymce.php, line 10) update_content (black-studio-tinymce-
   widget.min.js, line 2) deactivate (black-studio-tinymce-widget.min.js, line 2)(
   anonieme functie) (black-studio-tinymce-widget.min.js, line 2) dispatch (load-
   scripts.php, line 3) handle (load-scripts.php, line 3) trigger (load-scripts.
   php, line 3) trigger (load-scripts.php, line 8) (anonieme functie) (load-scripts.
   php, line 3) each (load-scripts.php, line 2) each (load-scripts.php, line 2) 
   trigger (load-scripts.php, line 3) (anonieme functie) (load-scripts.php, line
   28) j (load-scripts.php, line 2) fireWith (load-scripts.php, line 2) x (load-
   scripts.php, line 4) b (load-scripts.php, line 4)
 * —
 * It’s magic for me, but maybe it helps you solve the issue!
 * Cheers!
 * Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Black Studio TinyMCE Widget] Visual & Text tabs displaying blank/empty after saving edits to content](https://wordpress.org/support/topic/visual-text-tabs-displaying-blankempty-after-saving-edits-to-content/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/visual-text-tabs-displaying-blankempty-after-saving-edits-to-content/#post-5441959)
 * Hi!
 * I’m having exactly the same problem. I can only save it in Chrome when in text-
   mode (on a Mac)
 * Great plugin, love it! It’s in my standard toolkit for building websites too…
 * Hope this is solved shortly, though!
 * Keep up the good work, this seems to be a minor problem (important minor problem…).
 * Cheers, Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Ultimate CSV Importer – Import CSV, XML & Excel into WordPress] Order](https://wordpress.org/support/topic/order-5/)
 *  Thread Starter [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/order-5/#post-4574614)
 * Cool, thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapse-O-Matic] Pro Version – Update Forbidden](https://wordpress.org/support/topic/pro-version-update-forbidden/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/pro-version-update-forbidden/#post-4567133)
 * Hello!
 * Same problem here. I’m on WP 3.8.1 and paid for the PRO version.
 * Message:
 * Downloading update from [http://plugins.twinpictures.de/wp-content/uploads/edd/2013/11/collapse-pro-matic-v1.0.2.zip…](http://plugins.twinpictures.de/wp-content/uploads/edd/2013/11/collapse-pro-matic-v1.0.2.zip…)
 * Download failed. Forbidden
 * —
 * Since we pay for this plugin, it would be great if this could be fixed!
 * Thanks!
 * Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Woocommerce CSV importer] Won't Show Images](https://wordpress.org/support/topic/wont-show-images/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wont-show-images/#post-3981513)
 * AND, don’t put your csv-file in your csvimport-folder. It will not upload in 
   that case. (See previous comment)
 * AND, when importing 250 products I have to split up the importfile. I can only
   get “5 rounds with 25 rows” in it. Then it stops.
 * AND, AND, AND.. but finally it works..
 * When you like to tweak and improvise I would certainly recommend this plugin.
   Otherwise, not.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Woocommerce CSV importer] Won't Show Images](https://wordpress.org/support/topic/wont-show-images/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wont-show-images/#post-3981512)
 * Poh, i feel your frustration.
 * Thanks for the free plugin Allaerd, but it needs some tweaking to let it work.
   This is how I (eventually) could make the image part work:
 * -Create a folder in your ‘uploads’ folder: ‘csvimport’. Otherwise you have a 
   permissions problem (on my local Wamp/Windows setup).
 * -Put your images (and csvimport.csv file) in that same csvimport-folder.
 * -In your csvimport.csv file create image urls like this: (with an absolute url)
   [http://192.168.0.196/example/wp-content/uploads/csvimport/20200.JPG](http://192.168.0.196/example/wp-content/uploads/csvimport/20200.JPG)
 * -When you setup the headers before you import the file: ‘featured’ didn’t work
   for me. ‘images’ did work. Because I have only one photo per product, that works.
   Although I would love to see the ‘featured’ option work as well.
 * Extra: Prices only work with . Not with , And I put a Regular and (Normal) price
   in the header to let that part work.
 * And: while importing a file it says: 1/8 starting… BUT: nothing happens.. you
   think.. it WILL import your products, though.
 * You need to keep on tweaking with this plugin. Or buy the WooCommerce Plugin.
 * Cheers!
 * Rolf
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: NextGEN Gallery] Sort button missing](https://wordpress.org/support/topic/plugin-nextgen-gallery-sort-button-missing/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-sort-button-missing/#post-1845140)
 * Hi,
 * Reset the Options in the plugin-admin will probably help! Remember your own settings
   first, and put them back afterwards…
 * Cheers,
 * Rolf
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [[Plugin: WP Security Scan] No admin access anymore](https://wordpress.org/support/topic/plugin-wp-security-scan-no-admin-access-anymore/)
 *  [roffel](https://wordpress.org/support/users/roffel/)
 * (@roffel)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-security-scan-no-admin-access-anymore/#post-1097983)
 * thanks! worked fine!

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

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