2 of 2
2
Plugin: PHPStringFun
Posted: 23 February 2009 03:41 PM   [ Ignore ]   [ # 19 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  192
Joined  08-25-2008

I see no obvious reason why this would not work:

{exp:magpie url="http://feeds2.feedburner.com/fitsugar" limit="1" refresh="720"}
{items}
{exp
:phpstringfun function="html_entity_decode" par1="{description}"}
{description}{
/exp:phpstringfun}
{
/items}
{
/exp:magpie} 

unless the Magpie tags aren’t being parsed when they’re in the {exp:phpstringfun} tags. Any ideas? This particular blog’s RSS feed converts all of its < and > carrots to their respective HTML entities. It’s a pain in the butt.

 Signature 

lukemcreynolds.com | some useful ee code snippets and tricks

Profile
 
 
Posted: 24 February 2009 02:09 AM   [ Ignore ]   [ # 20 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  575
Joined  03-18-2007

Did you try adding parse=“inward” to the magpie tag?

 Signature 

Follow me on Twitter: twitter.com/mrw

Note: I used to be slapshotw on this forum.

Profile
 
 
Posted: 24 February 2009 10:00 AM   [ Ignore ]   [ # 21 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  192
Joined  08-25-2008

Yeah, still no luck. With or without parse=“inward”, the plugin gives the following error:

Warning: html_entity_decode() expects parameter 2 to be long, string given in /home/indigo/public_html/new/admin/plugins/pi.phpstringfun.php on line 34.

Defining par2=”{description}” doesn’t help.

 Signature 

lukemcreynolds.com | some useful ee code snippets and tricks

Profile
 
 
Posted: 27 May 2009 09:33 PM   [ Ignore ]   [ # 22 ]  
Summer Student
Avatar
Total Posts:  4
Joined  03-23-2009

Bravo on the fantastic plugin. . .

Profile
 
 
Posted: 28 June 2009 09:36 PM   [ Ignore ]   [ # 23 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  519
Joined  10-09-2007

Has anyone got the explode function to work?

 Signature 

Vancouver Travel & Tourism http://www.discovervancouver.com/

Profile
 
 
Posted: 10 April 2010 05:37 AM   [ Ignore ]   [ # 24 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1156
Joined  02-02-2007

Hi,

I released a fork of PHPStringFun plugin, called String Mill.

The difference between these two plugins is the following: in order to have more power over parse order String Mill supports variable pair {string_mill_area}{/string_mill_area}

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

Profile
 
 
   
2 of 2
2
 
‹‹ Widon’t      Plugin: Timesince ››