This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component displayname="whitespace" output="false" hint="Identifies and performs trim functions on white space-related characters" { | |
/* | |
author: James Moberg <james@ssmedia.com> | |
date: 2019-01-07 | |
Description: Removes all whitespace-related characters (ie, Zero-Width SPaces (ZWSPs)) from a string... not just characters below U+0020. | |
.NET Trim() really trims a string - also trimming non-breaking-spaces. This is not the case in Java. | |
http://www.henrikbrinch.dk/Blog/2013/02/28/java-net-string-gotchas-of-the-day/ | |
https://stackoverflow.com/a/4731164/693068 | |
https://stackoverflow.com/a/4307261/693068 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component { | |
/** | |
* I get called once at the start of each incoming ColdFusion request. | |
*/ | |
public void function onRequestStart() { | |
for ( var key in form ) { | |
if ( isSimpleValue( form[ key ] ) ) { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
Modified from Steve Withington's Import users via CSV: | |
https://gist.github.com/stevewithington/5051646 | |
---> | |
<cfscript> | |
param name='form.csvUrl' default=''; | |
param name='form.isSubmitted' default='false'; | |
param name='form.isTest' default='true'; | |
param name='form.siteid' default='default'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfif variables.$.event('expired') eq true> | |
<div class="alert alert-error">#variables.$.rbKey('user.forgotexpired')#</div> | |
</cfif> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset strCellValue = qData[ COLUMN_NAME ][ ROW_INDEX ] /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfsilent> | |
<cfscript> | |
mailingListName = 'Your Mailing List Name Goes Here'; | |
// MailingListBean : Loading by Mailing List Name | |
mlBean = $.getBean('mailinglistBean').loadBy( | |
name=mailingListName | |
, siteid=$.siteConfig('siteid') | |
); | |
mlid = mlBean.getMLID(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
1) Drop this file under /config/ directory. | |
2) Add errortemplate=/muraWRM/config/customErrorFile.cfm to the settings.ini.cfm file. | |
3) Set debuggingenabled=false in the settings.ini.cfm file. | |
4) Reload Mura CMS | |
---> | |
<cftry> | |
<cfset msg = 'MURA ERROR - MESSAGE: #arguments.exception.Message# DETAIL: #arguments.exception.Detail# ' /> | |
<cflog type="ERROR" file="MuraError" text="#msg#" /> | |
<cfcatch></cfcatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput> | |
<div> | |
<form action="#$.content('url')#?keywords=#$.event('keywords')#"> | |
<dl> | |
<dt>Keywords</dt> | |
<dd><input type="text" name="keywords" value="#HTMLEditFormat($.event('keywords'))#" /></dd> | |
<dd><input type="submit" value="Search" /></dd> | |
</dl> |
NewerOlder