Gotcha
Forum Replies Created
-
Forum: Reviews
In reply to: [Plugin Notes Plus] Not maintainedThe problem is, when i writing something with “going underline” (Enter).
Some old notes still ok but i can’t edit them too !I confirm that too…
Forum: Plugins
In reply to: [Page-list] Child subAnd i try with :
[pagelist_ext hierarchical=”0″]
But no effect too :/Forum: Plugins
In reply to: [Page-list] Child subLike the option depth=”1″ but for pagelist_ext
Forum: Plugins
In reply to: [Document Gallery] The taxon value entered, "orderby", is not valid.I just change the theme, disable all other plugins … and still the same error message …
The taxon value entered, “orderby”, is not valid.
It can be just a version of PHP / MySQL / Apache? …
Forum: Plugins
In reply to: [Document Gallery] The taxon value entered, "orderby", is not valid.The plugin “Error Log Monitor” works. The problem was between the chair and the keyboard π
No error message.I just tested my site on a third server and the result and the same. Always the same error message.
Is this an incompatibility between different plugins? … I will disable all to see.Forum: Plugins
In reply to: [Document Gallery] The taxon value entered, "orderby", is not valid.Damned.
All the past work is destroyed :'(
https://wordpress.org/support/topic/more-details-in-descriptions?replies=10I hope that your talent will overcome this difficulty.
My site is almost ready, it only needs your plugin works again ^^Thanks you.
Forum: Plugins
In reply to: [Document Gallery] More details in descriptionsYeah !!
It’s a shame to not have the GUI to add the options.
Because I see that too: https://wordpress.org/support/topic/not-working-1102?replies=10#post-6718291
Very interesting πThank you very much Dan !!
Forum: Plugins
In reply to: [Document Gallery] More details in descriptionsHello Dan,
Ok I followed all the steps but your code does not work.
The plugin is healthy. The child theme works. The small code snippet is KO– My functions.php
<?php // Chargement en attente des CSS // https://codex.wordpress.org/fr:Th%C3%A8mes_Enfant add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } // Plugin Document Gallery (thumbnails) add_filter('dg_icon_template', 'dg_icon_details_mod', 10, 3); function dg_icon_details_mod($icon, $descriptions, $id) { if ($descriptions) { $icon = '<div id="document-gallery-1" class="document-icon-wrapper descriptions">' . ' <div class="document-icon">' . ' <a href="%link%" target="%target%"><img src="%img%" title="%title_attribute%" alt="%title_attribute%"></a>' . ' </div>' . ' <strong>Titre:</strong> %title%<br>' . ' <strong>Legende:</strong> %description%<br>' . ' <strong>Nom du fichier:</strong> ' . basename( get_attached_file( $id ) ) . '<br>' . ' <strong>Taille:</strong> %size%</p>' . '</div>'; } return $icon; } ?>Forum: Plugins
In reply to: [Document Gallery] More details in descriptionsTest :
$doc_icon = ' <dl class="attachments attachments-large"><dt class="icon">' . PHP_EOL . ' <a title="%title%" href="%path%" %target%>' . PHP_EOL . ' <a href="%link%" target="%target%"><img src="%img%" title="%title_attribute%" alt="%title_attribute%" /></a>' . PHP_EOL . ' </a>' . PHP_EOL . ' </dt>' . PHP_EOL . ' <dd class="caption">' . PHP_EOL . ' <strong>Titre</strong> : <a title="%title%" href="%path%" %target%>%title%</a>' . PHP_EOL . ' <br/>' . PHP_EOL . ' <strong>LΓ©gende</strong> : %CAPTION%' . PHP_EOL . ' <br/>' . PHP_EOL . ' <strong>Nom du fichier</strong> : %FILENAME%' . PHP_EOL . ' <br/>' . PHP_EOL . ' <strong>Taille</strong> : %size%' . PHP_EOL . ' </dd>' . PHP_EOL . ' </dl>' . PHP_EOL . $description;Not very good, so, i’m not a developper ^^
Forum: Plugins
In reply to: [Document Gallery] More details in descriptionsI found this:
class-document.php/*========================================================================== * OUTPUT HTML STRING *=========================================================================*/ /** * Returns HTML representing this Document. * @filter dg_icon_template Filters the DG icon HTML. Passes a single * bool value indicating whether the gallery is using descriptions or not. * @return string */ public function __toString() { include_once DG_PATH . 'inc/class-thumber.php'; $thumb = $this->gallery->useFancyThumbs() ? DG_Thumber::getThumbnail( $this->ID ) : DG_Thumber::getDefaultThumbnail( $this->ID ); $target = $this->gallery->openLinkInNewWindow() ? '_blank' : '_self'; $repl = array( $this->link, $thumb, $this->title_attribute, $this->title, $target, $this->extension, $this->size, $this->path ); $find = array( '%link%', '%img%', '%title_attribute%', '%title%', '%target%', '%extension%', '%size%', '%path%' ); $description = ''; // if descriptions then add filterable tag and value to replaced tag if ( $this->gallery->useDescriptions() ) { $repl[] = $this->description; $find[] = '%description%'; $description = ' <p>%description%</p>'; } $doc_icon = ' <div class="document-icon">' . PHP_EOL . ' <a href="%link%" target="%target%"><img src="%img%" title="%title_attribute%" alt="%title_attribute%" /><br>%title%</a>' . PHP_EOL . ' </div>' . PHP_EOL . $description; // allow developers to filter icon output $doc_icon = apply_filters( 'dg_icon_template', $doc_icon, $this->gallery->useDescriptions(), $this->ID ); return str_replace( $find, $repl, $doc_icon ); }I must not be very far ^^
Forum: Plugins
In reply to: [Document Gallery] More details in descriptionsHello Dan,
Thank you for your quick reply.
You reassure me!
But the PHP it’s not my field. Can you refer me a little?