1
mendow
MyAlbum-P Hack for photo navigtion
  • 2006/5/25 8:51

  • mendow

  • Just popping in

  • Posts: 8

  • Since: 2005/2/10


create backup main file xoops\modules\myalbum\photo.php
if you get error, for to return into the default position.

open file xoops\modules\myalbum\photo.php

find (line 68 )

$fullcountresult $xoopsDB->query"SELECT lid FROM $table_photos WHERE cid=$cid AND status>0 ORDER BY {$myalbum_orders[$orderby][0]}) ;
$ids = array() ;
while( list( 
$id ) = $xoopsDB->fetchRow$fullcountresult ) ) {
    
$ids[] = $id ;
}


replace

$fullcountresult $xoopsDB->query"SELECT lid, title, ext FROM $table_photos WHERE cid=$cid AND status>0 ORDER BY {$myalbum_orders[$orderby][0]}) ;

$ids = array() ;
while( list( 
$id$title$ext) = $xoopsDB->fetchRow$fullcountresult ) ) {
    
$ids[] = $id ;
    
$ide[] = $ext ;
    
$idt[] = $title ;
}


find (line 102 )

$photo_nav .= "$i  ";


replace

$photo_nav .= "FILTERAlphastyle=0,opacity=25gray" src='$thumbs_url/".$ids[$i-1].".".$ide[$i-1]."' alt='".$idt[$i-1]."'  height='60'  > ";


note:

style=\"FILTER: Alpha( style=0,opacity=25) gray\" it works only Internet Explorer


height='60' change height value how would you like

find (line 104)

$photo_nav .= ".$ids[$i-1]."'>$i  ";


replace

$photo_nav .= ".$ids[$i-1]."'>$thumbs_url/".$ids[$i-1].".".$ide[$i-1]."' alt='".$idt[$i-1]."' height='60'  > ";


note:

height='60' change height value how would you like

it was

http://img490.imageshack.us/my.php?image=16uy.jpg

it became

http://img207.imageshack.us/my.php?image=27cp.jpg

end

2
FaYsSaL
Re: MyAlbum-P Hack for photo navigtion
  • 2006/5/25 9:37

  • FaYsSaL

  • Not too shy to talk

  • Posts: 115

  • Since: 2006/1/2 2


Greaaaaaaaaaaaaaat hack ty mendow
btwn great site :)
i like the design and the custo!

3
mendow
Re: MyAlbum-P Hack for photo navigtion
  • 2006/5/25 11:06

  • mendow

  • Just popping in

  • Posts: 8

  • Since: 2005/2/10


Thanks!

Login

Who's Online

181 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 181


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits