Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Franky

    (@liedekef)

    That was one very good coffee,tanks for that. The animal shelter will be pleased! (I donate the money I receive to a good cause).
    Concerning your question: what are you trying to accomplish?

    Thread Starter dkrasko

    (@dkrasko)

    I want to turn off the RSVP for my events and replace each event with a “FOLLOW” or “NOT INTERESTED” button. I was then going to keep track of the user’s choice for each event in a table. So I would be able to get a list of eventid(s) a user chose “FOLLOW” or “NOT INTERESTED” and build filters and conditions like you do as follows for category ID only use “event ID”

    category limits the events shown to those of a certain category ID. You can also use OR and AND for multiple categories: “1,3” (category 1 OR 3) or “1+3″ (category 1 AND 3)

    I want to be able to show for my staff what events they are following, or a list of what they are not interested in. Also use the same filter on a calendar feeds.

    I can write up a detail of what I would like in a plug in if you are interested in writing a plugin for me. More $$ for the shelter and coffee. haha
    Thanks

    Thread Starter dkrasko

    (@dkrasko)

    Would this filter effect only list views of events or would it also effect ical feeds and month calendar views?

    eme_event_list_filter (1 parameter: array of events, return value should be modified array)

    Forgive me, I’m doing a lot of reading on WordPress plugins trying to come up to speed. Maybe you can tell me if I’m going down the wrong road. Using the above filter in my custom php, would I be able to accomplish my last post (FOLLOW/NOT INTERESTED) by using eme_event_list_filter with an array of event IDs?

    Plugin Author Franky

    (@liedekef)

    Indeed, it would impact the calendar also. You might limit that by setting the pages indide yor filter, but that will be difficult to maintain.
    I could add a new function “inlist” so you could set which id’s would need to match. For example:
    [eme_if tag=’#_EVENTID’ inlist=’10,35,45,12,78′]
    Would that help you?

    Thread Starter dkrasko

    (@dkrasko)

    After reading more, I think the eme_event_list_filter will work for me as long as it works the way I understand it.
    Lets say I have a page ‘myevents’ with any of these shortcodes and with any of the current parameters offered.

    [eme_events scope=all limit=0 , template_id=2]
    [eme_calendar full=1]

    If my function using eme_event_list only returns success if the eventID is successful (eventID is in my list of IDs to show), with a little coding I can accomplish showing only Events on the page(s) from a list of EventIDs i check against?

    Plugin Author Franky

    (@liedekef)

    Sure, a little php to loop through the event id’s and unset the ones you don’t want … print_r will help you debug ??

    Thread Starter dkrasko

    (@dkrasko)

    Franky – using the filter worked like a charm! Thanks for the great application. This issue is resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘If statement question’ is closed to new replies.