Posts by dtbaker

3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says

This should be useful to someone:

https://github.com/dtbaker/wordpress-mce-view-and-shortcode-editor

This file converts a plain WordPress shortcode….

\\

... into a nice custom MCE view that matches the frontend …

\\

... and lets you click on it …

\\

... and easily edit the shortcode through a popup …

\\

... also a button on the tinymce toolbar to add a new shortcode:

\\

3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says

I wrote my own system to handle email ticket support. Also have a bbpress forum which is great but unfortunately most people start a forum post and send the exact same message to the email ticket system, so it actually increases my work. I’m looking into ways of tying bbpress to my email ticket system based on purchase code so it can detect if they already have a support message.

Whatever option you end up with, make sure it has some private way to send/store website login details.

3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says

Success! I’ve managed to replace [line_heart] with a graphical view of it within the wordpress editor. Clicking the line gives an easy delete option too.

\\

Now onto styling galleries.

3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says

ok making some progress, I’ll post here when done.

Looks like to edit the built in gallery view you have to overwrite the <script type="text/html" id="tmpl-editor-gallery"> template that gets printed from media-template.php

3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says

Does anyone have experience with wp.mce.view?

The documentation is rather lacking: http://codex.wordpress.org/wp-views

I would like to modify the default “gallery” wp-view (so that the gallery inside the wp editor matches the front end better), and create a custom “view” for my own shortcode.

Does anybody know how to do this?

The only example I can find is:

wp.mce.view.add( 'test', {
        pattern: /\[test\]/g,
        view: {
            events: {
                'click': 'clicked'
            },

            render: function() {
                this.$el.text('My test view.');
            },

            clicked: function() {
                console.log('I was clicked!');
            }
        }
    });

this will replace [test] with My test view in the console.

I’m looking through the wp-includes/js/tinymce/plugins/wpgallery/plugin.js and wp-includes/js/tinymce/plugins/wpview/plugin.js code now to try and figure it out, but an example would be nice.

Thanks, dtbaker

3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says
3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says

Well guess what, this morning I received an email from Google Play saying that I need to accept the new Developer Agreement. I start to read the agreement (I usually don’t) and surprise:

You Support Your Product. Buyers are instructed to contact the developer concerning any defects or performance issues in applications downloaded and installed from the Google Play Store. You will be solely responsible for, and Google will have no responsibility….............. you must respond to customer support inquiries within three (3) working days, and within 24 hours to any support or Product concerns stated to be urgent by Google….

I guess all marketplaces change the rules these days.

from a buyers perspective this is great news.

if I (as a buyer) pay for something, and it doesn’t work at all (or as advertised), I’d like to know for sure that someone will be there to help me out.

if I was given two marketplaces with two similar items at two similar prices, and I knew one marketplace guaranteed support, I would definitely choose that marketplace over the one one.

3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says

Yer I’ve been burnt a few times editing active themes/plugins for customers with only WP details. If you miss a closing bracket or do a typo it can take down the entire WP site and there is nothing you can do until you get FTP details to fix the bug.

As for the developer, maybe they had no idea what they were doing and sent you a screenshot because they didn’t know what they did broke the issue.

3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says

Yer definetely don’t code raw sql details in the wordpress page/post. Use the existing wpdb object, or just use DB_NAME, DB_USER and <code>DB_PASSWORD</code>. Also please check things like RSS feeds or other wordpress features to make sure the raw php code is not shown there as well. Best to look at a different way of displaying this info, maybe something like a custom plugin and write shortcodes instead of php code?

3130 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Moderator says


Envato’s overall goal is to hoard money while making authors do all of the work.
Sorry that sounds like a comment from a person to which everybody owes everything. You can try selling stuff on your own website to check if Envato does anything ;) Just speaking.

Haha yeah

by
by
by
by
by
by