Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > BlueVoda Website Builder Forums > Adding Elements To Your Website

Notices

Adding Elements To Your Website Discussions, help & troubleshooting about adding templates, backgrounds, images, text, iframes, scroll bars, marquees, flash, video, music, HTML Code, shapes, lines, java scripts, and all other elements. Etc… etc…

Reply
 
Thread Tools
  #1  
Old 04-02-2006, 11:14 PM
Private First Class
 
Join Date: Mar 2006
Location: Queens, New York
Posts: 7
Send a message via Yahoo to gaboi
Exclamation Automatic date change

I don't know what to use or how to go about having the date change automatically on a web page each day with the current date. Any help will be appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 04-02-2006, 11:47 PM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: Automatic date change

This code below will show the current date each time the page loads (its not dynamic, if will only update on page loads)

<?
echo date('F j Y');
?>

Just make sure your webpages are .php, or put those 3 lines into a .php file, and use an iframe where you want it at.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 04-03-2006, 10:05 AM
Private First Class
 
Join Date: Mar 2006
Location: Queens, New York
Posts: 7
Send a message via Yahoo to gaboi
Default Re: Automatic date change

Thanks for the script. I really appreciate it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 06-09-2006, 12:21 PM
Sergeant
 
Join Date: Jun 2006
Location: Holland
Posts: 23
Default Re: Automatic date change

Doing a search on the forum I found the date-thing I was looking for fast & easy. Great! But... being a beginner, working on my first site, I haven't got a clue how to use the script mentioned. Tried a HTML box, but that didnt work. Is there someone out there that can tell (idiotproof) how to apply it :)

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 06-23-2008, 12:28 AM
Private First Class
 
Join Date: Apr 2008
Posts: 5
Default Re: Automatic date change

Firstly, I am using BlueVoda Version 9.1.0. I was wondering if this info is still correct about the "changing date".
Also, like the poster above, I don't know much. Are BlueVoda pages .php? and where and how do I post this code (I also couldn't tell where the code started or ended in the response! Pitiful, I know.) if they are not .php. Am I correct in interpreting the response as putting the code into an Inline frame?
I am hoping to get the date to look like this - Sunday, June 22, 2008 (taken from a friend's web page that he used Dream Weaver to assemble).
Thanks for any help. Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 06-23-2008, 05:18 AM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: Automatic date change

Use
PHP Code:
<?
echo date('l, F j, Y');
?>
Just insert it into a html box, and in your properties make sure .php is selected instead of html.
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 06-25-2008, 12:32 AM
Private First Class
 
Join Date: Apr 2008
Posts: 5
Default Re: Automatic date change

Thanks - Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 06-23-2009, 12:18 AM
Master Sergeant
 
Join Date: Dec 2006
Posts: 60
Default Re: Automatic date change

Can i change the color and font size in this script?
Thank you
Richard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 06-23-2009, 12:54 AM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: Automatic date change

It just required html formatting. You just change it to

<?
echo '<span style="color: #000000; font-size: 12pt;">'.date('l, F j, Y').'</span>';
?>

Where the red text is a hex color value, and the blue is the font size, the units can be in any of the normal types (pt, px, em, etc).
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 06-25-2009, 02:15 AM
Private First Class
 
Join Date: Apr 2009
Posts: 6
Default Re: Automatic date change

Quote:
Originally Posted by RichardM View Post
Can i change the color and font size in this script?
Thank you
Richard
There is a script somewhere, semi-automated, which has a larger base of fonts and colors. I will try to find it and post it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 07-04-2009, 04:36 PM
Private
 
Join Date: Jul 2009
Posts: 1
Default Re: Automatic date change

Quote:
Originally Posted by Watdaflip View Post
It just required html formatting. You just change it to

<?
echo '<span style="color: #000000; font-size: 12pt;">'.date('l, F j, Y').'</span>';
?>

Where the red text is a hex color value, and the blue is the font size, the units can be in any of the normal types (pt, px, em, etc).
Thank you this has been most helpful
One further question can I have a date in the future appear as well?
Say I have a time limited offer for 10 days
I would have today's date on the site-4th July-but then in the text on the page I would want to say the offer expires at midnight 14th July how would I do that please.

Thank You
Steve Vale
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 07-05-2009, 11:59 PM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: Automatic date change

Yes, you can have it display a game in the future, but can you explain more details of what you are trying to do.

By that I mean, are you wanting there to be a "limited 10 day offer" that is infact unlimited, and it will always update the expiration date to be 10 days ahead of time? Or do you just it to always print the 14th even on the 5th, 6th, 7th, etc?

If its the first case you will just need to change this part of the code posted above

date('l, F j, Y')

to be

date('l, F j, Y', time()+timestamp)

replacing the red word "timestamp", with the numeric value of the time in the future, in seconds. So if you want it to always display one day ahead, you would enter the value for one day in seconds ( 60 * 60 * 24 = 86400)

so for that it woul be

date('l, F j, Y', time()+86400)

10 days is 864000
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 10:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203