This topic contains 3 replies, has 2 voices. Last updated by Eduan 3 years, 7 months ago.
| Topic Author | Topic |
|---|---|
| Posted: Saturday May 25th, 2013 at 11:39 pm #50647 | |
|
I am working on a member site using s2member and have written a bit of code to list user names, emails, and urls on a public directory as result of search terms. However, I would like to allow the user to choose if they would like their name to be listed or not. I thought an if/else statement would be the way to go. This is what I came up with:
The users come up perfectly based on the search term, but it’s not filtering anything based on whether the radio box is checked yes or no. I wasn’t sure what to put as the custom field variable i.e.
My custom field is a radio box with the values: Yes | Yes It’s probably a syntax thing…what does anyone think? Thanks! Ryan |
|








Pre-Sale FAQs
Video Tutorials
Community Forum
Knowledge Base
News/Updates
s2 Codex / Docs
GPL v2 License
Contact A Human
About Us
Our Customers
Support Policy
Privacy Policy

