andybarabash
Forum Replies Created
-
Forum: Plugins
In reply to: [PWA — easy way to Progressive Web App] Add to home screen missingHello Marcin, thank you a lot!
With 1.5.0 there’s now a place in settings where I can control A2HS settings, and the “add to home screen” prompt shows, at least in Google Chrome on Mac. Can’t test it on an Android phone right now.Forum: Plugins
In reply to: [PWA — easy way to Progressive Web App] Add to home screen missingHello, thank you for your reply.
I don’t see any “add to home” button on the demo with “foxes” you’ve sent me.
So does it mean – there’s basically no such button when using your plugin?
How can I be sure it’s the same for all devices and OS (Android etc.)? Or it can still be visible on some configurations? If so – how does it look?Forum: Plugins
In reply to: [Postie] Add “From” field into post contentI just didn’t notice there was the update.
Looks like it solved the problem. I updated the plugin and now it works!
Thank you a lot! ??Hope this thread might be helpful for other Postie users.
- This reply was modified 7 years, 11 months ago by andybarabash.
Forum: Plugins
In reply to: [Postie] Add “From” field into post contentHere’s what I have inside filterPostie.php
<?php add_filter(‘postie_post_before’, ‘my_postie_post_before’, 10, 2); function my_postie_post_before($post,$headers) { $from = $headers[‘from’][‘mailbox’] . "@" . $headers[‘from’][‘host’]; $content = $post[‘post_content’]; $newcontent = "<p>Sent from: " . $from . "<br></p>". $content; $post[‘post_content’] = $newcontent; return $post; } ?>
I put echo “in my_postie_post_before”; instead of the function my_postie_post_before {…} part
- This reply was modified 7 years, 11 months ago by andybarabash.
Forum: Plugins
In reply to: [Postie] Add “From” field into post contentChecked this, the filter is being called:
Forum: Plugins
In reply to: [Postie] Add “From” field into post contentI modified the code, here’s how it looks now:
<?php add_filter(‘postie_post_before’, ‘my_postie_post_before’, 10, 2); function my_postie_post_before($post,$headers) { $from = $headers[‘from’][‘mailbox’] . "@" . $headers[‘from’][‘host’]; $content = $post[‘post_content’]; $newcontent = "<p>Sent from: " . $from . "<br></p>". $content; $post[‘post_content’] = $newcontent; return $post; } ?>
But still doesn’t work. Nothing is shown in posts except for email content.
Forum: Plugins
In reply to: [Postie] Add “From” field into post contentThank you a lot! This really helps.
I’ve updated my filterPostie.php file (and Postie sees it in debug mode), but unfortunately nothing changes when it comes to publishing new posts from emails ?? So, a line with ‘From’ email does not show up.My filterPostie.php now looks like this:
<?php add_filter(‘postie_post_before’, ‘my_postie_post_before’, 10, 2); function my_postie_post_before($post,$headers) { $from = $headers[‘from’][‘mailbox’]; $content = $post[‘post_content’]; $newcontent = "<p>Sent from: $from <br></p> $content"; $post[‘post_content’] = $newcontent; return $post; } ?>
Forum: Plugins
In reply to: [Postie] Add “From” field into post contentThanks for the info, but I’m afraid I’m still not getting this.
I created a a file called FilterPostie.php, and added the filter there:<?php function my_postie_post_function($post) { //do something here like update $post['post_content'] return $post; } add_filter('postie_post_before', 'my_postie_post_before', 10, 2); function my_postie_post_before($post, $headers) { //Do something return $post; } ?>
Seems like now I just need to (1) introduce $email parameter somewhere and (2) add it to the post content (so that the first line of the post is “Sent from: $email”, and starting from the second line there goes email content). Am I right? What should I do next?
Sorry for all these questions, I’m not a programmer at all.- This reply was modified 7 years, 11 months ago by andybarabash.
Forum: Plugins
In reply to: [Postie] Posite doesn’t work with Yahoo mailI’m not sure what I did exactly, but after several hours of attempts it finally works!
Thank you for this awesome plugin.Forum: Plugins
In reply to: [Map My Posts] Target not workingSame problem. All links in Geochart open in new windows no matter what I choose as Link Target.
Forum: Themes and Templates
In reply to: [Oblique] How to activate Infinite scroll?I almost had something working with the Ajax load more plugin but could not figure out how to replicate the theme’s format in the repeater template.
Same problem here.. can anyone help?
Forum: Themes and Templates
In reply to: [Oblique] Menu always visible in the headerThis is what I need, too. Up!
One update: I found a plugin which automatically searches for video thumbnails and makes them featured images for the post.
However, it asks for:the name of the custom field where your embed code or video URL is stored.
Can you please tell me in which custom field your plugin stores embedded videos, or full video URL?
I tried emd_video_key, but it didn’t work.