Du bist nicht angemeldet. Der Zugriff auf einige Boards wurde daher deaktiviert.
Seiten: 1
#1 02. Dezember 2014 21:07
- Stadti
- hat von CMS/ms gehört
- Ort: Blieskastel
- Registriert: 02. Dezember 2014
- Beiträge: 6
AComment installiert für News-Modul funktioniert leider nicht
Hallo Zusammen,
ich habe das Acomment-Modul installiert um es im News-Modul zu nutzen. Ich habe es auch wie folgt im News Detail-Template eingebunden:
{cms_module module='comments' modulename='News' pageid=$entry->id}
Allerdings kann ich nicht sehen, dass etwas passiert.
Ich bin Laie und es wäre klasse wenn Ihr mir helfen könnt.
Vielen Dank.
Stadti
Offline
#2 03. Dezember 2014 01:04
- Andynium
- Moderator
- Ort: Dohna / SN / Deutschland
- Registriert: 13. September 2010
- Beiträge: 7.018
- Webseite
Re: AComment installiert für News-Modul funktioniert leider nicht
Hi Stadti,
willkommen im Forum!
Steht das noch so in der Hilfe?
{cms_module module='comments' modulename='News' pageid=$entry->id}
Muss natürlich
{cms_module module='Acomments' modulename='News' pageid=$entry->id}
lauten.
Offline
#3 06. Dezember 2014 13:00
- Stadti
- hat von CMS/ms gehört
- Ort: Blieskastel
- Registriert: 02. Dezember 2014
- Beiträge: 6
Re: AComment installiert für News-Modul funktioniert leider nicht
Hallo Cyberman,
vielen Dank für Deine Antwort.
Ich habe es nun wie folgt eingefügt.
{* News module entry object reference:
------------------------------
In previous versions of News the 'object' returned in $entry was quite simple, and a <pre>{$entry|@print_r}</pre> would output all of the available data
This has changed in News 2.12, the object is not quite as 'simple' as it was in previous versions, and that method will no longer work. Hence, below
you will find a referennce to the available data.
====
news_article Object Reference
====
Members:
--
Members can be displayed by the following syntax: {$entry->membername} or assigned to another smarty variable using {assign var='foo' value=$entry->membername}.
The following members are available in the entry array:
id (integer) = The unique article id.
author_id (integer) = The userid of the author who created the article. This value may be negative to indicate an FEU userid.
title (string) = The title of the article.
summary (text) = The summary text (may be empty or unset).
extra (string) = The "extra" data associated with the article (may be empty or unset).
news_url (string) = The url segment associated with this article (may be empty or unset).
postdate (string) = A string representing the news article post date. You may filter this through cms_date_format for different display possibilities.
startdate (string) = A string representing the date the article should begin to appear. (may be empty or unset)
enddate (string) = A string representing the date the article should stop appearing on the site (may be empty or unset).
category_id (integer) = The unique id of the hierarchy level where this article resides (may be empty or unset)
status (string) = either 'draft' or 'published' indicating the status of this article.
author (string) = The username of the original author of the article. If the article was created by frontend submission, this will attempt to retrieve the username from the FEU module.
authorname (string) = The full name of the original author of the website. Only applicable if article was created by an administrator and that information exists in the administrators profile.
category (string) = The name of the category that this article is associated with.
canonical (string) = A full URL (prettified) to this articles detail view using defaults if necessary.
fields (associative) = An associative array of field objects, representing the fields, and their values for this article. See the information below on the field object definition. In past versions of News this was a simple array, now it is an associative one.
customfieldsbyname = (deprecated) - A synonym for the 'fields' member
fieldsbyname = (deprecated) - A synonym for the 'fields' member
useexp (integer) = A flag indicating wether this article is using the expiry information.
file_location (string) = A url containing the location where files attached the article are stored... the field value should be appended to this url.
====
news_field Object Reference
====
The news_field object contains data about the fields and their values that are associated with a particular news article.
Members:
--------
id (integer) = The id of the field definition
name (string) = The name of the field
type (string) = The type of field
max_length (integer) = The maximum length of the field (applicable only to text fields)
item_order (integer) = The order of the field
public (integer) = A flag indicating wether the field is public or not
value (mixed) = The value of the field.
====
Below, you will find the normal detail template information. Modify this template as desired.
*}
{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
{assign var='canonical' value=$entry->canonical}
{/if}
{if $entry->postdate}
<div id="NewsPostDetailDate">
{$entry->postdate|cms_date_format}
</div>
{/if}
<h3 id="NewsPostDetailTitle">{$entry->title|cms_escape:htmlall}</h3>
<hr id="NewsPostDetailHorizRule" />
{if $entry->summary}
<div id="NewsPostDetailSummary">
<strong>
{eval var=$entry->summary}
</strong>
</div>
{/if}
<div id="NewsPostDetailContent">
{eval var=$entry->content}
</div>
{if $entry->extra}
<div id="NewsPostDetailExtra">
{$extra_label} {$entry->extra}
</div>
{/if}
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url}{if $category_name != ''} - {$category_link}{/if}</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsDetailField">
{if $field->type == 'file'}
{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
{cms_module module='Acomments' modulename='News' pageid=$entry->id}
Allerdings erscheint immer noch nichts auf der Seite.
Es wäre klasse wenn du mir weiterhelfen kannst.
Viele Grüße,
Stadti
Offline
#4 06. Dezember 2014 15:01
- Klenkes
- Server-Pate
- Ort: 89428 Syrgenstein
- Registriert: 17. Dezember 2010
- Beiträge: 1.437
Re: AComment installiert für News-Modul funktioniert leider nicht
{cms_module module='AComments' modulename='News' pageid=$entry->id}
Das C muss groß geschrieben sein.
Offline
#5 06. Dezember 2014 15:54
- Stadti
- hat von CMS/ms gehört
- Ort: Blieskastel
- Registriert: 02. Dezember 2014
- Beiträge: 6
Re: AComment installiert für News-Modul funktioniert leider nicht
Hey,
danke. Hab es jetzt geändert und habe jetzt den folgenden Fehler auf der Seite:
Error: at line 702 in file /usr/www/users/melekp/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Message:
Syntax Error in template "module_db_tpl:AComments;default_display" on line 23 "{startExpandCollapse id="name" title="$addacomment"}"
Könnt ihr mir auch hier weiterhelfen?
Viele Grüße,
Stadti
Offline
#6 06. Dezember 2014 20:11
- Klenkes
- Server-Pate
- Ort: 89428 Syrgenstein
- Registriert: 17. Dezember 2010
- Beiträge: 1.437
Re: AComment installiert für News-Modul funktioniert leider nicht
Die Plugins startExpandCollapse und endExpandCollapse gibt es heute nicht mehr, AComments setzt aber noch drauf.
Den ganzen Kram mit ExpandCollapse musst du entweder aus der Template rausnehmen, oder aber die alten Plugins suchen und versuchen, sie unter 1.11.11 zum Laufen zu bringen.
Du kannst es ja vorerst mal auskommentieren:
{* startExpandCollapse id="name" title="$addacomment" *}
Offline
#7 06. Dezember 2014 21:53
- Andynium
- Moderator
- Ort: Dohna / SN / Deutschland
- Registriert: 13. September 2010
- Beiträge: 7.018
- Webseite
Re: AComment installiert für News-Modul funktioniert leider nicht
Den Ersatz des Plugins hatten wir hier schon mal andiskutiert
Offline
#8 27. Dezember 2014 17:46
- Stadti
- hat von CMS/ms gehört
- Ort: Blieskastel
- Registriert: 02. Dezember 2014
- Beiträge: 6
Re: AComment installiert für News-Modul funktioniert leider nicht
Vielen Dank für Eure Hilfe. Ich konnte die Kommentare nun einfügen. Eine Frage habe ich diesbezüglich noch.
<tr>
<td>Dein Kommentar:</td>
<td>{$inputcomment}
</td>
Könntet Ihr mir bitte mitteilen wo ich dieses $inputcomment finde? Die Kommentare werden auf einer Seite mit weißem Hintergrund abgebildet und aktuell ist die Schriftfarbe auch weiss. Diese möchte ich gerne ändern.
Vielen Dank.
Offline
#9 27. Dezember 2014 17:56
- nockenfell
- Moderator
- Ort: Gontenschwil, Schweiz
- Registriert: 09. November 2010
- Beiträge: 2.934
- Webseite
Re: AComment installiert für News-Modul funktioniert leider nicht
Diese Einstellung dürfte im Stylesheet zu finden sein. Am einfachsten findest du dies mit den Debug-Möglichkeiten des Browsers heraus. Dann kannst du an der entsprechenden Stelle das Stylesheet anpassen.
[dieser Beitrag wurde mit 100% recycled bits geschrieben]
Mein Blog / Diverse Links rund um CMS Made Simple
Module: btAdminer, ToolBox
Offline
#10 31. Dezember 2014 13:58
- Stadti
- hat von CMS/ms gehört
- Ort: Blieskastel
- Registriert: 02. Dezember 2014
- Beiträge: 6
Re: AComment installiert für News-Modul funktioniert leider nicht
Hallo nockenfell,
danke für den Tipp. Ich habe den Debug im Browser aktiviert und das entsprechende Feld gepürt. DAhinter verbirgt sich folgendes :
<textarea class="mbd96a" rows="15" cols="65" name="mbd96acontent"></textarea>
Allerdings kann ich diese Class nicht finden. Könnt ihr mir hier weiterhelfen?
Offline
#11 31. Dezember 2014 19:20
- nockenfell
- Moderator
- Ort: Gontenschwil, Schweiz
- Registriert: 09. November 2010
- Beiträge: 2.934
- Webseite
Re: AComment installiert für News-Modul funktioniert leider nicht
Hast du einen Link zur Seite?
[dieser Beitrag wurde mit 100% recycled bits geschrieben]
Mein Blog / Diverse Links rund um CMS Made Simple
Module: btAdminer, ToolBox
Offline
#12 02. Januar 2015 00:08
- Andynium
- Moderator
- Ort: Dohna / SN / Deutschland
- Registriert: 13. September 2010
- Beiträge: 7.018
- Webseite
Re: AComment installiert für News-Modul funktioniert leider nicht
Allerdings kann ich diese Class nicht finden. Könnt ihr mir hier weiterhelfen?
Die Klasse wird nicht vom Modul ins Stylesheet geschrieben - die entsprechenden Style-Definitionen musst du schon selbst einfügen .
Offline
#13 02. Januar 2015 16:06
- Stadti
- hat von CMS/ms gehört
- Ort: Blieskastel
- Registriert: 02. Dezember 2014
- Beiträge: 6
Re: AComment installiert für News-Modul funktioniert leider nicht
Hey,
und danke für eure Comments. Die Seite lautet www.mele-pele.de
Könnt ihr mir da bitte weiterhelfen wie ich die Definition erstelle und hinterlege?
Vielen Dank.
Offline
#14 02. Januar 2015 16:26
- nockenfell
- Moderator
- Ort: Gontenschwil, Schweiz
- Registriert: 09. November 2010
- Beiträge: 2.934
- Webseite
Re: AComment installiert für News-Modul funktioniert leider nicht
Such mal in deinem Stylesheet nach folgendem:
textarea {
width:970px;
padding:2px;
font: normal em 'Trebuchet MS', verdana, sans-serif;
border:1px solid #ffffff;
height:100px;
display:block;
color:#ffffff;
}
--> Wenn du die auf folgende Paramter abänderst, siehst du die textarea
textarea {
width:970px;
padding:2px;
font: normal em 'Trebuchet MS', verdana, sans-serif;
height:100px;
display:block;
border:1px solid #eee;
color:#777;
}
--> ich würde bei dem Formular eher einen dunkleren Rahmen und eine dunklere Farbe für den Text wählen. Im Moment sieht man weder das eine noch das andere gut.
[dieser Beitrag wurde mit 100% recycled bits geschrieben]
Mein Blog / Diverse Links rund um CMS Made Simple
Module: btAdminer, ToolBox
Offline
Seiten: 1