"Expiring soon" customization help

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

"Expiring soon" customization help

Postby FlamingBargains » Thu Mar 21, 2002 10:29 am

Ok I've been running this copy of coranto that auto-expires my coupons (each an individual post) on my site for months now.

I'd like to create an "expiring soon" profile with a seperate style.

I don't know enough perl to do this but I think it can be acomplished.

I want to create a new style that show's only those posts which are "expiring soon" - For instance those which will expire within the next 5 days.

Here's a link to a text file with my cruser.pl custom sub contents and the top of my style (basically the workings of the expire customization).

http://www.flamingbargains.com/expirecode.txt


Somebody please help if you can. Thanks!
fuark: Phil, no offence, but I don't think you should be lead.
hkdragon2: Ummmmm
fuark: I think mark should be.
fuark: But he's a loser.
fuark: LOOOOOOOSER
hkdragon2: Well, this discussion has gone downhill
User avatar
FlamingBargains
 
Posts: 269
Joined: Sat Mar 09, 2002 4:11 am

Postby l0rdphi1 » Fri Mar 22, 2002 2:47 pm

make something that does something like this....
Code: Select all
$x = 'EXPIRING SOON!' if (time() - time_expires) < How_long_you_want_the_expriring_msg_shown;
$html .= $x;
User avatar
l0rdphi1
 
Posts: 3590
Joined: Sat Mar 09, 2002 10:03 pm
Location: Pennsylvania, United States of America

Postby FlamingBargains » Fri Mar 22, 2002 7:18 pm

so would I put that in my new style?
fuark: Phil, no offence, but I don't think you should be lead.
hkdragon2: Ummmmm
fuark: I think mark should be.
fuark: But he's a loser.
fuark: LOOOOOOOSER
hkdragon2: Well, this discussion has gone downhill
User avatar
FlamingBargains
 
Posts: 269
Joined: Sat Mar 09, 2002 4:11 am

Postby Zexion_ » Wed Nov 06, 2002 7:37 pm

Hey,

I'm trying to do the NEW and EXPIRING soon notifications you did on your site...

On your post above you link to http://www.flamingbargains.com/expirecode.txt but that file is no longer there...

Would you mind posting the custom SUB code and the styles you are using for them in a thread, that way anyone looking for this VERY USEFUL modification can find it and do it.

Even better if someone could make the MOD into an addon... and include the expire code, expiring soon notification and the Cookie based user specific NEW notification from aerosoul on it while they are at it :-)

Thanks!
Time flies like an arrow, fruit flies like a banana.
User avatar
Zexion_
 
Posts: 260
Joined: Tue Sep 03, 2002 8:23 pm

Postby kriko » Wed Nov 06, 2002 8:57 pm

he is busy, and hasn't been nn the forums lately.
Kristjan aka. kriko
now a wireless expert
User avatar
kriko
 
Posts: 3328
Joined: Sat Feb 24, 2007 8:13 pm


Return to Customization

Who is online

Users browsing this forum: No registered users and 1 guest

cron