Page 1 of 2

Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 05 Sep 2011, 22:25
by bhchen
Dear all:

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. :D

- Bing

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 05 Sep 2011, 22:58
by mjau-mjau
May I ask where you would want something like this to display?

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 05 Sep 2011, 23:36
by bhchen
The very first page (is it called the Title page?) when people access to my IV gallery. Thanks.

- Bing

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 07 Sep 2011, 02:32
by mjau-mjau
What is on your "start" page? We could add a tag perhaps so that you could add [lastupdate] into a title, description or heading, and it would be replaced by the time of your laste update ...

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 07 Sep 2011, 09:40
by bhchen
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. :D

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 08 Sep 2011, 01:12
by mjau-mjau
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. :D
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.

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 08 Sep 2011, 03:40
by bhchen
Hi, Karl:

Sorry for a novice's misunderstanding.. :oops:
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.


Regards,

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 08 Sep 2011, 09:14
by Artur
bhchen, would be better if you make some image, which shows us exactly what you mean, because for me is also difficult to understand what do you want to do with "Last updated on xxxx.xx.xx" :(

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 08 Sep 2011, 21:55
by mjau-mjau
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.
Then I assume you would want some text "Gallery Last Updated on xX.xX.xXXXX" above the random photo perhaps?

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 09 Sep 2011, 03:32
by bhchen
mjau-mjau wrote: Then I assume you would want some text "Gallery Last Updated on xX.xX.xXXXX" above the random photo perhaps?
Hi, Karl:

That was exactly what I needed!! :P Is that do-able in any way?? Thanks.


Regards,

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 09 Sep 2011, 08:26
by mjau-mjau
I'm sure we can add something like this, but it may have to wait for next update coming within a few months ...

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 09 Sep 2011, 08:30
by bhchen
Great!! Am already looking forward to the next release of ImageVue!! :D


Regards,

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 10 Sep 2011, 05:45
by Artur
If only this, then you can do it yourself. For example you can use "description" section of your page to display info about updates :wink:

Open file IndexController.php, which you can find in iv-admin/controllers/ and find line:
Code
$folder->addFile($file);
echo "File {$imageName} uploaded";
right after this line add following:
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");
Save file.

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:
Code
<img src="update_module.swf" height="30" width="400" />
Save page.

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 :wink:

File:
Last_updated_module.zip
(10.76 KiB) Downloaded 387 times

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 10 Sep 2011, 13:21
by grimurnet
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 :wink:

Open file IndexController.php, which you can find in iv-admin/controllers/ and find line:
Code
$folder->addFile($file);
echo "File {$imageName} uploaded";
right after this line add following:
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");
Save file.

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:
Code
<img src="update_module.swf" height="30" width="400" />
Save page.

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 :wink:

File:
Last_updated_module.zip
Hi is this the module you are using on your site? or is it something that only displays the date of last updated?

Re: Adding "Last updated on xxxx.xx.xx" on the welcome page.

Posted: 10 Sep 2011, 16:03
by Artur
No, It's only show "Last Update" info in page description.
Looks like this:
Bez nazwy-1.jpg
Bez nazwy-1.jpg (170.74 KiB) Viewed 6588 times