ASP.NET Beratung & Entwicklung   ·   helpyoo.de - The friendly computer people

xs.Serialize(brainstream,deedee)

# Wednesday, May 05, 2004

« More on Regular Expressions | Home | Windows 2003 Server als "Works... »

Smilies

dasBlog beinhaltet in der Basis-Installation auch den Ordner "smilies" der ja immerhin so ca. 10 Emoticons/Smilies enthält, die sich bei entsprechender Konfiguration auch ansprechen lassen ;-).


Im Admin-Modus über den Reiter "Content Filters" lassen sich nicht nur Reguläre Ausdrücke integrieren, die den Text in den Beiträgen entsprechend filtern, sondern auch einfache Ersetzer, die z.b. dazu dienen automatisch URLs auf bestimmte Begriffe zu legen. (z.b. dasBlog) oder eben auch Standard ASCII Emoticons durch kleine Icons zu ersetzen. Da es für eine grosse Anzahl an Icons über den integrierten Editor recht aufwendig ist, empfehle ich einfach die Datei "site.config" im Ordner "SiteConfig" von Hand zu ändern.

z.b.:
<ContentFilters>
<ContentFilter find="das Blog"
replace="&lt;a href=&quot;http://www.dasblog.net&quot;&gt;das Blog&lt;/a&gt;"
isregex="false" />
<ContentFilter find=": -o" replace="&lt;img alt=&quot;: -o&quot;
src=&quot;smilies/openmouth.gif&quot;&gt;" isregex="false" />
<ContentFilter find=": -S" replace="&lt;img alt=&quot;: -S&quot;
src=&quot;smilies/frown.gif&quot;&gt;" isregex="false" />
<ContentFilter find=": -D" replace="&lt;img alt=&quot;: -D&quot;
src=&quot;smilies/veryhappy.gif&quot;&gt;" isregex="false" />
<ContentFilter find=": '(" replace="&lt;img alt=&quot;: '(&quot;
src=&quot;smilies/unhappy.gif&quot;&gt;" isregex="false" />
<ContentFilter find="; -)" replace="&lt;img alt=&quot;; -)&quot;
src=&quot;smilies/wink.gif&quot;&gt;" isregex="false" />
<ContentFilter find=": -)" replace="&lt;img alt=&quot;: -)&quot;
src=&quot;smilies/happy.gif&quot;&gt;" isregex="false" />
<ContentFilter find=": -P" replace="&lt;img alt=&quot;: -P&quot;
src=&quot;smilies/tongue.gif&quot;&gt;" isregex="false" />
<!-- usw. etc. ... ->
</ContentFilters>

Anmerkung: Da sich die Filter nicht partiell im Artikel deaktivieren lassen habe ich zur Verdeutlichung im Code oben Spaces hinzugefügt um die Filterung zu unterbinden.

Eine riesige Auswahl der häufigsten in Blogs/Foren verwendeten Icons für Smilies/Emoticons findet man z.B. bei Jason´s Smiley Collection.
Die benötigten Icons (.gif´s) dann einfach in den smilies-Ordner kopieren und die entsprechenden Replace-Tags bei den ContentFiltern anfügen.


Geschrieben am , Comments [0]
Categories: Themes | dasBlog
Technorati Tags:  |  | 228 words in this post.
| Artikel bookmarken: Beitrag zu Mr.Wong hinzufügen   Beitrag zu YiGG.de hinzufügen   Beitrag zu Digg.com hinzufügen   Beitrag zu del.icio.us hinzufügen   Beitrag zu Google Bookmarks hinzufügen   Beitrag zu Linkarena hinzufügen   Beitrag zu WindowsLiveFavorites hinzufügen   Beitrag zu WindowsLiveFavorites hinzufügen  


OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview

Aktuelle Empfehlungen


Suche

RSS Feed

FeedBurner Feed Count Subscribers

Tag cloud

About (1) .net (134) .net 3.0 (10) ADO (2) ASP 2.0 (81) Community (26) Compact Framework (7) CSharp (17) Enhancements (36) Framework (28) patterns & practices (13) Silverlight (8) SQL (19) Visual Studio (62) WebServices (6) WPF (7) WPF/E (9) XNA (6) About (5) AJAX (11) Apple (24) Blogging (50) RSS (17) Themes (7) dasBlog (74) dasBlog (1) Design (14) Gadgets (2) Gaming (36) Geschenkideen (13) GIS (24) Google (14) Javascript (2) Medien (16) Microsoft (146) Mobile (52) Movies (9) Music (28) Netzwelt (134) Office (12) Offtopic (48) Fun (69) OS (9) Linux (29) MacOSX (70) Windows (205) Vista (72) Other Interests (16) Brain&Consciousness (2) Brainfood (16) Food (4) Fussball WM 2006 (20) HitchHikers Guide (14) Programming (9) Security (57) Antispam (2) Antispam  (3) Sony (1) tagged (1) Technology (125) 3D (1) Browser (72) CSS (10) Flash (11) iPhone (8) iPod (28) Kommunikation (6) Media (56) PocketPC (19) PS3 (3) PSP (25) Standards (11) Video (1) Web 2.0 (29) Webserver (4) XML (8) SearchEngines (58) Tools (169) VJ (4) Werbung (2) Windows Live (31) Windows Live Writer (16) XBOX (81) Zeitgeist (4) Zune (5)

Aktuelle Artikel

Blog Archiv

Über mich

vj deedee
 vjdeedee
XING

    Links

    Einkaufen

    Brainstream Shop

    Buttons

    Blogverzeichnis - Blog Verzeichnis bloggerei.de

    PageRank Verifizierung deedee.brainstream.net
    Suchmaschinenoptimierung mit Ranking-Hits
    prontoo.de - Pagerank Anzeige ohne Toolbar

    Blog Statistik

    Total Posts: 1042
    This Year: 58
    This Month: 10
    This Week: 5
    Comments: 272

    Letzter Update: Thursday, November 20, 2008 2:59:39 PM (Mitteleuropäische Zeit, UTC+01:00)
    Erstellt mit: newtelligence dasBlog 2.2.8279.16125

    Login

    InfosClient