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?
Announcement
Collapse
No announcement yet.
Event Calendar Color Coding
Collapse
X
-
Can you send a link? Need to see the existing HTML and CSS in order to suggest customization.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
-
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.
- Top
- Translate
- Bottom
Comment
-
I don't see any prefixes in any of the topics in Tournaments and Games channel.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
Ok I see them now. So do you want to change the topic title link color depending on the prefix used?
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
Is this what you wanted?
Change prefix ids and color values as needed.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 */
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
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?1 Photo
- Top
- Translate
- Bottom
Comment
-
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.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
Latest Posts
Collapse
-
Reply to some ideas for new modsin Chit Chatby desmomax
I finally created a mod that allows you to add an icon to each post with options for sharing on other platforms. I honestly thought it was absurd that...
Today, 03:59 AM -
by flohseHi Glenn, what do you think about adding "Like Counts" similar to "Like Counts on Postbit and Profile" (when this mod is in use) in...Yesterday, 11:28 PM
-
Reply to push notification prompt?by desmomaxhy glenn
have you thought about this?Yesterday, 05:44 AM

Comment