Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Dec 2005, 04:58
oglsmm's Avatar
oglsmm oglsmm is offline
 
Join Date: May 2004
Adding a Conditional

Hey,

I have moved parts of the What's going on Box to the top of my forum. Only have the Upcoming Events and Birthday's there.

I made a conditional to only have it show to specific groups and that was fine.

Now I want to add a second conditional to only show the box If there is actually an Event (Birthday/Calender Event) in the next 7 days.

Any suggestions on how to go about this?
__________________
vBulletin - 3.6.1
Reply With Quote
  #2  
Old 06 Dec 2005, 05:10
jpennington jpennington is offline
 
Join Date: Jul 2004
I know it can be done, but I'm sure of the exact code. You would just need to say if event time minus current time is the current time with the event time and if it is less than or equal to 241920 (one week unix) then show the table.
Reply With Quote
  #3  
Old 06 Dec 2005, 05:18
Dark Riku Dark Riku is offline
 
Join Date: May 2005
This has been posted many times... but kind of hidden...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change the 9 with the usergroup you want using it.
Reply With Quote
  #4  
Old 06 Dec 2005, 05:28
oglsmm's Avatar
oglsmm oglsmm is offline
 
Join Date: May 2004
Originally Posted by Dark Riku
This has been posted many times... but kind of hidden...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change the 9 with the usergroup you want using it.
I have that part fine.... What I am having trouble with is the conditional to only Show the events box IF an event is upcoming within next 7 days.
__________________
vBulletin - 3.6.1
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


New To Site? Need Help?

All times are GMT. The time now is 16:44.

Layout Options | Width: Wide Color: