[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

[x] Downloads (Top)

Lightbox für Coppermine in Dragonfly
Fragen und Diskussionen zu Modulen / Erweiterungen
Go to page 1, 2, 3, 4, 5  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ›  Module & Blöcke

View previous topic :: View next topic  
Author Message
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 30.05.2007 20:15
Post subject: Lightbox für Coppermine in Dragonfly

Hy!

Ich habe es geschafft, Lightbox 2. in Coppermine für Dragonfly zu integrieren.

Nur, hab ich noch kleine Probleme, da brauch ich bisschen Hilfe.

Und zwar, bekomme ich es zwar hin, das ein Bild angezeigt wird in der Lightbox

Link(Aufs Bild klicken) emsland-partys.de/inde...at=0&pos=4

doch leider bekomme ich es nicht hin, den Next Button, Prev. Button, Slideshow und den Dateinamen sowie die Anzahl der Bilder durch rein zu bekommen.

Ich habe einmal meine dateien, gepackt die ich dazu verwende,

in der displayimage.php müssten die einstellungen gemacht werden dafür.

Zu finden unter /* Lightbox by Emsland-Party.de */

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 31.05.2007 23:11
Post subject: Re: Lightbox für Coppermine in Dragonfly

Also, ich hab mal den richtigen Teil, der mir fehlt rausgeschnitten.

Dieser soll, Alle Dateien die in diesem Album sind nur auflisten aber nicht ausgeben.

Array:
/* Lightbox by Emsland-Party.de */
#################################################
 //Second part of lightbox update
 
function lightbox_list($picId) {
	################################################
	//Set max number of images
	$max = -1; 			//(-1 for all pics in album)
	################################################
    global $displayimage_php, $CONFIG;
	$i = 0;
	$pid = $picId['pid'];
	$aid = empty($_GET['album']) ? $picId['aid'] : $_GET['album'];
	$pic_data = get_pic_data($aid, $pic_count, $album_name, -1, -1, false);
	$imax = 0;			//counter
	$max = $max/2;
	foreach ($pic_data as $picture){
		if ($picture['pid'] == $pid) {
		//the number of the picture in  order
		$picnumber = $imax;
		}
	$imax++;
	}	
	//Check beginning and ending of album
	if(! ($max == ((-1)/2))){
		if ($imax > $max){
			if ($picnumber < $max || $picnumber == 0){
				$down = 0;
				$up = 0 + ($max*2);
			}elseif (($picnumber + $max) > $imax){
				$down = $imax - ($max*2);
				$up = $imax;
			}else{
				$down = $picnumber - $max;
				$up = $picnumber + $max;
			}
		}else{
			$down = 0;
			$up = $imax;
		}
	}else{
			$down = 0;
			$up = $imax;
	}
		
	foreach ($pic_data as $picture) {
		if ($i >= $down && $i <= $up){
			if($CONFIG['thumb_use']=='ht' && $picture['pheight'] > $CONFIG['picture_width'] ){
			  $condition = true;
			}elseif($CONFIG['thumb_use']=='wd' && $picture['pwidth'] > $CONFIG['picture_width']){
			  $condition = true;
			}elseif($CONFIG['thumb_use']=='any' && max($picture['pwidth'], $picture['pheight']) > $CONFIG['picture_width']){
			  $condition = true;
			}else{
			$condition = false;
			}
			if (is_image($picture['filename'])) {
				if ($CONFIG['make_intermediate'] && $condition ) {
					$picture_url = get_pic_url($picture, 'normal');
				} else {
					$picture_url = get_pic_url($picture, 'fullsize');
				}
				$picture_url_fullsize = get_pic_url($picture, 'fullsize');
				$pic_title = ($picture['title'] ? $picture['title'] : strtr(preg_replace("/(.+)\..*?\Z/", "\\1", htmlspecialchars($picture['filename'])), "_", " "));
				if ($picture['pid'] == $pid) {
				$picList .= "<a href=\"$picture_url_fullsize\" rel=\"lightbox[list]\" title=\"$pic_title\">";
				$picList .= "<img src=\"$picture_url\" class=\"image\" border=\"0\" alt=\"$displayimage_php[view_fs]\" /><br />";
				$picList .= "</a>\n";
				}else{
				$picList .= "<a href=\"$picture_url_fullsize\" rel=\"lightbox[list]\" title=\"$pic_title\"></a>\n";
				}
			}
		}
		$i++;
	}
	return $picList;
}//End of second part
#################################################
/* Lightbox by Emsland-Party.de */

wie der code dann aussehen soll, könnt ihr im quelltext auf der seite:
www.tihass.de/galerie/...&pos=0

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Klas
Moderator
Moderator

Offline Offline
Joined: Apr 14, 2004
Posts: 293

PostPosted: 02.06.2007 13:48
Post subject: Re: Lightbox für Coppermine in Dragonfly

Versuch den mal:

Ist 7Zip, erst in .7z umbenennen. @Ertan: kannst Du das 7Zip Format in den Attachments eintragen?

_________________
Bitte lies dies bevor du fragst.

Klas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 02.06.2007 16:39
Post subject: Re: Lightbox für Coppermine in Dragonfly

HY! Bei meinem Firefox läuft es 100%ig, doch im IE Springt der komplett aufs Bild. Habs noch beim Laptop probiert, da klappt es mit beiden Browsern

THX nochmal!!!!"

Wink jo, mh ich glaub die Next / Prev

hab ich noch falsch verlinkt gehabt Wink Da fehlen in der lightbox.css noch "../../../" damit der ins richtige Verzeichnis geht *g*

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 03.06.2007 11:35
Post subject: Re: Lightbox für Coppermine in Dragonfly

Array:
@Ertan: kannst Du das 7Zip Format in den Attachments eintragen?


@ Klas jetzt mal testen Wink

_________________
.: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr

Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
Klas
Moderator
Moderator

Offline Offline
Joined: Apr 14, 2004
Posts: 293

PostPosted: 03.06.2007 13:20
Post subject: 7Zip Test

Womit teste ich denn mal..
Ah!
Galerie-Userliste für coppermine:
die .php in modules/coppermine kopieren und im Main Menu einen getlink-Link mit der url: coppermine&file=user erstellen. Sieht dann so aus:
www.terralights.de/ter.../user.html
(oder sollte es jedenfalls).
Bisher nur in Dragonfly 9.1.2.1 getestet.

_________________
Bitte lies dies bevor du fragst.

Klas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Klas
Moderator
Moderator

Offline Offline
Joined: Apr 14, 2004
Posts: 293

PostPosted: 03.06.2007 14:30
Post subject: Re: Lightbox für Coppermine in Dragonfly

Lightbox: Je nach Browser und System bekomm ich unterschiedliche Fehler.
In dem Archiv im Anhang sind drei Versionen, wer experimentierfreudig ist kann ja mal reinschauen.
Änderungen an der header.html sind nicht notwendig! (oder sollten rausgenommen werden falls vorhanden @ clubhouse)
Themes: Bei Lightbox2 die style.css, bei Lytebox die images, lytebox.js und style.css.
Modules: coppermine/displayimages.php ( 9.18 2007/05/06 ), die funktion lyteshow_pics() ist dazugekommen, html_picture() geändert.
Ich probier noch die Thickbox aus.
Links:
Lightbox2: www.huddletogether.com...lightbox2/
Lytebox: www.dolem.com/lytebox/
Thickbox: jquery.com/demo/thickbox/

_________________
Bitte lies dies bevor du fragst.

Klas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 03.06.2007 15:33
Post subject: Re: Lightbox für Coppermine in Dragonfly

Also bei der Lytebox sind die übergänge der Bilder sanfter. Laggt nicht so. Oder wie siehst du das?

Die änderungen sind nicht nötig? mh kann man dann die scripte über die displayimage.php einlesen lassen?

also da würd ich sagen is die Lytebox besser oder? Sollten wir das ganze dadrauf bauen.

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Klas
Moderator
Moderator

Offline Offline
Joined: Apr 14, 2004
Posts: 293

PostPosted: 04.06.2007 15:41
Post subject: Re: Lightbox für Coppermine in Dragonfly

Kan ich nicht gucken? Da sollte eigentlich ne Datei oben dranhängen.
Hab eh nochmal geändert, schaut echs an auf test.terralights.de
Änderungen: Benutzer können auswählen welche box benutzt werden soll; normal, lytebox oder thickbox, bei lytebox ist wird auch die slideshow mit lytebox angezeigt (thickbox wechselt nicht automatisch). Wer die displayimage nicht komplett ersetzen wil: im Kopf der Datei steht drin welche Änderungen ich gemacht habe.
So, Internetcafe ist teuer, bis denn.
-------------
Update: Ladebild für thickbox hinzugefügt

_________________
Bitte lies dies bevor du fragst.

Klas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)


Last edited by Klas on 05.06.2007 13:36; edited 2 times in total
Back to top
View user's profile Visit poster's website
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 04.06.2007 21:04
Post subject: Re: Lightbox für Coppermine in Dragonfly

Geilo Wink Is echt geil!

Doch die Wähl Funktion, mh, ich find die brauch man nicht unbedingt.

mh Kannst du mir die Datei nur der Lytebox geben? Ohne wähl Funktion?

mh, kann man es als Admin so einstellen, wie ich es gerade bei mir auf der Site habe, das Gäste nur das Normale Bild sehen und in der Lytebox das $ina Bild, und als User natürlich komplett alles.

mh ja, und für User wo es in der Lytebox nicht klappt, halt das Popup.

Ich glaub dann hätten wir es Wink *gg*

Is echt "klas"se das du dir soviel Zeit nimmst! RESPEKT!

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Klas
Moderator
Moderator

Offline Offline
Joined: Apr 14, 2004
Posts: 293

PostPosted: 05.06.2007 13:35
Post subject: Re: Lightbox für Coppermine in Dragonfly

Ein/Ausschalten kannst du die einzelnen Teile indem du bei
PHP:
$CONFIG['lyteshow'] = 1; // lytshow slideshow enable disable if user selects lyteox
$CONFIG['lytebox'] = 1; // enable lytebox for user
$CONFIG['thickbox'] = 1;
$CONFIG['lb_display'] ='none';
die einzelnen Werte auf 0 setzt.
Probier mal:
$CONFIG['lytebox'] = USER_ID;
oder
$CONFIG['lytebox'] = (USER_ID > 0);
oder
$CONFIG['lytebox'] = !(USER_ID > 0);

_________________
Bitte lies dies bevor du fragst.

Klas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 06.06.2007 16:34
Post subject: Re: Lightbox für Coppermine in Dragonfly

mh habs gerade auf meine test seite geladen.... tut sich dann garnichts mehr... bekomm ne leere seite zurück ;(

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Christian111
Agent
Agent

Offline Offline
Joined: May 05, 2005
Posts: 55

PostPosted: 24.11.2007 14:01
Post subject: Re: Lightbox für Coppermine in Dragonfly

Hallo zusammen,

ich hab mir grad mal von www.terralights.de die aktuellste Version von der Lightbox gezogen und hoch geladen. Ich sehe auch die Auswahlmöglichkeiten zwischen normal; thickbox und lytebox. Leider tut sich nichts, wenn ich zwischen den einzelnen Möglichkeiten wechsle? Muss ich noch irgendwelche Einstellungen ändern um das zum laufen zu bekommen?

Hier: www.party-ebersheim.de...pos=0.html anschauen.

Vielen dank schon mal und Grüße Christian

_________________
www.party-ebersheim.de

Christian111's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/ 4.4.6/ 5.0.41 (client: 5.0.33) / CPG 9.1.2.1 / GD Version: bundled (2.0.28 compatible)
Back to top
View user's profile Visit poster's website
Klas
Moderator
Moderator

Offline Offline
Joined: Apr 14, 2004
Posts: 293

PostPosted: 25.11.2007 13:43
Post subject: Re: Lightbox für Coppermine in Dragonfly

Hast du 'Bilder in Zwischengröße erzeugen' an?
So soll es aussehen:
www.terralights.de/ter...tebox.html

_________________
Bitte lies dies bevor du fragst.

Klas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Christian111
Agent
Agent

Offline Offline
Joined: May 05, 2005
Posts: 55

PostPosted: 25.11.2007 14:05
Post subject: Re: Lightbox für Coppermine in Dragonfly

Hallo Klas,

erst mal danke für deine Antwort. Bilder in Zwischengrößen erzeugen ist an. Allerdings bin ich dazu übergegangen, da es ja Probleme mit der Bildgröße gab www.cpgnuke.de/Forums/...rt=45.html
die Bilder nur noch in 800x600 hochzuladen, so werden sie auch angezeigt. Funktioniert die Anzeige dann nicht?

Gruß

Christian

_________________
www.party-ebersheim.de

Christian111's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/ 4.4.6/ 5.0.41 (client: 5.0.33) / CPG 9.1.2.1 / GD Version: bundled (2.0.28 compatible)
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ›  Module & Blöcke
Page 1 of 5
All times are GMT + 1 Hour
Go to page 1, 2, 3, 4, 5  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy