Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same issue here, great plugin, but if in the configuration settings page, the access role is set explicitly to ‘editor’, the editor is able to create events, but is not able to set date and location (is not able to use the event settings), this makes it a non-event for an editor…

    Request
    Is it possible to modify line lines 51 and 104 within admin/class-super-simple-events-admin.php and make the exclusion ( if( ! is_super_admin() ) { return;} ) contingent on the rights granted to the access role set in the configuration settings page?

    Thread Starter jacquesulje

    (@jacquesulje)

    Hi Bas,

    I have tested your new version, I hope I did nothing foolish (!) but I notice the following issue’s.

    1) A clean install (I’ve first removed the old plugin and everything related to it and installed the new version) generates a series of warnings:

    Warning: scandir(/var/www/vhosts/xxx.nl/httpdocs/brandstof/wordpress/wp-content/uploads/bewpi-templates/invoices/simple/): failed to open dir: No such file or directory in /var/www/vhosts/xxx.nl/httpdocs/brandstof/wordpress/wp-content/plugins/woocommerce-pdf-invoices/includes/admin/settings/class-bewpi-admin-settings-template.php on line 560

    Warning: scandir(): (errno 2): No such file or directory in /var/www/vhosts/xxx.nl/httpdocs/brandstof/wordpress/wp-content/plugins/woocommerce-pdf-invoices/includes/admin/settings/class-bewpi-admin-settings-template.php on line 560 Warning: array_merge(): Argument #2 is not an array in /var/www/vhosts/xxx.nl/httpdocs/brandstof/wordpress/wp-content/plugins/woocommerce-pdf-invoices/includes/admin/settings/class-bewpi-admin-settings-template.php on line 561

    Warning: Invalid argument supplied for foreach() in /var/www/vhosts/xxx.nl/httpdocs/brandstof/wordpress/wp-content/plugins/woocommerce-pdf-invoices/includes/admin/settings/class-bewpi-admin-settings-template.php on line 563 Notice: Undefined offset: 0 in /var/www/vhosts/xxx.nl/httpdocs/brandstof/wordpress/wp-content/plugins/woocommerce-pdf-invoices/includes/admin/settings/class-bewpi-admin-settings-template.php on line 94

    2) If after the installation I try to make an invoice in the CMS with the button ‘aanmaken’ I get an error:

    Warning: require_once(header.php): failed to open stream: No such file or directory in /var/www/vhosts/wpoow.nl/httpdocs/brandstof/wordpress/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-bewpi-invoice.php on line 332 Fatal error: require_once(): Failed opening required ‘header.php’ (include_path=’.:’) in /var/www/vhosts/wpoow.nl/httpdocs/brandstof/wordpress/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-bewpi-invoice.php on line 332

    No invoice is created.

    I tried the following

    – if I place the templatedirectory ‘micro’ in the directory ‘uploads/bewpi-templates/invoices/simple’ the error still appears…

    – But, if I place my custom templatedirectory ‘brandstof’ in the directory ‘uploads/bewpi-templates/invoices/simple’ then the error disappears (!) and an invoice is created… (conform the custom template)

    3) In your instruction how to use a custom template (plugin link ‘view details’ section FAQ ) you state:

    “To easily get started, copy the default template files (including folder) called plugins/woocommerce-pdf-invoices/includes/templates/simple/micro to uploads/bewpi-templates/simple and rename the template folder micro to a template name you like.”

    However this doesn’t work. If you follow this instruction you will not (!) see your custom template.
    But I’ve noticed that directory uploads/bewpi-templates/invoices does contain a directory ‘simple’, and if you place your template files in this directory you will indeed see your custom template, it works.

    A simple solution of course could be to correct your instruction to something like: copy the default template files (including folder) called … to uploads/bewpi-templates/invoices/simple.

    Thread Starter jacquesulje

    (@jacquesulje)

    Hi Bas,

    Sorry for the delayed response. Had some vacation past two weeks and now very busy…
    Did you find some time to add the filter for a custom template filepath?

    Thread Starter jacquesulje

    (@jacquesulje)

    Again many thanks you for your support and swift action.

    I’ve tested the filter functionality for the mpdf-options and it works like a charm, I will rate your plugin.

    A last request concerning your remark about adding a filter to add your own template. It would be great to use the filter technique to give a developer the possibility of returning a custom filepath for the template directory. I suppose it must be possible to give the $template_folder variable in bewpi-invoice.php the value this filter returns.

    This way a developer can store his or her template files savely in a directory inside the (child)theme (and outside the plugin) where they will not be overwritten or deleted after a plugin update (an important issue).

    The developer could use the filter to return a value like: templatepath (or stylesheetpath for childthemes) + custom templatedirectory name.

    I think this will be a huge improvement because now you are really free to create and preserve your own custom templates. Lots of clients will be happy with this possibility, you can use it to promote your plugin.

    Thread Starter jacquesulje

    (@jacquesulje)

    Thank you for your support and swift reply. I’ve managed to adjust the top-margin, the settings are now: $mpdf = new mPDF(”, ‘A4’, 0, ‘opensans’, 17, 17, 17, 150, 5, 0, ”);

    But the next update my settings will be gone…

    If you allow me to do a suggestion: for people who want to create their own templates it would be great if the default MPDF-margins are set to zero, and are adjustable in the custom stylesheet.
    Do you think that’s a possibility?

    Second, it would be great if you could select your custom in the template setting page, I now have to ‘hack’ bewpi-template-settings.php (see topic “Create my own template”), also gone after the next update…

    If it’s possible to set the default MPDF-margins to zero and make a custom template selectable in the settings page, people are really free to create their own custom templates.
    That would be a great improvement I think.

    Same issue here, on several sites.
    After installing the ‘search everthing’ plugin: when someone tries to insert a internal link in a post or page, the ‘Link to existing content’ functionality is broken. It doesn’t respond anymore on a search query, nothing happens.
    When I disable the ‘search everything’ plugin, everything works fine again.
    I tried to contact the author of the plugin to see if he has an answer.

    Thanks for the tip, I found out that in stead of hacking the Simple Tags plugin files you can simply add the meta boxes in the declaration of your custom posttype in functions.php:

    add_action(“admin_init”, “add_clicktags”);
    function add_clicktags(){
    add_meta_box(‘st-clicks-tags’, __(‘Click tags’, ‘simpletags’), array(&$this, ‘boxClickTags’), ‘your_custom_posttype’, ‘advanced’, ‘core’);
    }

    (in the code above: substitute the (registered) name of your custom posttype in place of ‘your_custom_posttype’)

Viewing 7 replies - 1 through 7 (of 7 total)