Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed into Wordpress. #124

Closed
ThomasMattOnline opened this issue Feb 8, 2019 · 3 comments
Closed

Embed into Wordpress. #124

ThomasMattOnline opened this issue Feb 8, 2019 · 3 comments
Labels

Comments

@ThomasMattOnline
Copy link

Hello, I have a basic PHP Wordpress template file and I am trying to embed using the code:

My file is set at: portal/tinyfilemanager.php

So I have set it to there like this:

However nothing happens?

I have looked into Auth users set that to true or false but still nothing! If anyone has any advice that would be extremely helpful! Thank you!

@prasathmani
Copy link
Owner

Embedding file manager in another script.

define('FM_EMBED', true);
define('FM_SELF_URL', $_SERVER['PHP_SELF']);
require 'path/tinyfilemanager.php';

check document

@ThomasMattOnline
Copy link
Author

Embedding file manager in another script.

define('FM_EMBED', true);
define('FM_SELF_URL', $_SERVER['PHP_SELF']);
require 'path/tinyfilemanager.php';

check document

Yeah that doesn't work in wordpress..

@prasathmani
Copy link
Owner

@ThomasMattOnline , Tinyfilemanager doesn't work with WordPress templates, because WordPress and tinyfilemanager are using same query param ?p= and tinyfilemanager has redirection on render based on file path so wordpress will be through headers already sent error. better try tinyfilemanager as separate file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants