When creating a snipet, and then try to save, I get an forbidden Error. In the error there is no reason at all why the error happen.
You can reproduce this by trying to insert this piece of code at HTML/PHP.
<?php
/* Attempt MySQL server connection. Assuming you are running MySQL server with default setting (user 'root' with no password) */
$link = mysqli_connect("localhost", "root", "", "demo");
// Check connection
if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); }
// Attempt select query execution
$sql = "SELECT * FROM persons";
?>
]]>
The shortcode I have used in a page works but I’m starting to think there are too many limitations in this product to be useful (apart from not working correctly in WP 6.1.1).
In the TITLE Field (under advanced) of an image it sort of works but all PHP comments and SCU div are displayed in the image’s tooltip. Comments coming out surely must be a bug? – But I don’t know PHP
Is there an override for the the “div” being generated? The fact that my output is CURRENTLY in HTML is not an issue as I can fix that, the rest I can’t as far as I know.
I tried it in alt text also, this is the generated code:
<img data-attachment-id="4872" data-permalink="https://www.wcipp.org.au/test-image-not-seen-on-xxxxx-web-page-used-for-testing-image-related-stuff/" data-orig-file="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?fit=1920%2C1080&ssl=1" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}"
data-image-title="test-image [Not seen on xxxxx Web Page, used for testing Image related stuff]"
data-image-description="<p>Test Image Description<br />
<span>[scu name="'dbtest2'"] is not installed or enabled</span></p>
" data-image-caption="<p>Test Image Caption<br />
<span>[scu name="'dbtest2'"] is not installed or enabled</span></p>
" data-medium-file="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?fit=300%2C169&ssl=1" data-large-file="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?fit=1024%2C576&ssl=1" decoding="async" loading="lazy" width="206" height="206" data-id="4872" src="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?resize=150%2C150&ssl=1"
alt="Test Image Alt Text
<div class="scu-shortcode sc-dbtest2" data-name="dbtest2" data-p1="yyy" data-p2="p2value"><!-- Available PHP variables: -->
<!-- $content: content of the shortcode (if configured so) -->
<!-- $atts: array of attributes of the shortcode (if any) -->
<!-- $resources_url: url of the shortcode resources dir -->
<hr>CONTENT: dbtest2 content<hr>P1: "yyy"<br>P2: "p2value"<br>P3: ""<br><hr></div>" class="wp-image-4872"
title="<div class="scu-shortcode sc-dbtest2" data-name="dbtest2" data-p1="yyy" data-p2="p2value"><!-- Available PHP variables: -->
<!-- $content: content of the shortcode (if configured so) -->
<!-- $atts: array of attributes of the shortcode (if any) -->
<!-- $resources_url: url of the shortcode resources dir -->
<hr>CONTENT: dbtest2 content<hr>P1: "yyy"<br>P2: "p2value"<br>P3: ""<br><hr></div>" srcset="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?resize=150%2C150&ssl=1 150w, https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?resize=600%2C600&ssl=1 600w, https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?zoom=2&resize=150%2C150&ssl=1 300w, https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?zoom=3&resize=150%2C150&ssl=1 450w" sizes="(max-width: 150px) 100vw, 150px" data-gallery-src="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?fit=2936%2C1450">
In the description field it just says that the shortcut is not installed or enabled:
[scu name="’dbtest2"”] is not installed or enabled
Notice the extra double quotes, I was having this particular issue with another product so that may be something environmental….
]]>Hi,
I can add your tutorial shortcodes, but can’t change their icons.
I successfully created a new shortcode which I can’t add as a block, I believe the reason is likely because of the fact that the icon editing/adding seems broken (empty results list (or white on white, not sure, tried clicking in empty spaces without luck).
As per a previous email for which I haven’t received a reply, it also says (on WP 6.1.1):
Warning: This plugin has not been tested with your current version of WordPress.
This duplicated an email I sent this morning, I noticed you prefer emails but you don’t seem to respond to those now…
]]>Hi,
First, many thanks for you awesome plugin.
Second, i want to insert shortcodes in Avada theme page builder elements like text element. But Avada returns shortcode text and do not execute that.
Is there a way to solve this problem?
Hello,
If I use the following code (part of a MySQL query in php)
$searchStmt .= ("price >='$search_low' AND price <='$search_high'");
The Greater than and Less than operators cause a problem and are seen as the end of the php code block. It’s fine if I use
$searchStmt .= ("price =='$search_low' AND price =='$search_high'");
I can’t use < > instead – they are not seen by MYSQL as operators
Any way to solve that?
]]>Hi,
It works great for PHP, if not a little fiddly for me as I have 2 languages so have to create 2 sets of files! No matter it’s stable which is good and I have some properties called in php from a database and I’m working on getting those to look better.
I’m trying to add some lightbox effects using javascript and the Javascipt works fine in an html or PHP file independent of WordPress
when I try and use it in Shortcodes Creator I can see the code in the source but it doesn’t run.
You got any docs or tips for adding JS to a page? I am fine with php but js include files ???
Thanks and for Creator Ultimate!!
Hi
How do you use the shortcodes? The instruction aren’t very clear.
Can I use the shortcode in a template file?
So far tried different ways and nothing.
Morris
]]>