Announcement

Collapse
No announcement yet.

Event Calendar Color Coding

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Event Calendar Color Coding

    In version 5.3, the calendar mod shows events and highlights them. All events are highlighted the same color. Is there an easy way to change the highlight color depending on event type...say, via topic prefix?

    #2
    Can you send a link? Need to see the existing HTML and CSS in order to suggest customization.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      PM sent

      Comment


        #4
        glennrocksvb, I went live with the 5.3.0 RC1 last night, you can now see the calendar on my website. I use topic prefixes to distinguish between event types (look in the Tournaments and Games channel). Ideally, there is some css that will allow me to change the highlight color based on the topic prefix name.

        Comment


          #5
          I don't see any prefixes in any of the topics in Tournaments and Games channel.
          Helpful? Donate. Thanks!
          Buy me a coffeePayPal QR Code
          Fast VPS Host for vBulletin:
          A2 Hosting & IONOS

          Comment


            #6
            Most of them are setup as icons, but they are there. Examples include usa_fp, usssa_fp, tc_fp

            Find or post info for upcoming games, tournaments, friendlies and scrimmages here

            Comment


              #7
              Ok I see them now. So do you want to change the topic title link color depending on the prefix used?
              Helpful? Donate. Thanks!
              Buy me a coffeePayPal QR Code
              Fast VPS Host for vBulletin:
              A2 Hosting & IONOS

              Comment


                #8
                Is this what you wanted?

                Code:
                /* Friendly Prefix */
                .js-topic-prefix[href*='friendly_fp'] + .topic-title {
                    color: red !important;
                }
                .js-topic-prefix[href*='friendly_fp'] + .topic-title:hover {
                    color: blue !important;
                }
                
                /* USA Prefix */
                .js-topic-prefix[href*='usa_fp'] + .topic-title {
                    color: yellow !important;
                }
                .js-topic-prefix[href*='usa_fp'] + .topic-title:hover {
                    color: green !important;
                }
                /* ...and so on */
                Change prefix ids and color values as needed.
                Helpful? Donate. Thanks!
                Buy me a coffeePayPal QR Code
                Fast VPS Host for vBulletin:
                A2 Hosting & IONOS

                Comment


                  #9
                  No, I'm talking about changing the colors on the actual calendar, based on my topic prefix. I'm not sure if it's even possible, I'd like to be able to find a way to discern between event types. VB doesn't have an "event type" field, so I've gone about making them with topic prefixes.

                  Maybe it would be easier (an add-on) to create event types as part of the event function?

                  Comment


                    #10
                    Unfortunately, the topic prefix is not included in the Calendar view. So it's not possible using pure CSS solution. It would require scripting to add the prefix. I haven't installed vB 5.3 yet so I don't know how they implemented the Calendar view.
                    Helpful? Donate. Thanks!
                    Buy me a coffeePayPal QR Code
                    Fast VPS Host for vBulletin:
                    A2 Hosting & IONOS

                    Comment

                    Users Viewing This Page

                    Collapse

                    There is 1 user viewing this forum topic.

                    • Guest Guest

                    Latest Posts

                    Collapse

                    Working...
                    X
                    Searching...Please wait.
                    An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                    Please push the back button and reload the previous window.'
                    An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                    Please push the back button and reload the previous window.'
                    An internal error has occurred and the module cannot be displayed.
                    There are no results that meet this criteria.
                    Search Result for "|||"