shop.extended und file list

Hier bekommst Du deutschsprachigen Support bezüglich offizieller Module für phpwcms. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
Post Reply
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

shop.extended und file list

Post by update »

Wenn ich im extended shop eine Datei einbinde (unter Verwendung des ansonsten ganz normal funktionierenden file list templates), dann erhalte ich
b>Warning</b>: explode() expects parameter 2 to be string, array given in <b>/usr/www/users/b..../include/inc_front/content/cnt7.article.inc.php</b> on line <b>41</b>
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: shop.extended und file list

Post by juergen »

Alle Variablen des Shops werden in der Datenbank abgelegt. Wenn du jetzt ne alte und eine neue vermischst dann passiert sowas möglicherweise... !
nameless1
Posts: 878
Joined: Sun 27. Apr 2008, 23:22

Re: shop.extended und file list

Post by nameless1 »

was steht den in der
claus wrote:cnt7.article.inc.php on line <b>41</b>
?
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: shop.extended und file list

Post by update »

Da steht:

Code: Select all

	$crow["acontent_files"]		= $value['cnt_object']['cnt_files']['id'];
	$crow["acontent_text"]		= explode("\n", $value['cnt_object']['cnt_files']['caption']); //das ist Zeile 41
	$content['files_direct']	= $value['files_direct_download'];
	$crow["acontent_template"]	= $value['files_template'];
	$crow["acontent_html"]		= '';
	$crow['file_cp_title']		= '';
	$crow['file_cp_subtitle']	= '';
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: shop.extended und file list

Post by juergen »

Was hast du denn als Begleittext für das file hingeschrieben ? Wieder mal so ne Extra Caption ? :mrgreen:
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: shop.extended und file list

Post by update »

nein, einfach
Hier ist ein kleiner 8-seitiger Lesehungermacher
Ob das Wort "Lesehungermacher" daran schuld ist? Schließlich kommt das ja in keinem Wörterbuch vor ;)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: shop.extended und file list

Post by update »

Ich habe mal in die frontend.render.php ganz zuunterst

Code: Select all

if( ! ( strpos($content["all"],'{SHOW_CONTENT:')===false ) ) {
	$content["all"] = preg_replace('/\{SHOW_CONTENT:(.*?)\}/e', 'showSelectedContent("$1");', $content["all"]);
}
eingefügt, jetzt kann "er" auch SHOW_CONTENT. Und was sollich sagen: sogar eine file-list kann ich auf diese Weise fehlerfrei anzeigen!
Hmmmm....
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: shop.extended und file list

Post by juergen »

Is verrückt, ne ? ;)
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: shop.extended und file list

Post by update »

juergen wrote:Is verrückt, ne ? ;)
:lol:
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: shop.extended und file list

Post by update »

Gibt's da schon eine weniger hässliche (meine Code-Pfuscherei) Lösung?
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: shop.extended und file list

Post by juergen »

Ich denke mal Oliver macht nichts aus dem CMS ahhoc verfügbar, da es immer auch ein Risiko sein kann in fremd bedienten Schnittstellen zu viel Zugriff auf das cms zu ermöglichen. So zumindest meine Vermutung. Was in aller Welt ist denn an deiner Einbindung schlecht ?
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: shop.extended und file list

Post by update »

Dass es so eine Art Zufallsgenerator ist :mrgreen:
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Post Reply