Search…

X3 Photo Gallery Support Forums

Search…
 
bhchen
Experienced
Topic Author
Posts: 34
Joined: 05 Oct 2006, 01:02

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

05 Sep 2011, 22:25

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
- Bing
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

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

05 Sep 2011, 22:58

May I ask where you would want something like this to display?
 
bhchen
Experienced
Topic Author
Posts: 34
Joined: 05 Oct 2006, 01:02

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

05 Sep 2011, 23:36

The very first page (is it called the Title page?) when people access to my IV gallery. Thanks.

- Bing
- Bing
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

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

07 Sep 2011, 02:32

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 ...
 
bhchen
Experienced
Topic Author
Posts: 34
Joined: 05 Oct 2006, 01:02

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

07 Sep 2011, 09:40

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
- Bing
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

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

08 Sep 2011, 01:12

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.
 
bhchen
Experienced
Topic Author
Posts: 34
Joined: 05 Oct 2006, 01:02

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

08 Sep 2011, 03:40

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,
- Bing
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

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

08 Sep 2011, 09:14

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" :(
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

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

08 Sep 2011, 21:55

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?
 
bhchen
Experienced
Topic Author
Posts: 34
Joined: 05 Oct 2006, 01:02

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

09 Sep 2011, 03:32

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,
- Bing
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

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

09 Sep 2011, 08:26

I'm sure we can add something like this, but it may have to wait for next update coming within a few months ...
 
bhchen
Experienced
Topic Author
Posts: 34
Joined: 05 Oct 2006, 01:02

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

09 Sep 2011, 08:30

Great!! Am already looking forward to the next release of ImageVue!! :D


Regards,
- Bing
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

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

10 Sep 2011, 05:45

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
 
grimurnet
Experienced
Posts: 360
Joined: 17 Dec 2010, 04:50

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

10 Sep 2011, 13:21

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?
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

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

10 Sep 2011, 16:03

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 6587 times