Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Can I add a BBCODE for [?php], and how to do it?

Asked Modified Viewed 1,327 times
M
MotyerJM
M
My PHP-Fusion 7.02.07 site running under Chrome-Fusion v2.00.03 (using PHP 7.2.0 with MySQL 8.0.28):
   • https://www.FusionWings.com (my MAIN site)

My PHP-Fusion 7.02.07 site running under PHP-Fusion IUP 1.6 (using PHP 8.1.0 with MySQL 8.0.28):
   • https://www.FusionWings.me (my TEST site)

My PHP-Fusion 9.x site, trying to make it look similar to either of the 2 above PHP-Fusion 7 sites:
   • https://www.NitroWings.me (my TEST site)

My PHP-Fusion 7.02.07 site running under Chrome-Fusion v2.00.03 (using PHP 7.2.0 with MySQL 8.0.28):
   • https://www.PanAurora-Tech.com (my business site)
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hello, all.

I have a handful of sites running PHP-Fusion 7 ( upgraded to run on PHP 8 & MySQL 8 cool ).

Some of my custom pages on those sites are identical, so rather than keeping those pages updated on the individual sites, in the custom pages I just have a single line, such as:

Quote

<?php include 'D:Webcommondocument1.php';?>

Those documents are basically just html files containing a bunch of tables <table>, <tr>, <td>, <font>, <img>, etc.

I would like to start using PHP-Fusion 9, and have just installed 9.10.20.

I would like to use those same <php> links in my PHP-Fusion v9.

I've seen some threads here about creating new bbcodes, such as RobiNN's reply to someone for adding a paragraph bbcode, but I'm not sure if I can do the same for [?php], and if it's possible, how exactly to modify an existing bbcode's files.

Any suggestions would be greatly appreciated.

Thanks in advance & have yourselves a great day.

Regards & be safe,

John
Edited by MotyerJM on 03-05-2022 23:11,
0 replies

5 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

You can enable PHP Execution under Settings > Security.
0 replies
M
MotyerJM
M
My PHP-Fusion 7.02.07 site running under Chrome-Fusion v2.00.03 (using PHP 7.2.0 with MySQL 8.0.28):
   • https://www.FusionWings.com (my MAIN site)

My PHP-Fusion 7.02.07 site running under PHP-Fusion IUP 1.6 (using PHP 8.1.0 with MySQL 8.0.28):
   • https://www.FusionWings.me (my TEST site)

My PHP-Fusion 9.x site, trying to make it look similar to either of the 2 above PHP-Fusion 7 sites:
   • https://www.NitroWings.me (my TEST site)

My PHP-Fusion 7.02.07 site running under Chrome-Fusion v2.00.03 (using PHP 7.2.0 with MySQL 8.0.28):
   • https://www.PanAurora-Tech.com (my business site)
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Thanks for getting back to me, Falk.

I must be missing something. I'm in Settings > Security, on the Security Settings page, but I don't see anything related to enabling PHP Execution, or anything else related to PHP.
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

My misstake, the option was removed in later revisions. Best method is to make a new file with your custom content and create a link to it.

<?php
require_once "maincore.php";
require_once THEMES.'templates/header.php';

// Your content.

require_once THEMES.'templates/footer.php';
0 replies
M
MotyerJM
M
My PHP-Fusion 7.02.07 site running under Chrome-Fusion v2.00.03 (using PHP 7.2.0 with MySQL 8.0.28):
   • https://www.FusionWings.com (my MAIN site)

My PHP-Fusion 7.02.07 site running under PHP-Fusion IUP 1.6 (using PHP 8.1.0 with MySQL 8.0.28):
   • https://www.FusionWings.me (my TEST site)

My PHP-Fusion 9.x site, trying to make it look similar to either of the 2 above PHP-Fusion 7 sites:
   • https://www.NitroWings.me (my TEST site)

My PHP-Fusion 7.02.07 site running under Chrome-Fusion v2.00.03 (using PHP 7.2.0 with MySQL 8.0.28):
   • https://www.PanAurora-Tech.com (my business site)
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Great idea, except 9.10.20 is crashing due to every <>, like <table>, <tr>, <td>, <font>, <img>, etc.

Parse error: syntax error, unexpected '<', expecting end of file....

Would you by any chance recall what the last approximate version of PHP-Fusion 9 was that I would still be able to enable PHP Execution under Settings > Security?

I don't mind going back a few versions of PHP-Fusion 9... hell, I've been happily running my sites flawlessly for the past decade on PHP-Fusion 7 B), but as I do every couple of years, thought I would try to bring better security to my sites with PHP-Fusion 9, as long as I can get it to work & look (almost) identical to PHP-Fusion 7, but it appears it can't. And without a similar theme as Gillette's default theme for v7, it doesn't even come close.

Don't get me wrong, I am NOT bashing v9, it looks great :), it just doesn't suit my needs.

Thanks anyway for your help & suggestions, Falk, I sincerely appreciated you taking the time to reply.

Regards,
John
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

If you only use HTML, terminate the PHP and enable it again.

<?php
require_once "maincore.php";
require_once THEMES.'templates/header.php';
?>

// Your content.

<?php
require_once THEMES.'templates/footer.php';
0 replies

Category Forum

BB Codes - 9

Labels

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
M
M
My PHP-Fusion 7.02.07 site running under Chrome-Fusion v2.00.03 (using PHP 7.2.0 with MySQL 8.0.28):
   • https://www.FusionWings.com (my MAIN site)

My PHP-Fusion 7.02.07 site running under PHP-Fusion IUP 1.6 (using PHP 8.1.0 with MySQL 8.0.28):
   • https://www.FusionWings.me (my TEST site)

My PHP-Fusion 9.x site, trying to make it look similar to either of the 2 above PHP-Fusion 7 sites:
   • https://www.NitroWings.me (my TEST site)

My PHP-Fusion 7.02.07 site running under Chrome-Fusion v2.00.03 (using PHP 7.2.0 with MySQL 8.0.28):
   • https://www.PanAurora-Tech.com (my business site)
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet