Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Dec 2009, 07:03
stevegrant stevegrant is offline
 
Join Date: Sep 2008
Template if conditions

I'm a bit stuck on a conditional statement - basically, I've got an array of UNIX timestamps that I want to compare with the current UNIX timestamp - generated from time():

The two values I want to compare are:

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

but the following (and various combinations thereof) doesn't work:

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

The error message displayed is:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected '{' in /www/vb4/upload/includes/adminfunctions_template.php(4516) : eval()'d code on line 17

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Any ideas as to how I can perform this (relatively simple!) comparison?
Reply With Quote
  #2  
Old 04 Dec 2009, 14:39
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
The variable syntax in an if statement in vb4 is the same as for vb3. So something like:


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

__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 04 Dec 2009, 15:57
stevegrant stevegrant is offline
 
Join Date: Sep 2008
Ah ok, thanks - will try that this evening

This is my first attempt at creating extra pages/apps for vB - the forum on my site has always been standalone from the rest of the site, which is WordPress-based. Not for long, though...
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 03:36.

Layout Options | Width: Wide Color: