Search found 9 matches

by yoshi
Wed Feb 06, 2008 12:49 pm
Forum: Joombie Coding Q/A
Topic: onPrepareContent mambot with mospagebreak
Replies: 2
Views: 1012

Re: onPrepareContent mambot with mospagebreak

anyone help me on this? I figure I need to incorporate $regexBreak = '/{(mospagebreak)\s*(.*?)}/i' ; preg_match_all( $regexBreak, $row->text, $matches, PREG_SET_ORDER ) ; //Search item for {mospagebreak} $text = preg_split( $regexBreak, $row->text ) ; //And split into pages $n = count( $text ) ; wit...
by yoshi
Wed Feb 06, 2008 12:45 am
Forum: Joombie Coding Q/A
Topic: onPrepareContent mambot with mospagebreak
Replies: 2
Views: 1012

onPrepareContent mambot with mospagebreak

hi all, I am trying to get a mambot to write div tags around the article content. I have this working well in most circumstances. However, one area I am struggling with is the mospagebreak scenario. Basically I want to know how I can make my mambot detect a page break or pagination, and write the di...
by yoshi
Wed Nov 07, 2007 4:20 pm
Forum: Joombie Coding Q/A
Topic: stop an onAfterDisplayContent from triggering
Replies: 1
Views: 540

stop an onAfterDisplayContent from triggering

Hi,, I have a mambot which is set as 'onAfterDisplayContent' before I have coded 'onPrepareContent' mambots and have escaped them by using if ( strpos( $row->text, "{mambot off}" ) ) { $row->text = str_replace( "{mambot off}", '', $row->text ); return true; } this replaces the {mambot off} call with...
by yoshi
Sat Oct 20, 2007 7:28 am
Forum: Joombie Coding Q/A
Topic: retreiving parameters in to plugin
Replies: 0
Views: 377

retreiving parameters in to plugin

this related to 1.0.x type plugins.
how would i pull in the used section id and category ids in to a mambot?

any one offer sample code or point me o a plugin which does it?

many thanks

Lee
by yoshi
Tue Oct 09, 2007 9:12 pm
Forum: Joombie Coding Q/A
Topic: check if mambot is published
Replies: 13
Views: 1777

Re: check if mambot is published

exactly my point Pentacle. it seems a lot of mambots for 1.0 actually get 'processed' for want of a better term even if their results are not output to the screen. 
by yoshi
Mon Oct 08, 2007 9:00 am
Forum: Joombie Coding Q/A
Topic: check if mambot is published
Replies: 13
Views: 1777

Re: check if mambot is published

Amy, thanks for the reply. I have looked in several mambots but as I am not a coder I dont realy understand whats going on ;-( I have managed to put together a mambot which does exactly what I want and the code I posted above sems to work but your seems to be a better guide. However, as I dont know ...
by yoshi
Sun Oct 07, 2007 12:46 pm
Forum: Joombie Coding Q/A
Topic: check if mambot is published
Replies: 13
Views: 1777

Re: check if mambot is published

is it just as simple as

Code: Select all

 if( !$published ) return true;
by yoshi
Sun Oct 07, 2007 11:23 am
Forum: Joombie Coding Q/A
Topic: check if mambot is published
Replies: 13
Views: 1777

check if mambot is published

hi, whats the best way to check if the mambot id published or not.?

I see a lot of mambots which still interfere with stuff evn when they are unpublished (you actually have to remove the mambot to stop it)!

So whats the code or syntax to do it properly?

Many thanks

Lee
by yoshi
Fri Oct 05, 2007 3:02 pm
Forum: Joombie Coding Q/A
Topic: auto embed of yourtube urls
Replies: 0
Views: 469

auto embed of yourtube urls

Hi,
I dont want to cross post so I'll link to my original thread and ask if a moderator could move it over here?

http://forum.joomla.org/index.php/topic,219136.new.html

Any help is much appreciated