WebmasterSite.net

Auto Expire just one type

Version: 5.1.6
URL:

PrintPrint


Auto Expire just one type
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 392
Total Posts: 1287
quote post #1
Posted 10/14/09 - 2:29 AM:

Is it possible to have just one type with a 6 month expiry date? Perhaps by some sort of condition put in the suggestlink.tpl?
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 10/14/09 - 4:40 PM:

In order for a condition in the template to help, you'd have to have separate submission pages for each type. <IF {LINKTYPE} is x><input type="hidden" name="expire" value="<?php echo time() + 86400*180; ?>"></IF> would then do a 180 day in the future expiry I believe.

I can add a tweak to set expiration defaults by listing type for $50.
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.