addcfcode: Mango Plugin published

ColdFusion , mango plugin Add comments

Just before some days when I was writing my post regaring cfgrid with header and footer where I want to show output on my post. For this I need to create new demo page and give link to that or I can add iframe which load my demo page and just got idea why not add coldfusion tag on post and post display output that code :).

And this is what addcfcode plugin will do. You can add your own coldfusion code in post wrap with [addcfcode ][/addcfcode ].
Syntax:

Some post content ....
[addcfcode ]
<cfoutput>You
 are accessing from #cgi.remote_host#<br/> on 
#dateformat(now(),"mm/dd/yyyy")##timeformat(now(),"hh:mm:ss 
tt")#</cfoutput>
[/addcfcode ]

And your content will look like...

You are accessing from 38.107.191.106
on 09/06/201012:06:14 PM


You are able to write whatever you want to do with coldfusion code.

NOTE: The space you see following the word "addcfcode" and the closing bracket is included to keep the tag from rendering in this page. You will need to remove the space for the tag to render.

6 responses to “addcfcode: Mango Plugin published”

  1. Ads Says:
  2. TomasF Says:
    I've been meaning to make something like this myself, but never got around to it. Thanks!
  3. Pritesh Says:
    :)
  4. Scott Says:
    Having trouble activating the plugin. I downloaded it using the 1.4.3 mango blog admin, downloaded without error. When I click on the "Activate" link next to the plugin I get the message at the top of the page that reads "Plugin could not be activated". I'm running CF7. Any reason why this plugin wouldn't be compatible with CF7? I have activated many other plugins without a problem.
  5. Scott Says:
    As I found out yesterday, requires CF8. You should probably add this to your list of requirements on the download page.
  6. Pritesh Says:
    I haven't tested on CF7 but I think it should work on it as well. Only requirement is you require file writing access on root directory.

    I will try to look into more detail and see if I found something wrong.
  7. Pritesh Says:
    Thanks Scott... I think rereplace may causing issue. I will update in my blog and in riaforge.

    Thanks again.

Leave a Reply




Powered by Mango Blog. Design and Icons by N.Design Studio | Menu Apycom
RSS Feeds