Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

If you've problems with unsupported - non official ;-) - functionalities use this forum please.
Strahlemann
Posts: 63
Joined: Mon 29. May 2006, 23:09

Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

Post by Strahlemann »

Hallöchen!

Ich habe geschafft den Calendar MOD in 1.3.0 zum laufen zu bringen.
Wollte versuchen den GaleriX MOD in Betrieb zu bekommen, jedoch bleibt im Backend unter den Moduleinträgen der Content zum Modul leer...

Habe dann die 2 editierten Dateien wieder mit der vorher angelegten Sicherungskopie überspielt, jedoch ist der Calendar MOD nun auch nicht mehr motiviert im Backend etwas anzuzeigen (im Frontend werden die vorher eingetragenen Events angezeigt)...

Wie kann ich unter 1.3.0 die Module einbinden?

Folgende Einträge habe ich gemacht (mit GaleriX MOD):

in phpwcms.php Zeilen 53-64

Code: Select all

// include language vars for Ionrock's Calendar Mod
include_once ('./include/inc_module/mod_calendar/inc_lang/backend/en/lang.inc.php');
if(file_exists('./include/inc_module/mod_calendar/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php')) {
include_once ('./include/inc_module/mod_calendar/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php');
}

//include language vars for GaleriX Mod
include_once(PHPWCMS_ROOT.'/include/inc_module/mod_galerix/inc_lang/backend/de/lang.inc.php');
if(!empty($_SESSION["wcs_user_lang"]) && 
file_exists(PHPWCMS_ROOT.'/include/inc_module/mod_galerix/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php')) {
include_once(PHPWCMS_ROOT.'/include/inc_module/mod_galerix/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php');
}
in phpwcms.php Zeilen 109-135:

Code: Select all

	case "modules":		//modules
						$wcsnav["modules"] = "<strong class=\"navtexta\">".$wcsnav["modules"]."</strong>";
						if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
							include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/inc_lang/backend/en/lang.inc.php');
							if(!empty($_SESSION["wcs_user_lang"]) && file_exists(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php')) {
								include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php');
							}
							$subnav .= subnavtext($BL['be_subnav_graphicaltext_mod'], "phpwcms.php?do=modules&p=2", $p, "2", 0);
						}
						
						foreach($phpwcms['modules'] as $value) {
						
							$subnav .= subnavtext($BL['modules'][ $value['name'] ]['backend_menu'], 'phpwcms.php?do=modules&module='.$value['name'], $module, $value['name'], 0);
						
						}
						// CALENDAR MODULE... ID=3
						if ($phpwcms["calendar_mod"]) { // enabled/disable Calendar Module
						$subnav .= subnavtext("Calendar Module", "phpwcms.php?do=modules&p=3", $p, "3", 0);
						}
						
						// GaleriX MOD... ID=8
						if($phpwcms["galerix_mod"]) { //enabled/disable Galerix MOD
						$subnav .= subnavtext("GaleriX Module", "phpwcms.php?do=modules&p=8", $p, "8", 0);
						}
						
						break;
in phpwcms.php Zeilen 431-456:

Code: Select all

     	case "modules":	//Modules
		
			if($p == 2 && $phpwcms["gt_mod"]) { //enabled/disable GT MOD
				// include language vars for Jérôme's Graphical Text MOD
      			include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/main.inc.php');
      		}
			
			// if a module is selected
			if(isset($phpwcms['modules'][$module])) {
			
				include_once($phpwcms['modules'][$module]['path'].'backend.default.php');
			
			}
			break;
			
			case 3: // Caledar Mod
				if ($phpwcms["calendar_mod"]) { //enabled/disable calendar mod
				include_once("./include/inc_module/mod_calendar/main.inc.php");
			}
			break;
			
			case 8:	 // GaleriX MOD
				if($phpwcms["galerix_mod"]) { //enabled/disable GaleriX MOD
  				include_once("./include/inc_module/mod_galerix/main.inc.php");
  			}
			break;
in ./include/inc_front/content.func.inc.php Zeilen 644-658:

Code: Select all

// Jérôme's Graphical Text MOD Coypright (C) 2004
if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
	require_once ('include/inc_module/mod_graphical_text/inc_front/gt.func.inc.php');
}

// Ionrock's Calendar MOD by Verve...
// Coypright (C) 2004
if($phpwcms["calendar_mod"]) { //enabled/disable Ionrock's Calendar MOD
require_once ('./include/inc_module/mod_calendar/inc_front/func.inc.php');
}

// GaleriX Mod
if($phpwcms["galerix_mod"]) { //enabled/disable Galerix MOD
include_once ('./include/inc_module/mod_galerix/inc_front/galerix.func.inc.php');
}
in ./config/phpwcms/conf.inc.php Zeilen 65-66:

Code: Select all

$phpwcms["calendar_mod"] 			= 1; // enables Calendar_mod (1=On)
$phpwcms['galerix_mod'] 			= 1;  //0 = GaleriX MOD disabled, 1 = enabled
Habe ich da irgendwo einen Fehler eingebaut den ich einfach nicht mehr finde?!?

LG. Lukas
Strahlemann
Posts: 63
Joined: Mon 29. May 2006, 23:09

Post by Strahlemann »

Habe gerade bemerkt, wenn ich in der phpwcms.php bei den case="modules" etwas umschreibe, dann bekomme ich die MOD's zum laufen...

Code: Select all

      	      	case "modules":	//Modules
		
			if($p == 2 && $phpwcms["gt_mod"]) { //enabled/disable GT MOD
				// include language vars for Jérôme's Graphical Text MOD
      			include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/main.inc.php');
      		}
			case 3: // Caledar Mod
				if ($p == 3 && $phpwcms["calendar_mod"]) { //enabled/disable calendar mod
				include_once("./include/inc_module/mod_calendar/main.inc.php");
			}
			case 8:	 // GaleriX MOD
				if($p == 8 && $phpwcms["galerix_mod"]) { //enabled/disable GaleriX MOD
  				include_once("./include/inc_module/mod_galerix/main.inc.php");
  			}
			// if a module is selected
			if(isset($phpwcms['modules'][$module])) {
			
				include_once($phpwcms['modules'][$module]['path'].'backend.default.php');
			
			}
			break;

	
Leider zeigt sich, dass der GaleriX MOD mit PHPWCMS 1.3 nicht funktionieren will :cry:
gratch
Posts: 43
Joined: Tue 21. Nov 2006, 20:36
Location: Passau, Bavaria, Germany
Contact:

Post by gratch »

Leider zeigt sich, dass der GaleriX MOD mit PHPWCMS 1.3 nicht funktionieren will :cry:
Das ist leider so. Es gab schon heftige Änderungen an der Modulschnittstelle, die muss ich erst mal einbauen. Wobei Oliver diese Woche verkündet hat, dass eine Galerie für phpWCMS in Entwicklung wäre und Lightbox auch integriert ist. Da möchte ich jetzt noch etwas abwarten, nicht, dass ich einen Haufen Arbeit in mein Modul stecke und dann kommt OG mit etwas Coolem daher und kein Mensch braucht mehr GaleriX.
Saying Bill Gates improved computer security is like saying Osama bin Laden improved flight security.
godmd

Post by godmd »

gratch wrote:
Leider zeigt sich, dass der GaleriX MOD mit PHPWCMS 1.3 nicht funktionieren will :cry:
Das ist leider so. Es gab schon heftige Änderungen an der Modulschnittstelle, die muss ich erst mal einbauen. Wobei Oliver diese Woche verkündet hat, dass eine Galerie für phpWCMS in Entwicklung wäre und Lightbox auch integriert ist. Da möchte ich jetzt noch etwas abwarten, nicht, dass ich einen Haufen Arbeit in mein Modul stecke und dann kommt OG mit etwas Coolem daher und kein Mensch braucht mehr GaleriX.
Das kann ich nicht ganz bestätigen - in Version 1.3.3 läuft Galerix prima!
macmukka

Post by macmukka »

@godmd

Are you sure Galerix works in 1.3.5?!

I have limited and problematic functionality once I have hacked it to make it work.

Can you explain how you have made it work?

Thanks
godmd

Post by godmd »

Hi macmukka,

I just know that it's working in 1.3.3 and I also know that even the coder is surprised about that.

Well, actually I just followd installation instructions. The only point at which I was uncertain were the changes that have to be made in phpwcms.php. The latter looks like this now:

line 96 - 122:

Code: Select all

case "modules":    //modules
  $wcsnav["modules"] = "<strong class=\"navtexta\">".$wcsnav["modules"]."</strong>";
    if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
      include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/inc_lang/backend/en/lang.inc.php');
    if(!empty($_SESSION["wcs_user_lang"]) && file_exists(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php')) {
      include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php');
      }
    $subnav .= subnavtext($BL['be_subnav_graphicaltext_mod'], "phpwcms.php?do=modules&p=2", $p, "2", 0);
      }

    foreach($phpwcms['modules'] as $value) {

    $subnav .= subnavtext($BL['modules'][ $value['name'] ]['backend_menu'], 'phpwcms.php?do=modules&module='.$value['name'], $module, $value['name'], 0);

       }

[color=darkred]   if($phpwcms["galerix_mod"]) { //enabled/disable Galerix MOD
     include_once(PHPWCMS_ROOT.'/include/inc_module/mod_galerix/inc_lang/backend/en/lang.inc.php');
     if(!empty($_SESSION["wcs_user_lang"]) &&
        file_exists(PHPWCMS_ROOT.'/include/inc_module/mod_galerix/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php')) {
     include_once(PHPWCMS_ROOT.'/include/inc_module/mod_galerix/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php');
      }
      $subnav .= subnavtext($BL['be_subnav_galerix_mod'], "phpwcms.php?do=modules&p=8", $p, "8", 0);
      }[/color]
break;
and line 412 - 431:

Code: Select all

    case "modules":  //Modules

    if($p == 2 && $phpwcms["gt_mod"]) { //enabled/disable GT MOD
      // include language vars for Jrme's Graphical Text MOD
          include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/main.inc.php');
    }

    // if a module is selected
    if(isset($phpwcms['modules'][$module])) {

      include_once($phpwcms['modules'][$module]['path'].'backend.default.php');

    }

[color=darkred]case 8:   // GaleriX MOD

    if($phpwcms["galerix_mod"]) { //enabled/disable GaleriX MOD
      include_once(PHPWCMS_ROOT.'/include/inc_module/mod_galerix/main.inc.php');
    }[/color]
break;
The only difficulty for me was that the installation instructions are naming a string I had to search for that doesn't exist (any more). Having followed those three or four steps the job was done except I made one more mistake at first inserting the prefix of my db tables, not knowing that GaleriX automatically recognizes them.

I'm no programmer but if you have further explicit questions I'll do my best to help.

One more tip for you and everyone else: should you be able to wait a little with the installation of GaleriX your patience will pay off - keep looking for new GaleriX announcements.

Anka
godmd

Post by godmd »

Ich darf die frohe Botschaft verkünden, dass die GaleriX Bidergalerie momentan weiterentwickelt wird. Wenn alles nach Wunsch läuft, soll es demnächst möglich werden, in jedem Artikel an jeder gewünschten Stelle Bilderalben einzufügen (wie jeden anderen Contentpart), außerdem sollen Bilder per Drag & Drop in den Alben sortiert werden können. Das sind so die neuen Hauptfeatures, und die auch bisher schon recht einfache Installation wird sicher auch weiter optimiert werden.

I'm happy that I was allowed to announce that the GaleriX picture gallery is being enhanced. The coder is curently working on a possibility to insert picture galleries directly to any article the same way any other content part is added, so we won't have to create galleries in the module menu and then insert them with a replacement tag. Furthermore he wants to create a drag & drop mode so that pictures can be sorted manually by dragging the pictures at the desired place. Besides he will try to further enhance the installation which to my opinion was easy enough as it is. I think that's a great outlook!

Thank you, Thomas! We don't want to rush you - but hurry up ;-))

Anka
User avatar
flopi
Posts: 125
Joined: Thu 22. Nov 2007, 15:26

Re: Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

Post by flopi »

Ich hab den Galerix mod unter 1.3.5 zum laufen gebracht.
Aber wenn ich Bilder über die Dateizentrale hinzufüge werden diese nicht gespeichert.
Irgend eine Idee?
Bei der version 1.3.3, wenn ich auf Alben clicke wird mir gar nichts angezeigt. Ins konfigurationsmenü komme ich, aber nicht in die Alben.

mfg
flopi
(\_/)
(0.o)
(> <)
Das ist Bunny. Kopiere Bunny in deine Signatur, um ihm auf seinem Weg zur Weltherrschaft zu helfen!
godmd

Re: Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

Post by godmd »

Wenn du meinst, dass sie in Galerix, also im Album nicht gespeichert werden: Du musst sie vorher markieren. Also unter "Bilder hinzufügen" die Bilddateien nochmals markieren und dann auf Speichern klicken.
User avatar
flopi
Posts: 125
Joined: Thu 22. Nov 2007, 15:26

Re: Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

Post by flopi »

Danke für den Tip habe ich nicht gewust.
Die Bilder werden zwar im Backend angezeigt aber im Frontend bleibt noch immer das Album leer. :cry:
Langsam aber sicher verzweifle ich.

mfg
flopi
(\_/)
(0.o)
(> <)
Das ist Bunny. Kopiere Bunny in deine Signatur, um ihm auf seinem Weg zur Weltherrschaft zu helfen!
godmd

Re: Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

Post by godmd »

Ich geh mal davon aus, dass du der GaleriX-Anleitung soweit richtig gefolgt bist.

Dann prüf doch mal deine /config/phpwcms/config.inc.php und stelle diese Einträge so ein:

$phpwcms['imagick'] = 1;
$phpwcms['use_gd2'] = 1;
$phpwcms['allow_ext_init'] = 1;
$phpwcms['allow_ext_render'] = 1;
$phpwcms['galerix_mod'] = 1;

Ich bin mir zwar nicht sicher, ob das alles nötig ist, aber solange dir hier niemand antwortet, der besser Bescheid weiß, probier's doch mal.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

Post by update »

$phpwcms['imagick'] = 1;
geht mit fastCGI :twisted:
oder mit einem fein konfigurierten richtigen PHP. Bei Standard is nich so richtig - vor Allem wohl keine pngs
-wenn ich mich nicht irre :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
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

Post by juergen »

Mit Verlaub die Damen,

@claus :mrgreen:

ImageMagick ist nur da drin wo Image Magick draufsteht ... und wenn es nicht installiert ist dann ist es nicht installiert... :idea: :lol:
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

Post by update »

ImageMagick ist nur da drin wo Image Magick draufsteht
auch wida waa! :mrgreen:
Obwohl - holla halt ma - selbst wenns drin ist, weils draufsteht (eigentlich ein nicht zulässiger Umkehrschluss), muss es ja nicht gehen wg safe mode usw.usf.. aber da habe ich ja mal eine kleine Anleitung hier irgendwo in den Schlünden des Forums fallengelassen :mrgreen:
Und wenns tatsächlich nicht drin ist, (weil's nicht draufsteht? huch, schon wieder!), kannst Du einstellen, wasde willsd. Sicherheitshalber dann lieber $phpwcms['imagick'] = 0; :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.
User avatar
flopi
Posts: 125
Joined: Thu 22. Nov 2007, 15:26

Re: Moduleinbindungen in 1.3.0 - GaleriX & Inrocks Calendar

Post by flopi »

@godmd
Die Einstellungen sind alle so gemacht, bis auf Image Magick ist auf 0, aber das hab ich auch nicht installiert.
Ich gehe mal davon aus das php richtig konfiguriert ist, hab hier xampp am laufen.

mfg
flopi
(\_/)
(0.o)
(> <)
Das ist Bunny. Kopiere Bunny in deine Signatur, um ihm auf seinem Weg zur Weltherrschaft zu helfen!
Post Reply