Forum Replies Created

Viewing 15 replies - 76 through 90 (of 115 total)
  • Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    Jep, there are many moving parts here, so I’m not sure which plays what role in my issues.

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    The issue persists. While there seem to be issues with WP 5.3 update (which I was dumb enough to install today [read: more issues]), this issue predates that. I’m suspecting, that there is something, how the theme bundles your plugin.

    Addendum:
    I quickly read through WP 5.3 date/time changes. I don’t think, that they apply, because the strings “weeks”, “hours” etc. no longer get translated.

    • This reply was modified 5 years, 3 months ago by Juha Mets?kallas.
    • This reply was modified 5 years, 3 months ago by Juha Mets?kallas. Reason: corrected a typo

    Me too.

    I can run dry runs against all other tables (even in the same run) except “posts”. To top it all that table is even very modest sized, less than 15 MB. I’ve done the same as Netz, tried setting “max page size” as low as possible, but still vain. I’ve run the BBPress repair tool.

    The site is mainly a forum one with WordPress 5.2.2, BBPress 2.5.14 plus several plug-ins. BSR has previously worked.

    My goal:
    I plan to change the address structure, but before actually doing it I want to have some idea how extensive the change could be.

    Have you tried to write the header with ü in the first place? Yes, I know it’s clumsy and sucks, but blame IBM, which in the beginning of the computer era forgot what the I stands for.

    Thorned,

    There is a plug-in called Shortcoder, that allows you easily write shortcodes. Perhaps you could use it to wrap the shortcode of Easy Footnotes.

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    Hello!

    I finally found time to resolve this.

    1. Download and install the plugin Advanced Custom Fields.
    2. Create a custom field with title Disable PDF and name disable_pdf with a type of True/False. This will give you an extra field in the posts editor. Don’t make it mandatory nor set it to default. This ensures, that the field doesn’t mess with your existing posts.
    3. Go to your template and locate the code snippet <?php if(function_exists(‘mpdf_pdfbutton’)).
      Replace it and only it with <?php if(function_exists('mpdf_pdfbutton') && !get_field('disable_pdf')).
    4. Locate the certain post for which you want to disable the pdf creation. Check the Disable PDF. Save and take a look at the posts page.

    I would say, that this boils down to your needs. I came quickly up with some scenarios. There are probably others.

    Allow TOC always for some users

    Put the shortcode into the appropriate location in your template. Consult your template’s documentation (it could be something like single.php). Use DV Shortcode Whitelist to enable your shortcode for one of the built-in user roles or create a new one and add your users to it.

    Allow TOC always for all users

    Same as above but select in the DV plugin all.

    Allow TOC sometimes for some users

    Instruct your special users, how to add your shortcode into a topic.

    Shibaa,

    There is nothing wrong with TOC, it’s just in bbPress topics and replies all (i.e. not just those of TOC) shortcodes are disabled by default. This is a security feature, since permitting all shortcodes on bbPress forums is a major security risk. While by googling you can easily find code to enable turn off this feature, I strongly recommend against it. What I have done, is to utilise two plugins:
    Shortcoder by Aakash Chakravarthy
    DV Shortcode Whitelist by Egemenerd

    Use the first to create your own shortcode for a TOC shortcode, possibly with some parameters. Then use the second to allow this custom shortcode on bbPress forums. This way you can have a table-of-contents without compromising security.

    Disclaimer:
    While not otherwise involved in either plugin, I gave the idea of DV Shortcode Whitelist to Egemenerd. Neither developer has given me any money nor compensated me in any way. Au contraire I’ve donated to both projects.

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    This is something, that I quite can’t understand. We have lived in Unicode world a long time, and Unicode has almost all imaginable glyphs there are (yes, I know, that the Klingon alphabet isn’t part of Unicode). Yet there are in circulation font sets, which lack glyphs. I would imagine, that nobody creates a font from scratch, but takes an existing and modifies it. That is I take ,say, a Times New Roman font set (with all grlyps) and make my modifications (e.g. I tilt all umlauted characters), publish it under a new name Juha’s Times New Roman. Now if someone uses it, they get my tilted umlauted characters but also the original Arabic, Burmese, Persian etc. characters in Times New Roman style. Maybe I have misunderstand how this font thing works.

    Ok, verzeih mir meinen Ausbruch. My site uses Noto from Google, and that seems to contain all the above mentioned. Rather than downloading all those to my site how can I specify, that when creating PDFs use those Google online fonts remotely? IIUC there is an API for this.

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    Ok, when I have time, I try to figure out a general solution.

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    Rather than tweaking the source I ended up tweaking my code. Simply added some &nbsp; between the links.

    If you have a plugin name conflict, i.e. there is another plugin, that uses the same shortcode sc, please let us know and notify the author of this plugin.

    If this is just for some inconvenience reason, well, you can always copy & paste.

    Having said that, there is a plugin called pluginception, which makes writing new simple plugins very easy. Install it and create your plugin divider and make it to do the job or to call [sc name=”divider”].

    My answer might come late for you, but for the record…

    Allowing shortcodes for any other than admins creates a security risk. There are more secure ways.

    Create a custom permission role and modify the site code, so that when the author of page/post/forum topic/forum response/what-ever has that permission, the shortcode gets evaluated. You can hone this by limiting the right to certain shortcodes. Lot of work.

    Or you download a plugin, that does this for you. While I found a couple, they are no longer maintained (and some even don’t work any longer). From my hint a plugin-writer wrote one, so you might take a spin with it.

    DV Shortcode Whitelist

    Disclaimer: I am not getting any profits from that plugin.

    It is a general limitation (i.e. not limited to this plugin nor to WordPress) of mobile devices, that hovering doesn’t work. Hovering simply doesn’t exist on touch screens, and therefore you must have an alternative method to that functionality.

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    Ok, not a show stopper. Thanks for the info.

Viewing 15 replies - 76 through 90 (of 115 total)