PluginlySpeaking
Forum Replies Created
-
Forum: Plugins
In reply to: [Floating Div] Inner content no overflow how?Hi,
Unfortunately, I am not able to edit my reply anymore. I had only 1h, now it’s up to the moderator to accept to delete your URL or not.
About your issue, I think it is because your top “banner” is made with 7 or 8 different images and the browser wants to display them all.
If you had only 1 image and you set your background to 100%, it would keep the same centered image (I believe).Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Inner content no overflow how?Hi,
I think the issue comes with the media queries (CSS that involves the size of the screen, it is used for responsive purpose).
Could you give me an URL? It would help me troubleshooting.
I guess your website is https://mixnet.lt/ but I couldn’t find the floating div.
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Change div style in .css fileHi,
What would you like to change ?
Would you like the classes that would let you modify the Div appearance ?Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Scratching Effect] Unable to click on discovered imageHi,
Sorry for the late answer, I can’t access your URL in order to see what’s wrong.
Let me know if it’s a local website or if there was a mistake in the url.
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Removing shadow?Hi,
Try to add this in your css file :
#floatdiv_422 .exp_floatdiv_content_padding_pro {
box-shadow: none !important;
}It should be ok, I remain available if you need any help.
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Allow PHPYou are welcome.
Just some advices about this piece of code we added.Be careful with $suffix_url, the variable isn’t initialized and if the user isn’t logged, I doubt the URL ending with space will be found.
Also be careful in general, there is absolutely no test in the shortcode psfd_php, it reads the PHP you put inside and that’s all.
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Allow PHPOn my side, I have the floating div with an empty iframe. The floating div isn’t removed.
If you used copy/paste, did you check that the quotes aren’t modified ?
[psfd_php] if ( 0 != get_current_user_id() ) { $suffix_url = get_the_author_meta( 'user_description', get_current_user_id() ); } else { $suffix_url = 'Not logged in user'; } echo '<iframe width="362" height="395" src="https://something.com/'.$suffix_url.'" frameborder="0"></iframe>'; [/psfd_php]
Here is a version with code balise, maybe I should have use them earlier.
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Allow PHPDid you try something like this :
[psfd_php]
if ( 0 != get_current_user_id() ) {
$suffix_url = get_the_author_meta( ‘user_description’, get_current_user_id() );
} else {
$suffix_url = ‘Not logged in user’;
}echo ‘<iframe width=”362″ height=”395″ src=”https://something.com/’.$suffix_url.'” frameborder=”0″></iframe>’;
[/psfd_php]
I use get_the_author_meta instead of just the_author_meta because you need to store the value in a variable, and not just display it.
In this example, I think you should modify the “else” of the conditions, because it will give you an unreachable URL.
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Allow PHPHi,
Sorry for the late answer, which error do you get with this code ? Is it the error in the last of the three screenshots you sent me ?
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Removing shadow?Hi,
Sorry for the delay, yes it can be done with a bit of CSS.
I can’t reach your URL, is there a mistake somewhere ? Or does it come from my side ?It would help me to give you the best answer for you.
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Allow PHPI did some tests on my side and it’s working.
I used the same shortcode as you :
[psfd_php] if ( 0 != get_current_user_id() ) { the_author_meta( 'user_description', get_current_user_id() ); } else { echo 'Not logged in user'; } [/psfd_php]
Firstly, it didn’t display anything. The reason was simple, my personnal user’s description was empty.
I put some stuff in it and then the description was displayed in the floating div.
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Allow PHPWhat is the output of the shortcode ?
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Allow PHPOk, so you have to add the following code at the end of the
pluginlyspeaking-floatingdiv.php
file (just before the ” ?> “) :add_shortcode( 'psfd_php', 'psfd_shortcode_php' ); function psfd_shortcode_php($atts, $content = null) { ob_start(); eval($content); $output = ob_get_clean(); ob_end_clean(); return $output; }
It will create a shortcode that you can use like that :
[psfd_php] any php code [/psfd_php]
For example, the following shortcode :
[psfd_php] echo “Today is ” . date(“d/m/Y”); [/psfd_php]
will display :Today is 02/11/17
Forum: Plugins
In reply to: [Floating Div] Allow PHPHi,
I found something that could work, it requires to edit the php file.
Are you familiar with editing the file via your FTP client ?
Or would you prefer to get a new php file and simply upload it ?Let me how you would like to proceed.
Best Regards,
PluginlySpeakingForum: Plugins
In reply to: [Floating Div] Allow PHPHi,
It isn’t possible currently, the php code is immediately commented by WP.
<?php echo “Today is ” . date(“d/m/Y”); ?>
becomes
<!–?php echo “Today is ” . date(“d/m/Y”); ?–>
I will take a look if I can find a way to allow PHP code in the WP textarea and come back to you.
Sorry for the inconvenience,
Best Regards,
PluginlySpeaking