BBD Stringer

Developer

Black Belt Designs

3rd Party (Commercial)
Minimum EE Version: 3.0.0

License Agreement

Buy Now!

$6.00
Qty:

EE Version Support

  • ExpressionEngine 3

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Stringer allows you to access and modify strings using PHP while not enabling PHP in templates. You can also wrap the output and use HTML delimiters.

BBD Stringer

Stringer allows you to access, modify, and manipulate strings using PHP while not enabling PHP in templates.

Stringer

{exp:stringer
  function = ""        // Select the PHP string function you would like to use. Full list available on php.net
  param[n] = ""        // This is open ended, in which [n] equals sequential numbers to allow you more control over the functions and their parameters as they might change through time. param1="" param2="" etc…
  delimiter = ""      // This parameter allows you to specify the parameter you would like to utilize in array data construction and output.
  index = ""          // This parameter allows you to specify the index you would like to utilize in array data output.
  reverse = ""        // Due to parsing and run order for certain string functions, this field allows you to reverse the order of the parameters you specify. For safety, it will allow any casing versions of "yes" or "y".
  wrapper = ""        // If you would like to wrap your return_data in a set of tags, drop the tag here.
}
      {your_content}
{/exp:stringer}

For examples, see the images above. All functions should be working as expected. If you find something off or not reacting the way you would expect, please refer to the PHP String Function docs here and make sure you have properly included/used the available parameters. If you need to reverse the order of the string inclusion, try using reverse and changing the order of your parameters first.

Get creative with it. For example, extend other addons like SEO Lite from Bjorn Borresen by using the SEO Lite - ‘extra tags’ feature in combination with the BBD Stringer power to auto-magically pull a content relevant Title attribute for your page.

YES! BBD Stringer works inside the SEO Lite template. See images above for an example. The source view was modified to see that it pulled from the copy field.


<title>{exp:stringer function="explode" param1=". " index="0" reverse="y"}{extra:headline}{/exp:stringer} | {site_name}</title>

If you view the images above, you will see that the “extra:headline” field was a multi-sentence paragraph. Using explode, we were able to use the entry data to make the title tag more relevant to the entry.

At the time of this build, the following PHP String functions are available. This was built in a way that should support all future functions as well.

     
  • addcslashes - Quote string with slashes in a C style
  •  
  • addslashes - Quote string with slashes
  •  
  • bin2hex - Convert binary data into hexadecimal representation
  •  
  • chop - Alias of rtrim
  •  
  • chr - Return a specific character
  •  
  • chunk_split - Split a string into smaller chunks
  •  
  • convert_cyr_string - Convert from one Cyrillic character set to another
  •  
  • convert_uudecode - Decode a uuencoded string
  •  
  • convert_uuencode - Uuencode a string
  •  
  • count_chars - Return information about characters used in a string
  •  
  • crc32 - Calculates the crc32 polynomial of a string
  •  
  • crypt - One-way string hashing
  •  
  • echo - Output one or more strings
  •  
  • explode - Split a string by string
  •  
  • fprintf - Write a formatted string to a stream
  •  
  • get_html_translation_table - Returns the translation table used by htmlspecialchars and htmlentities
  •  
  • hebrev - Convert logical Hebrew text to visual text
  •  
  • hebrevc - Convert logical Hebrew text to visual text with newline conversion
  •  
  • hex2bin - Decodes a hexadecimally encoded binary string
  •  
  • html_entity_decode - Convert all HTML entities to their applicable characters
  •  
  • htmlentities - Convert all applicable characters to HTML entities
  •  
  • htmlspecialchars_decode - Convert special HTML entities back to characters
  •  
  • htmlspecialchars - Convert special characters to HTML entities
  •  
  • implode - Join array elements with a string
  •  
  • join - Alias of implode
  •  
  • lcfirst - Make a string's first character lowercase
  •  
  • levenshtein - Calculate Levenshtein distance between two strings
  •  
  • localeconv - Get numeric formatting information
  •  
  • ltrim - Strip whitespace (or other characters) from the beginning of a string
  •  
  • md5_file - Calculates the md5 hash of a given file
  •  
  • md5 - Calculate the md5 hash of a string
  •  
  • metaphone - Calculate the metaphone key of a string
  •  
  • money_format - Formats a number as a currency string
  •  
  • nl_langinfo - Query language and locale information
  •  
  • nl2br - Inserts HTML line breaks before all newlines in a string
  •  
  • number_format - Format a number with grouped thousands
  •  
  • ord - Return ASCII value of character
  •  
  • parse_str - Parses the string into variables
  •  
  • print - Output a string
  •  
  • printf - Output a formatted string
  •  
  • quoted_printable_decode - Convert a quoted-printable string to an 8 bit string
  •  
  • quoted_printable_encode - Convert a 8 bit string to a quoted-printable string
  •  
  • quotemeta - Quote meta characters
  •  
  • rtrim - Strip whitespace (or other characters) from the end of a string
  •  
  • setlocale - Set locale information
  •  
  • sha1_file - Calculate the sha1 hash of a file
  •  
  • sha1 - Calculate the sha1 hash of a string
  •  
  • similar_text - Calculate the similarity between two strings
  •  
  • soundex - Calculate the soundex key of a string
  •  
  • sprintf - Return a formatted string
  •  
  • sscanf - Parses input from a string according to a format
  •  
  • str_getcsv - Parse a CSV string into an array
  •  
  • str_ireplace - Case-insensitive version of str_replace.
  •  
  • str_pad - Pad a string to a certain length with another string
  •  
  • str_repeat - Repeat a string
  •  
  • str_replace - Replace all occurrences of the search string with the replacement string
  •  
  • str_rot13 - Perform the rot13 transform on a string
  •  
  • str_shuffle - Randomly shuffles a string
  •  
  • str_split - Convert a string to an array
  •  
  • str_word_count - Return information about words used in a string
  •  
  • strcasecmp - Binary safe case-insensitive string comparison
  •  
  • strchr - Alias of strstr
  •  
  • strcmp - Binary safe string comparison
  •  
  • strcoll - Locale based string comparison
  •  
  • strcspn - Find length of initial segment not matching mask
  •  
  • strip_tags - Strip HTML and PHP tags from a string
  •  
  • stripcslashes - Un-quote string quoted with addcslashes
  •  
  • stripos - Find the position of the first occurrence of a case-insensitive substring in a string
  •  
  • stripslashes - Un-quotes a quoted string
  •  
  • stristr - Case-insensitive strstr
  •  
  • strlen - Get string length
  •  
  • strnatcasecmp - Case insensitive string comparisons using a "natural order" algorithm
  •  
  • strnatcmp -  String comparisons using a "natural order" algorithm
  •  
  • strncasecmp - Binary safe case-insensitive string comparison of the first n characters
  •  
  • strncmp -  Binary safe string comparison of the first n characters
  •  
  • strpbrk - Search a string for any of a set of characters
  •  
  • strpos - Find the position of the first occurrence of a substring in a string
  •  
  • strrchr - Find the last occurrence of a character in a string
  •  
  • strrev - Reverse a string
  •  
  • strripos - Find the position of the last occurrence of a case-insensitive substring in a string
  •  
  • strrpos - Find the position of the last occurrence of a substring in a string
  •  
  • strspn - Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask.
  •  
  • strstr - Find the first occurrence of a string
  •  
  • strtok - Tokenize string
  •  
  • strtolower - Make a string lowercase
  •  
  • strtoupper - Make a string uppercase
  •  
  • strtr - Translate characters or replace substrings
  •  
  • substr_compare - Binary safe comparison of two strings from an offset, up to length characters
  •  
  • substr_count - Count the number of substring occurrences
  •  
  • substr_replace - Replace text within a portion of a string
  •  
  • substr - Return part of a string
  •  
  • trim - Strip whitespace (or other characters) from the beginning and end of a string
  •  
  • ucfirst - Make a string's first character uppercase
  •  
  • ucwords - Uppercase the first character of each word in a string
  •  
  • vfprintf - Write a formatted string to a stream
  •  
  • vprintf - Output a formatted string
  •  
  • vsprintf - Return a formatted string
  •  
  • wordwrap - Wraps a string to a given number of characters

This entry was created March 4, 2016, 2:17 pm.
This entry was last updated July 8, 2016, 2:07 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!