[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)

Galerie-Blocks unter Opera 8.0
Hinweise, Fragen, Vorschläge und Wünsche zu dieser Homepage gehören in dieses Forum
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ›  Hinweise, Fragen und Kritik

View previous topic :: View next topic  
Author Message
Harlekin
Investigator
Investigator

Offline Offline
Joined: Aug 12, 2005
Posts: 23
Location: Paderborn
PostPosted: 14.08.2005 03:38
Post subject: Galerie-Blocks unter Opera 8.0

Also ich habe gerade die Galerieblocks mit den netten Scrollfunktionen getestet... echt cool die Dinger! Very Happy

Nur unter Opera treten ein paar fehlerhafte Darstellungen auf. Meistens sind die Abstände zwischen den Bildern viel zu groß, so dass beim Scrollen entweder gar nix angezeigt wird oder alle paar Minuten scrollt mal ein Bild durch...

IE und Firefox zeigen diesen Fehler nicht!

Gibt's da eine Lösung für...?

_________________
SysAdmin von Planet-Bird =Internetportal= (noch HTML...)
Testseite siehe hier Planet-Bird.de mit Dragonfly ===Testphase, noch keine Betaseite===

Harlekin's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Dragonfly 9.0.5.0 auf einem 1&1-Webspace mit MySQL 4.0.25 unter PHP 4.3.10
Back to top
View user's profile Send e-mail Visit poster's website
Klas
Moderator
Moderator

Offline Offline
Joined: Apr 14, 2004
Posts: 293

PostPosted: 14.08.2005 13:24
Post subject: Re: Galerie-Blocks unter Opera 8.0

Probier den mal:

Array:
block-CPGTL-scroll-Random_pictures.php
Array:
<?php
/*********************************************
  CPG Dragonflyâ„¢ CMS
  ********************************************
  Copyright © 2004 - 2005 by CPG-Nuke Dev Team
  http://www.dragonflycms.com

  Dragonfly is released under the terms and conditions
  of the GNU GPL version 2 or any later version

  $Source: /cvs/html/blocks/block-CPG-scroll-Random_pictures.php,v $
  $Revision: 9.5 $
  $Author: trevor $
  $Date: 2005/02/24 16:09:22 $
Encoding test: n-array summation ∑ latin ae w/ acute ǽ
********************************************************/
if (!defined('CPG_NUKE')) { exit; }
global $prefix, $db, $CONFIG, $cpg_dir,$cpg_prefix;
$cpg_dir = 'coppermine';

if (!is_active($cpg_dir)) {
	$content = 'ERROR';
	return trigger_error($cpg_dir.' module is inactive', E_USER_WARNING);
}

$cpg_block = true;
require("modules/".$cpg_dir."/include/load.inc");
$cpg_block = false;
$numberpic = $CONFIG['thumbcols']; //number of thumbs
// $numberpic=4; //number of thumbs
$limit = $numberpic;
$maxlength = 20; // maximum length of name in block

// marquee info at http://www.faqs.org/docs/htmltut/_MARQUEE.html
$content = '<table border="1px" height="150px" width="100%"><tr><td><marquee loop="0" height="150px" direction="up" scrollamount="1" scrolldelay="40" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'><center>';
// END USER DEFINABLES
$result = $db->sql_query("SELECT COUNT(*) FROM ".$cpg_prefix."pictures as p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE approved='YES' GROUP BY pid",false,__FILE__,__LINE__);
$pic_count = $db->sql_numrows($result);
//$pic_count = $nbEnr[0];
$total_count = $granularity = $cor_gran = $random_num_set = $thumb_title = '';
$db->sql_freeresult($result);
// if we have more than 1000 pictures, we limit the number of picture returned
// by the SELECT statement as ORDER BY RAND() is time consuming
if ($pic_count > 1000) {
	$result = $db->sql_query("SELECT COUNT(*) from " . $cpg_prefix . "pictures WHERE approved = 'YES'",false,__FILE__,__LINE__);
	$nbEnr = $db->sql_fetchrow($result);
	$total_count = $nbEnr[0];
	$db->sql_freeresult($result);
	$granularity = floor($total_count / 1000);
	$cor_gran = ceil($total_count / $pic_count);
	srand(time());
	for ($i = 1; $i <= $cor_gran; $i++) $random_num_set = rand(0, $granularity) . ', ';
	$random_num_set = substr($random_num_set, 0, -2);
	$result = $db->sql_query("SELECT pid, filepath, filename, p.aid FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE randpos IN ($random_num_set) AND approved='YES' GROUP BY pid ORDER BY RAND() DESC LIMIT $limit",false,__FILE__,__LINE__);
} else {
	$result = $db->sql_query("SELECT pid, filepath, filename, p.title, p.aid FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE approved='YES' GROUP BY pid ORDER BY RAND() DESC LIMIT $limit",false,__FILE__,__LINE__);
}
$rowset = array();
while ($row = $db->sql_fetchrow($result)) {
	if ($CONFIG['seo_alts'] == 0) {
   $thumb_title = $row['filename'];
	} else {
		if ($row['title'] != '') {
			$thumb_title = $row['title'];
		} else {
			$thumb_title = substr($row['filename'], 0, -4);
		}
	}
	$content .= '<a href="' .getlink("$cpg_dir&amp;file=displayimage&amp;album=".$row['aid']."&amp;pid=" . $row['pid']). '"><img src="' .get_pic_url($row, 'thumb') . '" border="0" width="128" alt="' . $thumb_title . '" title="' . $thumb_title . '" /><br />' . truncate_stringblocks($thumb_title,$maxlength) . '</a><br />';
}
$content .= '</center></marquee></td></tr></table>';
?>
Bin leider die nächsten Wochen wiedr fern jeglicher Internetverbindung.

_________________
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
Harlekin
Investigator
Investigator

Offline Offline
Joined: Aug 12, 2005
Posts: 23
Location: Paderborn
PostPosted: 14.08.2005 14:59
Post subject: Re: Galerie-Blocks unter Opera 8.0

Ja. Der sieht sehr gut aus!
Firefox, Opera und IE... alles in Ordnung. Danke !! Laughing

Gibt's den auch in anderen Versionen ('letzte hochgeladene Bilder' z.B.)...?

Gruß Harlekin

_________________
SysAdmin von Planet-Bird =Internetportal= (noch HTML...)
Testseite siehe hier Planet-Bird.de mit Dragonfly ===Testphase, noch keine Betaseite===

Harlekin's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Dragonfly 9.0.5.0 auf einem 1&1-Webspace mit MySQL 4.0.25 unter PHP 4.3.10
Back to top
View user's profile Send e-mail Visit poster's website
Klas
Moderator
Moderator

Offline Offline
Joined: Apr 14, 2004
Posts: 293

PostPosted: 28.09.2005 12:32
Post subject: Re: Galerie-Blocks unter Opera 8.0

Bin mal wieder online Very Happy
Andere Versionen mach ich fertig - kommt am WE.
Brauchst Du was bestimmtes?

_________________
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
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ›  Hinweise, Fragen und Kritik
Page 1 of 1
All times are GMT + 1 Hour



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