From eaf2ab7fcf4a915443d3890d98e1d4049e65be64 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 27 May 2008 10:22:41 +0000 Subject: create a new social library in the engine. Moved string parsing for links to input.php and removed converting strings to tags from the shouts plugin and added them to the social library. git-svn-id: https://code.elgg.org/elgg/trunk@723 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/social.php | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 engine/lib/social.php (limited to 'engine/lib/social.php') diff --git a/engine/lib/social.php b/engine/lib/social.php new file mode 100644 index 000000000..bc66c0466 --- /dev/null +++ b/engine/lib/social.php @@ -0,0 +1,103 @@ +wordblacklist)) + return false; + + return true; + + } + + // Set the shout words blacklist, these do not become tags when the string is converted + GLOBAL $CONFIG; + $CONFIG->wordblacklist = array( + 'and', + 'the', + 'then', + 'but', + 'she', + 'his', + 'her', + 'him', + 'one', + 'not', + 'also', + 'about', + 'now', + 'hence', + 'however', + 'still', + 'likewise', + 'otherwise', + 'therefore', + 'conversely', + 'rather', + 'consequently', + 'furthermore', + 'nevertheless', + 'instead', + 'meanwhile', + 'accordingly', + 'this', + 'seems', + 'what', + 'whom', + 'whose', + 'whoever', + 'whomever', + ); + +?> \ No newline at end of file -- cgit v1.2.3