[SOLVED] Customizing slideshow, & login links

lupar_blackice
lupar_blackice's picture

Joined: 2005-04-21
Posts: 60
Posted: Sat, 2005-09-03 12:18

Morning all I would like to change how gallery displays the slideshow,
login, & etc... links. I am running gallery with-in postnuke & the pics & links are not lining up any more so I was thinking that I should be able to fix it I was able to fine the play with the HTML code the makes that table.

Would some be able to point to the right file/s?

 
lupar_blackice
lupar_blackice's picture

Joined: 2005-04-21
Posts: 60
Posted: Sat, 2005-09-03 13:18

OK I was able to track it down to the albums.php page looks like all I need to do is to some how center the image & link. They are with-in there own cell but by looking to the code not sure how to do that.

Here is the code I am talking about.

/* Admin Text (right side) */

$adminCommands = '';
$iconElements = array(); 

if ($gallery->app->gallery_slideshow_type != "off" && $numPhotos != 0) {
    $iconText = getIconText('display.gif', _("slideshow"));
    $iconElements[] = '<a href="'. makeGalleryUrl("slideshow.php",array("set_albumName" => null)) .'">'. $iconText .'</a>';
 
lupar_blackice
lupar_blackice's picture

Joined: 2005-04-21
Posts: 60
Posted: Sat, 2005-09-03 13:51

Ok looks like I got it all I have to do was to add a <p align="center"> & </p> to the code & that center it right up.

if ($gallery->app->gallery_slideshow_type != "off" && $numPhotos != 0) {
    $iconText = getIconText('display.gif', _("slideshow"));
    $iconElements[] = '<p align="center"><a href="'. makeGalleryUrl("slideshow.php",array("set_albumName" => null)) .'">'. $iconText .'</a></p>';

To get the one for galleryDocs to work I had to added some extras ''' in a couple of different places.

	if ($gallery->user->isAdmin()) {
		$docsUrl = galleryDocs('admin');
	        if ($docsUrl) {
			$iconText = getIconText('info.gif', _("documentation"));
			$iconElements[] = '<p align="center"><a href=\"$docsUrl\'">'. $iconText .'</a></p>';