xxxLesy
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Uncaught TypeError after php8Awesome. Thank you!
Forum: Plugins
In reply to: [AMP] AMP Problem with Facebook Mobile Browser@jamesosborne confirmed. Milind’s plugin deleted, cache deleted, it works.
It seems quite slow though. The amp version is actually slower than the temp fix plugin loading non-amp version. But I guess FB doesn’t want ppl using amp instead of their instant articles.
Forum: Plugins
In reply to: [AMP] AMP Problem with Facebook Mobile BrowserCan also confirm, your mobile redirect plugin fixes it. Thank you Milind.
Tried it. #_LOCATIONNAME is just always blank, assuming because the event does not have a physical location.
I was able to get it to show at least something with
<a href='#_LOCATIONURL'>#_LOCATIONURL</a>
but I now noticed it shows the wrong link. #_LOCATIONURL shows the same link as #_EVENTURL, the local link for the event (they link to the page you’re already on) instead of the location url entered in the event.So none of the placeholders display location URL and link text.
- This reply was modified 3 years, 8 months ago by xxxLesy.
Of course: example link: https://www.student.si/dogodki/on-line-interaktivna-delavnica-ucinkovito-uvajanje-in-obvladovanje-sprememb-po-svetovno-priznanem-standardu-standard-for-change-management-sodobna-orodja-in-agilni-pristopi/
You can see Location right under date.Check for dev updates doesn’t show me any update. I’m on 5.9.11.3.
Forum: Plugins
In reply to: [Insert Pages] Plugin show page and page codeYes, I pasted it in insert-pages.php, lines 573+ under case title and it works fine that way.
switch ( $attributes['display'] ) { case 'title': ?> <div class="nad-pr-responsive" style="width:285px;float:left;"> <table width="285" class="pr-tabela-responsive" style="margin-right:11px;"><tbody><tr><td> <a href="%link%"> <div class="pr-naslov" style="font-family: Verdana, Arial, sans-serif; font-weight: bold; text-decoration: none; font-size: 18px;"><?php echo get_the_title( $inserted_page->ID ); ?></div> <div class="desktop-pic"><?php echo get_the_post_thumbnail( $inserted_page->ID, 'medium' ); ?></div> <div class="mobile-pic" style="display:none;"><?php echo get_the_post_thumbnail( $inserted_page->ID, 'td_533x261' ); ?></div> </a> </td></tr></tbody></table> </div> <?php break;
- This reply was modified 3 years, 11 months ago by xxxLesy.
Forum: Plugins
In reply to: [Insert Pages] Plugin show page and page codeIt does have the_post(). I tried 2 different codes both with it.
I don’t see wp_reset_postdata() in my newsletter theme file, but it does automatically populate with an article list with
foreach($new_posts as $post)
. So yeah, it might be in other files somewhere.<?php /** * Template Name: Novi newsletter PR */ ?> <div id="your-wrapper-div"> <?php while ( have_posts() ) : the_post(); ?> <div id="your-container-div-for-each-post"> <?php the_content(); ?> <?php the_post_thumbnail(); ?> </div> <?php endwhile; ?> </div>
<?php /* Template Name: Newsletter PR */ ?> <?php while ( have_posts() ) : the_post(); ?> <div class="nad-pr-responsive" style="width:285px;float:left;"> <table width="285" class="pr-tabela-responsive" style="margin-right:11px;"><tbody><tr><td> <a href="%link%"> <div class="pr-naslov" style="font-family: Verdana, Arial, sans-serif; font-weight: bold; text-decoration: none; font-size: 18px;"><?php echo get_the_title( $inserted_page->ID ); ?></div> <div class="desktop-pic"><?php echo get_the_post_thumbnail( $inserted_page->ID, 'td_324x235' ); ?></div> <div class="mobile-pic" style="display:none;"><?php echo get_the_post_thumbnail( $inserted_page->ID, 'td_533x261' ); ?></div> <!--<div class="pr-povzetek" style="color:black !important;line-height:1.5em;text-align:justify;height:85px;overflow:hidden;margin-bottom:0;"><?php echo $this->insert_pages_trim_excerpt( get_post_field( 'post_excerpt', $inserted_page->ID ), $inserted_page->ID, $attributes['should_apply_the_content_filter'] ); ?></div>--> </a> </td></tr></tbody></table> </div> <?php endwhile; ?>
Forum: Plugins
In reply to: [Insert Pages] Plugin show page and page codeI troubleshooted my problem to an issue with the custom template.
I use a custom template, which works fine on it’s own – when inseted in a page or post.
I then insert that template shortcode into an ad (advanced ads plugin – for tracking purposes). Which also works fine when inserted in a page/post.
I then insert this ad into my newsletter ad slot (The Newsletter plugin), where it doesn’t work anymore. Divs and their styles get loaded, but are empty, meaning the php doesn’t get excecuted.But the strange part is, when I use one of the built in display options in the shortcode (title, post-thumbnail …) instead of the custom template, it does get loaded in my newsletter (in the same way as above – ad inside newsltter).
If I copy the same code I have in my template and replace one of the built in parameters (title, post-thumbnail …) in insert-pages.php it also works fine.
So I feel like the custom template might cause too long of a loop?
Again this only started happening recently and rolling back both insert pages or the newsletter plugin didn’t have any effect.
It’s not that big of a deal, now that I know just editing insert-pages.php is a workaround, but having it in a seperate template file is nicer for easier updates.
Forum: Plugins
In reply to: [Insert Pages] Plugin show page and page codeYes I also see this after the wordpress 5.5.3 update. I believe something changed to make this plugin’s “$inserted_page->ID” no longer work properly. So it pulls the data from the page, where you insert the code instead of the page you wanted to insert.
Downgrading to previous versions of this plugin doesn’t help. And it used to work just fine a week ago.
Works ??
Thank you for a quick fix.
I believe you are misunderstanding the usage of this plugin. It doesn’t automatically just fix gdpr for you or does anything for that matter. You have to configure it manually.
Scripts that are not allowed according to gdpr (such as google analytics) need to be added to head or body script field in the cookie notice plugin settings page. Those won’t be loaded untill the user clicks accept. Then you need to toggle refuse cookies option, so the user can dismiss the notice without accepting cookies. Then the revoke consent option comes in, which reshows the options to choose and allows the user to change his mind.
P. S. It is also up to you to disable third party recording plugins (such as jetpack or most poll plugins)
- This reply was modified 4 years, 8 months ago by xxxLesy.
Works perfectly. Thank you very much ??
We didn’t get any line number with the message. Only shell.generic (Web shell)
/var/www/vhosts/<domain>/subdomains/<subdomain>/httpdocs/wp-content/plugins/duplicator/installer/build/assets/inc.libs.js.php
and a generic “this could be spam, bot, hacks …” message. I will ask the host if they can provide more info.Personally I’m using a reseller package on a shared webhost.
Same. The detection software these webhosts are using is Patchman.