PEAK XOOPS - Re: would like to display user's name in the <title> of the page that shows all the user's submissions in englishin japanese

Re: would like to display user's name in the <title> of the page that shows all the user's submissions

List posts in the topic

question Re: would like to display user's name in the <title> of the page that shows all the user's submissions

msg# 1.1
depth:
1
Previous post - Next post | Parent - No child | Posted on 2004/11/10 11:03
GIJOE  ÀèǤ·³Áâ   Posts: 4110
All you have to do is to insert 2 lines.

line 68 in viewcat.php
} else if( $uid != 0 ) {

	// This means 'my photo'
	if( $uid < 0 ) {
		$where = "submitter=$my_uid" ;
		$get_append = "uid=-1" ;
		$xoopsTpl->assign( 'uid' , -1 ) ;
		$xoopsTpl->assign( 'album_sub_title' , _ALBM_TEXT_SMNAME4 ) ;
		$xoopsTpl->assign( 'xoops_pagetitle' , _ALBM_TEXT_SMNAME4 ) ;
	// uid Specified
	} else {
		$where = "submitter=$uid" ;
		$get_append = "uid=$uid" ;
		$xoopsTpl->assign( 'uid' , $uid ) ;
		$xoopsTpl->assign( 'album_sub_title' , "<img src='$mod_url/images/myphotos.gif' alt='' />" . myalbum_get_name_from_uid( $uid ) ) ;
		$xoopsTpl->assign( 'xoops_pagetitle' , myalbum_get_name_from_uid( $uid ) ) ;
	}
	$join_append = "LEFT JOIN $table_cat c ON l.cid=c.cid" ;
	$select_append = ', c.title AS cat_title' ;

} else {
Votes:2 Average:5.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!