PEAK XOOPS - Re: Worked perfectly! But how about displaying category names? in englishin japanese

Re: Worked perfectly! But how about displaying category names?

List posts in the topic

question Re: Worked perfectly! But how about displaying category names?

msg# 1.1.1.1.1.2
depth:
5
Previous post - Next post | Parent - No child | Posted on 2004/10/19 19:16
GIJOE  ÀèǤ·³Áâ   Posts: 4110
It is not so easy.
hack is needed.

edit viewcat.php
line 45
$xoopsTpl->assign( 'lang_album_main' , _ALBM_MAIN ) ;

if( $cid > 0 ) {

	$rs = $xoopsDB->query( "SELECT title FROM $table_cat WHERE cid='$cid'" ) ;
	list( $cat_title ) = $xoopsDB->fetchRow( $rs ) ;
	$xoopsTpl->assign( 'xoops_pagetitle' , $cat_title ) ;

	// Category Specified
	$xoopsTpl->assign( 'category_id' , $cid ) ;
	$xoopsTpl->assign( 'subcategories' , myalbum_get_sub_categories( $cid , $cattree ) ) ;	$xoopsTpl->assign( 'category_options' , myalbum_get_cat_options() ) ;
I will be append this feature into the next minor version of myAlbum-P.
Votes:1 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!