roberto.c
Forum Replies Created
-
Forum: Plugins
In reply to: [Header Footer Code Manager] A couple of improvementsHere’s another suggestion. I also have a sample HTML file that I can send you if you provide me with an email address.
The idea came from a feature in the Phpstorm IDE that I find very useful (screenshot attached): as you scroll down a file, if you’re currently inside a class and/or function (the same applies to CSS files, for example inside @ media), it sticks an indication of where you are. This way, the developer is facilitated in navigating, especially in the case of long content.
The sample HTML file works with PHP, JS, and CSS.
P.S. I used version 5 of CodeMirror.
- This reply was modified 5 months, 3 weeks ago by roberto.c.
Forum: Plugins
In reply to: [Header Footer Code Manager] A couple of improvementsIt will be done soon!
Another killer feature could be the ability to choose from:
- Inline script
- CSS/JS file creation (obviously only for snippet type CSS and JS), with the possibility to choose the dependencies (a text field where I can write, for example, ‘jQuery, myPersonalJs, etcJs’).
Regarding the backup I suggested earlier, it could be correct to call it ‘revisions’, similar to how Elementor revisions work.
I almost forgot this: a button that extends the height of the editor to be full-height, while keeping the ‘update’ and ‘delete’ buttons always visible.
Forum: Plugins
In reply to: [Gravity Forms SendinBlue Add-On] support?This plugin does not work anymore, sorry.
Don’t worry, a found another plugin that can be used as an alternative.Forum: Plugins
In reply to: [WooCommerce] endless loading spinner woocommerce with error d is nullHello, did you resolved?
I have the same problem….Thanks
Forum: Plugins
In reply to: [MaxGalleria] images outside the media folderI done the first part by myself:
open media.js file,line 16.
After “maxgalleria_media_frame = wp.media.frames.maxgalleria_media_frame = wp.media({” add this:
library: {‘type’ : ‘uploadedTo’}
final code:
maxgalleria_media_frame = wp.media.frames.maxgalleria_media_frame = wp.media({ // Use our own custom class name to avoid CSS conflicts className: "media-frame maxgalleria-media-frame", library: { 'type' : 'uploadedTo' }, // The other option here is setting the frame to "select" frame: "post" });
Forum: Plugins
In reply to: [MaxGalleria] images outside the media folderI agree with PlaviPixel.
find one image if in the media container we have more than 1000 is a nightmare….
I think that the idea is to connect the gallery just to the id of the post gallery id, then have the possibility to looking inside other galleries if someone need a previous uploaded image.Forum: Plugins
In reply to: [Gravity Forms Directory] Resize image during uploadhi Toni, you have 2 thinks to do if you want to fix it:
1) go to your BACKOFFICE -> SETTINGS -> PERMALINKS
no need to click something, just go there and permalink structure of rcwd upload will be fixedIf the problem is not resolved:
2) check your htaccess file, for sure you have something strange it that file that overwrite the rewrite rule needed.
Sent the htacess file to rcwd upload support, along with a list of your installed plugins.
??
Forum: Plugins
In reply to: [Secure Custom Fields] No gallery option in creating custom field?!Hi, to use the gallery field, you have to buy the add-on https://www.advancedcustomfields.com/add-ons/gallery-field/.
If you already did it, check the install instructions.
Let me know ??
@clara, maybe it can be useful to use a query like this:
$latest_post_query = "(SELECT * FROM $wpdb->posts WHERE post_type = 'post' ORDER BY post_date LIMIT 2) UNION ALL (SELECT * FROM $wpdb->posts WHERE post_type = 'tribe_events' ORDER BY post_date LIMIT 3)"; $latest_posts = $wpdb->get_results($latest_post_query);
Hi Cara, you can use this before the loop:
query_posts( array( 'post_type' => array( 'post', 'tribe_events' ) ) );
In this way, the events are listed together with your “normal” posts.
Fammi capire bene, avevi la versione 0.1.5 e andava, poi l’hai disattivata e le miniature sono scomparse e anche riattivandola (sempre la 0.1.5) non ti appaiono più?
Riattivando il plugin, le miniature di riappaiono?
Prova a fare anche questa cosa mentre il plugin è disattivato:
Nel file functions.php aggiungi queste due righe:
ini_set('display_errors', '1'); ini_set('error_reporting', E_ALL);
In questo modo se ci sono errori php dovrebbero apparirti a video.
Procedi cosi e indicami se ti appare qualcosa (speriamo di si così è un ottimo punto di partenza per correggere il bug ?? )
Ciao, no nessun file viene modificato.
Forse hai fatto qualche modifica al template della galleria?Sorry thematrixit, i forgot to mention to insert that filter and function inside file functions.php of your theme and also a forgot a line inside that function.
add_filter('comment_form_defaults','rcwd_comment_form_defaults'); function rcwd_comment_form_defaults($defaults){ global $user_identity; $defaults['logged_in_as'] = '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', esc_attr($_SERVER["REQUEST_URI"]) ) ) ) . '</p>'; return $defaults; }
Mmmm ok i figured out.
Check the \wp-includes\comment-template.php, on row 1536 you will find this:'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>'
So, for the gallery comments logout, get_permalink( $post_id ) is not good! But is better to not change it inside core file, so i will use a filter:
add_filter('comment_form_defaults','rcwd_comment_form_defaults'); function rcwd_comment_form_defaults($defaults){ global $user_identity; $defaults['logged_in_as'] = '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', esc_attr($_SERVER["REQUEST_URI"]) ) ) ) . '</p>'; }
So i used esc_attr($_SERVER[“REQUEST_URI”]) to retreive the current url.
Remember that this will be a change for all comments in website.
Consider it a temporary fix, i hope to find a better way to include in my plugin.