Welcome, Guest. Please Login or Register.
April 23, 2024, 12:44:24 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done] Calendar Mod [Ver 1.4] « previous next »
Pages: 1 ... 18 19 [20] 21 22 23 Reply Ignore Print
Author Topic: [Done] Calendar Mod [Ver 1.4]  (Read 148210 times)
Andre
Noobie
*
Posts: 43


Learning every day

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #285 on: July 28, 2002, 07:12:39 PM »
Reply with quote

I'm using a norwegian language file for YabbSE 1.4. The calendar seems to be working but it doesnt display the Birthdays on the front page even when i know someone indeed have a birthday.

I'm using boardindex from the 1.3 version to increase the speed, is that the problem?

PS: I allso have a site using the english.lng and i have no problems there.

Please help!
Logged
md
Noobie
*
Posts: 2


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #286 on: August 05, 2002, 03:32:42 PM »
Reply with quote

Is there a way to show a week's, or even a month's (basically customizable) worth of events in the info center as opposed to just the current day's?

Also, is it possible to display the info center style calendar in a particular board and not just in the info center?

thanx
-mark
Logged
Bloke
Noobie
*
Posts: 28


Training to be a linux geek....

ICQ - 110249441DenverJanke@hotmail.com WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #287 on: August 07, 2002, 06:34:23 AM »
Reply with quote

Gday sweet as mod...was waiting for somebody to make it...and u did an even better job then I could of hoped for...

I need help...I want to include the days events on the front page of the website (like the ssi functions). I was going to do this by doing an include of "Calendar.php?function=calendardoindex" which didnt work :(
Part of the problem is that I am also using membergroups...

I guess ideally would be able to make "day" a parameter so we can just show that day...

Plz help :P
« Last Edit: August 07, 2002, 06:42:29 AM by Bloke » Logged

________/ /'''''''\ \___
| . . . .___ii-------- |=|",",","::::::=="----
|_---''''''/_/-' ''''''|iii|
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #288 on: August 07, 2002, 10:29:58 PM »
Reply with quote

Quote from: ronnie_t on July 23, 2002, 05:51:01 AMHi:

I tried to comment out the Birthday member group in Calendar.php like this:

// $bday = CalendarCreateBirthdayArray($monthp1,$year);

It seems to work so far. Will it have reprocussions somwhere down the line?  ???

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ronnie T.

No, that should be fine to comment out that.
Logged
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #289 on: August 07, 2002, 10:35:17 PM »
Reply with quote

Quote from: Bloke on August 07, 2002, 06:34:23 AMI need help...I want to include the days events on the front page of the website (like the ssi functions). I was going to do this by doing an include of "Calendar.php?function=calendardoindex" which didnt work :(
Part of the problem is that I am also using membergroups...

The CalendarDoIndex function should work fine as long as all of the normal globals are set up. I haven't seen the SSI functions you are referring to so I don't have a frame of reference for that...

One thing to note about that function is it was designed to add itself into the table at the bottom of the board index. The HTML that it spits out is formatted for table rows <tr> and columns <td>. You'll need to make sure that whatever HTML you are inserting it into has prepared the table tag ahead of time to format the output. And you'll need to follow the function call with the closing table tag.

Logged
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #290 on: August 07, 2002, 10:40:32 PM »
Reply with quote

Quote from: md on August 05, 2002, 03:32:42 PMIs there a way to show a week's, or even a month's (basically customizable) worth of events in the info center as opposed to just the current day's?

There isn't currently a way to do it in place. If you are handy with PHP coding, all of the code to do something like that already exists. You can look at how the calendar currently prepares the data for displaying the month. The output of the calendar format is done after the data is prepared you could change it to display however you liked (as another function most likely) for the board index.
Logged
Bloke
Noobie
*
Posts: 28


Training to be a linux geek....

ICQ - 110249441DenverJanke@hotmail.com WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #291 on: August 08, 2002, 01:41:58 AM »
Reply with quote

sweet...how do i set up the globals  ::)  :P when i just included it as is i got a blank page....do i have to include the settings file etc? <<<< noob at php :S
« Last Edit: August 08, 2002, 01:56:05 AM by Bloke » Logged

________/ /'''''''\ \___
| . . . .___ii-------- |=|",",","::::::=="----
|_---''''''/_/-' ''''''|iii|
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #292 on: August 08, 2002, 03:17:38 AM »
Reply with quote

Quote from: Bloke on August 08, 2002, 01:41:58 AMsweet...how do i set up the globals  ::)  :P when i just included it as is i got a blank page....do i have to include the settings file etc? <<<< noob at php :S

I don't know, I've never looked at the SSI stuff. I assume if the SSI stuff is designed to let you display board-related information on another web page that it sets up all the globals. Maybe take a look at some of the other functions to see what they are doing before displaying board data.
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #293 on: August 11, 2002, 11:02:30 PM »
Reply with quote

Hi,

So far I thought the calendar was working fine, but a few members have mentioned that they cant find the link to calendar buttons!

it turns out that only admins and mods can see them :(

I dug around for a bit and noticed the amount of rows  in the settings table that the calendar was using. (see below - direct copy from phpmyadmin)

it looks like the table has duplicates - can I just delete some of the duplicates? will it crash the calendar?

 
Edit  Delete  cal_minyear 2000
Edit  Delete  cal_maxyear 2005
Edit  Delete  cal_postgroups  
Edit  Delete  cal_enabled 1
Edit  Delete  cal_todaycolor ffffff
Edit  Delete  cal_eventcolor 000000
Edit  Delete  cal_bdaycolor 000000
Edit  Delete  cal_holidaycolor 000000
Edit  Delete  cal_memberscanpost 1
Edit  Delete  cal_daysaslink 1
Edit  Delete  cal_startmonday 1
Edit  Delete  cal_defaultboard General Category - Girl and Boy Talk
Edit  Delete  cal_showeventsonindex 1
Edit  Delete  cal_showbdaysonindex 1
Edit  Delete  cal_showholidaysonindex 1
Edit  Delete  cal_captioncolor ffffff
Edit  Delete  cal_postmembers  
Edit  Delete  cal_showweeknum 0
Edit  Delete  cal_allowspan 1
Edit  Delete  cal_maxspan 7
Edit  Delete  cal_minyear 2000
Edit  Delete  cal_maxyear 2005
Edit  Delete  cal_postgroups  
Edit  Delete  cal_enabled 1
Edit  Delete  cal_todaycolor ffffff
Edit  Delete  cal_eventcolor 000000
Edit  Delete  cal_bdaycolor 000000
Edit  Delete  cal_holidaycolor 000000
Edit  Delete  cal_minyear 2000
Edit  Delete  cal_maxyear 2005
Edit  Delete  cal_postgroups  
Edit  Delete  cal_enabled 1
Edit  Delete  cal_todaycolor ffffff
Edit  Delete  cal_eventcolor 000000
Edit  Delete  cal_bdaycolor 000000
Edit  Delete  cal_holidaycolor 000000
Edit  Delete  cal_memberscanpost 1
Edit  Delete  cal_daysaslink 1
Edit  Delete  cal_startmonday 1
Edit  Delete  cal_defaultboard General Category - Girl and Boy Talk
Edit  Delete  cal_showeventsonindex 1
Edit  Delete  cal_showbdaysonindex 1
Edit  Delete  cal_showholidaysonindex 1
Edit  Delete  cal_captioncolor ffffff
Edit  Delete  cal_postmembers  
Edit  Delete  cal_showweeknum 0
Edit  Delete  cal_allowspan 1
Edit  Delete  cal_maxspan 7
Edit  Delete  cal_memberscanpost 1
Edit  Delete  cal_daysaslink 1
Edit  Delete  cal_startmonday 1
Edit  Delete  cal_defaultboard General Category - Girl and Boy Talk
Edit  Delete  cal_showeventsonindex 1
Edit  Delete  cal_showbdaysonindex 1
Edit  Delete  cal_showholidaysonindex 1
Edit  Delete  cal_captioncolor ffffff
Edit  Delete  cal_postmembers  
Edit  Delete  cal_showweeknum 0
Edit  Delete  cal_allowspan 1
Edit  Delete  cal_maxspan 7
Edit  Delete  cal_memberscanpost 1
Edit  Delete  cal_daysaslink 1
Edit  Delete  cal_startmonday 1
Edit  Delete  cal_defaultboard General Category - Girl and Boy Talk
Edit  Delete  cal_showeventsonindex 1
Edit  Delete  cal_showbdaysonindex 1
Edit  Delete  cal_showholidaysonindex 1
Edit  Delete  cal_captioncolor ffffff
Edit  Delete  cal_postmembers  
Edit  Delete  cal_showweeknum 0
Edit  Delete  cal_allowspan 1
Edit  Delete  cal_maxspan 7
Edit  Delete  cal_memberscanpost 1
Edit  Delete  cal_daysaslink 1
Edit  Delete  cal_startmonday 1
Edit  Delete  cal_defaultboard General Category - Girl and Boy Talk
Edit  Delete  cal_showeventsonindex 1
Edit  Delete  cal_showbdaysonindex 1
Edit  Delete  cal_showholidaysonindex 1
Edit  Delete  cal_captioncolor ffffff
Edit  Delete  cal_postmembers  
Edit  Delete  cal_showweeknum 0
Edit  Delete  cal_allowspan 1
Edit  Delete  cal_maxspan 7

Any help appreciated.
Tony.
Logged

To the world - you are just one person, but to one person you are the world!
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #294 on: August 12, 2002, 12:32:17 AM »
Reply with quote

Yes, it's safe to delete the duplicates. It might be easier to just delete all of the cal_% rows and then grab the mod file (from first post in this thread) and reinstert the data.
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #295 on: August 12, 2002, 07:23:53 AM »
Reply with quote

Thanks Myiasis :D

I'll do that.

Logged

To the world - you are just one person, but to one person you are the world!
Pitch
Noobie
*
Posts: 30


:::live now or never:::

WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #296 on: August 20, 2002, 08:45:46 AM »
Reply with quote

Is this Mod available for YaBB SE 1.3 as well?
Logged

Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #297 on: August 20, 2002, 12:36:20 PM »
Reply with quote

Quote from: Pitch on August 20, 2002, 08:45:46 AMIs this Mod available for YaBB SE 1.3 as well?

The mod is written for YaBBSE 1.3.1. You can take the link from the first post and install it with BoardMod on a 1.3.1 board. It comes installed as part of YaBBSE 1.4.
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #298 on: August 24, 2002, 12:05:47 PM »
Reply with quote

Quote from: Myiasis on May 08, 2002, 07:49:46 AMYou can now create a calendar event from an already posted message. The button is found with the other topic-related buttons (sticky, move, etc...). The button will show up for Global Mods, Admins, Moderators of that specific board or the creator of the topic -- assuming they also have access to posting events.

I have cleared up my duplicate tables for cal_settings and upgraded to 1.4.1 and added a few mods! it all works great!

Just one question left to answer, if you have time  :-*,
Is there a way to enable the 'link to calendar' button for all users?
Logged

To the world - you are just one person, but to one person you are the world!
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #299 on: August 24, 2002, 10:05:26 PM »
Reply with quote

Quote from: Coyote on August 24, 2002, 12:05:47 PMJust one question left to answer, if you have time  :-*,
Is there a way to enable the 'link to calendar' button for all users?

If you look in Display.php and search for "Calendar": If you comment out the if statement right below the // Calendar comment it will put the link to calendar button there for anybody who has rights to post on the calendar.

Current Code:
   // Calendar.
   if(in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($username == "$topicinfo[posterName]" && $username != 'Guest'))

Change to:
   // Calendar.
   // if(in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($username == "$topicinfo[posterName]" && $username != 'Guest'))
Logged
Pages: 1 ... 18 19 [20] 21 22 23 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done] Calendar Mod [Ver 1.4] « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.045 seconds with 20 queries.