PEAK XOOPS - Hack for photo navigtion in englishin japanese

Hack for photo navigtion

List posts in the topic

normal Hack for photo navigtion

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2006/5/22 23:31
mendow  一等兵 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:9 Average:8.89

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!