List Info

Thread: Re: Embed PHP in Joomla's HTML?




Re: Embed PHP in Joomla's HTML?
country flaguser name
United States
2007-08-27 13:11:26
I wonder if my atachement came through... I wrote a
1.5 Native plugin to do this...
htt
p://www.joomlaperformance.com/component/option,com_docma
n/task,cat_view/gid,23/Itemid,39/

It restricts it to articles authored by Admins or
Super Admins ONLY...
--- Norman ONeil <normanenorm2.com> wrote:

> Did lassie ever show up? Is timmy still trapped in
> the barn? The guy  
> that developed klphp has been awol for quite some
> time, I don't know  
> if he was around for the transition to joomla
> 1.0.xxx
> 
> Here are a couple fo links if you want try and track
> him down.
> 
>
http://www
.idealagent.com/component/option,com_frontpage/Itemid,1/

> 
> Here is the original thread for the mambot release
> 
>
http://forum.mamboserver.com/showthread
.php?t=39551&highlight=konlong
> 
> On a side note, would be kind of nice to include
> this functionality  
> in the core of Joomla and say, let the super admin
> decide what level  
> of user can use it.
> 
> 
> 
> Norman O'Neil
> eNorm
> P.O. Box 6592
> Portsmouth, NH 03802- 6592
> 978.255.2672
> http://www.enorm2.com
> 
> 
> 
> On Aug 27, 2007, at 4:06 AM, David A. Roth wrote:
> 
> > Thanks to everyone who replied to my posting.
> >
> > I installed the plugin and the module. So far, I
> have not been able  
> > to get the plugin to work. The module works fine,
> and prints out  
> > "hello world" as a module. But any
attempts to
> insert code into an  
> > article such as:
> >
> >  echo "Hello out there";
{/kl_php}
> >
> > outputs this:
> >
> >  echo "Hello out there";
{/kl_php}
> >
> > I did see the suggestion on the Mambo forum that
> the editor might  
> > be inserting some formatting. So I selected No
> Editor, and tried it  
> > again not allowing any sort of HTML to reformat
> this little bit of  
> > instruction and the results were the same. The
> System Legacy plugin  
> > was enabled.
> >
> > Wondering at this point if it might be Joomla
> 1.5rc1, I installed  
> > just the mambot plug-in and enabled it with
Joomla
> 1.0.12 and then  
> > it worked!
> >
> > OK, I want to be a good citizen here within the
> Joomla community  
> > and report this so it will work with Joomla 1.5.
I
> would like some  
> > advice here, since I know this isn't part of the
> Joomla core. What  
> > is the best way to proceed? Post to a Joomla
> forum? Contact the  
> > authors (see below), but which one since this
> isn't a Mambo concern?
> >> <?php
> >> /**
> >> * PHP Evaluation Mambot
> >> * author John Long
> <konlongmail.mambobrothers.com>
> >> * Based on the "Code Highliting
Mambot" by
> eddieajau
> >> **/
> >> // $Id: moscode.php,v 1.1 2003/12/15 00:39:03
> eddieajau Exp $
> >> /**
> >> * Code Highlighting Mambot
> >> * package Mambo Open Source
> >> * Copyright (C) 2000 - 2003 Miro
International
> Pty Ltd
> >> *  All rights reserved
> >> *  Mambo Open Source is Free Software
> >> *  Released under GNU/GPL License :
> http://www.gnu.org/copyl
eft/ 
> >> gpl.html
> >> * version $Revision: 1.1 $
> >> * author Andrew Eddie
> <eddieajauuser.sourceforge.net>
> >> **/
> >
> > Thanks!
> >
> > David Roth
> > rothmailcomcast.net
> >
> >
> > On Aug 26, 2007, at 6:58 AM, Donna Marie Vincent
> wrote:
> >
> >> I use the kl_php mambot
> (http://forum.mamboserve
r.com/ 
> >> showthread.php?t=39551)  to include php in
> content items:
> >>
> >>  ...some php code... {/kl_php}
> >>
> >> or write the php code in a file, then include
the
> file wherever I  
> >> want it.
> >>
> >>
> >> ----- Original Message ----
> >> From: David A. Roth <rothmailcomcast.net>
> >> To: NYPHP SIG: Joomla <joomlalists.nyphp.org>
> >> Sent: Sunday, August 26, 2007 1:55:00 AM
> >> Subject: [joomla] Embed PHP in Joomla's HTML?
> >>
> >> I am converting an HTML based web site to
Joomla
> 1.5RC1. In the body
> >> of the HTML, it has about 10 lines of PHP
code
> which grabs a number
> >> from another web site so it can display this
> number in the middle of
> >> a sentence. Something like, "...with the
current
> member now at 810
> >> members...". The number 810 is grabbed
from an
> external web site
> >> which gets updated when the number of members
> increases or decreases.
> >>
> >> OK, I thought about how this might be done.
One
> was to write a Joomla
> >> Module to do the PHP, but didn't want to deal
> with the formatting of
> >> the rest of the article to make it look like
a
> natural one that
> >> Joomla does so well.
> >>
> >> The other idea, is that I went to Edit the
> article and select for it
> >> to display HTML. I then inserted the PHP code
> such as:
> >> <?PHP
> >>
> >> php code goes here
> >> ?>
> >>
> >> I saved that and proceeded to reload the page
in
> Joomla and no output
> >> was generated from the PHP code. I returned
to
> the article, had it
> >> display HTML once again, and my PHP I
included
> was gone.
> >> Now I never did this before in Joomla 1.x, so
I
> don't know if insert
> >> PHP is supported in this manner or not.
> >>
> >> Q: Can PHP be embedded into the body of text
in
> Joomla as I described
> >> above to carry out its task?
> >>
> >> Q: Should I be forced to write a module and
> include the whole article
> >> inside the module just to do the PHP?
> >>
> >> Q: Is there a more clever Joomla-like way to
> accomplish this in the
> >> manner similar to how mosimage (jpgs) are
> inserted into the body of
> >> text, but executed a PHP script?
> >>
> >> Q: And what of Timmy, trapped in the well
with
> Lassie distracted by a
> >> ripped box of vanilla flavored Frosty Paws® 
that
> fell off the truck?
> >> When will help ever arrive? 
> >>
> >> Thanks in advance,
> >>
> >> David Roth
> >> rothmailcomcast.net
> >>
> >>
_______________________________________________
> >> New York PHP SIG: Joomla! Mailing List
> >> http:/
/lists.nyphp.org/mailman/listinfo/joomla
> >>
> >> NYPHPCon 2006 Presentations Online
> >> http://www.nyphpcon.com
> >>
> 
=== message truncated ===>
_______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http:/
/lists.nyphp.org/mailman/listinfo/joomla
> 
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
> 
> Show Your Participation in New York PHP
> http://ww
w.nyphp.org/show_participation.php



       
____________________________________________________________
________________________
Be a better Globetrotter. Get better travel answers from
someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=3965454
69
_______________________________________________
New York PHP SIG: Joomla! Mailing List
http:/
/lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://ww
w.nyphp.org/show_participation.php

Re: Embed PHP in Joomla's HTML?
country flaguser name
United States
2007-08-28 01:16:12
Thanks so much for writing this and making it available for
Joomla  
1.5, Anthony Ferrara!

I downloaded, installed it in Joomla 1.5rc1 and it works!

> Try using this native Joomla 1.5 mambot
>
> To Use:
> encase php code with
> SomePHP Code;{/php}
> OR include a file with
> /path/to/some/php/file.php{/phpfile}

I tested it as  with some PHP code and also including a
.php  
file as  and worked with no problems. Good job!
I also like the idea of having  for inserting code and
  
for file includes.

David Roth
rothmailcomcast.net


On Aug 27, 2007, at 2:11 PM, Anthony Ferrara wrote:

> I wonder if my atachement came through... I wrote a
> 1.5 Native plugin to do this...
> htt
p://www.joomlaperformance.com/component/option,com_docma
n/ 
> task,cat_view/gid,23/Itemid,39/
>
> It restricts it to articles authored by Admins or
> Super Admins ONLY...
> --- Norman ONeil <normanenorm2.com> wrote:
>
>> Did lassie ever show up? Is timmy still trapped in
>> the barn? The guy
>> that developed klphp has been awol for quite some
>> time, I don't know
>> if he was around for the transition to joomla
>> 1.0.xxx
>>
>> Here are a couple fo links if you want try and
track
>> him down.
>>
>>
> http://www
.idealagent.com/component/option,com_frontpage/Itemid,1/

>>
>> Here is the original thread for the mambot release
>>
>>
> http://forum.mamboserver.com/showthread
.php?t=39551&highlight=konlong
>>
>> On a side note, would be kind of nice to include
>> this functionality
>> in the core of Joomla and say, let the super admin
>> decide what level
>> of user can use it.
>>
>>
>>
>> Norman O'Neil
>> eNorm
>> P.O. Box 6592
>> Portsmouth, NH 03802- 6592
>> 978.255.2672
>> http://www.enorm2.com
>>
>>
>>
>> On Aug 27, 2007, at 4:06 AM, David A. Roth wrote:
>>
>>> Thanks to everyone who replied to my posting.
>>>
>>> I installed the plugin and the module. So far,
I
>> have not been able
>>> to get the plugin to work. The module works
fine,
>> and prints out
>>> "hello world" as a module. But any
attempts to
>> insert code into an
>>> article such as:
>>>
>>>  echo "Hello out there";
{/kl_php}
>>>
>>> outputs this:
>>>
>>>  echo "Hello out there";
{/kl_php}
>>>
>>> I did see the suggestion on the Mambo forum
that
>> the editor might
>>> be inserting some formatting. So I selected No
>> Editor, and tried it
>>> again not allowing any sort of HTML to
reformat
>> this little bit of
>>> instruction and the results were the same. The
>> System Legacy plugin
>>> was enabled.
>>>
>>> Wondering at this point if it might be Joomla
>> 1.5rc1, I installed
>>> just the mambot plug-in and enabled it with
Joomla
>> 1.0.12 and then
>>> it worked!
>>>
>>> OK, I want to be a good citizen here within
the
>> Joomla community
>>> and report this so it will work with Joomla
1.5. I
>> would like some
>>> advice here, since I know this isn't part of
the
>> Joomla core. What
>>> is the best way to proceed? Post to a Joomla
>> forum? Contact the
>>> authors (see below), but which one since this
>> isn't a Mambo concern?
>>>> <?php
>>>> /**
>>>> * PHP Evaluation Mambot
>>>> * author John Long
>> <konlongmail.mambobrothers.com>
>>>> * Based on the "Code Highliting
Mambot" by
>> eddieajau
>>>> **/
>>>> // $Id: moscode.php,v 1.1 2003/12/15
00:39:03
>> eddieajau Exp $
>>>> /**
>>>> * Code Highlighting Mambot
>>>> * package Mambo Open Source
>>>> * Copyright (C) 2000 - 2003 Miro
International
>> Pty Ltd
>>>> *  All rights reserved
>>>> *  Mambo Open Source is Free Software
>>>> *  Released under GNU/GPL License :
>> http://www.gnu.org/copyl
eft/
>>>> gpl.html
>>>> * version $Revision: 1.1 $
>>>> * author Andrew Eddie
>> <eddieajauuser.sourceforge.net>
>>>> **/
>>>
>>> Thanks!
>>>
>>> David Roth
>>> rothmailcomcast.net
>>>
>>>
>>> On Aug 26, 2007, at 6:58 AM, Donna Marie
Vincent
>> wrote:
>>>
>>>> I use the kl_php mambot
>> (http://forum.mamboserve
r.com/
>>>> showthread.php?t=39551)  to include php in
>> content items:
>>>>
>>>>  ...some php code... {/kl_php}
>>>>
>>>> or write the php code in a file, then
include the
>> file wherever I
>>>> want it.
>>>>
>>>>
>>>> ----- Original Message ----
>>>> From: David A. Roth <rothmailcomcast.net>
>>>> To: NYPHP SIG: Joomla <joomlalists.nyphp.org>
>>>> Sent: Sunday, August 26, 2007 1:55:00 AM
>>>> Subject: [joomla] Embed PHP in Joomla's
HTML?
>>>>
>>>> I am converting an HTML based web site to
Joomla
>> 1.5RC1. In the body
>>>> of the HTML, it has about 10 lines of PHP
code
>> which grabs a number
>>>> from another web site so it can display
this
>> number in the middle of
>>>> a sentence. Something like, "...with
the current
>> member now at 810
>>>> members...". The number 810 is grabbed
from an
>> external web site
>>>> which gets updated when the number of
members
>> increases or decreases.
>>>>
>>>> OK, I thought about how this might be done.
One
>> was to write a Joomla
>>>> Module to do the PHP, but didn't want to
deal
>> with the formatting of
>>>> the rest of the article to make it look
like a
>> natural one that
>>>> Joomla does so well.
>>>>
>>>> The other idea, is that I went to Edit the
>> article and select for it
>>>> to display HTML. I then inserted the PHP
code
>> such as:
>>>> <?PHP
>>>>
>>>> php code goes here
>>>> ?>
>>>>
>>>> I saved that and proceeded to reload the
page in
>> Joomla and no output
>>>> was generated from the PHP code. I returned
to
>> the article, had it
>>>> display HTML once again, and my PHP I
included
>> was gone.
>>>> Now I never did this before in Joomla 1.x,
so I
>> don't know if insert
>>>> PHP is supported in this manner or not.
>>>>
>>>> Q: Can PHP be embedded into the body of
text in
>> Joomla as I described
>>>> above to carry out its task?
>>>>
>>>> Q: Should I be forced to write a module
and
>> include the whole article
>>>> inside the module just to do the PHP?
>>>>
>>>> Q: Is there a more clever Joomla-like way
to
>> accomplish this in the
>>>> manner similar to how mosimage (jpgs) are
>> inserted into the body of
>>>> text, but executed a PHP script?
>>>>
>>>> Q: And what of Timmy, trapped in the well
with
>> Lassie distracted by a
>>>> ripped box of vanilla flavored Frosty Paws®
 that
>> fell off the truck?
>>>> When will help ever arrive? 
>>>>
>>>> Thanks in advance,
>>>>
>>>> David Roth
>>>> rothmailcomcast.net
>>>>
>>>>
_______________________________________________
>>>> New York PHP SIG: Joomla! Mailing List
>>>> http:/
/lists.nyphp.org/mailman/listinfo/joomla
>>>>
>>>> NYPHPCon 2006 Presentations Online
>>>> http://www.nyphpcon.com
>>>>
>>

_______________________________________________
New York PHP SIG: Joomla! Mailing List
http:/
/lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://ww
w.nyphp.org/show_participation.php

Re: Joomla on a standalone cd
user name
2007-09-14 11:24:57
Sorry Norm, I only had Linux LiveCDs, they were put together
by Brian
Teeman at UKLinux. Oh, and one more thing - usually the
linux-based
LiveCDs are based on the Knoppix distribution, which comes
with a
boot-time option to load everything into RAM:

> knoppix toram

And that tells the kernel to initialize a RAM disk for the
operating
system, file system, the whole shebang. Takes ages to load,
but once
you're up, the machine absolutely screams.

At LinuxWorld in SFO (the last Mambo expo for me, the one we
learned
we were picking up our toys and rebranding to Joomla) the
LUG there
had us three machines with 2GB of RAM each, and everything
was loaded
on RAM disk.

People were so impressed with how insanely fast our software
was. *giggle*

-- Mitch
_______________________________________________
New York PHP SIG: Joomla! Mailing List
http:/
/lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://ww
w.nyphp.org/show_participation.php

Re: Joomla on a standalone cd
user name
2007-09-14 14:25:24
On 9/14/07, Gary Mort <bz-gmortbeezifies.com> wrote:
> Norman ONeil wrote:
> > Thats ok Mitch,
> >
> > You are still my hero
>
> He'd be my hero too if he sent me a synopsis for next
thursday's
> meeting.  Hint hint.  Nudge Nudge.

Meeting, meeting... What meeting?

*spacemonkey tries to keep a straight face

Ok, so I won't steal Gary's thunder by announcing it here,
I'll send
to him first so he can post 

> Clue by 4 to the back of the skull(had to borrow that
from my wife.
> Sorry it's so dented, she uses it on me a lot).

My wife is from Switzerland, so she can resort to cheese or
yodeling.
Pretty effective.

-- Mitch
_______________________________________________
New York PHP SIG: Joomla! Mailing List
http:/
/lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://ww
w.nyphp.org/show_participation.php

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )