Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Feb 2013, 06:04
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Need help with php if statement help for custom page

Current code:


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

This currently outputs:
Guest Limit : XX
What I need to change is if the Guest Limit is = "0" I would like it display "No Limit" else display what it currently does.
Reply With Quote
  #2  
Old 03 Feb 2013, 18:00
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
<?php if ($event['Event']['guest_limit'] == 0) $event['Event']['guest_limit']='No Limit'; ?>
__________________
Former vBulletin.org Staff Member

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
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 19:20.

Layout Options | Width: Wide Color: