Is it possible to include MyAlbum-P detail in webpage TITLES?
- You cannot open a new topic into this forum
- Guests cannot post into this forum
msg# 1
I would like to know if it is possible to hack the TITLE of each webpage where a MyAlbum-P listing is displayed? I would like to be able to list the name of my website AND the title of the submission when someone is browsing the photo album.
Votes:2
Average:0.00
msg# 1.1
I can't understand what you want.
Is it enough using some blocks with customized templates ?
Or, you mean TITLE as <title></title> ?
Votes:0
Average:0.00
msg# 1.1.1
I'm sorry I wasn't clear enough. I ment title as in <title</title>
for example, a user's submission would have a title like this:
TravelFolios! - Europe - Get Beach
like this:
SiteName - Category - Photo Title
Votes:0
Average:0.00
msg# 1.1.1.1
It is easy to display photo's tiltle between <title></title>.
insert this line into the top of the template "myalbum*_photo.html"
<{assign var="xoops_pagetitle" value=$photo.title}>
It is not so difficult that you hack to display also category's name.
Votes:0
Average:0.00
msg# 1.1.1.1.1
Thank you so much! It worked perfectly! Is there a way I can do the same thing but with category names? I tried putting this in the myalbum_viewcat_list:
<{assign var="xoops_pagetitle" value=$cat.title}>
I want to display the name of the category you are browsing (when just looking at thumbnails) where the page title would be. This code above, however, does not seem to work.
Votes:1
Average:10.00
msg# 1.1.1.1.1.1
I tried also putting that same code in my myalbum-p SUBMIT.PHP file but it returned an error and failed to load the file correctly so I removed it. Maybe there is a simple modification to this code so I can put it into a PHP file like submit.php?
Votes:43
Average:10.00
msg# 1.1.1.1.1.1.1
hi Luminosity.
Do you know the difference between templates and php?
submit.php don't use the template.
And submit.php does not have the photo's name.
Why do you want to photo's name into submit.php?
Votes:2
Average:0.00
msg# 1.1.1.1.1.2
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:0
Average:0.00
msg# 1.1.1.1.1.1.1.1
Yes, I am aware of the differences between PP and templates. What I want to put as a <title> in submit.php is simply, "Submit a photo." Right now it just shows the module's name in the <title> area.
Votes:6
Average:10.00