Forum Replies Created
-
AuthorPosts
-
Aakash ChakravarthyKeymaster
Instead of this
$a = explode('KB', $desc);
use this
$a = preg_split('/ (KB|MB) /', $desc);
Aakash ChakravarthyKeymasterRevert back the change I last asked.
Now, paste these lines
$a = explode('KB', $desc); if(count($a) > 1){ $desc = $a[1]; }else{ $desc = $a[0]; }
after this line
$desc = str_replace( array( "\n", "\r" ), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
Aakash ChakravarthyKeymasterPlease hold on..
Aakash ChakravarthyKeymasterCan you please try the suggestion I have mentioned earlier ?
Aakash ChakravarthyKeymasterIs it possible to remove it in the RSS feed itself ?
RSS reader will display the description as is. The plugin has no idea about the text.
Other suggestion I can think of is in feed.php search for below line
$desc = str_replace( array( "\n", "\r" ), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
and replace it with below
$desc = str_replace( array( "\n", "\r" ), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ), '<span>' ) ) );
Then use the CSS
.informations{display: none}
Thanks,
AakashAakash ChakravarthyKeymasterHi @Ed,
Sorry I was not aware that you used the PRO version.
Good that you were able to change the 3 lines yourself.
Regarding the additional text, that is coming from the RSS feed.
You can use CSS to hide it.Can you please share me the page where it is used ?
I’ll suggest CSS to hide them.
Aakash ChakravarthyKeymasterYou’ve made the change incorrectly.
Please copy full file from here – https://pastebin.com/vv0BcFD2Aakash ChakravarthyKeymasterOk.. you have to edit the code a bit. I haven’t tested, but you can give a try.
Replace lines 275, 276 and 277 like below in
https://plugins.trac.wordpress.org/browser/super-rss-reader/trunk/includes/feed.php#L275275 if( !empty( $urls ) && isset( $urls[1] ) ){ 276 return $urls[1]; 277 }
Here you can change 1 to n-1th image you would like to pick. i.e if 2nd image then 1. if 3rd then 2.
Please disable the plugin before making any modification.
Thanks,
AakashAakash ChakravarthyKeymasterHi,
If image is not found in the first 3 locations then the image will be picked from the tag present in the description.
Please do try the RSS feed and see if you are getting the expected image.
Thanks,
AakashNovember 12, 2020 at 3:52 pm in reply to: How to show images in the feed? Chinese twitter like site: weibo’s feed. #8368Aakash ChakravarthyKeymasterCheers !
November 11, 2020 at 1:00 am in reply to: How to show images in the feed? Chinese twitter like site: weibo’s feed. #8364Aakash ChakravarthyKeymasterHi,
Can you please press ctrl+shift+i in chrome and see the details error message.
Since you say error code is 403 it means it is “forbidden” it is possible that weibo is not allowing to hotlink the image from another website ?
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403Please look at the errors in your browser console for more detailed information.
Thanks,
AakashAakash ChakravarthyKeymasterHi Anton,
Thanks for using Shortcoder. Happy that you like the plugin.
So as I can understand, you will be creating multiple shortcodes for the text “my text 0x” which has to be used elsewhere.
So my suggestions are
1) Utilize “custom parameters”
i.e Create 1 shortcode, have placeholders in them and change the value when you are using them in posts/pages. See below page for the documentation.
a) https://www.aakashweb.com/docs/shortcoder/custom-parameters/
b) https://www.aakashweb.com/docs/shortcoder/shortcode-parameters/ (shortcode enclosed content)2) Manage multiple shortcodes by assigning tags using which you can filter.
Regarding your proposal, I’m happy that you have taken time and have shared it with me. I’ll sure evaluate and consider them based on the multiple user requests and efforts needed from my side to implement the same.
For now please do try above suggestions which I think would be helpful.
Thanks,
AakashAakash ChakravarthyKeymasterHi @famarinu,
Thanks for using WP Socializer.
There is a small blip because, the decision to hide the follow icons is made on the browser side.
Anyways, you can use below CSS to instantly hide it using CSS.
@media only screen and (max-width: 767px){ .wpsr-follow-icons[data-sm-action="hide"] { display: none; } }
Hope it helps.
Thanks,
AakashAakash ChakravarthyKeymasterHi @nickthegeek,
The shortcode is inserted in the correct location as expected.
But the code you are using seems to be non functioning (see image below)
Probably it is designed to be used only one time in a page. Please check with the script owner/website to fix this issue.
Thanks,
AakashAakash ChakravarthyKeymasterHi Usha,
Yes you can do that. You can use the “follow icons” feature.
Please see screenshot below,
https://i.snipboard.io/eb7sFB.jpgThanks,
Aakash -
AuthorPosts