logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

expire date

Version: 4.1.5
Example URL: http://thebookscene.co.uk/food-ampersand-drink/


expire date
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 829
Posted 10/12/07 - 10:36 PM:
quote post
#1
Is there a way to display the expire date as the actual date? At the moment it shows as numbers. If not is there a "get around" I could possibly do?

Also... what is the correct date format to enter? I put in 31/10/07 and it changed it to 07/10/09


I also hope to use it in a toplist.


Edited by babrees on 10/12/07 - 11:38 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 10/13/07 - 09:38 AM:
quote post
#2
According to http://scripts.webmastersite.net/wsnlinks/wsnmanu... , use {LINKEXPIREDATE}.

The date format to enter is whatever PHP can make sense of, which may depend on your language's locale set in the language file. For english I believe it looks for american dates, so if you type 1/5/2008 that means January, not May. But unless you like confusion it's better to write out the month name or the three letter abbreviation.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 829
Posted 10/15/07 - 09:31 AM:
quote post
#3
I'm having problems with thhis. It does not like it if I try to put, say, dec/25/2007 or similar using month name, I have to input 12/25/2007. No real hardship, but I need it to display the month because otherwise my visitors will be confused due to the American way of writing it when the rest of the site is in English. Is there any way I can force the display to show Dec/25/2007 ?

Also, if I edit the link I have to reinput the date otherwise it changes it to nonsensical.

http://www.freewebbargains.com/books/
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 829
Posted 10/16/07 - 08:06 AM:
quote post
#4
Display problem solved.



But I have to reinput date everytime I edit
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 10/16/07 - 12:51 PM:
quote post
#5
dec/25/2007

As far as I know that's not a standard format in any country. You need to write in a conventional format, like December 25, 2007 or Dec 25, 2007 or 12/25/2007 or probably 12-25-2007 or 12-25-07 (haven't tested those last two).

I need it to display the month

The display is unrelated to what you type in. You can pass a custom date format to any template variable as described here: http://scripts.webmastersite.net/wsnlinks/wsnmanu...
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 829
Posted 10/16/07 - 09:46 PM:
quote post
#6
Thanks Paul, but you didn't reply to the fact that I have to reinput the date if I ever edit the link.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 10/17/07 - 09:26 AM:
quote post
#7
Well I don't understand that, presumed it must've been because you were typing in the wrong format. Impossible to reproduce so I guess it'd require site inspection.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 829
Posted 10/17/07 - 09:57 AM:
quote post
#8
Paul wrote:
Well I don't understand that, presumed it must've been because you were typing in the wrong format. Impossible to reproduce so I guess it'd require site inspection.


Well, I type the american format - mm/dd/yyyy. For instance if the date is 10/31/2007, when I go to edit it states 1193803200. If I don't input the date again it comes up with something totally different

I have sent you my log in details via support form

[edit] well I would've sent you details via the support form, but I just get a blank page at the moment. Will send to the last email addy that you wrote to me on.


Edited by babrees on 10/17/07 - 09:59 AM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 10/17/07 - 08:07 PM:
quote post
#9
Haven't had a chance to check your site yet, but that sounds like it has to be an old/bad template which is using the wrong template variables there on the edit page -- namely it's using {LINKEXPIRE} (unix timestamp) instead of {LINKEXPIREDATE} like the templates I distribute (at least lately, perhaps it was different in the distant past, I don't recall) have it.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 829
Posted 10/17/07 - 10:28 PM:
quote post
#10
hmm, I have no idea what I did on this one, just checked and you were correct, it was LINKEXPIRE

Weird thing is that I started fresh with templates from 4.1.3. I did move the field in the suggestlink/edit.tpl but lordy knows how I managed to change it!!! [sigh]

thanks Paul - it now shows correctly smiling face
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.