Hi, is there any change you’re going to make this plugin compatible with the latest revision of WP?
Thank you.
The ‘src’ attribute of iframes is not getting set in version 1.3.1, resulting in empty iframes. The following patch fixes the problem:
--- plugin.php.orig 2023-10-31 11:09:39.560071391 -0500
+++ plugin.php 2023-10-31 11:09:11.493582610 -0500
@@ -110,7 +110,7 @@ if (is_admin()) {
if (isset($attrs['src'])) {
$tmp = '';
foreach ($attrs as $key => $value) {
- if (!in_array($key, ['width', 'style', 'class', 'id', 'height'])) {
+ if (!in_array($key, ['src', 'width', 'style', 'class', 'id', 'height'])) {
continue;
}
$value = strip_tags($value);
Although iframe support isn’t really needed by people using the Gutenberg editor, some sites can’t use that editor for various reasons. Therefore, we really appreciate this feature of the plugin, not to mention the other goodies it provides. Thanks!
]]>Needed plugin like this for a school project. Installed and trying to use iframe. I have tried using only local (same domain file, includeme dir file, and:[includeme src="https://example.com" frameborder="0" width="500" height="400"
]
I have of course tried other domains in place of example.com that I know can be placed in iframe. Always a blank iframe with no content. What am I missing?
CLOSED / RESOLVED: issue – I am a big dummy:)
Ended up with a wrong quote style (”) because I copied from web page.
Verison 1.3.0 seems to be the final version of the plugin, and it’s tested up to version 5.7.10. Is the plugin abandoned? Will it ever see another update?
]]>Quando inserisco un codice in inside post il plug in inserisce quel codice in tutte le pagine del sito web, non solo negli articoli. in particolare ho necessità di mostrare un form di iscrizione all’interno degli articoli del blog.
Forse sbaglio qualcosa?
INNER POST INJECTION 1
Inject after skipping 40% chars, on failure before the content
<div class="ml-form-embed"
data-account="XXXXXX:XXXXXX"
data-form="XXXXXX:XXXXX">
</div>
When I insert a code in inside post the plugin inserts that code in all the pages of the website, not only in the articles. in particular I need to display a subscription form within blog articles. Maybe I’m doing something wrong?
]]>Hey,
i would like to embed 2 different php scripts at one page. The first script contain mysql-Query. How can i use a part of the mysql-result in my second script?
for example:
[includeme file=”settings.php”]: This file get the settings “$color”, “$house”, “$name” from database. This file print also the variable $color,
later at this wordpress-page i embend a script
[includeme file=”owner.php”]: this file use the variables $house und $name from my first script “settings.php”.
If i echo the variables $house and $name i do not get a result. Why?
Thank you
]]>Hi,
i don’t know why, but unfortunately the plugin stopped working.
Attached is a URL, where this happens.
What can i do about this?
The Code of the shown file is:
<?php
#$url = 'osteoporose/was-ist-osteoporose/';
$url = 'https://www.osteoporose-deutschland.de/'.$include_me_url;
$content = file_get_contents($url);
$pattern = '=Start Content(.*)Finish Content=isU';
$result = preg_match($pattern, $content, $subpattern);
$content = substr($subpattern[1],86,strlen($subpattern[1])-84-86);
if (strpos($content,'twoclick_social') !== false) {
$content = substr($content,0,strlen($content)-2087);
}
#$content = str_replace('https://','https://',$content);
$content = str_replace('<a ','<a target="_blank" ',$content);
echo $content;
]]>
I’m having trouble with the plugin using it more than once on a page.
I get a WordPress error just saying “There has been a critical error on this website.”
]]>the code is working but not executing php file content
]]>Include me won’t allow me to add a php shortcode because of this error.
The inclusion folder /home/a8ejlqa9boxk/public_html/wp-old/wp-content/include-me does not exit.
I am assuming this error is meaning to say exist. Not sure where to go from here.
]]>Hi,
I have been using this plugin but when the post does not belong to the Administrator, the plugin show this message:
Only admnistrator owned posts can execute the [includeme] shortcode. This message is shown only to administrators.
What can I do?
Thanks a lot.
Great plugin.
Diego.
I tried this in a page on my site a week ago when WordPress was still 5.8.2 and it worked great on posts and on pages. But today, I updated WP to 5.8.3 and the includeme shortcode no longer works.
I tried it on a page tonight and what I get is “Only admnistrator owned posts can execute the [includeme] shortcode. This message is shown only to administrators.”
I am the administrator so it should at least work for me. But it really needs to work for all administrators, site managers, authors, editors, and contributors who write/edit posts and pages.
I was really hoping this would work so I can replace all my PHP includes statements with includeme shortcodes. Can you update it to work for everyone in WP 5.8.3? Please and thank you.
]]>The link to the documentation instructions https://www.satollo.net/plugins/include-me gives the following error
“Error establishing a database connection”
So does the link to your Facebook page.
]]>I get the following error. Is there away I can change is so that the shotcode displays everywhere?
Error i see is: Only admnistrator owned posts can execute the [includeme] shortcode. This message is shown only to administrators.
]]>I did some amateur troubleshooting and it seems that:
A) The plugin is not looking in the defined “Include-me” folder
B) If you custom defined a folder the plugin does not recognize the variable
C) I was able to temporarily resolve the problem by editing the plugin directly
the file is ‘wp-content/plugins/include-me/plugin.php’
at the top of the file:
if (!defined('INCLUDE_ME_DIR')) {
// define('INCLUDE_ME_DIR', WP_CONTENT_DIR . '/include-me');
define('INCLUDE_ME_DIR', WP_CONTENT_DIR . '<YOUR PATH HERE>');
}
I hope this helps you and the developer.
]]>So, Without adding anything to wp-config, I figured that if I created a include-me folder in wp-content, and put my file in there, that it would work.
It doesn’t.
]]>Hi @satollo, and sorry for the title ??
Reading through a couple of support questions, I see that you had to change your plugin to include a specific include-path for files to be included.
All very nice and understandable, but why don’t you add that info in your plugin docs? That’s a lot less text to type than answering all these questions. Will probably take you 5 minutes.
Also, if you allow for a custom (THEME relative?)include path as an alternative for the include-me folder, that would be a nice extra, instead of tampering with the wp-config file.
Finally my question:
Adding define('INCLUDE_ME_DIR', '*')
to my wp-config breaks some javascript, making my site completely unusable.
So I wnat to add a specific folder, relative to WP_content, but I can’t get the syntax right. Any help?
Oh and don’t get me wrong, I LOVE this plugin for it’s simplicity and ease of use.
Adding
]]>I use IncludeMe shortcodes in pages/posts and in TEXT WIDGETS that are in my sidebar. Both worked fine prior to updating to WordPress v5.8. After updating to WP v5.8, the IncludeMe shortcodes in my sidebar no longer work on my homepage. The shortcodes in the sidebar do still work when viewing a single post or page, but only do not work on the homepage.
Other shortcodes, like the ones supported by default by WordPress, do still work on my homepage sidebar.
As a workaround for this issue, I installed the plugin “Code Widget” which provides the option to place a “shortcode” widget. The IncludeMe shortcodes do work on my homepage sidebar in that plugin’s “shortcode” widgets, even though they no longer work in the TEXT WIDGET.
I have added define(‘INCLUDE_ME_DIR’, ‘*’) to wp-config and I have tried reverting back to v1.2.2 of IncludeMe, but neither one fixed the issue with shortcodes not working on my homepage sidebar.
Any thoughts or things I could try? While everything is working as expected when I put IncludeMe’s shortcodes in the “Code Widget” plugin’s widgets, I’d much rather use standard TEXT WIDGETS.
]]>Love the plugin. I see wp closed it. But you need to offer options after update because it simply breaks. Its trying to find files in a folder that doesn’t exist yet. After the update, you ought to tell admins to move their files within 30 days otherwise things will break. This alleviates the annoyance of admins having to figure it out for themselves. Or worse… removing the plugin and using something else.
]]>Hi,
I love IncludeMe plugin and have been using it for over 2 years.
With the new versions 1.2.2 and 1.3.0, Shortcode works fine but it looks like there is a conflict with the theme I use “GeneratePress”. I had to revert to 1.2.1.
Problem description:
– The Right Widget Sidebar does appear on all pages even on pages where the sidebar is disable.
– As an example, see my test site home page :
– The IncludeMe shortcode is not even present on that page.
– BTW, I use IncludeMe only to insert post text into pages.
Thanks in advance for looking into this.
Hi Stefano,
We have used include-me for years now without any problems. Suddenly it seems not to work any more. In the frontend nothing happens at all. In the backend (logged in as admin) the message is:
The provided file (xxx.php) does not exist in the inclusion folder (wp-content/include-me – if not customized). This message is shown only to administrators.
I have read all relevant posts but I cannot get it working again.
Up to now we used the folder “wp-content/myphpfiles”, which had worked for years:
[includeme file=”wp-content/myphpfiles/xxx.php”]
Now I also tried starting with “/”:
[includeme file=”/wp-content/myphpfiles/xxx.php”]
Since the error message seems to request the folder “wp-content/include-me” I made a duplicate of the existing folder “myphpfiles” named “include-me” and also tried these:
[includeme file=”wp-content/include-me/xxx.php”]
[includeme file=”/wp-content/include-me/xxx.php”]
Then I also tried with the absolute paths:
[includeme file=”/www/htdocs/xxx/domain.com/wp-content/myphpfiles/xxx.php”]
[includeme file=”/www/htdocs/xxx/domain.com/wp-content/include-me/xxx.php”]
I even tried adding “define(‘INCLUDE_ME_DIR’, ‘*’)” to the config.php as suggested in one of the posts.
Nothing works. Can you please tell me how to get it working again?
Thank you,
Rainer
]]>newest version does not work. I tried to use the define statement in wp-config.php to allow includes from everywhere but it still tries to look for included file in wp-content/include-me. Used WP rollback and installed older version of include-me which works great with latest WordPress 5.7.2 This is a great plugin. Just fix the new version and everyone is happy.
]]>Hi, right after update I stared getting this error (with broken includes):
“Only admnistrator owned posts can execute the [includeme] shortcode. This message is shown only to administrators.”
I used WP Rollback plugin to go back a couple versions, and error is gone. But of course, I need to update plugin.
Any ideas what might be causing this issue and what I can do to correct it? Thanks for any help.
]]>Is there anything that can be shared about the reason Include Me is closed for download? So far, I’ve not had a problem with plugin on the sites I’m using it, but it concerns me that WordPress is blocking it for download.
]]>Hi Stefano,
Thank you so much for creating and maintaining this awesome plugin!
Since most of us (i hope) are working with a child theme, could it be possible to provide us with an option to include the php file located in the child theme, perhaps using get_theme_file_path? Just to shorten the path to file a bit…
Thanks for considering my request.
]]>Hi Stefano,
Come stai oggi? Purtroppo non parlo italiano, mi scuso
I wonder if one could you your plugin to include the content of a text file that has the name of the WordPress Page Title such as pagename.txt
I thought to create a text folder in the root of the domain and saved all texts I want to include on WordPress pages using the later page name of these
Then I want to “pull” the respective text using your plugin in a short code area of the template I use
[includeme file=”$pagename”]
Would that be possoible?
Thanks for letting me know if that would work and many thanks for your time to answer
Best, Tony
]]>Hi!
Can we add an ACF value on the include me value?
Something like:
[includeme file=info1.php value=[acf field=”lang”]]
]]>I have been using the Include Me plugin for sometime. I use it to include php/mysqli files that I create outside of the wordpress directory on my server. The files pull data from databases outside of wordpress. But now out of the blue, the file code dies when my code calls for connection to mysql database using mysqli/php. I can run the file outside of wordpress and it works, but dies when using includeme. No changes and it has been running great for a very long time. I did update the plugin about 3 weeks ago, but it was working upto about 3 days now.
My shortcode I use points to the root and then to the file directory where file is saved. Again I have not changed anything, nor has anything been changed on the server.
[includeme file=”/home/mysite25/public_html/calendarall.php”]
Has anyone had the same kind of issues? if so advice please ?? Thanks
]]>Options aren’t loading/no boxes to include any scripts?
]]>I get this error “The specified file on Include Me shortcode does not exist.” when instead the file does exist.
I am using an absolute path:
[includeme file=”/reviews/index.php”]
My wordpress is installed in:
domain.com/wp
and the file I want to include is installed in:
domain.com/reviews
What am I doing wrong?
]]>