<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">ExpressionEngine Community Forums</title>
    <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/" />
    <link rel="self" type="application/atom+xml" href="http://expressionengine.com/forums/atom/" />
    <updated>2008-08-23T14:08:33Z</updated>
    <rights>Copyright (c) 2008</rights>
    <generator uri="http://www.pmachine.com/" version="1.6.3">ExpressionEngine</generator>
    <id>tag:expressionengine.com,2008:08:26</id>


    <entry>
      <title>flv player and detection</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/89008/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.89008</id>
      <published>2008-08-23T14:07:10Z</published>
      <updated>2008-08-23T14:08:33Z</updated>
      <author><name>poThree</name></author>
      <content type="html">
      <![CDATA[
        <p>I can&#8217;t seem to find an example of how to detect flash with the flvplayer pluggin. Can anyone help me out with an example? I have the flvplayer working fine right now with the following code on my page, but just don&#8217;t know how to incorporate the detection.
</p>
<p>
This is on the page:
<br />
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">flvplugin&nbsp;&nbsp;playerpath</span><span style="color: #007700">=</span><span style="color: #DD0000">"/players/player.swf" </span><span style="color: #0000BB">playernumber</span><span style="color: #007700">=</span><span style="color: #DD0000">"1" </span><span style="color: #0000BB">file</span><span style="color: #007700">=</span><span style="color: #DD0000">"/video/myvid.mp4" </span><span style="color: #0000BB">image</span><span style="color: #007700">=</span><span style="color: #DD0000">"/video/myvid.jpg" </span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"280" </span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"175" </span><span style="color: #0000BB">showdigits</span><span style="color: #007700">=</span><span style="color: #DD0000">"true" </span><span style="color: #0000BB">&#125;</span>
</code></div><p>
</p>
<p>
I&#8217;m loading the swfobject.js file in my page head as described.
</p>
<p>
They kind of breeze over the detection issue here: http://www.5pieces.com/blog/flv-player-plugin-v3/ Any help would be appreciated.
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>value of &#123;count&#125; and &#123;total_results&#125;</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/89055/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.89055</id>
      <published>2008-08-24T14:10:48Z</published>
      <updated></updated>
      <author><name>Greg A.</name></author>
      <content type="html">
      <![CDATA[
        <p>Is there a way that I can bring the value of &#123;count&#125; and &#123;total_results&#125; into a plugin?
</p>
<p>
I&#8217;ve been reading all over the $TMPL class and can&#8217;t find it.
</p>
<p>
Can anyone help to shed some light?
</p>
<p>
Thanks in advance,
</p>
<p>
-greg
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Question &#8230;</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/88580/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.88580</id>
      <published>2008-08-19T08:44:31Z</published>
      <updated></updated>
      <author><name>Crnaovca</name></author>
      <content type="html">
      <![CDATA[
        <p>What is minimal plugin ... I am asking because when I tried to do empty plugin that doesn&#8217;t do nothing, I got error. Just wanted to get skeleton of it to be sure I had it right ...
</p>
<p>
so, for example <img src="http://ellislab.com/images/smileys/smile.gif" width="19" height="19" alt="smile" style="border:0;" /> can I just do this?
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #007700">class </span><span style="color: #0000BB">Plugin_name &#123;<br /><br />&nbsp;&nbsp;</span><span style="color: #007700">function </span><span style="color: #0000BB">Plugin_name</span><span style="color: #007700">()<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br /><br />&nbsp;&nbsp;&#125;<br /><br />&#125;<br /><br />?&gt;</span>
</code></div><p>
</p>
<p>
and should I get an error if I do that? Or shouldn&#8217;t?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Plugin development</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/88436/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.88436</id>
      <published>2008-08-17T13:37:23Z</published>
      <updated>2008-08-18T17:35:10Z</updated>
      <author><name>Crnaovca</name></author>
      <content type="html">
      <![CDATA[
        <p>I am trying something so I am interested if somebody knows answer. I am developing plugin that is currently calling hello_world <img src="http://ellislab.com/images/smileys/smile.gif" width="19" height="19" alt="smile" style="border:0;" /> because it is just a test.
<br />
 
<br />
So, problem is here. Can I do this in template?
</p>
<p>
&#123;exp:hello_world:search tekst=&#123;maintext&#125;&#125;
</p>
<p>
so to have plugin that checks text of weblog that is currently displaying&#8230;
</p>
<p>
and to get that text and find some specific string in it ... for example &#8220;&#8216;&#8217;&#8221;
</p>
<p>
any idea? can it be done this way? is there a better way? Since, data are displayed already, it seems stupid to do SQL query based on data to get that text from database, since it is already done ....
</p>
<p>
P.S.: anyone have any simple plugin that works? I need the <b>most </b>basic one, like hello world.
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>TinyMCE toolbar not appearing</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/74418/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.74418</id>
      <published>2008-03-17T16:38:57Z</published>
      <updated></updated>
      <author><name>seajay</name></author>
      <content type="html">
      <![CDATA[
        <p>I configured LG TinyMCE and it was working great ... but sometime in the past days, the actual toolbar stopped showing up in Firefox and Safari.
</p>
<p>
Only recent addition was Tome, and I&#8217;ll do another back up and remove the package.
</p>
<p>
I didn&#8217;t find any other threads on this ... Any ideas?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>What is the problem with this code&#63;</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/86925/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.86925</id>
      <published>2008-07-31T20:20:43Z</published>
      <updated></updated>
      <author><name>DarkScythe</name></author>
      <content type="html">
      <![CDATA[
        <p>Hello,
</p>
<p>
I&#8217;m trying to catch the &#123;birthday&#125; field when it turns up empty - either because it&#8217;s not set, or because the user is not logged in.
<br />
I assumed it would just return a blank/no/null value, but it doesn&#8217;t seem to be working.
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">$rawdob </span><span style="color: #007700">= </span><span style="color: #0000BB">$TMPL</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch_param</span><span style="color: #007700">(</span><span style="color: #DD0000">'dob'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (</span><span style="color: #0000BB">$rawdob </span><span style="color: #007700">== </span><span style="color: #DD0000">''</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$rawdob </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"m d, Y"</span><span style="color: #007700">, </span><span style="color: #0000BB">time</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;</span>
</code></div><p>
The &#8216;dob&#8217; parameter should be replaced by whatever value &#123;birthday&#125; returns. When it does return a value - user is logged in and has set their birthday - it works great. When the birthday information is missing though, I can&#8217;t seem to be able to override it with that default value (today&#8217;s date.) When I try to return the value of $rawdob directly (when I log in as a user without a birthday set) it gives me a parse error within core.functions.php.
</p>
<p>
What is wrong with this code?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Weird Plugin problem…!!</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/87260/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.87260</id>
      <published>2008-08-05T04:07:07Z</published>
      <updated></updated>
      <author><name>Mark Bowen</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi there,
</p>
<p>
Okay first off here is the disclaimer. I would rather not show my plugin code at the moment as it really is a work in progress but was on the other hand just wondering if anyone has ever come across the same kind of problem that I am having.
</p>
<p>
I have a plugin which basically gets some values from the database and then swaps out some variables in the template for those values.
</p>
<p>
All of this works fine and the whole plugin <i>(so I thought)</i> was working absolutely dreamy.
</p>
<p>
That is until I tried something like this :
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #007700">&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;my_variable_one&#125; </span><span style="color: #007700">- </span><span style="color: #0000BB">&#123;my_variable_two&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span>
</code></div><p>
</p>
<p>
If I do that it comes up with an error saying that one of the variables isn&#8217;t set but if I do this :
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #007700">&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;my_variable_one&#125;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br </span><span style="color: #007700">/&gt;<br /></span><span style="color: #0000BB">&#123;my_variable_two&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span>
</code></div><p>
</p>
<p>
Everything gets spat out as it should do. Only when I place the variables on the same line in the template does it all go wonky!
</p>
<p>
All very weird. Was just wondering if anyone had come across that before in their plugin making travels?
</p>
<p>
Also if I have <b>&#123;my_variable_one&#125;</b> as one of my variables I should in theory be able to place that multiple times into a template and have it swapped out with the same value for each loop iteration shouldn&#8217;t I? I was just wondering if that had anything to do with it maybe?
</p>
<p>
Thanks for any help on this one and sorry that this is exceptionally vague at this point. I will totally understand if no-one can help on this one due to my not showing the code for the plugin but the client would rather I not show anything at this stage.
</p>
<p>
Best wishes,
</p>
<p>
Mark
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>repeet + exp:query</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/87535/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.87535</id>
      <published>2008-08-07T10:43:00Z</published>
      <updated></updated>
      <author><name>visualchefs</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi All&#8230;
</p>
<p>
Should I be able to use exp:query inside of exp:repeet:calendar?&nbsp; I&#8217;m working on adding repeet to an existing calendar and it seems that as soon as I wrap the calendar in the exp:repeet:calendar code the data from exp:query is no longer returned.
</p>
<p>
Thanks in advance.&nbsp; I&#8217;m sure I have my dunce cap on today.
</p>
<p>
-Shawn
</p>

<p>
A portion of the edited code is below.
<br />
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">repeet</span><span style="color: #007700">:</span><span style="color: #0000BB">get_ids weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"calendar" </span><span style="color: #0000BB">parse</span><span style="color: #007700">=</span><span style="color: #DD0000">"inward" </span><span style="color: #0000BB">calendar</span><span style="color: #007700">=</span><span style="color: #DD0000">"yes"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">repeet</span><span style="color: #007700">:</span><span style="color: #0000BB">calendar weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"calendar" </span><span style="color: #0000BB">entry_id</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;repeet:entry_ids&#125;" </span><span style="color: #0000BB">interval_field</span><span style="color: #007700">=</span><span style="color: #DD0000">"repeat_interval" </span><span style="color: #0000BB">include_field</span><span style="color: #007700">=</span><span style="color: #DD0000">"include_dates" </span><span style="color: #0000BB">exclude_field</span><span style="color: #007700">=</span><span style="color: #DD0000">"exclude_dates" </span><span style="color: #0000BB">show_future_entries</span><span style="color: #007700">=</span><span style="color: #DD0000">"yes" </span><span style="color: #0000BB">show_expired</span><span style="color: #007700">=</span><span style="color: #DD0000">"yes"</span><span style="color: #0000BB">&#125;<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;calendar_rows&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;row_start&#125;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">row_start&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;if entries&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">p </span><span style="color: #007700">class=</span><span style="color: #DD0000">"day_number"</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;day_path=who/event&#125;"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;day_number&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">div </span><span style="color: #007700">class=</span><span style="color: #DD0000">"events"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;entries&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">query sql</span><span style="color: #007700">=</span><span style="color: #DD0000">"SELECT cat_id AS this_cat_id FROM exp_category_posts WHERE entry_id = '&#123;entry_id&#125;'"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">query sql</span><span style="color: #007700">=</span><span style="color: #DD0000">"SELECT cat_name, cat_image, cat_url_title FROM exp_categories WHERE cat_id = '&#123;this_cat_id&#125;'"</span><span style="color: #0000BB">&#125;</span>
</code></div><p>
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Twitter Timeline issue</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/50881/" />      
      <id>tag:expressionengine.com,2007:forums/viewthread/.50881</id>
      <published>2007-04-20T18:00:25Z</published>
      <updated>2007-04-21T11:43:05Z</updated>
      <author><name>DigiFiend</name></author>
      <content type="html">
      <![CDATA[
        <p>I&#8217;ve looked at this code so many times I feel like my eyes are bleeding.&nbsp; I&#8217;m interested in grabbing the last 4 entries from my twitter feed, so I have loaded Twitter Timeline.&nbsp; Works great when using a &#8220;public&#8221; user type but nothing is displaying on my blog when using a usertype of &#8220;user&#8221;.
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">twitter_timeline type</span><span style="color: #007700">=</span><span style="color: #DD0000">"user" </span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"DigiFiend" </span><span style="color: #0000BB">password</span><span style="color: #007700">=</span><span style="color: #DD0000">"*****" </span><span style="color: #0000BB">twitter_refresh</span><span style="color: #007700">=</span><span style="color: #DD0000">"1" </span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"4"</span><span style="color: #0000BB">&#125;<br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">div id</span><span style="color: #007700">=</span><span style="color: #DD0000">"blog"</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;text&#125; </span><span style="color: #007700">@ </span><span style="color: #0000BB">&#123;created_at format</span><span style="color: #007700">=</span><span style="color: #DD0000">"%m-%d-%y, %g:%i"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">twitter_timeline&#125;</span>
</code></div><p>
</p>
<p>
Web template log follows below:
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #007700">(</span><span style="color: #0000BB">0.017094</span><span style="color: #007700">) </span><span style="color: #0000BB">Tag</span><span style="color: #007700">: </span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">twitter_timeline type</span><span style="color: #007700">=</span><span style="color: #DD0000">"user" </span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"DigiFiend" </span><span style="color: #0000BB">password</span><span style="color: #007700">=</span><span style="color: #DD0000">"*******" </span><span style="color: #0000BB">twitter_refresh</span><span style="color: #007700">=</span><span style="color: #DD0000">"1" </span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"4"</span><span style="color: #0000BB">&#125;<br /></span><span style="color: #007700">(</span><span style="color: #0000BB">0.017564</span><span style="color: #007700">) </span><span style="color: #0000BB">Closing Tag Found<br /><br /></span><span style="color: #007700">...<br /><br />(</span><span style="color: #0000BB">0.065451</span><span style="color: #007700">) </span><span style="color: #0000BB">Calling </span><span style="color: #007700">Class/</span><span style="color: #0000BB">Method</span><span style="color: #007700">: </span><span style="color: #0000BB">Twitter_timeline</span><span style="color: #007700">/</span><span style="color: #0000BB">twitter_timeline<br /></span><span style="color: #007700">(</span><span style="color: #0000BB">0.065670</span><span style="color: #007700">) -&gt; Class </span><span style="color: #0000BB">Called</span><span style="color: #007700">: </span><span style="color: #0000BB">Twitter_timeline<br /></span><span style="color: #007700">(</span><span style="color: #0000BB">0.065755</span><span style="color: #007700">) </span><span style="color: #0000BB">Twitter Timeline error</span><span style="color: #007700">: </span><span style="color: #0000BB">no user specified </span><span style="color: #007700">for </span><span style="color: #0000BB">non</span><span style="color: #007700">-</span><span style="color: #0000BB">public timeline<br /></span><span style="color: #007700">(</span><span style="color: #0000BB">0.065795</span><span style="color: #007700">) -&gt; </span><span style="color: #0000BB">Method Called</span><span style="color: #007700">: </span><span style="color: #0000BB">twitter_timeline<br /></span><span style="color: #007700">(</span><span style="color: #0000BB">0.065824</span><span style="color: #007700">) -&gt; </span><span style="color: #0000BB">Data Returned</span>
</code></div><p>
</p>
<p>
Am I missing something very basic ohn how to use this plugin?&nbsp; Wouldn&#8217;t be the first time but I dont understand why there is a problem.
</p>
<p>
And yes, I have confirmed that the account name/password combo is working properly.
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Find and Replace Plugin &#45; multiples AND regex&#63;</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/86930/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.86930</id>
      <published>2008-07-31T23:08:01Z</published>
      <updated></updated>
      <author><name>Deborah Cross</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi All, 
</p>
<p>
I&#8217;m trying to use the find and replace plugin with both regex and multiple on:
<br />
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace find</span><span style="color: #007700">=</span><span style="color: #DD0000">"&lt;a &gt;&lt;\/a&gt;&lt;h2&gt;(.+)&lt;\/h2&gt;|&lt;p&gt;.+&lt;\/p&gt;|&lt;img.+&gt;" </span><span style="color: #0000BB">replace</span><span style="color: #007700">=</span><span style="color: #DD0000">"&lt;p&gt;&lt;a &gt;$2&lt;/a&gt;&lt;/p&gt;|&lt;p&gt;para&lt;/p&gt;|&lt;p&gt;image&lt;/p&gt;" </span><span style="color: #0000BB">regex</span><span style="color: #007700">=</span><span style="color: #DD0000">"yes" </span><span style="color: #0000BB">multiple</span><span style="color: #007700">=</span><span style="color: #DD0000">"yes"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">a name</span><span style="color: #007700">=</span><span style="color: #DD0000">"test"</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">test heading</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Test body</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">img alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"TestImage" </span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/mac/images/gallery/logocomponents.jpg" </span><span style="color: #0000BB">title</span><span style="color: #007700">=</span><span style="color: #DD0000">"Test"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace&#125;</span>
</code></div><p> 
</p>
<p>
It is finding each element OK, but the replace doesn&#8217;t seem to work. The bar is being displayed instead of being used as a separator.
</p>
<p>
Instead of the result I expect:
<br />
</p><div class="codeblock"><code>
<span style="color: #007700">&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"test"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">test heading</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">para</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">image</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span>
</code></div><p>
</p>
<p>
I&#8217;m getting:
<br />
</p><div class="codeblock"><code>
<span style="color: #007700">&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"test"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">test heading</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />|<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">para</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />|<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">image</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">""</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />|<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">para</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />|<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">image</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">""</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />|<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">para</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />|<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">image</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span>
</code></div><p>
</p>
<p>
Any thoughts on what might be wrong? The doco doesn&#8217;t show any examples that use both regex and multiple, so maybe it can&#8217;t do that?
</p>
      ]]>
      </content>
    </entry>


</feed>