FusionBB
Username Post: Including external php in post
JoshPet
FusionBB Developer
Total Posts: 6722
*
Birthday: 02-08 
Location: Charlotte, NC
Average Post Ranks%:                       
01-12-12 12:56 AM - Post#85901    
    In response to carbmonkey

Sadly, due to the nature of FusionBB it's not possible to execute PHP from within a post or insert. You can execute PHP from within particle boxes which can appear on your portal or in your sidebar, so placing something like
Code:

  include_once('/home/whatever/public_html/rate-photos/ratings.php');  




in the code section of a particle box would allow it to execute.

You might be able to get this to work by modifing scripts, would just depend on exactly how you needed it to appear. For example, appearing on all forum posts, would be pretty easy, because you could execute the code in the script and assign the output to a variable used in the template, however it gets kinda hard if it only needed to appear in a certain post or article.

The only other way I can think to get around it, would be to include the content via an iFrame, then you're essentially displaying another page (where you can execute your script).



Feel Better, Feel Younger, Sleep Better - Trans-D Tropin
Visit www.BuyTransD.com - use coupon code 1004 to save $20

NOTE: You are viewing an individual Post. View the Entire Topic
FusionBB™ Version 3.2 | ©2003-2013 InteractivePHP, Inc.
Execution time: 0.084 seconds.   Total Queries: 42   Zlib Compression is on.
All times are (GMT-4). Current time is 08:37 AM
Top