concrete5 Environment Information
# concrete5 Version
5.6.3.3
# concrete5 Packages
Automatic Email Obfuscator (1.2.2), Designer Content Pro (1.2.3), Designer Content Pro - Custom Block Storage (1.0), Designer Gallery (1.0), Page Redirect (1.0), Page Selector Attribute (1.0).
# concrete5 Overrides
blocks/page_list, blocks/dcp_people, blocks/autonav, blocks/dcp_filtermenu, blocks/next_previous, languages/ro_RO, languages/sk_SK, languages/es_MX, languages/fr_FR, languages/pt_PT, languages/el_GR, languages/ar, languages/fa_IR, languages/da_DK, languages/de_DE, languages/fi_FI, languages/nb_NO, languages/es_ES, languages/it_IT, languages/nl_NL, languages/sv_SE, languages/tr_TR, languages/sl_SI, languages/es_PE, languages/ja_JP, languages/vi_VN, languages/es_AR, languages/ru_RU, languages/zh_TW, languages/cs_CZ, themes/WDA
# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
# Server Software
Apache
# Server API
cgi-fcgi
# PHP Version
5.3.28
# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, geoip, gettext, hash, iconv, imagick, imap, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, memcache, mhash, mssql, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.
# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 6000
max_input_vars - 3000
memory_limit - 128M
post_max_size - 100M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 100M
ldap.max_links - Unlimited
memcache.max_failover_attempts - 20
mssql.max_links - Unlimited
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - Server default
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
Hide Post Content
This will replace the post content with the message: "Content has been removed by an Administrator"
Hide Content
DCP returns the repeated items in a zero-based array. So you can use PHP's foreach key/value syntax (http://php.net/manual/en/control-structures.foreach.php) to generate a unique index number like so:
I might also recommend adding $bID to the class names to better guarantee uniqueness (because blocks can be added to the page multiple times). Here's the example updated with $bID:
Give that a try and let us know if you have any trouble/questions.
- Dan