Re: How to add varied content in posts?

2012-01-05 Thread Daniel
I got that error too when I ran the test script test_nbbc.  Also I was
not sure where to install nbbc, because I could not run the test
script if I just installed under my app folder as cake would mistake
the folder for a controller.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-05 Thread euromark
as a vendor? :)
in my case it is in plugin vendor (but could also be app one)

my example:

App::import('Vendor', 'Tools.nbbc/nbbc');

class BbcodeLib extends BBCode {

public function __construct($settings = array()) {
parent::BBCode();
//custom overrides
}

//custom overrides
}

App::uses('BbcodeLib', 'Tools.Lib');
$BbcodeLib = new BbcodeLib();

and call it with $BbcodeLib-parse();


On 5 Jan., 19:53, Daniel danwgr...@gmail.com wrote:
 I got that error too when I ran the test script test_nbbc.  Also I was
 not sure where to install nbbc, because I could not run the test
 script if I just installed under my app folder as cake would mistake
 the folder for a controller.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-04 Thread Tilen Majerle
nbbc code breaks strict standards of php :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2012/1/4 Daniel danwgr...@gmail.com

 On Jan 3, 7:42 pm, euromark dereurom...@googlemail.com wrote:
 ...
  i usehttp://nbbc.sourceforge.net/

 Thanks, it looks good.

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-04 Thread euromark
seems like it needs some updating then ;)
since I run it in non-strict mode (too many other problems as well) I
never saw that


On 4 Jan., 20:10, Tilen Majerle tilen.maje...@gmail.com wrote:
 nbbc code breaks strict standards of php :)
 --
 Lep pozdrav, Tilen Majerlehttp://majerle.eu

 2012/1/4 Daniel danwgr...@gmail.com







  On Jan 3, 7:42 pm, euromark dereurom...@googlemail.com wrote:
  ...
   i usehttp://nbbc.sourceforge.net/

  Thanks, it looks good.

  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.com For more options, visit this group
  athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-04 Thread Tilen Majerle
i downloaded nbbc script yesterday and check this file: /test_nbbc.php
and it gave me at least 50 errors:

Strict standards: Only variables should be passed by reference in
mypath\src\nbbc_parse.php on line *899*

--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2012/1/4 euromark dereurom...@googlemail.com

 seems like it needs some updating then ;)
 since I run it in non-strict mode (too many other problems as well) I
 never saw that


 On 4 Jan., 20:10, Tilen Majerle tilen.maje...@gmail.com wrote:
  nbbc code breaks strict standards of php :)
  --
  Lep pozdrav, Tilen Majerlehttp://majerle.eu
 
  2012/1/4 Daniel danwgr...@gmail.com
 
 
 
 
 
 
 
   On Jan 3, 7:42 pm, euromark dereurom...@googlemail.com wrote:
   ...
i usehttp://nbbc.sourceforge.net/
 
   Thanks, it looks good.
 
   --
   Our newest site for the community: CakePHP Video Tutorials
  http://tv.cakephp.org
   Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
   others with their CakePHP related questions.
 
   To unsubscribe from this group, send email to
   cake-php+unsubscr...@googlegroups.com For more options, visit this
 group
   athttp://groups.google.com/group/cake-php

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-03 Thread Daniel
Do you know how to highlight a block of code with a coloured box using
bbcode?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-03 Thread Daniel


On Jan 3, 1:29 am, euromark dereurom...@googlemail.com wrote:
 my favorite is bbcode, as well.

Which version of bbcode parser do you use?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-03 Thread euromark
you can make up your own stuff
[box]...[/box] for example
or
[box color=green]...[/box]
or
[box type=info]...[/box]

whatever you want

i use
http://nbbc.sourceforge.net/
it's pretty sophisticated

I added some rules like that
protected $_addRules = array(
'highlight' = array(
'simple_start' = 'span class=highlight',
'simple_end' = '/span',
'class' = 'inline',
'allow_in' = array('listitem', 'block', 'columns', 'inline',
'link'),
),
...


On 3 Jan., 19:39, Daniel danwgr...@gmail.com wrote:
 On Jan 3, 1:29 am, euromark dereurom...@googlemail.com wrote:

  my favorite is bbcode, as well.

 Which version of bbcode parser do you use?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-03 Thread Daniel
On Jan 3, 7:42 pm, euromark dereurom...@googlemail.com wrote:
...
 i usehttp://nbbc.sourceforge.net/

Thanks, it looks good.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-02 Thread Daniel
On Jan 2, 4:16 am, Geoff Douglas drdouglas...@gmail.com wrote:
 There are several ways to do that.

 Here are a few that I can think of off the top of my head:

 There are wysiwyg (like TinyMCE) editors,
 OR markup language options such as Textile, or Markdown, or bbCode, or
 WikiCreole

 If you use any these you will need to add a way for users to upload images,
 and store them some place that makes sense, so that the user can pull them
 up.

 Anyways... that's what I know.

Thanks.

I first tried out recruiting parser but could not get it to work.
Then I found bbcode.php at  http://www.phpclasses.org, which I got
working.  It does not support images though, but I was able to extend
it to display images from my applications gallery.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-02 Thread euromark
my favorite is bbcode, as well. clean, understandable for visitors and
easy to adjust and extend. it also has a high level of security if
applied correctly.
I also like that it decouples html from the markup.
you can add stuff like [youtube]someid[/youtube] etc which will
translate into the real deal on output.


On 3 Jan., 01:02, Daniel danwgr...@gmail.com wrote:
 On Jan 2, 4:16 am, Geoff Douglas drdouglas...@gmail.com wrote:

  There are several ways to do that.

  Here are a few that I can think of off the top of my head:

  There are wysiwyg (like TinyMCE) editors,
  OR markup language options such as Textile, or Markdown, or bbCode, or
  WikiCreole

  If you use any these you will need to add a way for users to upload images,
  and store them some place that makes sense, so that the user can pull them
  up.

  Anyways... that's what I know.

 Thanks.

 I first tried out recruiting parser but could not get it to work.
 Then I found bbcode.php at  http://www.phpclasses.org, which I got
 working.  It does not support images though, but I was able to extend
 it to display images from my applications gallery.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


How to add varied content in posts?

2012-01-01 Thread Daniel
I see on some websites that there are user posts containing images,
links and code blocks.  What is a good way to add this kind of
functionality to an app?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to add varied content in posts?

2012-01-01 Thread Geoff Douglas
There are several ways to do that.

Here are a few that I can think of off the top of my head:

There are wysiwyg (like TinyMCE) editors,
OR markup language options such as Textile, or Markdown, or bbCode, or 
WikiCreole

If you use any these you will need to add a way for users to upload images, 
and store them some place that makes sense, so that the user can pull them 
up.

Anyways... that's what I know.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php