Skip to content

Instantly share code, notes, and snippets.

@ITfee
ITfee / newsfeed.cfm
Created March 4, 2016 13:19
Include RSS-Feed into ColdFusion powered Website
<cfset rssUrl = "http://itfee.de/feed">
<cffeed action="read" source="#rssUrl#" query="entries" properties="info">
<cfoutput query="entries" maxrows="3">
<div id="news">
<div id="datum">
<cfset stringtoreplace = #DateFormat(publisheddate,"dd. mmmmm yyyy")#>
#ReplaceList(stringtoreplace, "January,February,March,May,June,July,October,December", "Januar,Februar,M&auml;rz,Mai,Juni,Juli,Oktober,Dezember")#
</div>
<div id="headline">#title#</div>
<div id="text">#content# <a href="#rsslink#">Weiterlesen</a></div>
@ITfee
ITfee / web.config Redirect
Last active February 9, 2016 14:10
Redirect Subdirectory to Subdomain on Windows Webserver
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite to http://sub.mydomain.de/" stopProcessing="true">
<match url="subdirectory/" />
<action type="Redirect" url="http://sub.mydomain.de" />
</rule>
</rules>
@ITfee
ITfee / WordPress Advertorial Plugin
Created April 16, 2015 15:30
WordPress Plugin Boilerplate for Custom Post Type "Advertorials" for self-marketing and client ads (e.g. whitepaper, promoting events or new releases).
<?php
/*
Plugin Name: Advertorials
Plugin URI: http://itfee.de/werbung-in-wordpress-per-custom-post-type-kennzeichnen/774
Description: Custom Post Type for self-marketing and client ads (e.g. whitepaper, promoting events or new releases)
Version: 0.1
Author: Roy Dittmann
Author URI: http://itfee.de
*/