Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 06-28-2011, 02:50 PM
whitey92lx's Avatar
whitey92lx whitey92lx is offline
 
Join Date: May 2011
Location: Katy, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?






I originally posted this in the wrong forum. Please lock other thread. https://vborg.vbsupport.ru/showthrea...36#post2214036
Reply With Quote
  #2  
Old 06-28-2011, 10:56 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: png Untitled.png (8.0 KB, 0 views)
Reply With Quote
Благодарность от:
whitey92lx
  #3  
Old 06-29-2011, 02:00 AM
whitey92lx's Avatar
whitey92lx whitey92lx is offline
 
Join Date: May 2011
Location: Katy, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much! That worked like a charm!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03555 seconds
  • Memory Usage 2,197KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (1)post_thanks_box_bit
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete