Modul: Capits.Simple Blog

delinquent
Beiträge: 184
Registriert: Fr 17. Aug 2007, 12:15
Kontaktdaten:

Beitrag von delinquent » So 22. Jun 2008, 18:58

Äh, ja. Sorry. Ich hab momentan einfach ohne Ende Arbeit, nix für ungut. Also:
Revision: 42
Autor: manuel_josupeit
Datum: 11:53:52, Freitag, 4. April 2008
Meldung:
Übersetzung für Trackbacks und Pingbacks hinzugefügt
----
Verändert : /Capits.Simple_Blog_Artikelinfos.xml


Revision: 41
Autor: manuel_josupeit
Datum: 18:38:57, Donnerstag, 20. März 2008
Meldung:
Neues Feature: Capchas für Kommentare
----
Verändert : /Capits.Simple_Blog.xml
Verändert : /includes/functions.simpleblog.php
Hinzugefügt : /includes/functions.simpleblog_capcha.php
Verändert : /templates/simpleblog_kommentieren.html


Revision: 40
Autor: manuel_josupeit
Datum: 08:43:05, Mittwoch, 5. März 2008
Meldung:
Bugfix: OK-Buttons in Bestätigungsdialogen versehentlich durch but_speichern.gif ersetzt, styles zu Links hinzugefügt
----
Verändert : /Capits.Simple_Blog.xml
Verändert : /Capits.Simple_Blog_Artikelkommentare.xml
Verändert : /Capits.Simple_Blog_Artikelpings.xml


Revision: 39
Autor: manuel_josupeit
Datum: 17:11:15, Montag, 3. März 2008
Meldung:
- Button-Grafiken geändert
- Kommentare und Pingbacks können nun auch offline geschaltet werden
----
Verändert : /Capits.Simple_Blog.xml
Verändert : /Capits.Simple_Blog_Artikelkommentare.xml
Verändert : /Capits.Simple_Blog_Artikelpings.xml
Verändert : /includes/functions.simpleblog.php
Verändert : /includes/functions.simpleblog_helpers.php


Revision: 38
Autor: manuel_josupeit
Datum: 12:54:46, Donnerstag, 28. Februar 2008
Meldung:
Bugfix: idart wurde im Feed auf idartlang gesetzt
----
Verändert : /Capits.Simple_Blog.xml


Revision: 37
Autor: manuel_josupeit
Datum: 12:43:57, Donnerstag, 28. Februar 2008
Meldung:
Bugfix: Titel, Link und Description wurden im Kommentarfeed EINES ARTIKELS nicht korrekt gesetzt, Format von Mail und Name im Feed hat sich von "Name" <mail> auf mail (Name) geändert.

Feature: atom:link zum Feed hinzugefügt, Ausgabelänge des Teasers kann für Feeds eingegeben werden.
----
Verändert : /Capits.Simple_Blog.xml
Verändert : /includes/class.rss.php
Verändert : /includes/functions.simpleblog_helpers.php
Gruß,
Manuel

rethus
Beiträge: 1851
Registriert: Di 28. Mär 2006, 11:55
Wohnort: Mönchengladbach
Kontaktdaten:

Beitrag von rethus » Mo 23. Jun 2008, 13:25

Hallo Leute,

ich hab mich mal dran gesetzt, nun die Keyword-Sperrliste einzubauen.
Irgendwie gibt es da ber ganz massive Probleme. Nun weiß ich nicht, ob es ein php-Bug, oder eine Contenido-Eigenheit ist, die ich nicht berücksichtigt habe.

Hier erstmal der Module-Code (Änderungen sind gekennzeichnet mit
<!--START Modified by www.suther.de -->
<!--END Modified by www.suther.de -->
Modul Input:

Code: Alles auswählen

?><?php
/* ----------------------------------------------------------------- *\
|* CONTENIDO MODUL - INPUT                                           *|
|*                                                                   *|
|* Modulname   :     Simple Blog                                     *|
|* Author(s)   :     Manuel Josupeit-Walter                          *|
|* Copyright   :     Capits, Agentur für Kommunikation               *|
|* Created     :     01.08.2007                                      *|
\* ----------------------------------------------------------------- */


# Include classes
cInclude('classes', 'contenido/class.client.php');

# Fill variables
$cms_idcat = "CMS_VALUE[1]";
$cms_put_rss_into_head = "CMS_VALUE[2]" != "" ? ' checked="checked"' : '';
$cms_sort_order = "CMS_VALUE[3]";
$cms_rss_upper_limit = "CMS_VALUE[4]";
$cms_rss_title = "CMS_VALUE[5]";
$cms_rss_copyright = "CMS_VALUE[6]";
$cms_rss_description = "CMS_VALUE[7]";
$cms_rss_managing_editor = "CMS_VALUE[8]";
$cms_rss_web_master = "CMS_VALUE[9]";
$cms_rss_ttl = "CMS_VALUE[10]";
$cms_upper_limit = "CMS_VALUE[15]";
$cms_sort_direction = "CMS_VALUE[16]";
$cms_include_start_article = "CMS_VALUE[17]" != "" ? ' checked="checked"' : '';
$cms_shortdesc_length = "CMS_VALUE[18]";
$cms_arts_per_page = "CMS_VALUE[19]";
$cms_lower_limit = "CMS_VALUE[20]";
$cms_forbid_comments = "CMS_VALUE[21]" != "" ? ' checked="checked"' : '';
$cms_mail = "CMS_VALUE[22]";
$cms_mail_webmaster = "CMS_VALUE[23]" != "" ? ' checked="checked"' : '';
$cms_mail_managing_editor = "CMS_VALUE[24]" != "" ? ' checked="checked"' : '';
$cms_mail_author = "CMS_VALUE[25]" != "" ? ' checked="checked"' : '';
$cms_mail_method = "CMS_VALUE[26]";
$cms_confirm_comments = "CMS_VALUE[34]" != "" ? ' checked="checked"' : '';
$cms_show_link = "CMS_VALUE[35]" ? "CMS_VALUE[35]" : "demand";
$cms_forbid_trackbacks = "CMS_VALUE[36]" != "" ? ' checked="checked"' : '';
$cms_forbid_pingbacks = "CMS_VALUE[37]" != "" ? ' checked="checked"' : '';
$cms_confirm_pings = "CMS_VALUE[38]" != "" ? ' checked="checked"' : '';
$cms_recurse = "CMS_VALUE[39]" != "" ? ' checked="checked"' : '';
$cms_catgroup = "CMS_VALUE[40]" != "" ? ' checked="checked"' : '';
$cms_completehtml = "CMS_VALUE[41]" != "" ? ' checked="checked"' : '';
$cms_rss_shortdesc_length = "CMS_VALUE[42]";
$cms_capcha_font = "CMS_VALUE[43]";
$cms_capcha_width = "CMS_VALUE[44]";
$cms_capcha_height = "CMS_VALUE[44]";

# Sort order and direction
$GLOBALS["sort_$cms_sort_order"] = ' checked="checked"';
$GLOBALS["sort_$cms_sort_direction"] = ' checked="checked"';

# Mail settings
$GLOBALS["mail_$cms_mail"] = ' checked="checked"';
$GLOBALS["cms_mail_method_$cms_mail_method"] = ' checked="checked"';

# HTML display settings
$GLOBALS["cms_" . $cms_show_link . "_show_link"] = ' checked="checked"';

$cApiClient = new cApiClient($client);
?>

<table cellpadding="0" cellspacing="0">
	<tr><td class="text_medium" colspan="2"><strong><?php print(htmlentities(mi18n("Allgemeine Einstellungen"))); ?>:</strong></td></tr>
	<tr>
		<td class="text_medium"><?php print(htmlentities(mi18n("Kategorie wählen"))); ?>:</td>
		<td><?php print(buildCategorySelect("CMS_VAR[1]", "CMS_VALUE[1]")); ?>&nbsp;<input type="image" src="images/submit.gif"></td>
	</tr>
	<tr>
		<td class="text_medium"><?php print(htmlentities(mi18n("In Unterkategorien absteigen"))); ?>:</td>
		<td><input type="checkbox" name="CMS_VAR[39]" value="yes"<?php print($cms_recurse); ?> /></td>
	</tr>
	<tr>
		<td class="text_medium"><?php print(htmlentities(mi18n("Nach Unterkategorien gruppiert sortieren"))); ?>:</td>
		<td><input type="checkbox" name="CMS_VAR[40]" value="yes"<?php print($cms_catgroup); ?> /></td>
	</tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Sortierung nach Erstelldatum"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[3]" value="created"<?php print(@$sort_created); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Sortierung nach Veröffentlichungsdatum"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[3]" value="published"<?php print(@$sort_published); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Sortierung nach Änderungsdatum"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[3]" value="lastmodified"<?php print(@$sort_lastmodified); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Sortierung nach Sortierschlüssel"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[3]" value="artsort"<?php print(@$sort_artsort); ?> /></td>
	</tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Sortierung aufsteigend"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[16]" value="asc"<?php print(@$sort_asc); ?> /></td>
    </tr>
    <tr>
      <td class="text_medium"><?php print(htmlentities(mi18n("Sortierung absteigend"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[16]" value="desc"<?php print(@$sort_desc); ?> /></td>
    </tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Startartikel in Liste einbeziehen"))); ?>:</td>
	  <td><input type="checkbox" name="CMS_VAR[17]" value="yes"<?php print($cms_include_start_article); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Wie viele Artikel Überspringen"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[20]" value="<?php print(htmlentities($cms_lower_limit)); ?>" /></td>
	</tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Verantwortlicher Redakteur") . " (" . mi18n("E-Mail Adresse") . ")")); ?>:</td>
	  <td><input type="text" <?php if (!($cManagingEditor = @$cApiClient->getProperty('simpleBlog', 'managingEditor'))) { ?>name="CMS_VAR[8]" <?php } ?>value="<?php print(htmlentities($cManagingEditor ? $cManagingEditor : $cms_rss_managing_editor)); ?>"<?php if (@$cManagingEditor) print(" disabled=\"disabled\""); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Webmaster") . " (" . mi18n("E-Mail Adresse") . ")")); ?>:</td>
	  <td><input type="text" <?php if (!($cWebMaster = @$cApiClient->getProperty('simpleBlog', 'webMaster'))) { ?>name="CMS_VAR[9]" <?php } ?>value="<?php print(htmlentities($cWebMaster ? $cWebMaster : $cms_rss_web_master)); ?>"<?php if (@$cWebMaster) print(" disabled=\"disabled\""); ?> /></td>
	</tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td class="text_medium" colspan="2"><strong><?php print(htmlentities(mi18n("Kommentar- und Trackback Einstellungen"))); ?>:</strong></td></tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Kommentieren generell verbieten"))); ?>:</td>
	  <td><input type="checkbox" <?php if (!($cForbidComments = @$cApiClient->getProperty('simpleBlog', 'forbidComments'))) { ?>name="CMS_VAR[21]" <?php } ?>value="yes"<?php if ($cForbidComments == "1") print(" checked=\"checked\" disabled=\"disabled\""); elseif ($cForbidComments === "0") print(" disabled=\"disabled\""); else print($cms_forbid_comments); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Neue Kommentare erfordern Freigabe"))); ?>:</td>
	  <td><input type="checkbox" <?php if (!($cConfirmComments = @$cApiClient->getProperty('simpleBlog', 'confirmComments'))) { ?>name="CMS_VAR[34]" <?php } ?>value="yes"<?php if ($cConfirmComments == "1") print(" checked=\"checked\" disabled=\"disabled\""); elseif ($cConfirmComments === "0") print(" disabled=\"disabled\""); else print($cms_confirm_comments); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Capcha mit folgender Schrift verwenden"))); ?>:</td>
	  <td>
	    <select name="CMS_VAR[43]">
		  <option value=""><?php print(htmlentities(mi18n("-- Keine Capchas verwenden --"))); ?></option>
		  <?php
			$db = new DB_Contenido;
			$sql = "SELECT DISTINCT CONCAT(`dirname`, `filename`) AS `file` FROM `" . $cfg["tab"]["upl"] . "` WHERE `idclient`='$client' AND `filetype`='ttf' ORDER BY `dirname` ASC, `filename` ASC";
			$db->query($sql);
			
			while ($db->next_record()) {
				$filename = $db->f("file");
				
				if (!is_file($cfgClient[$client]["path"]["frontend"] . $cfgClient[$client]["upload"] . $filename)) {
					print "<!-- File not found: " . htmlspecialchars($cfgClient[$client]["path"]["frontend"] . $cfgClient[$client]["upload"] . $filename) . " -->\n";
					continue;
				}
					
				print('<option value="' . htmlentities($filename) . '"' . ($cms_capcha_font == $filename ? ' selected="selected"' : '') . '>' . htmlentities($filename) . '</option>');
			}
		  ?>
		</select>
	  </td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Breite des Capcha Bildes"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[44]" value="CMS_VALUE[44]" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Höhe des Capcha Bildes"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[45]" value="CMS_VALUE[45]" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><span style="cursor: help; border-bottom: 1px dashed black;" title="<?php print(htmlentities(mi18n("Der RDF-Code, der für Trackbacks benötigt wird, wird automatisch ergänzt."))); ?>"><?php print(htmlentities(mi18n("Trackbacks generell verbieten"))); ?></span>:</td>
	  <td><input type="checkbox" <?php if (!($cForbidTrackbacks = @$cApiClient->getProperty('simpleBlog', 'forbidTrackbacks'))) { ?>name="CMS_VAR[36]" <?php } ?>value="yes"<?php if ($cForbidTrackbacks == "1") print(" checked=\"checked\" disabled=\"disabled\""); elseif ($cForbidTrackbacks === "0") print(" disabled=\"disabled\""); else print($cms_forbid_trackbacks); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><span style="cursor: help; border-bottom: 1px dashed black;" title="<?php print(htmlentities(mi18n("Pingback-Header werden dem Dokument automatisch hinzugefügt."))); ?>"><?php print(htmlentities(mi18n("Pingbacks generell verbieten"))); ?></span>:</td>
	  <td><input type="checkbox" <?php if (!($cForbidPingbacks = @$cApiClient->getProperty('simpleBlog', 'forbidPingbacks'))) { ?>name="CMS_VAR[37]" <?php } ?>value="yes"<?php if ($cForbidPingbacks == "1") print(" checked=\"checked\" disabled=\"disabled\""); elseif ($cForbidPingbacks === "0") print(" disabled=\"disabled\""); else print($cms_forbid_pingbacks); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Track- und Pingbacks erfordern Freigabe"))); ?>:</td>
	  <td><input type="checkbox" <?php if (!($cConfirmPings = @$cApiClient->getProperty('simpleBlog', 'confirmPings'))) { ?>name="CMS_VAR[38]" <?php } ?>value="yes"<?php if ($cConfirmPings == "1") print(" checked=\"checked\" disabled=\"disabled\""); elseif ($cConfirmPings === "0") print(" disabled=\"disabled\""); else print($cms_confirm_pings); ?> /></td>
	</tr>
	<?php
	$cMailAuthor = @$cApiClient->getProperty('simpleBlog', 'mailAuthor');
	$cMailManagingEditor = @$cApiClient->getProperty('simpleBlog', 'mailManagingEditor');
	$cMailWebmaster = @$cApiClient->getProperty('simpleBlog', 'mailWebMaster');
	?>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Bei neuen Kommentaren und Trackbacks generell nie benachrichtigen"))); ?>:</td>
	  <td><input type="radio" <?php if (($cDisableMail = @$cApiClient->getProperty('simpleBlog', 'disableMail')) === false && $cMailAuthor != "1" && $cMailManagingEditor != "1" && $cMailWebmaster != "1") { ?>name="CMS_VAR[22]" <?php } ?>value="never"<?php if ($cDisableMail == '1') print(' checked="checked" disabled="disabled"'); else if ($cDisableMail === '0' || $cMailWebmaster == "1" || $cMailManagingEditor == "1" || $cMailAuthor == "1") print (' disabled="disabled"'); else print(@$mail_never); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Bei neuen Kommentaren und Trackbacks benachrichtigen"))); ?>:</td>
	  <td><input type="radio" <?php if ($cDisableMail === false && $cMailAuthor != "1" && $cMailManagingEditor != "1" && $cMailWebmaster != "1") { ?>name="CMS_VAR[22]" <?php } ?>value="always"<?php if ($cDisableMail == '1') print(' disabled="disabled"'); else if ($disableMail === '0' || $cMailAuthor == "1" || $cMailWebmaster == "1" || $cMailManagingEditor =="1") print(' checked="checked" disabled="disabled"'); else print(@$mail_always); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium">&nbsp;-&nbsp;<?php print(htmlentities(mi18n("Webmaster"))); ?>:</td>
	  <td><input type="checkbox" <?php if ($cDisableMail != '1' && $cMailWebmaster === false) { ?>name="CMS_VAR[23]" <?php } ?>value="yes"<?php if ($cDisableMail == "1" || $cMailWebmaster === '0') print(' disabled="disabled"'); else if ($cMailWebmaster == "1") print(" checked=\"checked\" disabled=\"disabled\""); else print($cms_mail_webmaster); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium">&nbsp;-&nbsp;<?php print(htmlentities(mi18n("Verantwortlicher Redakteur"))); ?>:</td>
	  <td><input type="checkbox" <?php if ($cDisableMail != '1' && $cMailManagingEditor === false) { ?>name="CMS_VAR[24]" <?php } ?>value="yes"<?php if ($cDisableMail == "1" || $cMailManagingEditor === '0') print(' disabled="disabled"'); else if ($cMailManagingEditor == "1") print(" checked=\"checked\" disabled=\"disabled\""); else print($cms_mail_managing_editor); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium">&nbsp;-&nbsp;<?php print(htmlentities(mi18n("Autor"))); ?>:</td>
	  <td><input type="checkbox" <?php if ($cDisableMail != '1' && $cMailAuthor === false) { ?>name="CMS_VAR[25]" <?php } ?>value="yes"<?php if ($cDisableMail == "1" || $cMailAuthor === '0') print(' disabled="disabled"'); else if ($cMailAuthor == "1") print(" checked=\"checked\" disabled=\"disabled\""); else print($cms_mail_author); ?> /></td>
	</tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td class="text_medium" colspan="2"><strong><?php print(htmlentities(mi18n("E-Mail Einstellungen"))); ?>:</strong></td></tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Absender Name"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[32]" value="CMS_VALUE[32]" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Absender E-Mail"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[31]" value="CMS_VALUE[31]" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Betreffzeile"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[33]" value="CMS_VALUE[33]" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("\"mail()\" benutzen"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[26]" value="mail"<?php print($cms_mail_method_mail); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("\"sendmail\" benutzen"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[26]" value="sendmail"<?php print($cms_mail_method_sendmail); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("\"qmail\" benutzen"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[26]" value="qmail"<?php print($cms_mail_method_qmail); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("\"SMTP\" benutzen"))); ?>:</td>
	  <td><input type="radio" name="CMS_VAR[26]" value="smtp"<?php print($cms_mail_method_smtp); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("SMTP Host"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[27]" value="CMS_VALUE[27]" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("SMTP Port"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[28]" value="CMS_VALUE[28]" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("SMTP Benutzername"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[29]" value="CMS_VALUE[29]" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("SMTP Passwort"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[30]" value="CMS_VALUE[30]" /></td>
	</tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td class="text_medium" colspan="2"><strong><?php print(htmlentities(mi18n("HTML-Ausgabe Einstellungen"))); ?>:</strong></td></tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Anzahl Artikel begrenzen"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[15]" value="<?php print(htmlentities($cms_upper_limit)); ?>" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Standardanzahl an Artikeln pro Seite"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[19]" value="<?php print(htmlentities($cms_arts_per_page)); ?>" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Anzahl Zeichen Kurzbeschreibung"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[18]" value="<?php print(htmlentities($cms_shortdesc_length)); ?>" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><span style="cursor: help; border-bottom: 1px dashed black;" title="<?php print(htmlentities(mi18n("Wenn gewählt, werden HTML Tags nicht entfernt, außer in Ãœberschriften"))); ?>"><?php print(htmlentities(mi18n("HTML vollständig Übernehmen"))); ?></span>:</td>
	  <td><input type="checkbox" <?php if (!($cCompleteHtml = @$cApiClient->getProperty('simpleBlog', 'completeHtml'))) { ?>name="CMS_VAR[41]" <?php } ?>value="yes"<?php if ($cCompleteHtml == "1") print(" checked=\"checked\" disabled=\"disabled\""); elseif ($cCompleteHtml === "0") print(" disabled=\"disabled\""); else print($cms_completehtml); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Artikellink anzeigen"))); ?>:</td>
	  <td>
	    <input type="radio" name="CMS_VAR[35]" value="always"<?php print(htmlentities($cms_always_show_link)); ?> />&nbsp;<?php print(htmlentities(mi18n("immer"))); ?><br />
	    <input type="radio" name="CMS_VAR[35]" value="demand"<?php print(htmlentities($cms_demand_show_link)); ?> />&nbsp;<span style="cursor: help; border-bottom: 1px dashed black;" title="<?php print(htmlentities(mi18n("Falls der Artikeltext abgeschnitten oder Tags entfernt werden"))); ?>"><?php print(htmlentities(mi18n("falls verändert"))); ?></span><br />
	    <input type="radio" name="CMS_VAR[35]" value="never"<?php print(htmlentities($cms_never_show_link)); ?> />&nbsp;<?php print(htmlentities(mi18n("niemals"))); ?>
	  </td>
	</tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><td class="text_medium" colspan="2"><strong><?php print(htmlentities(mi18n("Feed-Ausgabe Einstellungen"))); ?>:</strong></td></tr>
	<tr>
	  <td class="text_medium"><span style="cursor: help; border-bottom: 1px dashed black;" title="<?php print(htmlentities(mi18n("Funktioniert nur bei aktiver Ausgabepufferung."))); ?>"><?php print(htmlentities(mi18n("Feed-URLs dem Seitenkopf hinzufügen"))); ?></span>:</td>
	  <td><input type="checkbox" name="CMS_VAR[2]" value="yes"<?php print($cms_put_rss_into_head); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Anzahl Artikel begrenzen"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[4]" value="<?php print(htmlentities($cms_rss_upper_limit)); ?>" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Anzahl Zeichen Kurzbeschreibung"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[42]" value="<?php print(htmlentities($cms_rss_shortdesc_length)); ?>" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Feed-Titel"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[5]" value="<?php print(htmlentities($cms_rss_title)); ?>" /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Feed-Beschreibung"))); ?>:</td>
	  <td><textarea name="CMS_VAR[7]" cols="20" rows="4"><?php print(htmlentities($cms_rss_description)); ?></textarea></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Copyright"))); ?>:</td>
	  <td><input type="text" <?php if (!($cCopyright = @$cApiClient->getProperty('simpleBlog', 'copyright'))) { ?>name="CMS_VAR[6]" <?php } ?>value="<?php print(htmlentities($cCopyright ? $cCopyright : $cms_rss_copyright)); ?>"<?php if ($cCopyright) print(" disabled=\"disabled\""); ?> /></td>
	</tr>
	<tr>
	  <td class="text_medium"><?php print(htmlentities(mi18n("Gültigkeitszeitraum in Minuten (Time-to-Live)"))); ?>:</td>
	  <td><input type="text" name="CMS_VAR[10]" value="<?php print(htmlentities($cms_rss_ttl)); ?>" /></td>
	</tr>

<!--START Modified by suther.de -->	
	<tr><td class="text_medium" colspan="2"><strong><?php print(htmlentities(mi18n("Sperrliste für unerlaubte Wörter"))); ?>:</strong></td></tr>
	<tr>
	  <td class="text_medium" valign="top"><span style="cursor: help; border-bottom: 1px dashed black;" title="<?php print(htmlentities(mi18n("Eine Begrifflichkeit pro Zeile (z.B. ''buy Viagra'') Gross- Kleinschreibung unwichtig!"))); ?>"><?php print(htmlentities(mi18n("Sperrliste - Spamschutz"))); ?></span>:</td>
	  <td><textarea name="CMS_VAR[50]" cols="20" rows="8"><?php echo "CMS_VALUE[50]"; ?></textarea></td>
	</tr>
<!--END Modified by suther.de -->	
</table>
<?php
Could I help you... you can help me... buy me a coffee . (vielen ❤ Dank an: Seelauer, Peanut, fauxxami )

xstable.com: - HighSpeed Hosting, Domains, DomainReselling, Linux-Administration
suther.de: - App-Programierung, High-Performance-Webpages, MicroServices, API-Anbindungen & Erstellung

Software... ein Blick wert: GoogleCalender Eventlist, xst_dynamic_contentType

rethus
Beiträge: 1851
Registriert: Di 28. Mär 2006, 11:55
Wohnort: Mönchengladbach
Kontaktdaten:

Beitrag von rethus » Mo 23. Jun 2008, 13:31

Mhh, der Output-Code scheint zu lang zu sein für dieses Board, beim speichern schneidet das Boad mir immer den Code ab... daher hier in Pastebin:
http://pastebin.com/m1c11f87c

Das Hauptproblem liegt in de Funktion, die die Kommentare auf Badwords testet.
Irgendwie kommt dort immer False raus:

Code: Alles auswählen

/*START Modified by www.suther.de */

		// Check for bad words
#print_r($_POST);
		if("CMS_VALUE[50]"!="")
		{
			$comment = htmlspecialchars($_POST['comment']);
			$badWords = explode("\n","CMS_VALUE[50]");
			for ($n = 0; $n < count($badWords); ++$n, next ($badWords))
			{
			$search = htmlspecialchars(str_replace("\n","",$badWords[$n]));
			$replace = "***";
			#$content = preg_replace("/'$search'/i", $replace, $comment);
			#echo "preg_replace(\"'/$search'/i\", $replace, $comment);";
			echo "stristr($comment,$search)<hr>";
			var_dump( stristr($comment,$search) ) ;
			var_dump( $search ) ;
			var_dump( $comment ) ;
			if(stristr($comment,$search)!== false)echo "Jo"; else echo "no";
			if(preg_match($comment,$search)!== false)echo "Jo"; else echo "no";
			print(createPage_errorPage(mi18n("Ihr Kommentar wurde als Spam klassifiziert, da er Wörter enthällt, die wir für den Kommentarbereich gesperrt haben.")));
 				    break 2;
			} 
		}

/*END Modified by www.suther.de */		
PS: Da sind noch einige Kontrollstrukturen drin, mit denen ich versucht habe den Fehler zu analysieren...
Could I help you... you can help me... buy me a coffee . (vielen ❤ Dank an: Seelauer, Peanut, fauxxami )

xstable.com: - HighSpeed Hosting, Domains, DomainReselling, Linux-Administration
suther.de: - App-Programierung, High-Performance-Webpages, MicroServices, API-Anbindungen & Erstellung

Software... ein Blick wert: GoogleCalender Eventlist, xst_dynamic_contentType

rethus
Beiträge: 1851
Registriert: Di 28. Mär 2006, 11:55
Wohnort: Mönchengladbach
Kontaktdaten:

Beitrag von rethus » Mo 7. Jul 2008, 09:41

Von meiner Seite ist das Bad-Words jetzt erstmal auf Eis, da dringendere Dinge getan werden müssen.

Würde mich dennoch freuen, wenn der ein oder andere hier weiter bastelt, um ddie Check-Funktion rauszubekommen. Würde es eine echte Bereicherung für das Blog-Modul finden.
Could I help you... you can help me... buy me a coffee . (vielen ❤ Dank an: Seelauer, Peanut, fauxxami )

xstable.com: - HighSpeed Hosting, Domains, DomainReselling, Linux-Administration
suther.de: - App-Programierung, High-Performance-Webpages, MicroServices, API-Anbindungen & Erstellung

Software... ein Blick wert: GoogleCalender Eventlist, xst_dynamic_contentType

shi
Beiträge: 251
Registriert: Fr 5. Nov 2004, 14:12
Kontaktdaten:

Blog auch in der Version 4.8.8

Beitrag von shi » Do 23. Okt 2008, 16:44

Hallo, ich versuche gerade das Blog-Modul in eine 4.8.8 Version zu installieren. Artikel einlesen und Feeds erstellen scheint zu funktionieren. Jedoch habe ich Probleme Kommentare zu erstellen, ich kann zwar welche schreiben aber sobald eine Meldung eingetragen kommt eine Fehlermeldung:

Code: Alles auswählen

Warning: in_array(): Wrong datatype for second argument in /srv/www/vhosts/meine-lausitz.de/httpdocs/cms/front_content.php(968) : eval()'d code on line 894 Warning: Invalid argument supplied for foreach() in /srv/www/vhosts/meine-lausitz.de/httpdocs/cms/front_content.php(968) : eval()'d code on line 1093 
Lösche ich denn Kommentar ist der Fehler weg. Hier mal ein Link zum testen http://www.meine-lausitz.de/cms/front_c ... idart=3360

derju
Beiträge: 301
Registriert: Do 15. Jan 2009, 09:00
Kontaktdaten:

Beitrag von derju » Di 20. Jan 2009, 09:56

Hallo,

ich hab das gleiche Problem wie shi.

hat keiner einen Tip?

grüße derju

Holger71
Beiträge: 3
Registriert: Sa 22. Nov 2008, 22:12
Kontaktdaten:

Re: Modul: Capits.Simple Blog

Beitrag von Holger71 » Fr 20. Mär 2009, 11:23

Hallo allerseits,

ist dieses Modul ohne weiteres mit der aktuellen Contenido-Version 4.8.11kompatibel oder würde dieses nur mit 4.6.x funktionieren?
Ich überlege von Drupal auf Contenido umzusteigen aber ich brauch zwingend die Funktionen Trackback und Pingback - von daher wär das Modul vermutlich ideal.

Beste Grüße, Holger

Neverlands
Beiträge: 45
Registriert: Mo 20. Sep 2004, 14:56
Wohnort: Wien
Kontaktdaten:

Re:

Beitrag von Neverlands » Mi 24. Mär 2010, 22:12

Nebel hat geschrieben:Hi,

bekomme nach einem Update auf 4.8.3 mit MR nur noch folgende Fehlermeldung:

Code: Alles auswählen

Fatal error: Error: Can't include /web/1/000/024/279/56416/htdocs/contenido/classes/class.modrewrite.php in /web/1/000/024/279/56416/htdocs/contenido/includes/api/functions.api.general.php on line 158
Hat vielleicht jemand eine Ahnung, woran genau es liegen könnte?

Schöne Grüße
Hallochen,
gibt es mittlerweile einen Weg, Capits.Simple Blog mit dem ModRewrite von Contenido 4.8.x zu verwenden?

Grüße,
The Neverlands

Nebel
Beiträge: 117
Registriert: Do 14. Jun 2007, 10:08
Kontaktdaten:

Re: Re:

Beitrag von Nebel » Fr 21. Jan 2011, 12:11

Neverlands hat geschrieben:Fatal error: Error: Can't include /web/1/000/024/279/56416/htdocs/contenido/classes/class.modrewrite.php in /web/1/000/024/279/56416/htdocs/contenido/includes/api/functions.api.general.php on line 158[/code]...
gibt es mittlerweile einen Weg, Capits.Simple Blog mit dem ModRewrite von Contenido 4.8.x zu verwenden?...
Inzwischen vielleicht?
Schöne Grüße
Nebel

Module: FLV Media Player | DivX Webplayer | Quicktime Player

stefkey
Beiträge: 556
Registriert: Mi 19. Okt 2005, 16:10
Wohnort: Heidelberg
Kontaktdaten:

Re: Modul: Capits.Simple Blog

Beitrag von stefkey » Di 8. Feb 2011, 23:58

hmmm. sieht schlecht aus! Schade! Für 4.8.x wäre echt klasse gewesen...

various
Beiträge: 24
Registriert: Mo 2. Feb 2009, 18:40
Kontaktdaten:

Re: Modul: Capits.Simple Blog

Beitrag von various » Mo 14. Nov 2011, 13:18

gibt es hier schon eine lösung für dieses an sich tolle modul.

also es geht, wenn man die mr aufrufe in nicht mr ändert.

oben müssen natürlich die mr includes raus, da es diese dateien nicht mehr gibt.

auf jeden hab ich schonmal eine ausgabe....

matthiasschnueriger
Beiträge: 60
Registriert: Mo 28. Nov 2005, 16:01
Kontaktdaten:

Re: Modul: Capits.Simple Blog

Beitrag von matthiasschnueriger » Mi 14. Aug 2013, 08:22

Hallo Community

Für eine meiner mit Contenido realisierten Websites war ich auf der Suche nach einem Blog/News-Modul, dabei bin ich auf Capits.Simple Blog gestossen.
Ich hab das Ding soweit mit 4.8.18 zum laufen gebracht. Zwei Probleme habe ich allerdings noch:

1) Ich möchte in der Artikelvorschau das CMS_IMG[1] aus dem Bildmodul als Teaserbild verwenden. Wie krieg ich das hin?
2) Leider scheint das Modul nicht mit Purcs Advanced ModRewrite zu funktionieren. Gibt es inzwischen eine Lösung dafür?

Falls ich mit diesem Modul auf dem Holzweg bin (wird es überhaupt noch weiter entwickelt?), bin ich auch offen für moderne Scripts.

Danke und Gruss
Matthias

Faar
Beiträge: 1915
Registriert: Sa 8. Sep 2007, 16:23
Wohnort: Brandenburg
Kontaktdaten:

Re: Modul: Capits.Simple Blog

Beitrag von Faar » Mi 14. Aug 2013, 11:18

Wenn das Modul front_content.php?... als Ausgabe für die Links macht, sollte es mit dem AMR funktionieren.

Es gibt aber noch das Modul Article List Advanced V3.2 http://contenido4814.kundenkonto.com/mo ... -advanced/ das recht umfangreich ist.
Ansonsten kann man News sehr gut mit dem einfacheren Standard News-Modul umsetzen.
Ich hab das sogar noch etwas erweitert, so dass ich manches besser steuern kann. Das reicht oft für kleinere News aus, allerdings ohne Pagination.
Fliegt der Bauer übers Dach, ist der Wind weißgott nicht schwach.

Gesperrt