Hot answers tagged

2

Use the PHPStringFun add-on and use regX either with substr or str_replace. Alternatively you could use Low Replace or MX Jumper. Or you could even activate PHP on the template and post parse. All depends on your exact requirement.


1

You can include simple mathematical operators within EE conditionals so you could use something like this: {exp:query sql="SELECT states FROM states"} {states} {if count < (total_results - 2)}, {if:elseif count == (total_results - 1)} and {/if} {/exp:query} I have spread out the conditional to make it easier to read, but you ...


1

In the spirit of providing additional options, check out Streeng as well.


1

I was going to convert them for you, when I found that both HTML-Attribute-Content and Word-Limit already have compatible branchs.


1

A connection string would simply be the database connection details formatted in a way to allow some software to connect to the database. A list of MySQL connection strings can be found at http://www.connectionstrings.com/mysql/ Essentially, given the database hostname, database username, database password, and the database name from your system/...


1

I ran into trouble with streeng as well on doing just a find in a conditional, but it worked well with find+replace (ee 2.8.1), maybe hit up the developer. For phpstringfun, in the example you put up you're doing a search for string position that's case sensitive. Try strripos and it should work with your example: {exp:phpstringfun function="strripos" ...


1

It turns out I had an old EE1 add-on in the template, which made all the others just die and display the string/characters.


Only top voted, non community-wiki answers of a minimum length are eligible