Replace two boxes on the forum index page

Hilmer

Active member
Hi there

On my index-page (when the visitors enter my page) I have two boxes
the first is random images from the xfr-Useralbum mod and the second is latest images from the same mod.

www.hilmer-koch.dk/forum

I would like to change these two boxes, so that the latest images comes first??

Anyone who know which template to edit?

All the best
Morten
 
library/XfRu/UserAlbums/EventListener/Template.php

Swap the positions of the two red blocks:

Rich (BB code):
			case 'forum_list_nodes' :
				if ($options->XfRu_UA_displayLocations['forum_list_latest_images_before'])
				{
					$latestImages = $imagesModel->getLatestImages();
					$viewParams = array(
						'images' => $latestImages
					);

					$tpl = $template->create('xfr_useralbums_forum_list_latest_images', $viewParams);
					$contents = $tpl . $contents;
				}

				if ($options->XfRu_UA_displayLocations['forum_list_latest_images_below'])
				{
					$viewParams = array(
						'images' => (!empty($latestImages)) ? $latestImages : $imagesModel->getLatestImages()
					);

					$tpl = $template->create('xfr_useralbums_forum_list_latest_images', $viewParams);
					$contents .= $tpl;
				}

				if ($options->XfRu_UA_displayLocations['forum_list_random_images_before'])
				{
					$randomImages = $imagesModel->getRandomImages();
					$viewParams = array(
						'images' => $randomImages
					);

					$tpl = $template->create('xfr_useralbums_forum_list_random_images', $viewParams);
					$contents = $tpl . $contents;
				}

				if ($options->XfRu_UA_displayLocations['forum_list_random_images_below'])
				{
					$viewParams = array(
						'images' => (!empty($randomImages)) ? $randomImages : $imagesModel->getRandomImages()
					);

					$tpl = $template->create('xfr_useralbums_forum_list_random_images', $viewParams);
					$contents .= $tpl;
				}
				break;

That should do it.
 
Top Bottom