Is it possible for IV (v2.6.4) to automatically add (and update) something like "Gallery last updated on: (year).(month).(day)" on my title page whenever I or other users upload a new document or image onto the site? Many thanks.
- Bing
X3 Photo Gallery Support Forums
That is not your startpage (or titlepage if you like) ... That is a template that embeds the entire gallery. What I would like to know, and still don't know, is what the user first sees when they come to your Imagevue website? It could be a textpage, a slideshow, thumbnails, an image, or even a custom module ... Obviously this is important for me to understand in comparison to exactly where you are thinking of displaying the "last updated" text ... You can'ty just slap it on anywhere.bhchen wrote:I hope I didn't misunderstand your question, the start page I used was the 'index.gallery.phtml' (located in the http://www.mywebsite.com/iv-includes/templates). Many thanks again for your kind help.
Then I assume you would want some text "Gallery Last Updated on xX.xX.xXXXX" above the random photo perhaps?bhchen wrote:What I set up my IV to run was to automatically display a random photo in the photoblinds mode from a specific 'welcome' folder. Many thanks.
$folder->addFile($file);
echo "File {$imageName} uploaded";$updated = date("d.m.Y");
$dom = new DOMDocument('1.0', 'UTF-8');
$dom->load("../last_update_module.xml");
$updateInfo = $dom->documentElement;
$updateInfo->setAttribute('update', "$updated");
$dom->save("../last_update_module.xml");<img src="update_module.swf" height="30" width="400" />Hi is this the module you are using on your site? or is it something that only displays the date of last updated?Artur wrote:If only this, then you can do it yourself. For example you can use "description" section of your page to display info about updates![]()
Open file IndexController.php, which you can find in iv-admin/controllers/ and find line:right after this line add following:Code$folder->addFile($file); echo "File {$imageName} uploaded";Save file.Code$updated = date("d.m.Y"); $dom = new DOMDocument('1.0', 'UTF-8'); $dom->load("../last_update_module.xml"); $updateInfo = $dom->documentElement; $updateInfo->setAttribute('update', "$updated"); $dom->save("../last_update_module.xml");
Download attached file and unzip in root of your site.
Go to your admin panel->Manage, and open page in which you want to have "Last Updated on XX.XX.XXXX", then in "description" section add folowing:Save page.Code<img src="update_module.swf" height="30" width="400" />
In last_update_module.xml file (which you put in root of your site) you can change module properties, like font size, font type, font colour, X-offset, Y-offset, and first text which apears right before update date.
If you have any questions, ask
File: