You are reading the Drake CMS Official Forums archive, available for historical purposes only.
Drake CMS has been rebranded into Lanius CMS, visit the new Lanius CMS Official Forums if you need support about Lanius CMS or Drake CMS -> Lanius CMS migration.
Hi, Is it possible to have an item (a category article) made
of a php script to get dynamic content?
The fact is
that I built my site with Drake but I am using punBB for the
forum and I'd like to show the last 10 posts from the forum on
the homepage.
PunBB provides a php script to get the
last 'n' posts but I have no idea how I can use this to plug it
into the homepage managed by drake....any idea?
Thanks, Fabrice.
trex1512
Re: dynamic content/article
28 September 2007 00:47
Anonymous
Hi
This Post may give you some
ideas. It also points out the danger of including external
scripts from within Drake CMS.
Come back and let us
know how you go.
Good Luck...
legolas558
Re: dynamic content/article
28 September 2007 19:26
Anonymous
Since punBB is a rather complex PHP application (it cannot be
classified as a script), I would suggest the usage of an
iframe.
Creating a wrapper menu item with the iframe
option will do the job, in such case
By the way, punBB
is an excellent forum application; I had in the past complained
about its security, but it seems very secure now - and it's very
fast!
fdouteaud
Re: dynamic content/article
02 October 2007 13:26
Anonymous
Thanks a lot for your responses but I guess none of them are
really doing the job.
The <script> html tag does
not look like a very good option to me. It has XSS issues and let
the browser do the include.
The <iframe> does
not look like an option since I do not want a menu item with
this, I only would like this on my homepage as well as other
article...meaning that I'd like to be able to manipulate this
item as I do with article.
For me, the best would be
to be able to add PHP code in an article. This would allow the
management of PHP scripts as articles. Example: you want to
display some data from RSS feeds and you need to manage it as an
article: just create a PHP script to get the feed, create an
article with this script or 'linking' to that script and
voila!
This is just an idea for now but I serouisly
have no idea how I'll solve this for now.
legolas558
Re: dynamic content/article
03 October 2007 00:51
Anonymous
Quote:
The
<script> html tag does not look like a very good option to
me. It has XSS issues and let the browser do the include.
Drake CMS does not endorse script tags at all..or
am I wrong?
Quote:
The <iframe> does not look like an
option since I do not want a menu item with this, I only would
like this on my homepage as well as other article...meaning that
I'd like to be able to manipulate this item as I do with
article.
For me, the best would be to be able to add
PHP code in an article. This would allow the management of PHP
scripts as articles. Example: you want to display some data from
RSS feeds and you need to manage it as an article: just create a
PHP script to get the feed, create an article with this script or
'linking' to that script and voila!
This is just an
idea for now but I serouisly have no idea how I'll solve this for
now.
Then you might try the mod_wrapper in
PHP mode (which includes the file as PHP) or drawrapper which
allows to use the same mechanism for snippets in content items