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.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & 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.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & 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?Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
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 */
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & 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.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
in Testimonialsby glennrocksvbNo they are not tied to your forum account here since you are not required to have an account here to buy.
All purchases are stored in...Today, 02:46 PM -
in Testimonialsby jjracingI bought a bunch of mods on here a couple years ago. Do they get stored under your account on here? Is there anywhere to see your previous purchases...Today, 02:39 PM
-
Get Affordable and Fast VPS for vBulletin
Comment