brendaegeland
Forum Replies Created
-
Forum: Plugins
In reply to: [Limit Login Attempts Reloaded] All users blocked if one is blocked ?I’m having the same issue.
Forum: Plugins
In reply to: [Gutenberg] Extract a Gutenberg block for the excerptI was able to use the gutenberg_parse_blocks function to get the blocks I needed. Ended up being pretty simple:
function d6bridge_filter_for_results($content){ if (is_archive('gnt-result') || is_archive('nap-result')) { if ( gutenberg_content_has_blocks( $content ) ) { $blocks = gutenberg_parse_blocks( $content ); $content = ''; foreach ($blocks as $block) { if ($block->blockName == 'rsvpbridge/competition-result') { $content .= $block->innerHTML; } } } if ($content == '') { $content = '<p>Results not posted</p>'; } } return $content; } add_filter('the_content', 'd6bridge_filter_for_results', 1);
Forum: Plugins
In reply to: [Gutenberg] Extract a Gutenberg block for the excerptThanks, I’ll give it a try. Might even end up as a plug-in someday!
Forum: Plugins
In reply to: [Gutenberg] Extract a Gutenberg block for the excerptThank you for the reply. I don’t think I can trust my users to remember to create the manual excerpt each time, so I’d like to automate it. I can see how to code a custom excerpt, I’m just not seeing how to extract a block from the content, or perhaps more likely the first instance of a particular block type. Do I just grab the html for the content and parse it? Or is there a function available to do that already?
Thank you.
Forum: Plugins
In reply to: [Minutes, Agendas, Newsletters] Add a filename to the linkThe only flexibility right now is that you can format how the text of the link displays, which is on the Settings page, referenced in the ‘Flexible’ section on the plugin’s page: https://www.redletterdesign.net/wp/minutes-agendas-newsletters/
Forum: Plugins
In reply to: [Minutes, Agendas, Newsletters] [minagnews-table show=minutes year=all]Sounds like there is an error in the code, which causes the short code not to get processed at all. I suspect your re-editing back to original code might have missed something.
Are you able to bring up a file directly in the browser? E.g., if your blog is https://www.abc.com, and the folder is minutes, and you have a file Minutes_2013_04_01.pdf, can you see https://www.abc.com/minutes/Minutes_2013_04_01.pdf?
Forum: Plugins
In reply to: [Minutes, Agendas, Newsletters] Display Table in WidgetCan you tell me how it displayed? Or not at all? Can you send a link?
Forum: Plugins
In reply to: [Subpages in Context] ok but falls down on couple of fundementalsActually, it is designed to show the entire subtree of Main Item if you are in *any* subpage of main item. That’s why I wrote the plugin. There are lots of other navigation plugins that only show the current portion of the tree.
Forum: Plugins
In reply to: [Minutes, Agendas, Newsletters] Table not showingIf you’re not familiar with writing your own CSS, you’re pretty much at the mercy of the theme designer. Their theme doesn’t style tables, apparently, so you’re not seeing any styling (e.g., borders, backgrounds, etc.). There’s not much I can do to help with that.
The minagnews-editor.css styles the pop-up box in the editor. It’s not used on your site.
Forum: Plugins
In reply to: [Minutes, Agendas, Newsletters] Table not showingYou have a table, it’s just not styled as a table. That is purely a function of the CSS in your theme. If you view your source code, you’ll see the table.
Forum: Plugins
In reply to: [Subpages in Context] Feature Request: Rename Top-Most Page Link in ListI’ll put it on my to-be-considered list for the next update. Not sure when that will be, though. Thanks for the suggestion.
Hi Peter,
In the main plugin file, minutes-agendas-newsletters.php, find this (around line 100):
// Initialize uploads page
function uploadPanel() {
$minagnews_admin_menu = add_media_page(
‘Manage Minutes, Agendas, Newsletters’,
‘Minutes, Agendas, Newsletters’,
‘upload_files’,
basename(__FILE__),
array($this, ‘uploadMinutesAgendasNewsletters’)
);and replace it with
// Initialize uploads page
function uploadPanel() {
$minagnews_admin_menu = add_options_page(
‘Manage Minutes, Agendas, Newsletters’,
‘Upload Minutes, Agendas, Newsletters’,
‘upload_files’,
basename(__FILE__),
array($this, ‘uploadMinutesAgendasNewsletters’)
);Hope this works for you.
Custom menus aren’t really what Subpages in Context is about, which is to show a list of the subpages of the top level page for the current page. If you’re going to use a custom menu, you might as well put in the rest of the pages you want to add. If you need both, you could use two widgets (one of each) and adjust your as needed to make it look the way you want.
The Settings page describes how the naming convention works. Your files need to be something like factsheet_2012-08-02.pdf .
Not sure what you mean by ‘seeing’ folders. All the documents need to be in the directory you define on the Settings page for the plugin.