vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Is there a way to emphasize member created events on default calendar? (https://vborg.vbsupport.ru/showthread.php?t=265926)

whitey92lx 06-28-2011 02:50 PM

Is there a way to emphasize member created events on default calendar?
 
I want all of my member created events to be bold red font on the default calendar so they stand out from all of the birthdays.
Is there a way to do this in vb 4.0.3?



https://vborg.vbsupport.ru/external/2011/06/8.jpg


I originally posted this in the wrong forum. Please lock other thread. https://vborg.vbsupport.ru/showthrea...36#post2214036

LifesGreatestGift 06-28-2011 10:56 PM

1 Attachment(s)
open template calandar_monthly_day

replace all with
(code changes highlighted in red)
Code:

<td>
        <vb:if condition="$show['highlighttoday']">
          <div class="events today">
        <vb:else />
                <div class="events">
        </vb:if>
                        <vb:if condition="$show['weeklink']"><a class="weeklink" href="calendar.php?{vb:raw session.sessionurl}c={vb:raw calendarid}&amp;week={vb:raw firstweek}&amp;do=displayweek&amp;month={vb:raw month}" title="{vb:rawphrase view_this_week_in_detail}"><vb:if condition="$stylevar['textdirection'] == 'rtl'">&larr;<vb:else />&rarr;</vb:if></a></vb:if>
                        <a class="daynum" href="calendar.php?{vb:raw session.sessionurl}do=getinfo&amp;day={vb:raw year}-{vb:raw month}-{vb:raw day}&amp;c={vb:raw calendarid}"><vb:if condition="$day == 1">{vb:raw monthname} </vb:if>{vb:raw day}</a>
                        <vb:if condition="$show['eventlink'] OR $userevents OR $show['birthdaylink'] OR $userbdays">
                        <ol>
                                <vb:if condition="$show['eventlink']">
                                        <li><a href="calendar.php?{vb:raw session.sessionurl}do=getinfo&amp;day={vb:raw year}-{vb:raw month}-{vb:raw day}&amp;c={vb:raw calendarid}" class="eventlinks" title="{vb:raw eventdesc}">{vb:rawphrase events}</a> ({vb:raw eventtotal})</li>
                                <vb:else />

                                      <div class="eventlink">
                                        {vb:raw userevents}
                                      </div>

                                        <vb:if condition="$show['birthdaylink']">
                                                <li><a href="calendar.php?{vb:raw session.sessionurl}do=getinfo&amp;day={vb:raw year}-{vb:raw month}-{vb:raw day}&amp;c={vb:raw calendarid}" title="{vb:raw birthdaydesc}">{vb:rawphrase x_birthdays, {vb:raw bdaycount}}</a></li>
                                        <vb:else />
                                                {vb:raw userbdays}
                                        </vb:if>                                       
                                </vb:if>
                        </ol>
                        </vb:if>
        </div>
</td>

Add the following to additional.css

Code:

.eventlink a, a.eventlinks {color:#FF0000;}
.eventlink a:hover, a.eventlinks:hover {color:#0000ff;}
.eventlink a:active, a.eventlinks:active {color:#cc00ff;}

change color values to what you want.

Refer to image below for results. Red links are events.

whitey92lx 06-29-2011 02:00 AM

Thank you so much! That worked like a charm!


All times are GMT. The time now is 10:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01321 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete