PEAK XOOPS - Hack for photo navigtion in englishin japanese

Hack for photo navigtion

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2006/5/22 23:31
mendow  Private 1st Class From: Russian Moscow  Posts: 12
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 .= "<img style=\"FILTER: Alpha( style=0,opacity=25) gray\" 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 .= "<a href='photo.php?lid=".$ids[$i-1]."'>$i</a>  ";

replace

$photo_nav .= "<a href='photo.php?lid=".$ids[$i-1]."'><img src='$thumbs_url/".$ids[$i-1].".".$ide[$i-1]."' alt='".$idt[$i-1]."' height='60'  ></a> ";

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
Votes:11 Average:8.18
Previous post - Next post | Parent - No child | Posted on 2006/8/20 13:33
limecity  Private   Posts: 9
this is a super hack for myalbum. and easy hack.

one question.
how do i define how many thumbnail to show at the navigation?


*nvm. problem solved*
line 89
$nwin = 4 ; // no of thumbnails
Votes:10 Average:8.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/8/20 13:44
GIJOE  Gunnery Sergeant   Posts: 4110
It's a good looking hack!

I'm sorry that I don't read your post yet.
Votes:12 Average:1.67
Previous post - Next post | Parent - No child | Posted on 2006/9/26 22:43
mendow  Private 1st Class From: Russian Moscow  Posts: 12
Quote:
GIJOE wrote:
It's a good looking hack!

I'm sorry that I don't read your post yet.

thanks!
I am glad you like my hack
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/9/30 3:30
ChipMunk  Private 1st Class   Posts: 14
thx but for what version is this?
I definetly like it.
Votes:2 Average:5.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/2 23:37
mendow  Private 1st Class From: Russian Moscow  Posts: 12
for 2.84 and higher
Votes:16 Average:5.00
Previous post - Next post | Parent - No child | Posted on 2006/10/3 6:02
ChipMunk  Private 1st Class   Posts: 14
This is really cool.
I applied it :)
I hoped tell a friend would work but it didn't either hehe...
Does it depends on theme or browser?
Votes:7 Average:8.57

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!