An unusual question... Automatic...

User 528054 Photo


Registered User
209 posts

I am just wondering here really, I have no idea but its worth an ask...

Is there a way I can set up some html code that will post a link to photo album in my site, automatically at a certain time...
ie Midnight. I can generate the path and have the opening image displayed, but don't have a clue how to set it up.

Doing it manually is quite easy and I would like to do an 'Album of the Day'......

It can be done in other web software and I thought I might ask in here and would appreciate some advice.

Thanks
Peter
User 2088758 Photo


Senior Advisor
3,087 posts

Hi Peter,

The great thing about RLMP is it creates html files when you export your final project. From that point you can add anything as would before!

I'd you are asking if you can do it from within the software unfortunately you can't.

Hope this helps.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 2147626 Photo


Ambassador
2,958 posts

You could use another script to handle the content. Should be easy to integrate into your page. Haven't used this so look it over carefully. It's just an idea... http://codecanyon.net/item/daycontent/7669061?WT.ac=search_thumb&WT.seg_1=search_thumb&WT.z_author=pauloreg

There are probably many others available out there. :cool:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 271657 Photo


Ambassador
3,816 posts

Good one, Gunsmoke ;)
I was thinking a cron job would do it (other ideas as well here) :
http://stackoverflow.com/questions/6642 … -every-day
But for $6 bucks... I'd take the easy way out :D
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

How much security is needed?
Here's some simple php. Change it to echo the needed link and or image.
<?php
//***Alter messages here.
$afternoon = "Good afternoon! ";
$evening = "Good evening! ";
$late = "Working late? ";
$moring = "Good morning! ";
$friday = "Get ready for the weekend! ";

//*****Set the time zone to your needs incase the server is in a different one****//
date_default_timezone_set('America/Detroit');

//Get the current hour
$current_time = date(G);
//Get the current day
$current_day = date(l);

//12 p.m. - 4 p.m.
if ($current_time >= 12 && $current_time <= 16) {
echo $afternoon;
}
// 5 p.m. to 11 p.m.
elseif ($current_time >= 17 && $current_time <= 24) {
echo $evening;
}
//12 a.m. - 5 a.m.
elseif ($current_time >= 1 && $current_time <= 5) {
echo $late;
}
// 6 a.m. to 11 a.m.
elseif ($current_time >= 6 && $current_time <= 11) {
echo $morning;
}

//If it's Friday, display a message
if ($current_day == "Friday") {
echo $friday;
}
echo "<br>";
echo "It is now ". date('H:i:s');
?>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 528054 Photo


Registered User
209 posts

Thankyou everybody :)

Thats brilliant, I shall look at the links and muck about with it all
to see what I can do.

It was certainly worth asking :D

Peter
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

I did a little testing in flex slider and tweak the code to work easily within it.
http://ericrohloff.com/coffeecup/ccforu … lider.html
Here's an example and below is the code and how I added it to my flex slider.
<div class="flex-container">
<div class="flexslider">
<ul class="slides">


<?php
//*****Set the time zone to your needs incase the server is in a different one****//
date_default_timezone_set('America/Detroit');

//Get the current hour
$current_time = date(G);
//Get the current day
$current_day = date(l);

//12 p.m. - 4 p.m.
if ($current_time >= 12 && $current_time <= 16) {
echo'<li>
<img src="images/afternoon_image.jpg" />
<p class="flex-caption">Afternoon Image</p>
</li>';
}
// 5 p.m. to 11 p.m.
elseif ($current_time >= 17 && $current_time <= 24) {
echo'<li>
<img src="images/evening_image.jpg" />
<p class="flex-caption">Evening Image</p>
</li>';
}
//12 a.m. - 5 a.m.
elseif ($current_time >= 1 && $current_time <= 5) {
echo'<li>
<img src="images/early_morning_image.jpg" />
<p class="flex-caption">Early Morning Image</p>
</li>';
}
// 6 a.m. to 11 a.m.
elseif ($current_time >= 6 && $current_time <= 11) {
echo '<li>
<img src="images/morning_image.jpg" />
<p class="flex-caption">Morning Image</p>
</li>';
}

//If it's Monday, display a message
if ($current_day == "Monday") {
echo'<li>
<img src="images/monday_image.jpg" />
<p class="flex-caption">Monday Image</p>
</li>';
}
//If it's Tuesday, display a message
if ($current_day == "Tuesday") {
echo'<li>
<img src="images/tuesday_image.jpg" />
<p class="flex-caption">Tuesday Image</p>
</li>';
}
//If it's Wednesday, display a message
if ($current_day == "Wednesday") {
echo'<li>
<img src="images/wednesday_image.jpg" />
<p class="flex-caption">Wednesday Image</p>
</li>';
}
//If it's Thursday, display a message
if ($current_day == "Thursday") {
echo'<li>
<img src="images/thursday_image.jpg" />
<p class="flex-caption">Thursday Image</p>
</li>';
}
//If it's Friday, display a message
if ($current_day == "Friday") {
echo'<li>
<img src="images/friday_image.jpg" />
<p class="flex-caption">Friday Image</p>
</li>';
}
//If it's Saturday, display a message
if ($current_day == "Saturday") {
echo'<li>
<img src="images/saturday_image.jpg" />
<p class="flex-caption">Saturday Image</p>
</li>';
}
//If it's Sunday, display a message
if ($current_day == "Sunday") {
echo'<li>
<img src="images/sunday_image.jpg" />
<p class="flex-caption">Sunday Image</p>
</li>';
}

?>
<li>
<img src="images/image1.jpg" />
<p class="flex-caption">Image One</p>
</li>

<li>
<img src="images/image2.jpg" />
<p class="flex-caption">Image Two</p>
</li>
<li>
<img src="images/image3.jpg" />
<p class="flex-caption">Image Three</p>
</li>
<li>
<img src="images/image4.jpg" />
<p class="flex-caption">Image Four</p>
</li>
<li>
<img src="images/image5.jpg" />
<p class="flex-caption">Image Five</p>
</li>
<li>
<img src="images/image6.jpg" />
<p class="flex-caption">Image Six</p>
</li>
<li>
<img src="images/image7.jpg" />
<p class="flex-caption">Image Seven</p>
</li><li>
<img src="images/image8.jpg" />
<p class="flex-caption">Image Eight</p>
</li><li>
<img src="images/image9.jpg" />
<p class="flex-caption">Image nine</p>
</li>
</ul>
</div>
</div>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.