Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 16, 2024Nov 16 I have this notification. So, I am using two custom blocks. One is plain HTML. The other one has some JavaScript and just a php echo to insert the script. Can I use this somehow in v5?
November 16, 2024Nov 16 What's the reason for not using plain HTML to add your JS code to the code? There's no need for php ?! or is it some dynamic JS code which also requires php variables?
November 16, 2024Nov 16 Author I think the php echo was used simply to insert the script. So I will try to save the javascript code in a .js file and insert it with plain HTML and see if this will make the warning go away.
November 20, 2024Nov 20 Author It turns out the block contains more php code that actually does something. So probably we will convert the php code to JS.
November 20, 2024Nov 20 Or convert to PHP template code? Like {{$variable = 5;}} I assume this continues to work?
November 20, 2024Nov 20 However, language strings are still exist: content_block_add_custom_type_php and content_block_add_custom_type_php_desc Edited November 20, 2024Nov 20 by Kirill Gromov
November 21, 2024Nov 21 15 hours ago, Kirill Gromov said: However, language strings are still exist: content_block_add_custom_type_php and content_block_add_custom_type_php_desc Feel free to post that up within the v5 bug tracker 21 hours ago, opentype said: Or convert to PHP template code? Like {{$variable = 5;}} I assume this continues to work? You may be best to ask questions like this in the v5 beta discussion area, rather than here