News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

TodaysBirthday

Started by Bulakbol, January 06, 2008, 09:28:48 PM

Previous topic - Next topic

Bulakbol

Some people suggested about adding separated Today and Upcoming Holidays and I finally found time to do it. :) It's now updated.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Gendji

Cool thank you very much  :D
Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body,
but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming:
'WOW What a Ride!!!

Gendji

Installed it and it's working great.

The only thing i noticed is that everything is listed underneath each other instead of side by side.

Is it possible to change that? And if so what do i need 2 change  :)
Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body,
but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming:
'WOW What a Ride!!!

Bulakbol

Holiday titles are displayed in horizontal line separated by comma. If you will show me a sample image of what you want then I'll tell you what to do. If you can do it yourself, edit BoardIndex.template.php, find// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
and start from there.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

tk2012

Quote from: tk2012 on August 12, 2008, 08:20:17 AM
I tested out the feature and I'm getting an odd error on my screen.  It is showing the Birthdays twice, but the events only once.  I've attached a pic of what I'm talking about.  I would think if the code was accidently put on twice, that both the events and the birthday would show twice.





Had another birthday appear today and the same thing happened.. it was shown twice..

It must be conflicting with another mod somewhere.  I'm going to go back over all the edits because I haven't uninstalled the mod, but it stopped showing it completely.  I'm getting errors in my log referring to this mod, but regarding to when people are using other functions that don't relate to this.  v2.0 b3.1 is what I'm using.  Will let you know what I find.

Gendji

#165
Quote from: JohnyB on August 20, 2008, 03:44:16 PM
Holiday titles are displayed in horizontal line separated by comma. If you will show me a sample image of what you want then I'll tell you what to do. If you can do it yourself, edit BoardIndex.template.php, find// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
and start from there.

The example pictures from your mod have Birthdays on the left and Events on the right.

The way it displays on my forum now is:

Today's Holiday: Test Holiday
Upcoming Holiday: Labor Day
Today's Birthday: Gendji
Upcoming Birthday: Gendji
Today's Event: * Test event
Upcoming Event: * Another Test Event

What i am looking for is something like this:



Today's Holiday: Test Holiday
Upcoming Holiday: Labor Day       
Today's Birthday: Gendji
Upcoming Birthday: Gendji       
Today's Event: * Test event
Upcoming Event: * Another Test Event

It's kinda like in your example picture just instead of the 2 being left and right it would be all 3, aligned left, middle and right.

Hope i am making sense  :)
Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body,
but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming:
'WOW What a Ride!!!

tk2012

I'm not certain it is this mod or the Member Color Link mod.

I cleared my error log and cache, signed out.  (restarted computer)

Wanted everything to be fresh after clearing my data on the browser, too.

I went in and changed my birthday to today, so I could get a birthday on the screen for today.  Then, added some events to test that out, too.

I had two errors appear in my log (attached).  I still get the same visuals on the info center screen.  Today's Bday is still showing up twice.  (once in color of calendar and once in color of event type)
Upcoming Bday's are shown twice. (both in calendar color)
The Today's events are shown once each (both in color of event type)
(attached)

Everything shows in calendar correctly.  (attached)

I'm going to attach my Load.php file since that is where the error is showing.

Adish - (F.L.A.M.E.R)

need calender enabled ? coz i cant find it working.

Bulakbol

@Genji
   To make three columns, edit your BoardIndex.template.php.
Code (find) Select
echo '<span class="smalltext" style="color: #', $modSettings['cal_bdaycolor'], ';">';
replace
Quoteecho '</td><td><span class="smalltext" style="color: #', $modSettings['cal_bdaycolor'], ';">';

Code (find) Select
echo '<span class="smalltext" style="color: #', $modSettings['cal_eventcolor'], ';">';
replace
Quoteecho '</td><td><span class="smalltext" style="color: #', $modSettings['cal_eventcolor'], ';">';

I added "</td><td>" on both lines.


@tk2012
   There's nothing wrong with your files. This mod was installed properly. I think it is the ColorLink mod that is causing the problem. Try reinstalling the MemberColorLink mod.


@F.L.A.M.E.R
   Yes, you have to enable the calendar and configure the settings. Admin => Calendar => Calendar Settings.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Gendji

Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body,
but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming:
'WOW What a Ride!!!

Bulakbol

Quote from: Gendji on August 21, 2008, 04:59:53 PM
Thank you  :)

You are welcome. if you need further assistance, just post here. Thank you too for using/trying this mod.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Adish - (F.L.A.M.E.R)

i actually wanted that the "Calender" link in the navigation.. i thought this mod would do so and add an extra option in the admin panel... any edits i can do to do it like that ?

Bulakbol

Sorry. I just separated the "holidays today" from "upcoming holidays". What option are you looking for? Link to where?
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Adish - (F.L.A.M.E.R)

i was just looking for the bday section to appear at the base.. and the "Calender" text in the navigation should not appear up... well i can actually remove it from index.template.php but it will cause me errors as the link wond be found...so just like to add an option or do some setting to remove the "Calender" text from the navigation bar and yet keep today's bday on the base...

Bulakbol

How did you do it? Removing the "Calendar" tab is easy.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Adish - (F.L.A.M.E.R)

yes i can but i dont want to remove it for time being coz next time if i want it i have to search for the theme again, then unzip it... then open the index.template.php ... then copy the code.. and then paste it where it should be originally...

and also i am afraid that if i remove that code from there.. it maybe possible that, that space is kept blank and no other navigation link can be posted there as it is as default in smf...

I actually just want something like a tickbox that would say "show the calender tab ?" which i can choose when i want the tab over in the navigation and untick it when not needed there....

Possible ?

Bulakbol

It can't be part of the mod but you can do it. IMO, it is easier to comment-out the codes but you can do the checkbox if you want. You have to edit files though.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Adish - (F.L.A.M.E.R)

can you please give me the checkbox edit please.. I am ready to do the edits..

Thankyou for your quick reply.

Bulakbol

You can try. Edit your Settings.template.php and look for
array(
'id' => 'show_modify',

replace with
array(
'id' => 'calendar_tab',
'label' => 'Hide Calendar tab',
),
array(
'id' => 'show_modify',


Then edit your index.template.php and find
if ($context['allow_calendar'])

replace
if ($context['allow_calendar'] && empty($settings['calendar_tab']))

You can now hide the tab by going to Admin => Current Theme, then tick the "Hide Calendar tab" checkbox.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Adish - (F.L.A.M.E.R)

that worked gr8... now i can do something similar for other tabs aswell... gr8.. just an advice.. many users would prefer this..you can add this into the tips and tricks section... Thank you again...

Advertisement: