Forums

Add colors to events_list - Events Manager Extended (5 posts)

  1. petrakid
    Member
    Posted 10 months ago #

    Hello.

    I'm posting here as every time I try to post in the forums at the Events Manager Extended site, I get a "Topic not found" error and it won't post my topic.

    At any rate, I have Events Manager Extended which i use on a website (currently oafc.royweb.org). On the "Schedule" page, a running events list is displayed.

    I would like each event to have a different background color, based on the category of the event.

    I have already modified the plugin so that I can add colors to a category when creating or editing the category. I have also made it so the background color is displayed in the admin/categories list.

    However I have had little success in implementing category colors as background colors behind each event in the events list.

    Any help would be great; again I'd post this at http://www.e-dynamics.be/wordpress/, but their forums don't seem to be working currently.

  2. Franky
    Member
    Posted 10 months ago #

    Did you try http://www.e-dynamics.be/bbpress ?
    Anyway, using attributes should help you along. A small example:

    style='color: #_ATT{color}'

    Or, if you want it based on a category name:
    [events_if tag='#ESC_CATEGORIES' value='Non-sponsored Event'] style='color: #2208AA' [/events_if]

    For conditional tags: http://www.e-dynamics.be/wordpress/?cat=24

  3. petrakid
    Member
    Posted 10 months ago #

    Yeah that's the spot I'm trying to post to. Anyways. Let me give this a shot; thanks!

  4. petrakid
    Member
    Posted 10 months ago #

    Actually I just thought about this...your suggestion would likely not work (as it stands anyway). Why? Well, because up until I modified a little bit of code and added a database field, there WAS NO "category color".

    Now I don't want an "event color" (this has to be simple for people to manage since I won't be managing this for much longer), but instead I want to be able to create a style for each row of the events list with a row background color based on the event's category (yes that means that users can only assign one category to an event, but that's fine in this case).

    Basically, there are no conditional tags that exist for this as there was no 'category color' option in the first place.

    As far as the forms, I tried again to post (I am logged in too), but the same error (which haunted me about 2 weeks ago as well): "No topic found".

  5. Franky
    Member
    Posted 10 months ago #

    And why not just change the event list setting then? Something like this:

    <li class="#ESC_CATEGORIES">#j #M #Y - #H:#i<br /> #_LINKEDNAME<br />#_TOWN </li>

    So you can then later on use CSS restricted to li and the category name.
    For the forum: I don't get it, I can post without issues ... I think it's about time to switch to something new instead of the old bbpress.

Reply

You must log in to post.

About this Topic