| Jak pozby? si? bia?ego t?a w galerii? | 
| elektryk | Dodany dnia 15.05.2006 15:40:37 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 174
 Ostrzeżeń: 1
 Data rejestracji: 06.05.2006 23:38
 
 
 | Witam W?a?nie doda?em troche zdj?? do galerii ale zobaczcie jak to bezndziejnie wygl?da : http://elektryk.o...hp?album=4
 Czy da si? jako? zlikwidowa? te bia?e t?o ??
 | 
|  |   
 
 | 
			
				|  | 
			
				| W?cibski Go?? | Dodany dnia 31.10.2025 03:43:55 | 
			
				| Pan Kontekstualny 
 Postów: n^x
 Data rejestracji: Zawsze
 
 
 |   | 
			
				| IP: localhost |  | 
		
|  | 
| jantom | Dodany dnia 15.05.2006 18:34:46 | 
|  
 Weteran
 
  
 
 Postów: 3460
 Pomógł: 123
 Data rejestracji: 31.03.2005 20:10
 
 
 | Ze zlikwidowaniem to taki pewny nie jestem, ale na 100% da si? zmieni? jego kolor. Gdzie? na forum by?o wspomniane, jak to zrobi?. | 
|  | 
 | 
|  | 
| elektryk | Dodany dnia 17.05.2006 07:49:36 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 174
 Ostrzeżeń: 1
 Data rejestracji: 06.05.2006 23:38
 
 
 | No tak.Trafi?em na podobny temat http://www.php-fu...ad_id=4109  jednak ja chce zmieni? galerie , st?d pytanie czy mam te? modyfikowa? maincore.php ??Jak na mój gust to powinienem sie wzi??? za photogallery.php jednak przegl?daj?? ten plik nie mog?em znale?? miejsca gdzie wprowadzi? poprawki. 
 <?php/*---------------------------------------------------+
 | PHP-Fusion 6 Content Management System
 +----------------------------------------------------+
 | Copyright © 2002 - 2005 Nick Jones
 | http://www.php-fusion.co.uk/
 +----------------------------------------------------+
 | Released under the terms & conditions of v2 of the
 | GNU General Public License. For details refer to
 | the included gpl.txt file or visit http://gnu.org
 +----------------------------------------------------+
 | Photo Gallery developed by CrappoMan
 | email:
 +----------------------------------------------------*/
 require_once "maincore.php";
 require_once "subheader.php";
 require_once "side_left.php";
 include LOCALE.LOCALESET."photogallery.php";
 include INCLUDES."comments_include.php";
 
 function checkImageExists($image_file) {
 if(file_exists($image_file)) {
 return $image_file;
 }else{
 return IMAGES."imagenotfound.jpg";
 }
 }
 
 if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
 if (isset($photo) && !isNum($photo)) fallback(FUSION_SELF);
 if (isset($album) && !isNum($album)) fallback(FUSION_SELF);
 
 if(isset($photo)){
 $result=dbquery("UPDATE ".$db_prefix."photos SET photo_views=(photo_views+1) WHERE photo_id='".$photo."'");
 $result=dbquery("SELECT tp.*, user_name FROM ".$db_prefix."photos AS tp INNER JOIN ".$db_prefix."users USING (user_id) WHERE photo_id='".$photo."'");
 $data=dbarray($result);
 opentable($locale['419'].$data['photo_title']);
 if(dbrows($result)!=1){
 echo "<center><br>".$locale['428']."<br><br></center>\n";
 }else{
 $img_filename = PHOTOS.$photo.".jpg";
 $imgsize=@getimagesize($img_filename);
 $prev=@dbresult(@dbquery("SELECT t2.photo_id FROM ".$db_prefix."photos t1 JOIN ".$db_prefix."photos t2 WHERE t1.photo_order=t2.photo_order+1 AND t1.album_id=t2.album_id AND t1.photo_id='".$photo."'"),0);
 $next=@dbresult(@dbquery("SELECT t2.photo_id FROM ".$db_prefix."photos t1 JOIN ".$db_prefix."photos t2 WHERE t1.photo_order=t2.photo_order-1 AND t1.album_id=t2.album_id AND t1.photo_id='".$photo."'"),0);
 echo "<div align='center' style='margin:5px 0px;'>
 <table align='center' cellpadding='0' cellspacing='1' class='tbl-border'>\n<tr>
 <td class='tbl1'><span class='small'><a href='".FUSION_SELF."?".(empty($prev)?"album=".$data['album_id']:"photo=".$prev)."'>".$locale['429']."</a></span></td>
 <td class='tbl2'><span class='small'><a href='".FUSION_SELF."?album=".$data['album_id']."'>".$locale['427']."</a></span></td>
 <td class='tbl1'><span class='small'><a href='".FUSION_SELF."?".(empty($next)?"album=".$data['album_id']:"photo=".$next)."'>".$locale['430']."</a></span></td>
 </tr>\n</table>\n</div>
 <div align='center' style='margin:5px 0px;'>
 <img src='".checkImageExists($img_filename)."' border='1' title='".$data['photo_title']."' title='".$data['photo_title']."' alt='".$locale['405']."'>
 </div>
 <div align='center' style='margin:5px 0px;'>
 <span class='small2'>".$locale['420'].$imgsize[0]." x ".$imgsize[1].$locale['421']."(".parseByteSize(filesize($img_filename)).")<br>
 ".$locale['422']."<b>".$data['user_name']."</b>".$locale['423']."<b>".showdate("shortdate", $data['photo_date'])."</b>.<br>
 ".$locale['424']."<b>".$data['photo_views']."</b>".$locale['425']."</span>
 </div>";
 }
 closetable();
 if($settings['album_comments']=="1") showcomments("P","photos","photo_id",$photo,FUSION_SELF."?photo=$photo");
 }elseif(isset($album)){
 $data=dbarray(dbquery(
 "SELECT ta.*, COUNT(photo_id) as photo_count, MAX(photo_date) as max_date, user_name
 FROM ".$db_prefix."photo_albums AS ta
 LEFT JOIN ".$db_prefix."photos USING (album_id)
 LEFT JOIN ".$db_prefix."users USING (user_id)
 WHERE ta.album_id='".$album."' GROUP BY album_id"
 ));
 $piccnt=$data['photo_count'];
 opentable($locale['408'].$data['album_title']);
 echo "<table cellpadding='0' cellspacing='0' width='100%'>
 <tr>
 <td width='25%' rowspan='2' align='center'><img class='activegallery' src='".checkImageExists(PHOTOS."a".$data['album_id'].".jpg")."' width='".$settings['album_image_w']."' height='".$settings['album_image_h']."' title='".($data['album_info']==""?$data['album_title']:$data['album_info'])."' alt='".$locale['405']."'></td>
 <td width='75%' valign='top'>".($data['album_info']==""?$data['album_title']:$data['album_info'])."</td>
 </tr>
 <tr>
 <td valign='bottom' class='small2'><hr>".$locale['409']."<b>".($data['photo_count']>0?"$data[photo_count]</b><br>".$locale['410']."<b>".strftime($settings['shortdate'], $data['max_date']+($settings['timeoffset']*3600))."</b>".$locale['411']."<b>".$data['user_name']."</b>":$locale['412']."</b><br /><br />")."</td>
 </tr>
 <tr>
 <td align='center' colspan='2' class='small'><br><a href='".FUSION_SELF."'>".$locale['426']."</a></td>
 </tr>
 </table>";
 closetable();
 tablebreak();
 opentable($locale['413']);
 $result=dbquery(
 "SELECT tp.*, COUNT(comment_item_id) AS comment_count
 FROM ".$db_prefix."photos AS tp LEFT JOIN ".$db_prefix."comments
 ON photo_id = comment_item_id AND comment_type='P'
 WHERE album_id='".$album."' GROUP BY photo_id
 ORDER BY photo_order LIMIT ".$rowstart.",".$settings['thumbs_per_page']
 );
 if(dbrows($result)>0){
 echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
 $img_cnt=0;
 while($data=dbarray($result)){
 echo "<td class='gallery' width='".round(100/$settings['thumbs_per_row'])."%' align='center' valign='top'>
 <a href='".FUSION_SELF."?photo=$data[photo_id]' class='gallery'>
 <img src='".checkImageExists(PHOTOS.$data['photo_id']."t.jpg")."' width='".$settings['thumb_image_w']."' height='".$settings['thumb_image_h']."' title='".$data['photo_title']."' alt='".$locale['405']."'>
 </a><br />
 ".$data['photo_title']."<br />
 <span class='small2'>".$locale['414']."<b>".($data['photo_views']==0?$locale['412']:$data['photo_views'])."</b><br />
 ".($data['comment_count']==0?$locale['415']:"<b>".$data['comment_count']."</b> ".($data['comment_count']==1?$locale['416']:$locale['417']))."</span>";
 if(++$img_cnt%$settings['thumbs_per_row']==0) echo "</tr>\n<tr>\n";
 }
 echo "</tr>\n</table>\n";
 }else{
 echo "<center><br />".$locale['418']."<br /><br /></center>";
 }
 closetable();
 if ($piccnt != 0) echo "<div align='center' style='margin-top:5px;'>".makePageNav($rowstart,$settings['thumbs_per_page'],$piccnt,3,FUSION_SELF."?album=$album&")."</div>\n";
 }else{
 opentable($locale['400']);
 $albcnt=dbresult(dbquery("SELECT COUNT(*) FROM ".$db_prefix."photo_albums"), 0);
 if($albcnt!=0){
 $result=dbquery(
 "SELECT COUNT(photo_id) AS photo_count, MAX(photo_date) AS max_date, ta.*
 FROM ".$db_prefix."photo_albums AS ta LEFT JOIN ".$db_prefix."photos USING (album_id)
 GROUP BY album_id ORDER BY album_order LIMIT ".$rowstart.",".$settings['albums_per_page']
 );
 echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
 $img_cnt=0;
 while($data=dbarray($result)){
 echo "<td class='gallery' width='".round(100/$settings['albums_per_row'])."%' align='center' valign='top'>
 <a href='".FUSION_SELF."?album=".$data['album_id']."' class='gallery'>
 <img src='".checkImageExists(PHOTOS."a".$data['album_id'].".jpg")."' width='".$settings['album_image_w']."' height='".$settings['album_image_h']."' title='".($data['album_info']==""?$data['album_title']:$data['album_info'])."' alt='".$locale['405']."' />
 </a><br />
 ".$data['album_title']."<br />
 <span class='small2'>".($data['photo_count']!=0?$data['photo_count'].($data['photo_count']==1?$locale['403']:$locale['404'])."<br>".$locale['402'].showdate("shortdate", $data['max_date']):$locale['401']);
 if($data['max_date']!=NULL && (time()-604800) < $data['max_date']){
 echo "<br /><span class='small2'>".$locale['406']."</span>";
 }
 echo "</span>";
 if(++$img_cnt%$settings['albums_per_row']==0) echo "</tr>\n<tr>\n";
 }
 echo "</tr>\n</table>\n";
 if ($albcnt != 0) echo "<div align='center' style='margin-top:5px;'>".makePageNav($rowstart,$settings['albums_per_page'],$albcnt,3)."</div>\n";
 }else{
 echo "<center><br>".$locale['407']."<br><br></center>\n";
 }
 closetable();
 }
 
 require "side_right.php";
 require "footer.php";
 ?>
 Edytowane przez Pieka dnia 17.05.2006 11:11:29
 | 
|  |   
 
 | 
|  | 
| jantom | Dodany dnia 17.05.2006 09:57:42 | 
|  
 Weteran
 
  
 
 Postów: 3460
 Pomógł: 123
 Data rejestracji: 31.03.2005 20:10
 
 
 | Musisz jednak powróci? do pliku maincore.php. Za robienie miniatur odpowiada funkcja createthumbnail, w której jest taka linia: 
 $background=imagecolorallocate($thumbimage,255,255,255); gdzie 3 ostatnie liczby odpowiadaj? za barw? t?a miniatury.
 | 
|  | 
 | 
|  | 
| elektryk | Dodany dnia 17.05.2006 10:25:01 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 174
 Ostrzeżeń: 1
 Data rejestracji: 06.05.2006 23:38
 
 
 | Nie wiem czemu ale mi to nie dzia?a.Zmienia?em te warto?ci i t?o ca?y czas by?o bia?e. Zauwa?y?em jednak co? innego. W operze zdjecia s? kolorowe natomiast w IE s? czarno-bia?e i dopiero po najechaniu robi? sie kolorowe.Czy to normalne ?Jak zrobi? ?eby ca?y czas by?o kolorowe, tak jak pod Oper?? | 
|  |   
 
 | 
|  | 
| jantom | Dodany dnia 17.05.2006 10:40:24 | 
|  
 Weteran
 
  
 
 Postów: 3460
 Pomógł: 123
 Data rejestracji: 31.03.2005 20:10
 
 
 | Pewnie nie zwróci?e? uwagi, ale ta lina jest w tej funkcji 2 razy. Za pierwszym razem zmieniasz ustawienia przy kompresji gd1, za drugim w gd2. Odno?nie drugiego pytania. Tak, to normalne w wi?kszo?ci themów jest wykorzystana w?a?ciwo?? CSS. ?eby to usun??, musisz w pliku styles.css swojej skórki usun?? zapis (lub zmieni? na none) filter: gray;//znajdziesz to w .gallery img
 | 
|  | 
 | 
|  | 
| elektryk | Dodany dnia 19.05.2006 12:07:17 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 174
 Ostrzeżeń: 1
 Data rejestracji: 06.05.2006 23:38
 
 
 | No wreszcie sie z tym bia?ym t?em upora?em http://elektryk.o...allery.php  .Zasadniczy b??d jaki pope?ni?em to taki, ?e po dokonaniu zmian nie wida? ich po od?wie?eniu zdj??. ?eby zauwa?y? zmiany w kolorach nale?y doda? nowe zdj?cie.   P.S modyfikacja stylu CSS te? dzia?a.
 
 Temat mo?na zamkn??.
 pozdr
 Edytowane przez elektryk dnia 19.05.2006 12:07:57
 | 
|  |   
 
 | 
|  | 
| alek49 | Dodany dnia 22.05.2006 19:44:29 | 
|  
 Przedszkolak
 
  
 
 Postów: 7
 Ostrzeżeń: 1
 Data rejestracji: 08.03.2006 18:07
 
 
 | Witam A jak ustawi? t?o na przezroczyste lub aby by?o to t?o z grafiki - t?o.gif ?
 Dzi?kuje
 
 Chc? to mog?. Czasem nie chc? a mog?. | 
|  | 
 | 
|  | 
| MenWizard | Dodany dnia 28.05.2006 17:30:59 | 
|  
 Przedszkolak
 
  
 
 Postów: 1
 Data rejestracji: 28.05.2006 17:30
 
 
 | A jak usun?? t? ramke w oku? zdj?cia? | 
|  |   
 
 |