bjoerne
Forum Replies Created
-
Forum: Plugins
In reply to: [underConstruction] Unable to activate this on a network siteThe patch I posted here doesn’t seem to work anymore. I found a new solution here: https://www.ads-software.com/support/topic/_serverphp_self-doesnt-work.
Applied to this plugin means replacing
<?php echo $GLOBALS['PHP_SELF'] . '?page=' . $this->mainOptionsPage; ?>
with
<?php echo esc_attr($_SERVER['REQUEST_URI']); ?>
in ucOptions.php
Forum: Plugins
In reply to: [underConstruction] Issues with MultisiteThe problem is caused by a wrong form action. A solution is to patch the file ucOptions.php. Replace
<?php echo $GLOBALS['PHP_SELF'] . '?page=' . $this->mainOptionsPage; ?>
with
<?php echo esc_attr($_SERVER['REQUEST_URI']); ?>
Forum: Plugins
In reply to: [Language Redirect] Need to multiple wordpress installations?You can use the plugin on one installation. The best way is to use it on a multisite installation (https://codex.www.ads-software.com/Create_A_Network). Then you can have one login for both sites (en/fr).
Forum: Plugins
In reply to: [Subscribe To Comments Reloaded] Place it before comment submit button?Or in a cleaner way according to Sergey’s suggestion:
Keep comment_form() as it is and add the following code to your theme (e.g. functions.php if it exists):function comment_subscription_after_comment_notes( $defaults ) { ob_start(); subscribe_reloaded_show(); $subscribe_reloaded_show = ob_get_clean(); $defaults['comment_notes_after'] .= '<p>'.$subscribe_reloaded_show.'</p>'; return $defaults; } add_filter( 'comment_form_defaults', 'comment_subscription_after_comment_notes' );
Forum: Plugins
In reply to: [Subscribe To Comments Reloaded] Place it before comment submit button?I got a tip from Sergey Biryukov (see https://core.trac.www.ads-software.com/ticket/27080) to adjust the form’s default value of comment_notes_after. This could be a general solution for this plugin.
I use this plugin now in the following way which is kind of a workaround, but the checkbox is located between comment field and submit button (see https://travel.bjoerne.com/). In the option area of this plugin I set Enable default checkbox to No. In my theme code I replaced
comment_form();
with
$default_comment_notes_after = '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>'; ob_start(); subscribe_reloaded_show(); $subscribe_reloaded_show = ob_get_clean(); $comment_notes_after = $default_comment_notes_after.'<p>'.$subscribe_reloaded_show.'</p>'; comment_form(array('comment_notes_after' => $comment_notes_after));
It works but it would be glad if there will be a more elegant solution provided by the plugin out-of-the-box.
Forum: Plugins
In reply to: [Subscribe To Comments Reloaded] trunk folder inside tag folderThank you!
Forum: Plugins
In reply to: [Subscribe To Comments Reloaded] Wrong language selectedIt works! Thank you!
Forum: Plugins
In reply to: [Subscribe To Comments Reloaded] Place it before comment submit button?This is still an issue and I agree that the checkbox after the submit button is not perfect.
I’d like to have the the subscription checkbox between the comment field resp. the comment field notes below it and the submit button. But the WordPress core don’t provide an action hook to achieve this. I created an issue to add a new action hook comment_form_after_comment: https://core.trac.www.ads-software.com/ticket/27080. Let’s see if this will be considered in the future.Forum: Plugins
In reply to: [Public Post Preview Configurator] Get "link expired" error when using pluginSorry for the late answer. I didn’t subscribe to this forum and wasn’t notified. There was a bug in the plugin which should be fixed with version 1.0.1.
Forum: Plugins
In reply to: [Subscribe To Comments Reloaded] Wrong language selectedThe .mo files of the plugin are missing. In the tag 2.0.6 there were still present, but 20140128 and 20140129 don’t contain them. They are important to determine the correct plugin language.
It would be great if the .mo files were part of the next version.
Forum: Plugins
In reply to: [Public Post Preview] Option page for expiration time (Github fork)Hi!
I decided to create a new WordPress plugin with the settings page instead of forking this project.
You can find the plugin here: https://www.ads-software.com/plugins/public-post-preview-configurator/
Best regards
Bj?rnHi!
You need a tool to apply a patch. Unix systems (Linux, OSX …) have a ‘patch’ command line tool on board.
But you can contact me via email (info bjoerne com) and I’ll send you the patched plugin as a ZIP.
Regards
Bj?rnForum: Plugins
In reply to: [underConstruction] Unable to activate this on a network siteHi Jenny!
There are some tools to apply patches, but in this case it’s not necessary. Edit the file ucOptions.php and replaceaction="<?php echo 'options-general.php?page=' . $this->mainOptionsPage; ?>"
with
action="<?php echo $GLOBALS['PHP_SELF'] . '?page=' . $this->mainOptionsPage; ?>"
Regards
Bj?rnHi!
Yes, you can download the zip and use the zip in the same way as it was downloaded from a WordPress hosted plugin.
Regards
Bj?rn