YaBB SE Community

Development => Completed mods => Topic started by: Myiasis on April 30, 2002, 02:16:39 AM

Title: [Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on April 30, 2002, 02:16:39 AM
Might need to bear with me a little here. I wrote a calendar for my own use, and have been using it for several weeks, but I've never tried to package anything as a mod before. There was some interest in the calendar so I've tried to package it as a mod.

It's a Boardmod file and there were some things I didn't find a way to do, so please read the Readme.txt file --  There are a couple of images to move, a Calendar.php to go into the Sources directory and some database scripts to run.

I tried to keep as much of the code in Calendar.php as possible, but there were places in various files that had had to be changed.

I've been running this for a few weeks and seems to be working fine for me. I did change a couple of things before I packaged this up though -- it wasn't using the settings table for instance.

For a sample of what it looks like: Calendar Sample (http://www.mud-master.com/soh/). You won't be able to post on it though as it's a live board restricting posting to the members. There are a couple of public events and bithdays showing.

CalendarMod Version 1.3 (http://www.mud-master.com/Download/CalendarMod.zip)

Aaron
Title: Re:[Beta] Calendar Mod
Post by: joker on April 30, 2002, 02:48:47 AM
Nice thing!
Are birthdays included (autom. from the birthday-mod or user profiles) or do you have to submit them as calendar events?
Title: Re:[Beta] Calendar Mod
Post by: Myiasis on April 30, 2002, 02:53:21 AM
The birthdays are right from the user profiles and automatic. If they have not entered a birthdate, they just won't ever show up on the calendar.
Title: Re:[Beta] Calendar Mod
Post by: Ironman on April 30, 2002, 03:43:28 AM
Sorry, maybe I'm blind or what, but I can't see any Mod in that Sample above... :)
Title: Re:[Beta] Calendar Mod
Post by: vorapoap (vory) on April 30, 2002, 03:45:42 AM

Sorry, maybe I'm blind or what, but I can't see any Mod in that Sample above... :)


Do you mean the 'calendar' button that you can't see?.. it is the button next to others on the main screen.
Title: Re:[Beta] Calendar Mod
Post by: Ironman on April 30, 2002, 04:16:20 AM
LOL, now I've seen it. I must be blind, maybe I should contact a doctor for my eyes...  ;)
Title: Re:[Beta] Calendar Mod
Post by: Webby on April 30, 2002, 04:38:53 AM
Working, but : when I delete an event bij just deleting the message, it still shows as an event, and can't be deleted.

So, should there not be a "delete event" option ?!
Title: Re:[Beta] Calendar Mod
Post by: Ironman on April 30, 2002, 04:50:51 AM
Maybe it's a nice Thing, but if I try to install it with BoardModSE there comes an error message 'String not found', does anyone know why? Or can somebody tell me how to install?  ;)
Title: Re:[Beta] Calendar Mod
Post by: Myiasis on April 30, 2002, 05:01:57 AM

Working, but : when I delete an event bij just deleting the message, it still shows as an event, and can't be deleted.

So, should there not be a "delete event" option ?!


Well, you can delete them directly, but deleting the last message or using the remove topic command is supposed to be deleting the event as well -- does for me anyway, hrm!

To edit an event click the red asterisk by the event name. You'll only see it if you are a global mod, admin, or the creator of the event. From there you can delete it directly.
Title: Re:[Beta] Calendar Mod
Post by: Myiasis on April 30, 2002, 05:03:54 AM

Maybe it's a nice Thing, but if I try to install it with BoardModSE there comes an error message 'String not found', does anyone know why? Or can somebody tell me how to install?  ;)


Have you modified your board at all? It sounds to me like Boardmod cannot find one of the search strings I put in the .mod file. This is just a guess as I haven't used Boardmod much, but that's the first thing that pops to mind.

What you might do instead is look at the lines in the <Search For> clause in the mod file that is generating the string not found and try to find that spot in the file yourself -- then make the change by hand. Or let me know where it is it cannot find and I can direct you to it via the function it is found within.
Title: Re:[Beta] Calendar Mod
Post by: Webby on April 30, 2002, 05:12:39 AM
Woohoo, it works ;)
Title: Re:[Beta] Calendar Mod
Post by: Myiasis on April 30, 2002, 05:27:31 AM

Woohoo, it works ;)


So which ways did not work for you Webby? When you use the Remove Topic command, does the event get removed? And when you use the "Delete Message" and it is the last message in the topid, does the event get removed then?
Title: Re:[Beta] Calendar Mod
Post by: Webby on April 30, 2002, 05:36:46 AM
.....well, it works both ways now  ;D
Title: Re:[Beta] Calendar Mod
Post by: Ironman on April 30, 2002, 01:04:26 PM
Well, I just had to do it all manually, now it runs and works properly. So in which File I have to do some translations to german? Is it the calendar.php?
Title: Re:[Beta] Calendar Mod
Post by: Webby on April 30, 2002, 01:05:28 PM
Yes, there you have to translate most of it.

Also in modsettings.php................
Title: Re:[Beta] Calendar Mod
Post by: tazthedev on April 30, 2002, 01:13:01 PM
what a great mod. thx !!
Title: Re:[Beta] Calendar Mod
Post by: Myiasis on April 30, 2002, 03:18:30 PM

what a great mod. thx !!


Thanks, and yer welcome. :)

Quote
So in which File I have to do some translations to german?


I wasn't really sure how to deal with the language issues. I used the months and days from the language files, but didn't know what to do with my other text.  What do most mods do about that? Do they just put text in the files like I did or is there some other method they use?

Editing a language file didn't seem like a best choice at the time. Even if I just stuck to the english file I'm not sure how mods would insert data into that without clashing with the board and other mods on indexes. And if you stick it in a language file, then whoever is using the mod has to be sure that is in every language file they use or the prompts aren't going to work at all in the mod.
Title: Re:[Beta] Calendar Mod
Post by: Ironman on April 30, 2002, 05:10:54 PM
Quote
I used the months and days from the language files, but didn't know what to do with my other text.  What do most mods do about that?


Most mods using only the english Language File, so if you've got a board using another Language, you have to open the english.lng, search for the modifications cut it out and paste to your language File.
Then you've got to open your.lng and translate it.

Not very comfortably, but if there's no other way...  ::)

Well, I think the Mod-Programmers could do it so, that their mods use the Board Language File...  ;D
Title: [cosmetic] Calendar Mod
Post by: vorapoap (vory) on May 01, 2002, 12:08:48 PM
Do you like that yellow color for today date?.. No I don't.. Let change the whole box's color.!  :)

In Calendar.Mod
Search...
At Line 144

Code: [Select]
            if ($today[5] == $curMonth[5] && $today[4] == $curMonth[4] && $nDay == $today[3])
               print "<font color=#FFFF40><b>[$nDay]</b></font>";
            else
               print $nDay;

            if (isset($bday[$nDay]))
               print ("<br><FONT size=\"1\">$bday[$nDay]</font>");

            if (isset($events[$nDay]))
            {
               // If there were also birthdays, make a space.
               if (isset($bday[$nDay]))
                  print "<br>";
               print ("<br><FONT size=\"1\">$events[$nDay]</font>");
            }
Replace with
Code: [Select]
            if ($today[5] == $curMonth[5] && $today[4] == $curMonth[4] && $nDay == $today[3]) {
               print "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><td  class=\"windowbg3\" height=\"100\" valign=\"top\">";
               $Vtoday=true;
               print "<B>[$nDay]</B>";
            } else {
               $Vtoday=false;
               print "$nDay";
            }

            if (isset($bday[$nDay]))
               print ("<br><FONT size=\"1\">$bday[$nDay]</font>");

            if (isset($events[$nDay]))
            {
               // If there were also birthdays, make a space.
               if (isset($bday[$nDay]))
                  print "<br>";
               print ("<br><FONT size=\"1\">$events[$nDay]</font>");
            }
            if ($Vtoday)  print "</td></table>";
Title: Re:[Beta] Calendar Mod
Post by: Koth on May 01, 2002, 02:56:56 PM
Lol I put all the changes in and yet no calendar button on my min screen so I check the mod settings file and when I try to enable the calendar all goes well cept it doesnt enable.. I checked to see if other settings were being saved and they are its just this one any clue?
Title: Re:[Beta] Calendar Mod
Post by: vorapoap (vory) on May 01, 2002, 03:30:17 PM

Lol I put all the changes in and yet no calendar button on my min screen so I check the mod settings file and when I try to enable the calendar all goes well cept it doesnt enable.. I checked to see if other settings were being saved and they are its just this one any clue?


Well.. You forgot to upload index.php :D
Title: Re:[Beta] Calendar Mod
Post by: Koth on May 01, 2002, 03:32:36 PM


Well.. You forgot to upload index.php :D


Ack a school boy mistake :'(  I feel so empty and void inside.

Thanks for answering I am gonna go feel dumb in a corner now.  hehehe
Title: Re:[Beta] Calendar Mod
Post by: Koth on May 01, 2002, 03:36:33 PM
although that still didnt help :(

Though I feel better knowing that even with that show of forgetfullness and moment of scatterbrainology im still sc*wed up lol I think ???
Title: Re:[Beta] Calendar Mod
Post by: Webby on May 01, 2002, 03:41:51 PM
Nice, that little add-on  ;D
Title: Re:[Beta] Calendar Mod
Post by: vorapoap (vory) on May 01, 2002, 03:47:04 PM

although that still didnt help :(

Though I feel better knowing that even with that show of forgetfullness and moment of scatterbrainology im still sc*wed up lol I think ???


It should work.. Did you forget any other files??? You should get the calendar.gif on the menu.
Title: Re:[Beta] Calendar Mod
Post by: Koth on May 01, 2002, 03:49:12 PM
I applied the mod by hand (as oppose to board mod which I dont like I used find and replace in Cute ftp pro)

I uploaded index.php and Calendar.php (calendar initially to sources and then to the root aswell just incase)

and the gifs ;)
Title: Re:[Beta] Calendar Mod
Post by: vorapoap (vory) on May 01, 2002, 03:52:30 PM
I uploaded index.php and Calendar.php (calendar initially to sources and then to the root aswell just incase)
and the gifs ;)

Well.... Did you notice .MOD carefully?.. It modified many files.. not just index.php... And do you get the menu anyway?
Title: Re:[Beta] Calendar Mod
Post by: Koth on May 01, 2002, 03:53:37 PM
YEah I mod the files while they are on my Site and just download backups.

So I go through the mod and just save the changes to each file if I mess up I just upload my backups and start again.
Title: Re:[Beta] Calendar Mod
Post by: vorapoap (vory) on May 01, 2002, 03:54:22 PM
Do you get any new buttons?...
Title: Re:[Beta] Calendar Mod
Post by: vorapoap (vory) on May 01, 2002, 03:57:22 PM
I think I know now.. Since u modified online.. You have to modify index.php online, too.. please check the mod.. it changes something in ./index.php ... so it does nothing if you upload the old index.php...

and don't forget to create/alter table and insert new data as mentioned in readme file.
Title: Re:[Beta] Calendar Mod
Post by: Koth on May 01, 2002, 03:57:40 PM
you mean from other mods? yeah I got the moods mod working fine on here and the improved stats work.
Title: Re:[Beta] Calendar Mod
Post by: vorapoap (vory) on May 01, 2002, 04:00:15 PM
Please read my previous message... you don't get the enw calendar button because your index.php is not yed modified.. it should be the only reason.
Title: Re:[Beta] Calendar Mod
Post by: Koth on May 01, 2002, 04:14:36 PM
Wow Thanks man I appreciate you being so patient its there now gonna play I sure hope the members appreciate this thanks again. :D
Title: Re:[Beta] Calendar Mod
Post by: vorapoap (vory) on May 01, 2002, 04:26:11 PM
Nevermind :D Please try CalendarA Mod.. and give me some feedback :)
Title: Re:[Beta] Calendar Mod
Post by: opus on May 01, 2002, 05:06:38 PM
Great job Aaron!  I have been looking for something like this for a while for my site.  I had not even thought about making it a part of the board.  

It works great but I would like to see one enhancement.  I would love to add holidays without having to have a message attached.  If there is already a way and I have not seen it please let me know.

Thanks!

Scott   ;D
Title: Re:[Beta] Calendar Mod
Post by: Myiasis on May 01, 2002, 05:34:58 PM

Great job Aaron!  I have been looking for something like this for a while for my site.  I had not even thought about making it a part of the board.  

It works great but I would like to see one enhancement.  I would love to add holidays without having to have a message attached.  If there is already a way and I have not seen it please let me know.

Thanks!

Scott   ;D


Hrm, that's a good idea, I wouldn't mind seeing that either. I'd be really simple to add, but some sucker would need to provide a list of holidays. I'll add that with some of the more prominent holidays. The holidays might be slighly american biased.

What I'll probably do is add another table: <prefix>calendar_holiday and you can just add/remove rows from that table to make them show on the calendar.

Will be easy to patch in if you are already running the calendar, just a few changes to Calendar.php.

That's actually only gonna work for fixed holidays. Some of them float around... Easter? I think that's one of them. I'm not sure how to represent those.

I can do something like if you enter a holiday and only provide a month and a day (no year) it will assume that holiday always happens on the same date. If you enter a year along with it, it will only display for that specific year, but you'd have to add the holidays by hand each year to make them show up, or preload the table with a few years worth of data for those particular holidays.

Any thoughts on floating holidays?
Title: Re:[cosmetic] Calendar Mod
Post by: Myiasis on May 01, 2002, 05:58:27 PM

Do you like that yellow color for today date?.. No I don't.. Let change the whole box's color.!  :)


Was thinking about changing that too. Not exactly like what you did, but something similar. Like vBulletin actually was what I was thinking.

I saw you pulled out all of the prompts. That was another thing on my todo list that's coming in the next version.
Title: Re:[cosmetic] Calendar Mod
Post by: vorapoap (vory) on May 01, 2002, 07:10:05 PM
Quote
[quote author=Myiasis link=board=158;threadid=7623;start=30#45079
Was thinking about changing that too. Not exactly like what you did, but something similar. Like vBulletin actually was what I was thinking.

I saw you pulled out all of the prompts. That was another thing on my todo list that's coming in the next version.


It would be my great pleasure, if you want to continue from my work. I don't want any credit for it at all. Because it has been your work anyway. I just want to contribute something that I can do. We need a standard for language file...I think. :)
Title: Re:[Beta] Calendar Mod
Post by: Myiasis on May 02, 2002, 12:06:20 AM
I put up version 1.1 of the Calendar mod. The updated version is available at the same link: Calendar Mod (http://www.mud-master.com/Download/CalendarMod.zip)

There are instructions in the Readme.txt on how to update from version 1.0 to 1.1. There isn't that much to do: Replace Calendar.php, couple changes to ModSettings.php, add the prompts to <language>.lng and the database changes.

Changes:

Added a title to the calendar so it won't show up as the URL in the browser's title bar.

Changed the way the Current Day is displayed. Does it like vBulletin does it. This looks differnet in all the browsers. Looks good in IE, looks sorta right in Netscape, but the colors are a little dark. In Opera it appears as a black outline around the day.

Removed all the prompts from the source and placed in language file.

Added some color selections to the Mod Settings screen.

Added holidays. There are a bunch of sample holidays in the Readme.txt file. By default there is no prompt in the calendar for the holidays (like "Events:" or "Birthdays:"), but if you want one, you can add it in the <language>.lng file (there's a comment in the .lng file).

Used vorapoap's idea to use short month names in the Prev/next links.
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 02, 2002, 02:58:12 AM
I'm not sure if I had uploaded the right zip file. If you downloaded the 1.1 ver mod before this message was posted, you might want to grab it again. I think uploaded the original one rather than 1.1. I redownloaded this one and am reasonably sure it's the right now now. :)

Aaron
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: vorapoap (vory) on May 02, 2002, 04:11:06 AM
Very nice :D!
So I won't update CalendarA la.. hee hee :D

Do you have an idea for lunar-high and low?.. Many Asian holidays are according to this. If you don't have a plan .. I will make a permament mod from yours....
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 02, 2002, 05:25:25 AM

Very nice :D!
So I won't update CalendarA la.. hee hee :D

Do you have an idea for lunar-high and low?.. Many Asian holidays are according to this. If you don't have a plan .. I will make a permament mod from yours....


How do you mean, like phases of the moon? Can you describe a little bit about what you want to see and how you envision going about it and to what use you would apply it? All that will help me understand the problem so I can think about what would need to be done.
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: vorapoap (vory) on May 02, 2002, 05:52:03 AM
How do you mean, like phases of the moon? Can you describe a little bit about what you want to see and how you envision going about it and to what use you would apply it? All that will help me understand the problem so I can think about what would need to be done.

I don't know what you call in English.. the moon has 15 phases when it becomes full moon..then another 15 phases for it to become invisible.. and so on and so on..  it also benefits those who want to go surfing or something....

Anyway.... soon, somebody will begin to request for graphic icon for an event :D... I think you have this feature in your mind already.
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 02, 2002, 06:43:47 AM
That might be kind of amusing to do. :)  I'll see if I can come up with a moon phase indicator.
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: vorapoap_clone on May 02, 2002, 08:34:22 AM

That might be kind of amusing to do. :)  I'll see if I can come up with a moon phase indicator.


It is alright if you don't want to do it.. I think.. half of Asian's holidays depends on full moon.. huh.. so strange??? You can tell me if you are not interested... So I can make a mod from your mod na.
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 02, 2002, 09:38:03 AM
Do you have a somewhat simple formula for calculating the moon phase? I tried to do it based on the Synodic cycle length but that doesn't appear to be accurate enough -- or I'm doing something wrong. I found some java code that will do it, but it's not even close to "simple".
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: vorapoap (vory) on May 02, 2002, 12:31:47 PM
http://www.simplythebest.net/info/javascript82.html

I am trying to change it to php.. but I think php has a problem with big integer... the result is incorrect :(

Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: opus on May 02, 2002, 12:35:44 PM
 ;D  :D


Thank you!  I can't believe you made the holiday change so quickly.   I guess I am just used to slow developers.

It works great!


Scott
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Delinquently insane on May 02, 2002, 12:39:23 PM
Interesting Find ..I Looked At The Code And From My Javascript Knowledge It Doesnt Look To Complicated To Do.. Just A Couple Variable Adjustments should do the trick.. about it being accurate dont know about that one but ill toy around with it and see what i come up with  :)
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: vorapoap (vory) on May 02, 2002, 12:49:16 PM
Code: [Select]

<?// Written by James Thiele jet@eskimo.com http://www.eskimo.com/~jet/javascript/moonphase
// Permission granted to SimplytheBest.net to feature script in its
// DHTML script collection at http://simplythebest.net/info/dhtml_scripts.html

function MoonPhase($day, $month, $year) {
   $currentDate = mktime(0, 0, 0, $month, $day, $year);
   $blueMoonDate = mktime(16, 15, 0, 2, 3, 1996);
   // Compute length of lunar period -- source: World Almanac
   //$today = date("F j, Y, g:i a",$currentDate);  
   //$currentDate=1020356811408;
   //$blueMoonDate=823364100000;
   print "$today<br>";
   print "CD:$currentDate<br>BD:$blueMoonDate<br>";
   
   $lunarPeriod  = 29*(24*3600*1000) + 12*(3600*1000) + 44.05*(60*1000);
   print "LD:$lunarPeriod <br>";
   $moonPhaseTime = ($currentDate - $blueMoonDate) % $lunarPeriod;
   print "MT:$moonPhaseTime <br>";
   // Compute various percentages of lunar cycle
   //$percentRaw = (moonPhaseTime / lunarPeriod);
   // alert("% = "+percentRaw);
   //$percent = round(100 * percentRaw) / 100;
   // alert("% = "+percent)
   $nextFullmoon = round( ($lunarPeriod-$moonPhaseTime)/(24*3600*1000) );
   return $nextFullmoon;
}

print '<H1>'.MoonPhase(2,5,2002).'</H1>';

?>


The floating value is wrong.. :( The final result should be 23.. means 23 days to full moon. but it is 33
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 02, 2002, 12:50:48 PM
;D  :D


Thank you!  I can't believe you made the holiday change so quickly.   I guess I am just used to slow developers.


You are welcome.  I had some free time and was interested in doing that once it was mentioned. Took me longer to find those 9 years worth of data for the floating holidays than it did to make the coding changes I think. :P
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: azard on May 03, 2002, 06:58:21 AM
please help me i don't see calendar buttons
but i 've changed all files and upload gif into images directory
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: vorapoap (vory) on May 03, 2002, 07:49:13 AM

please help me i don't see calendar buttons
but i 've changed all files and upload gif into images directory


Hee Hee you are one more person who forgot to upload index.php in ./ not ./Sources. :D
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: azard on May 03, 2002, 08:09:02 AM
sorry i don't made this mistake

i upload index.php in ./
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 03, 2002, 12:53:28 PM

please help me i don't see calendar buttons
but i 've changed all files and upload gif into images directory


Did you turn it on? If you insterted the rows into the settings table 'as-is' from the Readme.txt it will be off by default. Go into the Admin|Mod Settings screen and enable it.
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: lenaP on May 03, 2002, 05:29:52 PM
I have a tiny... or not so very tiny problem with the calendar mod.

I've just installed it, it shows up fine, the menu button shows up, it found availible birthdays and show them as expected. I haven't inserted any holydays in the database yet, because they differ quite a lot from the ones in Sweden, so of course the calendar don't show any holidays.

The problem is that I can't add any events! Iv'e tried several times, and I've checked the setting over and over, but I just can't find out where the problem is, they just wont show up. Since no one else seems to have had that problem, I wonder if it is because of the missing holidays after all?

Oh, by the way, I haven't modified any files more than with this mod, I did set up the entire board today...

Some time later... Now I have inserted the fixed holidays. No difference. And I have checked the database table named calendar, my added event is there, but it still doesn't show up in the calendar... :(

Please, can anyone help me out here?
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: azard on May 03, 2002, 05:55:09 PM


Did you turn it on? If you insterted the rows into the settings table 'as-is' from the Readme.txt it will be off by default. Go into the Admin|Mod Settings screen and enable it.


Thanks so much i ve forgot it
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Ironman on May 03, 2002, 06:09:39 PM
Anyone interested on the german buttons for that awesome mod? Downlad here. (http://www.barbetex.de/mario/yabbse/manuals/Calendarpicsger.zip)

And here is the Translation for the german.lng:
Code: [Select]
// Calendar.
$txt['calendar1']  = "Ungültiger Monat.";
$txt['calendar2']  = "Ungültiges Jahr.";
$txt['calendar3']  = "Geburtstage:";
$txt['calendar4']  = "Events:";
$txt['calendar5']  = "";  // Prompt for holidays in the calendar, leave blank to just display the holiday's name.
$txt['calendar6']  = "Sie haben nicht die Berechtigung Events zu posten.";
$txt['calendar7']  = "Event Monat fehlt.";
$txt['calendar8']  = "Event Jahr fehlt.";
$txt['calendar9']  = "Monat:";
$txt['calendar10'] = "Jahr:";
$txt['calendar11'] = "Tag:";
$txt['calendar12'] = "Event Name:";
$txt['calendar13'] = "Posten in:";
$txt['calendar14'] = "Event Tag fehlt.";
$txt['calendar15'] = "Event Name fehlt.";
$txt['calendar16'] = "Ungültiges Datum.";
$txt['calendar17'] = "Kein Event Name eingegeben.";
$txt['calendar18'] = "Event ID fehlt.";
$txt['calendar19'] = "Sie haben nicht die Berechtigung diesen Event zu bearbeiten.";
$txt['calendar20'] = "Event bearbeiten";
$txt['calendar21'] = "Diesen Event löschen?";
$txt['calendar22'] = "Event löschen";
$txt['calendar23'] = "Event posten";
$txt['calendar24'] = "Kalender";
$txt['calendar25'] = "Aktiviert";
$txt['calendar26'] = "Minimum Jahr";
$txt['calendar27'] = "Maximum Jahr";
$txt['calendar28'] = "Farbe aktueller Tag";
$txt['calendar29'] = "Geburtstagsfarbe";
$txt['calendar30'] = "Eventfarbe";
$txt['calendar31'] = "Feiertagsfarbe";
$txt['calendar32'] = "Eventposting auf bestimmte Membergruppen beschränken";

Bitteschön... ;)
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: vorapoap (vory) on May 03, 2002, 06:14:30 PM
Ha  :-[ I have a good button for calendar in Thai language.. but I don't think anybody is interested :P
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Cutter on May 03, 2002, 10:39:03 PM
Excellent mod Myiasis!

I've been using a seperate calendar for my site, but this is much better. IMHO all message boards should have an integrated calendar of some sort. *hint, hint*  ;D

My forums members and I thank you...  :)
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: lenaP on May 04, 2002, 02:09:50 AM


Please, can anyone help me out here?


Please, pleeeeeease?  :'( :-* :'(
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 04, 2002, 03:05:13 AM

I have a tiny... or not so very tiny problem with the calendar mod.

I've just installed it, it shows up fine, the menu button shows up, it found availible birthdays and show them as expected. I haven't inserted any holydays in the database yet, because they differ quite a lot from the ones in Sweden, so of course the calendar don't show any holidays.


Some time later... Now I have inserted the fixed holidays. No difference. And I have checked the database table named calendar, my added event is there, but it still doesn't show up in the calendar... :(


Do you have an error log? Check that to see if there are any PHP or MySql errors happening.

Check the obvious things just in case... You are viewing the same year as the entered event? The month value you see in the calendar table is actually one less than the real month number (0=jan), if you are comparing against the database make sure you are displaying the right month. You are trying to view the event with the same account that created the event? If you are using two accounts to try it out, make sure the event is in a board the viewing account has access to.

What type of account are you testing the board with? An admin account or a regular user account?
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 04, 2002, 03:11:36 AM

Excellent mod Myiasis!

I've been using a seperate calendar for my site, but this is much better. IMHO all message boards should have an integrated calendar of some sort. *hint, hint*  ;D

My forums members and I thank you...  :)


You're welcome, glad you like it. :)
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: lenaP on May 04, 2002, 10:51:04 AM
Quote
Do you have an error log? Check that to see if there are any PHP or MySql errors happening.
No, I haven't. Not that I know about... I don't get any regular error messages, and when I created the tables (I used MyPHPAdmin, copy-pasting directly from the readme) there were no error reports or warnings.

I've checked everything you mentioned, at least twice. And I am testing as admin and posted the event in a board open for all membergroups...

The only thing I can think of now is that I dropped something when I did the modifying... I did it by hand, so it is possible, I guess.

So if no one have any suggestions, I guess I'll better try start from the beginning again...  :'(
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: £eo on May 04, 2002, 11:14:14 AM
First of all,  big thanks for this mod,  its perfect for us   ;D
We will get much use for it...  ;D  

Just one thing I could have changed, it's that calender events are visible to all,  but the links just work for the right groups,,

Lena,  I enter somthing on the wrong side of the { tonight, I thin it was in the Subs.php  and the calender would not show my events, but still dont give any errors,, it might be the same with you,,,  If you want you can have my files, and try them,,  they are only modifed with the calender mod..
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: lenaP on May 04, 2002, 11:24:12 AM
Oh, thanks! You'll get my email in a IM right now...  :D
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: lenaP on May 04, 2002, 02:52:03 PM
Thanks to £eo, who mailed me his modifyed files!

But i did a last check in the database before i uploaded them, and what did I found...
"year" in the calendar table was set to TINYINT, so the maximum value for year was 127... :o
I haven't got a clue how this happend, I'm just happy the problem is solved! :D :D

Thanks again, £eo, for your helpfulness!
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: £eo on May 04, 2002, 04:00:42 PM
 ;)
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 04, 2002, 05:18:46 PM

Just one thing I could have changed, it's that calender events are visible to all,  but the links just work for the right groups,,


The event links are only visible to groups who have access to the message. Post a message to a board that only allows specific groups to view it. Then logout and browse the calendar as a guest, or another member account that doesn't have that group access, the calendar event will not show up.
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: £eo on May 05, 2002, 01:45:54 AM
 ;)   sorry  bad english,,,  what I want to say is that I would like to have all events visible to all,,,    even when its posted in an restricted board..
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 05, 2002, 02:10:12 AM

;)   sorry  bad english,,,  what I want to say is that I would like to have all events visible to all,,,    even when its posted in an restricted board..


Well, if you want to do it to your board, it's really easy to do. That's probably not something I'll implement since if the users can't read them anyway (and will get a board error), I'd rather not have them displayed. You could change your version to show them all the time though.

Find the comment: // See if the user has access to the board this event was posted in.

Beneath that is the if statement that decides whether to show the user the event.  You can just comment out the if by putting "//" (without the quotes) in front of it:

Code: [Select]
//if ($cats[$row['id_cat']][0] == "" || $bPowerUser || in_array($settings[7],$cats[$row['id_cat']]))


Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: dwp on May 05, 2002, 07:47:17 AM
I can not see button, and it's not work?
Do I have to change anything in MySQL, mean is this a must or not?

No errors in log, and did this by editing all files manually.
All files is uploaded as instruction says...why is this not work. I have activated calendar, next time when going to setup it's not activated...where to find the error?

???
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 05, 2002, 08:36:51 AM

I can not see button, and it's not work?
Do I have to change anything in MySQL, mean is this a must or not?

No errors in log, and did this by editing all files manually.
All files is uploaded as instruction says...why is this not work. I have activated calendar, next time when going to setup it's not activated...where to find the error?


Did you read the Readme.txt? It's fairly important to do so. Yes, there are SQL changes, they are in the readme.
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: The Engineer on May 05, 2002, 12:57:12 PM
I would like to make it so only members can post. I do not want guests to post.

any ideas ?

/me .
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: Myiasis on May 05, 2002, 07:11:27 PM

I would like to make it so only members can post. I do not want guests to post.

any ideas ?

/me .



Do you mean just as long as they have a login name you want them to be able to post? I could probably add a switch for that in the settings to allow anybody with a valid login to post regardless of the group assignments.
Title: Re:[Beta] Calendar Mod [New Ver 1.1]
Post by: The Engineer on May 05, 2002, 07:56:39 PM

Do you mean just as long as they have a login name you want them to be able to post? I could probably add a switch for that in the settings to allow anybody with a valid login to post regardless of the group assignments.


Yes, that way every member can post but guests can only read events

/me .
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 05, 2002, 10:25:29 PM
I put up version 1.2.

There are some instructions in the Readme.txt on what you need to do to upgrade to 1.2.

The only change is the ability to allow all registered members to post an event. There is a new checkbox in the Mod Settings screen to control this.

I fixed a bug with the member groups allowed to post too. If you left this blank it would allow everybody to post including guests.
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: vorapoap (vory) on May 06, 2002, 06:57:29 AM
Are you still up to Moon Phase thingy?
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 06, 2002, 07:07:11 AM

Are you still up to Moon Phase thingy?


Oh no sorry, I kinda of abandoned that without a reliable way to calculate the moon phases.

Sorry, I should have mentioned that to you.

I got tired of trying to find an reliable way to do it. All the formulae I found never quite worked the same for me as it appeared to for others.
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: The Engineer on May 06, 2002, 07:35:23 AM

I put up version 1.2.

There are some instructions in the Readme.txt on what you need to do to upgrade to 1.2.

The only change is the ability to allow all registered members to post an event. There is a new checkbox in the Mod Settings screen to control this.

I fixed a bug with the member groups allowed to post too. If you left this blank it would allow everybody to post including guests.



Works perfect  :) thanks..

/me .
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: vorapoap (vory) on May 06, 2002, 08:45:56 AM

I got tired of trying to find an reliable way to do it. All the formulae I found never quite worked the same for me as it appeared to for others.


Ok I will try to make it possible
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: kaposvar on May 06, 2002, 09:31:23 AM
Hi,

I installed the mod and all appears to be working, however the holidays show up 3 times.  I have double checked the _holidays table and they are only listed once.  I then deleted one (cinco de mayo) to see if it removed it from the calendar, it didn't.  Does the calendar post these holidays into another table?  Any clues.

Thanks,
Kap
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 06, 2002, 09:42:35 AM
No, the holidays only exist in that one table. How many rows are in your calendar_holiday table? If you inserted just the data I supplied should be 94.

I can't imagine how you would get duplicate holidays for the fixed holidays like Cinco de Mayo unless it were in the table more than once.

For the floating holidays if they have the same year in the table they will show up more than once. Another user had a problem with the year showing up as a tinyint in one of the tables. Maybe double check to be sure the year is not a tinyint in the _holiday table -- should be a smallint.

If you deleted it and it is still showing up, again I'd have to suspect they are in the table more than one time. The calendar gets the holidays out of that table and only out of that table. There is no holiday code in the calendar other than the reading of rows from that table. Are you sure you refreshed the browser after deleting the row? Maybe it was cached? Do a Ctrl+R on the page to be sure.

I guess to be sure you could always just delete all the rows from the table: delete * from calendar_holiday and then select * from calendar_holiday just to be sure it's empty. Then try viewing the calendar to make sure there are not any holidays showing up. Then go and redo the inserts from the Readme.txt to put all the data back.

Or even start simpler. Just do one insert, like the Cinco de Mayo holiday, and then verify on the calendar that you only have it one time.
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: The Engineer on May 06, 2002, 12:08:10 PM
If you are looking for more features to add to this, how about the ability to span multiable dates with one event.

/me .
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: PHX on May 06, 2002, 12:12:22 PM
i hasd troubles with the mod , i couldn change thing in the adm panel so i didi it on the tb , result calendar is working but i cant post :(  is like teh calendar cant write on the db... i need help please
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 06, 2002, 12:37:09 PM

i hasd troubles with the mod , i couldn change thing in the adm panel so i didi it on the tb , result calendar is working but i cant post :(  is like teh calendar cant write on the db... i need help please


Check your error logs to see if it is putting out any messages. If your changes are not sticking in the Mod Settings you probably didn't insert the variables for it... or are missing some of the changes to ModSettings.php.

How do you mean you can't post? Be as specific as possible. Do you get an error somewhere? Do the "Post Event" buttons not show up? Or does it all work including the posting of the message but the events just don't appear for you? Check the <prefix>calendar table and see if the entries are making it into the table. Check the definition of the table to make sure it matches what is in the Readme.txt file.

Did you follow all the instructions in the Readme.txt file? There are a bunch of database things to do there. If any are missing, except for the holiday inserts, the calendar will not work properly.
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 06, 2002, 12:41:01 PM

If you are looking for more features to add to this, how about the ability to span multiable dates with one event.

/me .



That's an interesting idea. Lemme ponder that one for a bit. I would expect you mean consecutive days in the date range? So maybe when you enter an event an option to pick the number of days to span the event would cover it?
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: The Engineer on May 06, 2002, 12:49:28 PM

That's an interesting idea. Lemme ponder that one for a bit. I would expect you mean consecutive days in the date range? So maybe when you enter an event an option to pick the number of days to span the event would cover it?


Yes, that what I was thinking
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: PHX on May 06, 2002, 12:57:56 PM

Check your error logs to see if it is putting out any messages. If your changes are not sticking in the Mod Settings you probably didn't insert the variables for it... or are missing some of the changes to ModSettings.php.

How do you mean you can't post? Be as specific as possible. Do you get an error somewhere? Do the "Post Event" buttons not show up? Or does it all work including the posting of the message but the events just don't appear for you? Check the <prefix>calendar table and see if the entries are making it into the table. Check the definition of the table to make sure it matches what is in the Readme.txt file.

Did you follow all the instructions in the Readme.txt file? There are a bunch of database things to do there. If any are missing, except for the holiday inserts, the calendar will not work properly.


mm iwhen i post an event i tpoost the topic but not the event on teh celendar :(

i will try to reinstall callendar mod again from scratch my prefix is yabbse_
so the variables and tables r yabbse_XXXxx
is that rigth?
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 06, 2002, 01:09:48 PM

mm iwhen i post an event i tpoost the topic but not the event on teh celendar :(

i will try to reinstall callendar mod again from scratch my prefix is yabbse_
so the variables and tables r yabbse_XXXxx
is that rigth?


Yes if you are using "yabbse_" for a prefix all of the table names should have that in front. The easiest solution to that is to do a Search and Replace on the Readme.txt file. Replace all of the "<prefix>" with "yabbse_" and all of the database statements should just work.

Did you check your errors logs? That is really the best place to start before trying to install it again.
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: lenaP on May 06, 2002, 01:35:32 PM
The calendar works with my forum now, it's really great!
I have translated it to Swedish now, and with swedish holidays, if anyone is interested? Even the buttons are translated, thanks to a friend of mine.

If I could make a wish, I would like the possibilty to highlight really important events. Mayby it should work best if only admin and moderators were allowed to do so, otherwise it's possible that every event goes highlighted... ;)
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: tore- on May 06, 2002, 01:51:06 PM
i cant se why everyone like boardmod so much, since you have to download your forum, then modifi it, and then upload again
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 06, 2002, 05:20:52 PM

i cant se why everyone like boardmod so much, since you have to download your forum, then modifi it, and then upload again


Or you could just keep a copy of your board on your local computer for a backup. It's not a good idea to trust in your ISP to provide backups of your site. Keep it on your local computer, make the changes and upload the changed files. If something goes wrong and your ISP loses data, you still have your backup copy, or if you get hacked, etc... If you don't have a local copy of all your changes already, you probably should...
Title: request for additional features
Post by: GauGau on May 07, 2002, 03:14:33 AM
Hi all,

I've been waiting for this mod very long, great work!
For future releases I have some additional features on my wishlist:


For more ideas on additional features, see http://webcalendar.sourceforge.net/
(I played with it on my site a little: gaugau.de/webcalendar/ (http://gaugau.de/webcalendar/)

GauGau

Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: PHX on May 07, 2002, 07:53:28 PM


mm iwhen i post an event i tpoost the topic but not the event on teh celendar :(

i will try to reinstall callendar mod again from scratch my prefix is yabbse_
so the variables and tables r yabbse_XXXxx
is that rigth?


Yes if you are using "yabbse_" for a prefix all of the table names should have that in front. The easiest solution to that is to do a Search and Replace on the Readme.txt file. Replace all of the "<prefix>" with "yabbse_" and all of the database statements should just work.

Did you check your errors logs? That is really the best place to start before trying to install it again.


Well i installed it from scratch and it is working , now im trying to place an image abobe the calendar a picture for each mont and year like $month$year.jpg  can u tell me the variables of year , month in calendar.php that i could use??
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 07, 2002, 08:12:30 PM
Quote
Well i installed it from scratch and it is working , now im trying to place an image abobe the calendar a picture for each mont and year like $month$year.jpg  can u tell me the variables of year , month in calendar.php that i could use??


Those are the correct variable names. The same names are used as form elements so they are available like that in any of the functions.

You'll want to put that code in ShowCalendar and make sure you put it below the month/year validation code. $month starts at 0 (zero=january).
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 07, 2002, 08:18:19 PM

If I could make a wish, I would like the possibilty to highlight really important events. Mayby it should work best if only admin and moderators were allowed to do so, otherwise it's possible that every event goes highlighted... ;)


I'm not HTML expert. I don't know how, or if, you can make a particular URL on a page stand out from the rest of the URLs. If it can be done and is fairly simple and somebody wants to let me in on the secret I could maybe add the ability to highlight specific events on the Post/Edit forms.
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 07, 2002, 08:30:00 PM
I'm working on a few other things that I might have out a little bit later tonight.

Start week on Monday -- Done, as option.
Days as URLs to Post -- Done, as option.
Default board for posting -- Done.

In progress:
Being able to turn an existing message into an event. I have users on my board that forget they need to start with the event too. Like suggested, this will be available the admins/global mods and probably any moderators of that particular board. It will probably be a button on the message itself -- I really don't like messing with the board code, other than those few hooks I put in, but in this case it seems the most appropriate place to put it.

Still thinking about making the events span multiple dates. There are a few ways to implement something like that and I'm trying to come up with the most efficient way. The easiest and least prone to error is for every day the event occurrs on just put another entry in the calendar table. It's not as easy as just adding a number of days field because the event could actually span a month- or a year-boundary and make selecting the data to find if any are in effect could be tricky (eg post on the 30th and give it a 5 day span). As long as you don't get carried away when entering an event this method could work. If you have a member that decides it would be funny to make an event span 3000 days it might not be the best option. :) I suppose I could make another option that set a limit to the number of days allowed to span for an event... Anyway, still thinking, not sure if I'll have this one tonight or not.
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: PHX on May 07, 2002, 08:35:07 PM
ADDON FOR CALENDAR
Image addon
Code: [Select]
Find :
   print "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" class=\"bordercolor\">";
   print "<tr><td>";

Add after:

        print '<p align="center"><img src="http://www.Your dir/'.$monthp1.$year.'.jpg" border="0"></p>';

Images for each moth should be : 52002.jpg  may of 2002 , etc.

See it at:
http://www.phyrexia.cl/foro/index.php?action=calendar

Pretty nice for my first code :)

Also i wana ask how can i put monday first?
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 07, 2002, 08:37:43 PM

Also i wana ask how can i put monday first?


That's an option in the next version (1.3). Maybe later tonight that one will be available.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 08, 2002, 02:49:46 AM
New version is up.

Added ability to start the week with Monday rather than Sunday.

Added a Default Board to Post In, which when posting an event just selects that board. This is only going to work if you pick a Default Board that everybody can see. If you pick on that a user cannot see it won't hurt anything, they just won't have it selected since it isn't an option for them.

Added an option to change the days of the month into URLs to the Post Event form. When using the day-url the day of the month will automatically be filled in. Other than that it does the same thing as hitting the Post Event button.

You 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.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: lenaP on May 08, 2002, 04:32:16 AM
Great! I just wonder... is this what is in the zipfil that is linked from the first post in this thread now?
If so, isn't it a good idea to rename the file with 1.3 at the end? Isn't that the ordinary way?

It's a bit confusing to a newbie like me...

Well, I'll try with the file there, and see what is happening  8)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 08, 2002, 05:38:31 AM
Great! I just wonder... is this what is in the zipfil that is linked from the first post in this thread now?
If so, isn't it a good idea to rename the file with 1.3 at the end? Isn't that the ordinary way?

It's a bit confusing to a newbie like me...

Well, I'll try with the file there, and see what is happening  8)

Yes, it's the same as the link in the original post. It comes down to me doing what takes the least amount of effort usually. :) If I just leave the filename the same I don't have to worry about anything -- I just replace the file on my site.

I'll start changing the text of the link in that original message now though -- instead of just changing the post's title. I'll probably leave the filename the same (cuz I'm lazy) but at least the link will indicate 1.3. ;)
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: Myiasis on May 08, 2002, 05:50:13 AM

If you are looking for more features to add to this, how about the ability to span multiable dates with one event.


I didn't get this in yet because I'm still not sure how I want to implement it. However, with the feature to create an event based off an already existing message, you can link the same message to multiple days on the calendar. It's not as easy as just entering the span, but you can do this to get by until I get something in if you need it.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: lenaP on May 08, 2002, 06:37:24 AM
I'm just done with my upgrade to 1.3 and it's really nice! :)

And now I come to think of another little thing (guess this will never stop ;))... In Sweden we use weeknumbers a lot, it's really a standard here, but I don't know how other countries do?

If we Swedes stands alone with this, I guess it's to much to ask for, but if it's a common thing, then maybe?

Anyway, you've done a great job!
Title: Re:[Beta] Calendar Mod [New Ver 1.2]
Post by: The Engineer on May 08, 2002, 06:59:53 AM

I didn't get this in yet because I'm still not sure how I want to implement it. However, with the feature to create an event based off an already existing message, you can link the same message to multiple days on the calendar. It's not as easy as just entering the span, but you can do this to get by until I get something in if you need it.


Yes, I was going to mention this. Works great, keep up the good work  ;)

/me .
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: PHX on May 08, 2002, 08:07:39 PM
I made another mod , this time is for put an image on each day , like teh image from the guy who is of birthday or any other picture :)

screenshot
(http://www.phyrexia.cl/cal/mod2.jpg)

Code: [Select]

Modiffy Calendar.php

search-----
   global $ID_MEMBER, $txt, $yytitle, $mbname;
replace------
   global $ID_MEMBER, $txt, $yytitle, $mbname, $dia;

search-----
      print "<td class=\"windowbg\" width=\"14%\" align=\"center\">$day</td>";
   }
   print "</tr>";
add after-----
$dia=1;
$dia=($nRow*7)+$nCol-$nShift+1;
search-----
         print "<td class=\"windowbg\" valign=\"top\" height=\"100\">";

replace--
         print "<td class=\"windowbg\" valign=\"top\" height=\"100\"".'background="http://www.domain.com/'.$dia.$monthp1.$year.'.jpg">';



The pics are daymonthyear.jpg like 852002.jpg for today


Hope u enjoy my second mod :)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Hypocrite on May 10, 2002, 05:15:48 AM
Is there an estimate when the final version of this mod will be out? I would like to install the mod when its done and not install the beta version :)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 10, 2002, 06:07:18 AM

Is there an estimate when the final version of this mod will be out? I would like to install the mod when its done and not install the beta version :)


I'm not really sure.  The only thing I really have left on my "todo" list is to let you post events that span multiple days, but that you can even do currently by linking existing messages to new calendar events.

There aren't any bugs in it that I'm aware of if you want to give it a shot. I haven't had any reports of bugs from the first version, although I did find one while doing some other stuff. If you are just worried about the stability of it I don't think there is reason for concern.

I mostly just called it beta to start with because I was the only person who had tested it at that point. I'd been running it on my site for several weeks prior to that without mishap.

That's not to say there aren't any bugs, just none that have been brought to my attention. ;)

As for upgrading to the different versions I try to keep that as detailed as possible in the readme file listing the steps you need to take to go from one version to the next. The .mod file has comments of what has been added from the various versions to make life a little easier when updating.

I'm not sure when I'll get to the making of the events span multiple days. I haven't had a lot of free time lately and since there is a viable work around for doing that it hasn't been a real high concern. I will get it in, but it may be a 3 or 4 days before I get the time to take care of it.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Ironman on May 11, 2002, 12:08:23 PM
Hey, I just installed the Smiley Mod on my BOARD (http://www.mario472.de).
Before Installation it was a Fresh Board.
After I installed the Smiley Thing, I installed the calendar mod with Board ModSE and there came up no problems.

My Result: Yo can combinate those 2 Mods wonderful.  ;)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Webby on May 11, 2002, 12:58:08 PM

I made another mod , this time is for put an image on each day , like teh image from the guy who is of birthday or any other picture :)

screenshot
(http://www.phyrexia.cl/cal/mod2.jpg)

Code: [Select]

Modiffy Calendar.php

search-----
   global $ID_MEMBER, $txt, $yytitle, $mbname;
replace------
   global $ID_MEMBER, $txt, $yytitle, $mbname, $dia;

search-----
      print "<td class=\"windowbg\" width=\"14%\" align=\"center\">$day</td>";
   }
   print "</tr>";
add after-----
$dia=1;
$dia=($nRow*7)+$nCol-$nShift+1;
search-----
         print "<td class=\"windowbg\" valign=\"top\" height=\"100\">";

replace--
         print "<td class=\"windowbg\" valign=\"top\" height=\"100\"".'background="http://www.domain.com/'.$dia.$monthp1.$year.'.jpg">';



The pics are daymonthyear.jpg like 852002.jpg for today


Hope u enjoy my second mod :)


Tried this, but the strings are not from the latest Calendar.php I guess....they are different......so what to do ?!
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: BloodThirsty229 on May 11, 2002, 01:12:10 PM
I tried installing Calendar mod but it won't show up at all. I did everything that had to be done in MySQL. I guess I must of done something wrong. Is there suppose to be options in the settings? because if so then I must of screwed up because it isn't there. I also have the Add Smilies Mod and the Global Moderator Centre mod installed, could those be causing the problem?
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 11, 2002, 01:39:57 PM

I tried installing Calendar mod but it won't show up at all. I did everything that had to be done in MySQL. I guess I must of done something wrong. Is there suppose to be options in the settings? because if so then I must of screwed up because it isn't there. I also have the Add Smilies Mod and the Global Moderator Centre mod installed, could those be causing the problem?


Yes, there are a bunch of options that should show up in the "Installed Mods Settings" area. If you aren't seeing the options, you must have missed the changes in ModSettings.php. If you aren't seeing the prompts, maybe you forgot the language file changes? If the settings are not saving/loading, the "cal_" rows are probably missing from the settings table. If the options ARE there, is it enabled?

How did you install the mod? By hand or let Boardmod do it? If you have those other mods installed, you may have to do some of it by hand if it can't match all the text.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: BloodThirsty229 on May 11, 2002, 02:25:17 PM
no I don't mean the installed mod settings isnt' showing up, I was talking about if there were suppose to be options inside of the installed mods settings relating to the calendar.

I installed it with BoardMOD and it didn't give me any problems except one which had to do with the english.lng file and it was looking for

Code: [Select]
if( $MenuType == 1 ) {
   $menusep = ' | ';
   $img['admin'] = $txt[2];
   $img['delete'] = $txt[31];


when it turns out I had this

Code: [Select]
if( $MenuType == 1 ) {
   $menusep = ' | ';
   $img['admin'] = $txt[2];
   $img['global'] = "Global Moderator";
               $img['delete'] = $txt[31];


which was from the Global Mod Centre mod. So I change it to this

Code: [Select]
if( $MenuType == 1 ) {
   $menusep = ' | ';
   $img['admin'] = $txt[2];
   $img['delete'] = $txt[31];
   $img['global'] = "Global Moderator";


and BoardMOD found it and installed it.
It didn't seem to screw up anything and all of the Global Moderators on my boards haven't reported any errors and they said everything was working fine.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Chris Cromer on May 11, 2002, 02:29:15 PM
Mine has an add after, it adds it after admin image, I am guessing yours probably has search and replace and can't find all of those lines because I added my img in there. I would fix this if I where you.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Webby on May 11, 2002, 03:08:10 PM
now, how can I add those table-background-pictures ??
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 11, 2002, 04:18:17 PM
I changed the mod file to not conflict with that other mod.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Webby on May 11, 2002, 04:21:15 PM
And what about my question ?
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Chris Cromer on May 11, 2002, 04:29:57 PM
Arlight that is good, all of us need to work together and try not to make confilcts with eachother's mods.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: lenaP on May 12, 2002, 05:41:10 AM
I installed the calender mod on a new SE board, and after a smaller problem it works just fine.

Now I have converted an old board from SP 1.1 and triad to install the calender there as well. It works, but I can't allow all members to post. I check the box, but it doesn't save, nest time I look at it it's unchecked.
I've gone through every single line in all the files that are involved, and cant find anything wrong...

Any suggestions?
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 12, 2002, 05:43:40 AM
If the options don't appear to be saving I would guess that the rows for the 'settings' table were not inserted. Need to make sure all of the "cal_" rows are in there.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: PioneeR on May 12, 2002, 05:47:10 AM
Is there a way to get 'todays events' to show up on the boardindex???
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Webby on May 12, 2002, 05:52:09 AM

I made another mod , this time is for put an image on each day , like teh image from the guy who is of birthday or any other picture :)

screenshot
(http://www.phyrexia.cl/cal/mod2.jpg)

Code: [Select]

Modiffy Calendar.php

search-----
   global $ID_MEMBER, $txt, $yytitle, $mbname;
replace------
   global $ID_MEMBER, $txt, $yytitle, $mbname, $dia;

search-----
      print "<td class=\"windowbg\" width=\"14%\" align=\"center\">$day</td>";
   }
   print "</tr>";
add after-----
$dia=1;
$dia=($nRow*7)+$nCol-$nShift+1;
search-----
         print "<td class=\"windowbg\" valign=\"top\" height=\"100\">";

replace--
         print "<td class=\"windowbg\" valign=\"top\" height=\"100\"".'background="http://www.domain.com/'.$dia.$monthp1.$year.'.jpg">';



The pics are daymonthyear.jpg like 852002.jpg for today


Hope u enjoy my second mod :)


I can't get this to work......
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 12, 2002, 05:57:13 AM

Is there a way to get 'todays events' to show up on the boardindex???


I'll stick that on my todo list as an option in the settings.  I could see getting some use out of that. Probably won't be for a few days though.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: PioneeR on May 12, 2002, 06:02:57 AM
My old Y1G board did it.. found it very useful.

My members liked seeing what was going on when.. without going into the calendar (they are very lazy!!)

Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: lenaP on May 12, 2002, 06:55:49 AM

If the options don't appear to be saving I would guess that the rows for the 'settings' table were not inserted. Need to make sure all of the "cal_" rows are in there.

You're absolutely right, it was one line missing...
Once again, not a bug in the mod, just a mistake by the user  ;D

Thanks!
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: BloodThirsty229 on May 12, 2002, 01:47:50 PM
I did everything correctly but when I click on the Calendar button I get this error

Code: [Select]
An Error Has Occurred!

2: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
(/home/dimensio/public_html/yabbse/Sources/Calendar.php ln 133)


I installed everything correctly and did all the MySQL commands.  ???
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 13, 2002, 01:03:07 AM
I did everything correctly but when I click on the Calendar button I get this error

Code: [Select]
An Error Has Occurred!

2: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
(/home/dimensio/public_html/yabbse/Sources/Calendar.php ln 133)

I installed everything correctly and did all the MySQL commands.  ???

Check your database and make sure the <prefix>calendar_holiday table exists. Something failed trying to select data from that table. It's a pretty simple select statement, using variables that the previous select statements had been using, so that leads me to believe the table is missing from your database.

If you don't want holidays and you intentionally left this out, you can't do that.... You can skip putting any data in the table to avoid the holidays, but the table must still exist.

Line 133 is a while statement, if you want to see the exact error, put right above that line (after the mysql_query line): fatal_error(mysql_error());

That will cause the script to halt and print out the error from the last SQL statement.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: gijs on May 13, 2002, 03:24:56 AM
Will this calendar become available in an upgrade of YaBBse?

I don't want to change the code, since I wouldn't be able anymore do the normal upgrades (a.i. copying newer fileversions over older).

or will it become available as a YaBBpak?

(i'm new here, allthough I installed and completely configured my own YaBBse in 1 day (compliments to all writers), I have read quite somethings in this community, but haven't fully found out yet how things 'work' around here when developing mod's, YaBBpks', upgrades etc
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Chris Cromer on May 13, 2002, 03:28:24 AM
Basically after you upgrade, then you just have to reinstall the mods again. Installing a mod shouldn't affect future upgrades of YaBBSE.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 13, 2002, 09:59:31 AM
Will this calendar become available in an upgrade of YaBBse?

I don't want to change the code, since I wouldn't be able anymore do the normal upgrades (a.i. copying newer fileversions over older).

or will it become available as a YaBBpak?

(i'm new here, allthough I installed and completely configured my own YaBBse in 1 day (compliments to all writers), I have read quite somethings in this community, but haven't fully found out yet how things 'work' around here when developing mod's, YaBBpks', upgrades etc

As of now you can install it with BoardModSE. There are some links to it floating around on the boards here somewhere. That will do most of the work for you. I don't have a script to make the database changes though. You'll have to apply those using a MySQL admin tool of your choosing -- not hard, but if you aren't familiar with the database it might take a little fiddling around.

Once I get all of the features in (2 or 3 more on my todo list) I may make the mod both for the built in installer and BoardMod. I haven't used the built in installer though so I can't promise anything for that yet. I read somewhere about there being some problems although I can't remember specifically what it was. I think I read that it was also missing one of the insertion tags that BoardMod has (<add before> maybe?). If it is indeed missing that tag that may convince me to not create it in that style of a mod -- seems trivial, but it's really handy to be able to use both <before> and <after> tags and I don't want to maintain two very different mod files.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: gijs on May 13, 2002, 12:08:14 PM
I hardly can't wait  :) thanks for the good work!
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Hypocrite on May 13, 2002, 02:53:55 PM
I think it would be cool if the whole day cell would be a link and when you put the mouse over it the cell would change colour. Would be nicer than just the day number link.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Hypocrite on May 14, 2002, 11:47:47 AM
I think it would be cool if the whole day cell would be a link and when you put the mouse over it the cell would change colour. Would be nicer than just the day number link.

I almost got this working. I added this to the <td> tags
Code: [Select]
onMouseOver=\"this.style.backgroundColor='white'; this.style.cursor='hand';\" onMouseOut=\"this.style.backgroundColor='#$modSettings[cal_todaycolor]';\" onclick=\"window.location.href='$scripturl?action=calendarpe;month=$month;year=$year;day=$nDay';\" The problem is that when you click the cell it does take you to the form which submits the event but it takes you one day too early. I mean if you click the day 2 it takes you to day 1. How can I fix this?

Also one problem is that it will also highlight the cells which have no day number in them. Any way to avoid this?
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 14, 2002, 12:04:34 PM
The problem is that when you click the cell it does take you to the form which submits the event but it takes you one day too early. I mean if you click the day 2 it takes you to day 1. How can I fix this?

Also one problem is that it will also highlight the cells which have no day number in them. Any way to avoid this?

Sounds like you added the code BEFORE the line that calculates the day; which would give you the last value it had and the very first day wouldn't work at all. Move the $nDay = .... above the code that starts the cell so that it will be valid for you in the <td> tag.

As for making it work only on days that have numbers, take a look at the code I have in there. I'm only printing the numbers on valid days, you can use the same mechanism I'm using. You just have to validate $nDay to make sure it's a printable day. The way I did the loops it's possible for $nDay to be less than one and $nDay can also be larger than the last day of the month (those are the blank cells in the front and end of the month). if ($nDay > 0 && $nDay <= $nLastDay) Do your highlight code, else use the standard tags already being used.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Webby on May 14, 2002, 12:19:44 PM
I have asked a question two times.....really, nobody bothers replying to it.  It's a shame...... :-[
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 14, 2002, 12:25:17 PM

I have asked a question two times.....really, nobody bothers replying to it.  It's a shame...... :-[


Are you talking about that image in the day thing? That's not my code, I haven't even looked at it. You'll have to get the author of that mod-mod to answer questions regarding that. :)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Webby on May 14, 2002, 01:19:48 PM
Yep ( I wasn't talking to you by the way, so don't get me wrong.... )
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Jeff Lewis on May 14, 2002, 01:54:57 PM
Can the person who has been writing this contact me? :)

jeff@lewismedia.com
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Webby on May 14, 2002, 01:58:05 PM
Where is that handy mod-writer ?!

:D
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: D8TA on May 15, 2002, 12:16:42 PM
I have installed this mod using Boardmod with success. I am using mySQL, what is the best way to input the database information. I see where the readme talks about cut an paste changinging the prefix to the one the rest of the DB uses. I don't see where to do this at anywhere. I have created thes table <prefix>calendar(
  id int unsigned auto_increment not null primary key,
  id_board int unsigned not null,
  id_topic int unsigned not null,
  title char(30) not null,
  id_member int unsigned not null,
  month tinyint not null,
  day tinyint not null,
  year smallint not null

Although I am really unsure where and what to do with the rest of the information for the holidays. Can anyone please help me. Anyone else who has used boardmod to install this could you give me some tips on what else you done to get the database part working. That is where I am confused ??? Thanks
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 15, 2002, 12:23:23 PM
Did you put a prefix on the tables when you installed the board software? If so, use a text editor and just do a search/replace on "<prefix>" with whatever you used. If your tables are called "yabbse_members"  then you need to replace all of the "<prefix>" with "yabbse_".

You said you created the table... Although you'll need to redo it with the proper prefix on it, or no prefix. The rest of the database statements get run the exact same way you created the table.

What tool did you use to create the table from the create table statement? Use that same tool. You just need to fix all the "<prefix>" and then run all those statements -- same way.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: D8TA on May 15, 2002, 12:27:30 PM
I manually inputed the main tables. I was using MySQL

Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 15, 2002, 12:37:26 PM
You can just take that entire section of database updates and paste it into the mysql client. Do the search/replace on the <prefix> in a text editor, copy the text to the clip board and paste it into whatever telnet client you are using while connected to the database in mysql.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Daniel D. on May 15, 2002, 01:41:52 PM
I installed the mod and insert the statements, but you've to write it without your comments in the 'readme.txt' because I had to insert the statements three times in phpAdmin before all (!) took effect.

Perhaps it works, but not with my database :-[...

Finally the mod itself works - nice job ! :D
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Jeff Lewis on May 15, 2002, 02:01:20 PM
A couple of things with this...

1) How do you remove an event from the calendar?
2) When you move a thread the event was posted, it doesn't change it in the calendar.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 15, 2002, 02:27:29 PM

I installed the mod and insert the statements, but you've to write it without your comments in the 'readme.txt' because I had to insert the statements three times in phpAdmin before all (!) took effect.

Perhaps it works, but not with my database :-[...

Finally the mod itself works - nice job ! :D


Now that you mention it, I think I read somewhere that those style of comments were added for convenience recently... Seems familiar anyway. It works on my system here but I have installed the latest release of MySQL. I'll take them out. It's just a habit for me to do them that was from using MS-SQL Server.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 15, 2002, 02:30:58 PM

A couple of things with this...

1) How do you remove an event from the calendar?
2) When you move a thread the event was posted, it doesn't change it in the calendar.


It should, there were some changes to the RemoveThread.php and ModifyMessage.php designed to remove the event if the thread is removed via the "Remove Topic" or whatever the admin/mod button says and also if you use the Delete and it's the last remaining message in the thread. Working for me at least. :)

You can also delete an event from the calendar. The red asterisk that shows up is for editing. It only shows up if you are the creator of the event or admin/global mod. You can delete the event from the Edit Event form.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: PioneeR on May 15, 2002, 02:34:24 PM
I have installed your lovely calendar mod. Is it possible to just post an event without linking it to a post/thread??

Thanks

Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Jeff Lewis on May 15, 2002, 02:36:00 PM
I mean if i post it to general board and move it to test board, it still points to the old location :)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 15, 2002, 02:38:24 PM

I mean if i post it to general board and move it to test board, it still points to the old location :)


Oh yah, I didn't mess with any move code. I stored the board number along with the event to avoid having to join in any tables to figure out how to build the url to display it. I'll put the Move Topic on my todo list.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 15, 2002, 02:41:17 PM
I have installed your lovely calendar mod. Is it possible to just post an event without linking it to a post/thread??

No it is designed to only post events as messages. Mostly because of size constraints of fitting the information on the calendar. The event text is currently set to 30 characters max to prevent huge/cluttering event names -- the idea being the event title is a short reminder while the body of the message can describe the details.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 15, 2002, 02:47:51 PM
I found the info on the comments on the MySQL.com site. Looks like it's only version 3.23.3+ and on top of that it's really picky in how you use them. I know I have in some places 3 dashes in a row which according to the documentation isn't allowed.

I've changed all the comments to use # instead. The file with these changes is online now (same link as the first message).
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 15, 2002, 02:53:35 PM
Oh I just realized you have the calendar installed on this site now. Woo! :D
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Big P on May 15, 2002, 03:16:40 PM
Yeah its a very good mod, and it's written very well also ;)

Wow, 4 posts in a row, even that would make Omario cringe..  ::) :P
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: PlonkerFish on May 15, 2002, 03:18:42 PM
http://dynamic3.gamespy.com/~temple/forum/index.php

i've installed the calender mod on my forum now as well :)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 15, 2002, 03:29:36 PM
Yeah its a very good mod, and it's written very well also ;)


Thanks. :)  Programmer for a living -- I've a bit of practice --  been coding for the last 15 years or so (although probably only 9 or 10 professionally). I'll have to admit that I haven't ever used PHP and MySQL before. :P  PHP is so close to C though, and MySQL close enough to MS's SQL Server that there isn't very hard to pick up. If you notice anything coded blaringly stupid feel free to comment on it, I can take the criticism. It is written somewhat like I would have tackled it in C and I don't know if that will come out the best PHP code or not.

Quote
Wow, 4 posts in a row, even that would make Omario cringe..  ::) :P


Who's Omario? He a spam cop? First couple I just wanted to use the quote feature to replied to two message and the last two just happened to be unrelated and I don't like modifying my messages to add in the new spew unless the new stuff is related. ;)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Daniel D. on May 15, 2002, 04:02:07 PM
Who's Omario? He a spam cop?


Yes ! ;D :-X :P
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Big P on May 15, 2002, 04:04:18 PM

Quote
Wow, 4 posts in a row, even that would make Omario cringe..  ::) :P


Who's Omario?

It's true, there is a first time for everything!  ::)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: £eo on May 15, 2002, 04:37:57 PM

Oh I just realized you have the calendar installed on this site now. Woo! :D


I'll guess thats it a sign that its very good,,
but most of us know that allready   ;D
my boards match coordinators just love it..
BTW..  the put it in just in time to see your birthday  ;)
we will put up our flags for you here in Norway..
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: lenaP on May 15, 2002, 04:43:13 PM
Ah, now I see...
THAT'S why you put up so many flags in Norway on that particular day... ;D
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: £eo on May 15, 2002, 05:05:40 PM
oh yes,,   Norway is known for celebrating great programmers   ;D   Your welcome to cross the  border to celebrate with us... I'll get you a flag   ;)

Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: lenaP on May 15, 2002, 05:14:06 PM
I'll write it into my calender at once: "May 17, going to Norway..."
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: £eo on May 15, 2002, 05:19:41 PM
 ;)  I'll meet you at the brigde..  I'll be the one with the flag  :)


I better stop now,  or i will be thrown out like a spammer..  
--£eo  puts his keybord away slowely--
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: D8TA on May 15, 2002, 06:06:40 PM
I am still having a time with this database thing. ??? ??? I can email someone a screen shot of what this database consists of so far. I believe I have the first table created fine;yabbse_calendar. I get lost when you alter table yabbse_calendar add index idx_year_month (year, month) ??? Then I went to me yabbse_settings and I have two entries there variable, which is tinytext, and values, which is text. Where do I need to put 'cal_minnyear',''2001' and the rest of the yabbse_settings? ??? I am probably making this waaaaaaaaay too dificult. I used boardmod to submit the mod to my board. I haven't uploaded it to the server yet because of the MySql database questions. Should I see what I have? I am completely lost can someone please help?  ??? Thanks
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 16, 2002, 01:49:28 AM
I am still having a time with this database thing. ??? ??? I can email someone a screen shot of what this database consists of so far. I believe I have the first table created fine;yabbse_calendar. I get lost when you alter table yabbse_calendar add index idx_year_month (year, month) ??? Then I went to me yabbse_settings and I have two entries there variable, which is tinytext, and values, which is text. Where do I need to put 'cal_minnyear',''2001' and the rest of the yabbse_settings? ??? I am probably making this waaaaaaaaay too dificult. I used boardmod to submit the mod to my board. I haven't uploaded it to the server yet because of the MySql database questions. Should I see what I have? I am completely lost can someone please help?  ??? Thanks

I may have made things harder than they needed to be with the comments I put in the middle of all those database changes. Some of those comments were not compatible. Try downloading the file again -- I've changed the comments in the Readme.txt file to be friendlier.

It sounds like you are still typing in the database changes by hand? Each of those lines in the readme file are valid database statements, you don't have to type anything in at all (other than fixing the <prefix> like you mentioned). All you have to do, once the <prefix> is changed in the text, is highlight all the database lines, copy them to the clipboard (like you do in any other windows program), tab over to your telnet client which is logged into the 'mysql' program, and paste those lines into the telnet client. Every one of those lines can be run in the mysql client. There's no need to understand what the lines are doing, like the alter table statement, just trust that it works and run all those lines. Not that understanding what it is doing is bad, but it isn't necessary to do the mod.

Steps:
1) Start up your telnet program, log into your website and start the 'mysql' client program. Change to the database that has the YaBBSE tables.
2) Open up Readme.txt do a search and replace on the "<prefix>", change to "yabbse_" or whatever you used for a database prefix on the tables.
3) Highlight all of the database changes. There is a comment at the start and a comment at the end of them to make it easier to spot. You can include the comments in the lines you highlight.
4) Hit Ctrl+C, or use the menu Edit|Copy.
5) Tab to your telnet client.
6) Paste those lines into the telnet client. Menu: Edit|Paste. Your telnet client will send all of those lines to the 'mysql' program which will run them all doing all the changes for you.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: D8TA on May 16, 2002, 04:14:04 PM
I got the information into the database. Thanks that worked like a charm. I also put the calendar.php file into my sources directory and placed the linktocal.gif and the other .gif files into my images directory. I don't see anything changed on my board. Where do I make the changes to the index.php, modsettings.php, display.php,post.php? What and where is the mod file? Are these automatic or do I have to manual do something. Slowly but surely I'll get this calendar. Thanks
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 16, 2002, 04:59:26 PM
I think BoardModSE has instructions with it. There is a link to the program as a sticky message in this category.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: nferreri on May 16, 2002, 05:07:10 PM
Thank you so much for creating this mod Myiasis!

You have NO idea how much more productive this has made my board.  I use YabbSE for a communications portal for an Everquest guild and this Calendar mod has just made scheduling of raids (dates where everyone gets together to kill things) SOO much easier.

Previously, we were posting events in a forum (announcement board) and this is an awesome upgrade for organizational purposes!  This has to be the best mod I've seen for YabbSE.. very clean code and VERY efficient methods... congrats on a great job.

Some things I changed:  bunch of cosmetic html stuff to pretty it up a bit and make it fit with my dark colors... also, i changed the sql string for bdays to make it so people who weren't a member of a group didn't show up... guild members didn't want to see visitor bdays on the calendar....

the security and viewing method of events is genious... i couldn't have thought of a better way to do it...

thanks so very much again. :)
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: raus on May 17, 2002, 02:51:45 AM
I like very much this mod, and i was just wondering... would it be too hard to allow viewing current day from main page? What should i edit to bring the current's day box to my main page?


Thx
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 17, 2002, 03:36:24 AM
Quote
You have NO idea how much more productive this has made my board.  I use YabbSE for a communications portal for an Everquest guild and this Calendar mod has just made scheduling of raids (dates where everyone gets together to kill things) SOO much easier.

The funny thing about that comment is that was the reason I made the calendar. I don't play EQ much anymore but I created the calendar for my EQ guild board for raids.

Quote
I like very much this mod, and i was just wondering... would it be too hard to allow viewing current day from main page? What should i edit to bring the current's day box to my main page?

That is on my todo list already. There will be an option to include events on the main board index. I had only planned on putting events in there, but I suppose it could include all the information for that day.

I'm planning to spend some time this weekend to try and finish up the items on my todo list: 1) Week Numbers as option, 2) Allow events to span multiple days, 3) Add calendar info to board index as option, 4) Make events work with the Move Thread option.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Hypocrite on May 17, 2002, 04:49:03 AM

Quote
You have NO idea how much more productive this has made my board.  I use YabbSE for a communications portal for an Everquest guild and this Calendar mod has just made scheduling of raids (dates where everyone gets together to kill things) SOO much easier.


The funny thing about that comment is that was the reason I made the calendar. I don't play EQ much anymore but I created the calendar for my EQ guild board for raids.

Quote
I like very much this mod, and i was just wondering... would it be too hard to allow viewing current day from main page? What should i edit to bring the current's day box to my main page?


That is on my todo list already. There will be an option to include events on the main board index. I had only planned on putting events in there, but I suppose it could include all the information for that day.

I'm planning to spend some time this weekend to try and finish up the items on my todo list: 1) Week Numbers as option, 2) Allow events to span multiple days, 3) Add calendar info to board index as option, 4) Make events work with the Move Thread option.


That would be awesome.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: D8TA on May 17, 2002, 08:56:42 AM
I was attempting to modify my board with boardmod 2.5se adding this calendar mod and in step 3 of 19 I get an error.
No Matching string found
Search string start
  else if ( $fastfind =='c') { if( $action == 'changemod') {setmod;}
search string end.  ???
Any suggestions?
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 17, 2002, 09:15:38 AM

I was attempting to modify my board with boardmod 2.5se adding this calendar mod and in step 3 of 19 I get an error.
No Matching string found
Search string start
  else if ( $fastfind =='c') { if( $action == 'changemod') {setmod;}
search string end.  ???
Any suggestions?


Have you installed any other mods? That's a line from index.php... If BoardMod can't find the lines it's probably from something else changing the line it is looking for. What you have to do in a case like that is look at the Calendar.MOD file and find that line. There is only the one change to index.php in the .MOD file. You'll have to apply the change by hand. Look at your index.php and compare that section of code to what the .MOD file wants in there.

If you aren't comfortable trying to figure that out either email me or post here what the block of code looks like where you see the if( $fastfind == 'c' ) -- Include all of the text starting with the == 'c' through the #END FASTFIND C* line.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: D8TA on May 17, 2002, 09:17:14 AM

I was attempting to modify my board with boardmod 2.5se adding this calendar mod and in step 3 of 19 I get an error.
No Matching string found
Search string start
  else if ( $fastfind =='c') { if( $action == 'changemod') {setmod;}
search string end.  ???
Any suggestions?


I manually looked at the files and all the added strings seem to be included. Not sure why boardmod gave me that message. Now all I should have to do is upload these files back to the server and it should work correct?  Thanks
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 17, 2002, 09:26:47 AM

I manually looked at the files and all the added strings seem to be included. Not sure why boardmod gave me that message. Now all I should have to do is upload these files back to the server and it should work correct?  Thanks


Yes, just upload all the changed files. Make sure you have backups of your original files in case something doesn't go well.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: D8TA on May 17, 2002, 09:44:36 AM
Thanks Myiasis for all your help and support. Especially for this mod!! ;D The calendar does work. Hooray!!  :o This is a GREAT enhancement to my board. One last questions, how or where do I change the month font color? Thanks again! God Bless.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: opus on May 17, 2002, 10:20:51 AM
There is one more enhancement I would love to see  :D  To allow certain members to be able to post to the calendar without being part of a particular group and now opening it up to everyone.  

Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 17, 2002, 10:57:39 AM

Thanks Myiasis for all your help and support. Especially for this mod!! ;D The calendar does work. Hooray!!  :o This is a GREAT enhancement to my board. One last questions, how or where do I change the month font color? Thanks again! God Bless.


Hrm, just noticed I hard coded the color in for the table caption. I used the style sheet for everything else so that it would match your board colors, but the text color there was too dark. For now, just find the <caption> HTML tag in Calendar.php and you'll see the HTML color in the <font> tag. Can change that to whatever you like. Maybe I'll make that color a setting.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on May 17, 2002, 11:01:45 AM

There is one more enhancement I would love to see  :D  To allow certain members to be able to post to the calendar without being part of a particular group and now opening it up to everyone.  


That would be really easy to do. I'll put that in while I'm making these other changes. It will be additive with the other post permissions: Everybody can post OR they belong to a group you have given permission to OR it's a specific user name.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: D8TA on May 17, 2002, 11:28:18 AM
Quote

Hrm, just noticed I hard coded the color in for the table caption. I used the style sheet for everything else so that it would match your board colors, but the text color there was too dark. For now, just find the <caption> HTML tag in Calendar.php and you'll see the HTML color in the <font> tag. Can change that to whatever you like. Maybe I'll make that color a setting.


Thanks that did the trick.  ;D
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: Myiasis on May 17, 2002, 03:43:59 PM
I just put up version 1.4 -- See the link in the first message in this thread.

This is a fairly big update. Most of the changes are in Calendar.php but you'll also have to change a few other files.

As usual, the readme.txt has instructions on how to update from 1.3 to 1.4. All of the changes are marked with "1.4" on them in the .MOD file to make life easier.

Changes are as follows:

Using the Move Topic admin/mod feature will now reconnect calendar events to the correct board.

There are 3 new options which allow you to selectively show Events, Birthdays and Holidays on the board index. If you want to see what it looks like there is one item listed today (5/17) on my site: http://www.mud-master.com/soh/   You can chose to display any you wish or none at all. If there is nothing going on in the current day the calendar section is left off the board index.

The color of the calendar's caption (the "May 2002") is now an option.

You can now control access to posting events by Member Name as well as the other methods.

You can now turn on Week Numbers for the calendar. I'm not really sure if the way I chose to display the week numbers is how it's normally done. I've never seen a calendar with week numbers before -- other than one web based one I looked at to check my math. If you think there is a better way or a standard abbreviation or have any suggestions on it feel free to comment.

When posting an event or linking an event to a message you can now make it span multiple days. This is an option -- it's off by default. The dropdown for spanning will only appear if you have the option turned on AND you pick more than 1 day as a maximum to span -- doesn't make any sense to span 1 day. The maximum to span is in there to prevent abuse from childish users. I took the simplest route when implementing this and spanning days actually puts a row in the calendar table for each day spanned -- basically the same as if you linked a bunch of days to a single event by hand. If you delete the thread the events are attached to, all will be deleted. If you chose to edit a specific event from the calendar and pick delete, only that day will be deleted -- that's not a bug, it's working as intended. Editing an event does not allow you to pick a span of time. If you want to shorten it, go delete the individual days you want gone from the calendar. If you want to make the event longer, post a new event adjacent to the current one and span it from there.

I've added a new section to the Readme.txt that describes all of the calendar options since there are so many now.

Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: lenaP on May 17, 2002, 03:59:01 PM
Well, you are something extra!  :D
All our wishes completed in a few days!

It was me who suggested the week numbers, so I'd better upgrade and check it out at once...

Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: Hypocrite on May 17, 2002, 04:43:29 PM
It works great for me except for one thing. What ever I do the calenderpe.gif won't show up. Any ideas? I have tried almost everything.

<Update>
Okay, I got it working. There was mixed up the words calendar and calender in the mod it seems.
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: Myiasis on May 17, 2002, 04:50:02 PM
It works great for me except for one thing. What ever I do the calenderpe.gif won't show up. Any ideas? I have tried almost everything.

I dunno. It's in the same place as the other images right (in the images folder)? There should be the one image for the calendar button, the image when viewing a message to link an event and if you have 1.4 there's the image on the board index. If those are all working and calendarpe.gif isn't maybe trying reuploading it -- make sure you upload it in binary mode.
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: opus on May 17, 2002, 05:02:27 PM
Works Great!  Thanks for all your work on this.  

I went and looked up Easter Sunday Until 2010.  Thought some other people may want it.

Code: [Select]
insert into <prefix>calendar_holiday (title,month,day,year) values ('Easter Sunday',3,31,2002);
insert into <prefix>calendar_holiday (title,month,day,year) values ('Easter Sunday',4,20,2003);
insert into <prefix>calendar_holiday (title,month,day,year) values ('Easter Sunday',4,11,2004);
insert into <prefix>calendar_holiday (title,month,day,year) values ('Easter Sunday',3,27,2005);
insert into <prefix>calendar_holiday (title,month,day,year) values ('Easter Sunday',4,16,2006);
insert into <prefix>calendar_holiday (title,month,day,year) values ('Easter Sunday',4,8,2007);
insert into <prefix>calendar_holiday (title,month,day,year) values ('Easter Sunday',3,23,2008);
insert into <prefix>calendar_holiday (title,month,day,year) values ('Easter Sunday',4,12,2009);
insert into <prefix>calendar_holiday (title,month,day,year) values ('Easter Sunday',4,4,2010);
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: Myiasis on May 17, 2002, 05:12:25 PM
Nice, thanks. :)  I forgot all about Easter.

I'll add those to the Readme.txt file for future downloaders too.
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: lenaP on May 17, 2002, 05:20:40 PM
Absolutely perfect!
Works like a dream, and the display of week numbers is correct, at least according to Swedish standards.  ;)

Thanks a lot!

And now I have a dream... Imagine things could be like this in all aspects of life... You go to the shop were you got your new car (for free, of course) and say: well it's good, but now I would like to have an air contitioner, and I really would like to have some extra lamps, and why not a square steering wheel instead of that standard circle, and I want this and that... And a bunch of people said 'Hold on a minute' and rushed away and came back a moment later saying: 'Done! Hope you'll like it! Just tell me if you get any errors or have some suggestions...'
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: opus on May 17, 2002, 05:27:22 PM

Nice, thanks. :)  I forgot all about Easter.

I'll add those to the Readme.txt file for future downloaders too.


<grin>  Guess this means I am a contributor now.   ;D
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: Ironman on May 17, 2002, 05:39:11 PM
I've just updatet, updating was very easy (although I'm only German  ;))!

Works real fine and looks absolutely bugfree, I love it!  ;D

AND it is 100% compatible to that Smiley Thing!

Congratulations for this great Mod from Germany!  8)
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: Coyote on May 17, 2002, 06:09:26 PM
Oh Wow, this is very cool - you have worked hard on it.

Thank you!!

Tony.
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: opus on May 17, 2002, 06:21:29 PM
I am about to get in trouble here.. but.. According to the calendar on this yabb.info today is Myiasis' birthday

::)
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: PioneeR on May 17, 2002, 07:05:22 PM
Just did your update to 1.4.. its just the job! If only all mods updated so easily  ;D
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: charlottezweb on May 17, 2002, 11:46:10 PM
The mod looks incredible...can't wait to get it setup...which brings me to a very n0obish question:

I've run boardmod succesfully and all the files are uploaded and ready to go...this just leaves me with the database editing, which i have no clue how to do...

is there anyone that can explain how I can make these mods through phpmyadmin?  I have access to that and see where to add the table but from there, i'm totally green...

any simple instructions on doing this?  if not, anyone wanna volunteer to earn an easy $20 or whatever is fair, to walk me through it real quick over icq/aim?

thx again for the great mod...it's installed perfectly so far...just need the table!

maDD
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: lenaP on May 18, 2002, 01:34:07 AM
With phpmyadmin it's just as easy as it could be.
Just change all the <prefix> to whatever you use as an prefix in the other tables, copy and paste it into the textfield in phpmyadmin (it's probably labeled "run mysql-question" or something like that, I haven't the english version), hit the "run"- (or maybe "go"-) button, and your done.
Phpmyadmin will tell you if it's done successfully.
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: PlonkerFish on May 18, 2002, 07:17:04 AM
i got it installed on my forum now :)

http://dynamic3.gamespy.com/~temple/forum

Thanks. It's great :D
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: Myiasis on May 18, 2002, 07:24:44 AM
Just one minor thing I forgot to mention. I may have mentioned it in the readme, not sure. You may have even noticed this already... the icon on the board index for the calendar area is also set up as a link to the calendar. Tiny detail, I just forgot to put it in my version spew.

Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: lenaP on May 18, 2002, 07:30:59 AM
Yes, I've noticed that, and maybe you should add an alt=$txt['calendar24'] to the link as well?
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: Myiasis on May 18, 2002, 07:32:50 AM
Yes, I've noticed that, and maybe you should add an alt=$txt['calendar24'] to the link as well?

Excellent idea, will do that. :)

Updated: I put the alternate text in the image link. It's available if you want to download it for that. Just replace your Calendar.php with the new one from the zip file.
Title: Re:[Beta] Calendar Mod [New Ver 1.4]
Post by: charlottezweb on May 18, 2002, 12:16:07 PM
lenaP...thx for the instructions...you gave me the courage to try that...and it worked like a charm!  Thanks,

btw, the calendar is working like a champ!  again, Great mod!

also:  if anyone is using the aquablue button scheme ( the Apple-type glass buttons) on their forums, i've created the calendar buttons for it...let me know and I'll be happy to hook you up!

maDD
Title: Re:[Done] Calendar Mod [New Ver 1.4]
Post by: Myiasis on May 19, 2002, 07:23:37 AM
Changed the title from [Beta] to [Done].

My todo list is complete and I haven't found any bugs in it or heard reports of any bugs.

I don't have any plans for fiddling around with the code so if you were waiting for final version to install, this is probably a good time.
Title: Re:[Done] Calendar Mod [New Ver 1.4]
Post by: jthorpe on May 19, 2002, 10:10:28 AM
I did this mod today manually.  Took me about 30 minutes.  I LOVE IT!!!   Thank you so much for the hard work on this mod.  It is awesome!

Jack
Title: Re:[Done] Calendar Mod [New Ver 1.4]
Post by: charlottezweb on May 20, 2002, 12:57:02 PM
quick question...

I want to input a tour schedule of a music group into my calendar.  Is there a way to do this without having a board with hundreds of individual event threads in it?

i was thinking of making a hidden board, but then, according to what i understand about this mod, if they can't view the board, then they won't see the tourdates...

any ideas?

maDD
Title: Re:[Done] Calendar Mod [New Ver 1.4]
Post by: Myiasis on May 20, 2002, 02:40:11 PM
quick question...

I want to input a tour schedule of a music group into my calendar.  Is there a way to do this without having a board with hundreds of individual event threads in it?

i was thinking of making a hidden board, but then, according to what i understand about this mod, if they can't view the board, then they won't see the tourdates...

Yes, you can do that. You are saying you want to have many events that all point at the same thread?

Post an event to the calendar and create the new topic. From that point if you view the topic you will see a "Link to Calendar" button next to the other admin buttons at the bottom of the page. Click the Link to Calendar and you can link that message to any number of different calendar event dates that you like. If you at some point delete that thread all of the events will be deleted (since they are all linked to it).
Title: Re:[Done] Calendar Mod [New Ver 1.4]
Post by: charlottezweb on May 20, 2002, 02:44:45 PM
Ah!  Didn't know you could link multiple events...

That's great, cause i didn't see anyway to get around having a board with nothing but calendar threads in it...

Thx for the quick reponse...love the mod!

maDD
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: GerardoQ on May 20, 2002, 10:15:11 PM
Is there a way to have the calendar viewable to members only (kind of like the members list) but have guests able to view and post in the forum?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: zrski on May 21, 2002, 02:20:21 AM
OK, this is probably a newbie mistake but I ran into a bit of problems. Here's what I did:

I de-installed version 1.1 (which worked like a charm btw ;) ) using boardmodSE.

I added all the database changes from version 1.1 till version 1.4

I installed version 1.4 using boardmodSE and everything looked fine. I can change all the admin settings without any error messages.

I can add an event to a specific date, but I get an error message when I want to submit the description (the message in the board).

The error message I get is:

Fatal error: Call to undefined function: calendarinsertevent() in /www/htdocs/higherl/yabbse/Sources/Post.php on line 713

I can't seem to find the function calendarinsertevent anywhere else, only in line 713 in Post.php? Any ideas???
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: zrski on May 21, 2002, 02:36:10 AM
my fault...

I uploaded the old 1.1 calendar.php

Now I uploaded version 1.4 of calandar.php and it works like a charm.

thnx for a great mod! For "I love Myiasis" posters and T-shirts, contact me ;)
Title: Re:[Done] Calendar Mod [New Ver 1.4]
Post by: £eo on May 21, 2002, 03:24:45 AM


 Click the Link to Calendar and you can link that message to any number of different calendar event dates that you like. If you at some point delete that thread all of the events will be deleted (since they are all linked to it).



hmm  i' missing this button,  I thought i got it all, but looks like i dont,,  any hints on where i did wrong...
Title: Re:[Done] Calendar Mod [New Ver 1.4]
Post by: Hypocrite on May 21, 2002, 04:37:01 AM



 Click the Link to Calendar and you can link that message to any number of different calendar event dates that you like. If you at some point delete that thread all of the events will be deleted (since they are all linked to it).



hmm  i' missing this button,  I thought i got it all, but looks like i dont,,  any hints on where i did wrong...



I had the same problem because somewhere in the mod the image was named as calenderpe.gif and the real name for it was calendarpe.gif. I'm not sure if I screwed it up myself when translating it to Finnish :)
Title: Re:[Done] Calendar Mod [New Ver 1.4]
Post by: Myiasis on May 21, 2002, 07:01:13 AM

I had the same problem because somewhere in the mod the image was named as calenderpe.gif and the real name for it was calendarpe.gif. I'm not sure if I screwed it up myself when translating it to Finnish :)


It was probably a translation error in your specific case. After you posted about that ER/AR thing I went and looked at the source and the file was named correctly.
Title: Re:[Done] Calendar Mod [New Ver 1.4]
Post by: Myiasis on May 21, 2002, 07:07:39 AM



 Click the Link to Calendar and you can link that message to any number of different calendar event dates that you like. If you at some point delete that thread all of the events will be deleted (since they are all linked to it).

hmm  i' missing this button,  I thought i got it all, but looks like i dont,,  any hints on where i did wrong...


Are you just missing the graphic and there is a 'graphic not found' box at the bottom of the topic?

Or is there just not anything at all down there?

The button should be next to the "Move Topic", "Remove Topic", "Sticky" in that section down there, not on the actual message.

If you are missing the graphic, make sure "linktocal.gif" is in your images directory.

If there is nothing down there at all, make sure you did the changes for version 1.3 in Display.php. I double checked the mod file and code is in there -- thought maybe I had forgotten it, but it's there.

If you have the image and have the code in, make sure you have permission to link the message. Admin/Global Mod/Creater of Message should all see the linktocal.gif.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 21, 2002, 07:27:37 AM
Is there a way to have the calendar viewable to members only (kind of like the members list) but have guests able to view and post in the forum?

No, there isn't currently an option to disable the viewing the calendar for guests.

I could maybe add an option to do that. I'm just curious about why don't want them to be able to see it though? If you don't want them to see specific events you can just post those events into categories they don't have access to and they won't show up on the calendar for them.

If you just want to hide the calendar button on the board index you could make a very simple change to your source code. This wouldn't prevent anybody smart enough to type in the URL with the calendar command, but they wouldn't have a link to click.

Code: [Select]
In Subs.php find the calendar comment: // Calendar

Change the if from:
   if ($modSettings['cal_enabled'] == 1)
To
   if ($modSettings['cal_enabled'] == 1 && $username != "Guest")
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: £eo on May 21, 2002, 10:20:29 AM
Quote
If there is nothing down there at all, make sure you did the changes for version 1.3 in Display.php. I double checked the mod file and code is in there -- thought maybe I had forgotten it, but it's there.


;)   after updating  calender yesterday,, I also put in another mod,,  that mod crashed the board,, and when my icq started filling up from my board members , I just threw in an  display.php, to get it back online,,  and after reading your post now I understand that  I threw in an old file     :o
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Horseman on May 21, 2002, 01:51:47 PM
Spricht in diesem Board jemand Deutsch?
Ich habe das Mod installiert und bekomme nach dem Login als Admin und Anwahl der Funktion für die installierten Mod folgende Fehlermeldung:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /homepages/23/d40519616/htdocs/forum/Sources/ModSettings.php on line 426

Fatal error: Call to undefined function: modifymodsettings() in /homepages/23/d40519616/htdocs/forum/index.php on line 151

So oft ich die geänderten Dateien auch Prüfe ich kann keinen Fehler finden  ???
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 21, 2002, 02:46:39 PM
Quote
Spricht in diesem Board jemand Deutsch?
Ich habe das Mod installiert und bekomme nach dem Login als Admin und Anwahl der Funktion für die installierten Mod folgende Fehlermeldung:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /homepages/23/d40519616/htdocs/forum/Sources/ModSettings.php on line 426

Fatal error: Call to undefined function: modifymodsettings() in /homepages/23/d40519616/htdocs/forum/index.php on line 151

So oft ich die geänderten Dateien auch Prüfe ich kann keinen Fehler finden

Well.... I don't speak that language.. German?

Hope you know some english, cuz that's the language for my reply! :)

Can you post the line that is referring to? I would guess that it is referring to one of the checkbox fields -- one of the $cal_ variables. If that is the case, double check the // Calendar area at the top of this function. There should be 9 $cal_ variables defined at the top of the function.

<edit>It seems like there was a german speaker or two who had installed this mod. Maybe if you have a few minutes you could translate both the german message for me and my english reply for him/her? That'd be awful nice. :)</edit>
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: tazthedev on May 21, 2002, 10:50:46 PM
well.... where is the link for downloading the 1.4 version ?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 21, 2002, 10:57:12 PM

well.... where is the link for downloading the 1.4 version ?


The link is the same for all the versions. I've just been replacing the version on my server. The link is in the very first message of this topic (the version 1.4 message mentions this).
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: cessandra on May 22, 2002, 12:43:01 PM
I have a problem... the time/date on my board are set correctly, but the calendar says that today is the 23rd (tomorrow).  How can I adjust that?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 22, 2002, 02:22:44 PM

I have a problem... the time/date on my board are set correctly, but the calendar says that today is the 23rd (tomorrow).  How can I adjust that?


Oh hrm, I know what the problem is. It was something I had thought about when I originally started the project the completely forgot about later. It's using your server's current time and not adjusting for any offset you have put in your settings.

I'll get a fix up for that in a little bit.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 22, 2002, 08:15:14 PM
I took care of the time issue. Same link as usual (see the first message in this thread).

I didn't change the version number as there really isn't much for you to do to update. Just replace your Calendar.php with the one from the zip file and it should be taken care of. The info on the board index and the current day in the calendar should agree with the time offset in your board settings and also take into account any offset the user has set in their profile.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Shindou Hikaru on May 23, 2002, 01:29:52 AM
Hey, Myiasis, I downloaded your calender mod (seemed nice on other sites) and I just started reading the readme file, and I'm like hey, Aaron@mud-master, isn't that the guy who wrote ****keeper? I'm like, cool and so I start ShadowKeeper and go to help about, and yeah, it was you. I remember visiting your yabb gold forums for some in game problems. I have to say, great job, I really like gate- and shadowkeeper. Now I am writing a D&D 3rd edition rpg mod for yabbse.

I like your calender mod.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 23, 2002, 09:27:06 AM

Hey, Myiasis, I downloaded your calender mod (seemed nice on other sites) and I just started reading the readme file, and I'm like hey, Aaron@mud-master, isn't that the guy who wrote ****keeper? I'm like, cool and so I start ShadowKeeper and go to help about, and yeah, it was you. I remember visiting your yabb gold forums for some in game problems. I have to say, great job, I really like gate- and shadowkeeper. Now I am writing a D&D 3rd edition rpg mod for yabbse.

I like your calender mod.


Hah, that's funny. Yup, that's me, the Keeper editors and the Mud Master mud client. Nice memory, I'm surprised you remembered my name across such different fields of interest. In a way it is still related to gaming for me since this mod started out as a creation for an EQ-guild's message board.

Thanks, I'm glad you like my work. :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Shindou Hikaru on May 23, 2002, 11:56:16 AM
Well, I saw aaron@mud-master and it simply hit a light somewhere up there... :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: £eo on May 23, 2002, 04:17:36 PM
I guess i not a big deal,,  but i use display.php  1.3 as I'm not able to modyfy 1.31  anyone who can share an finished display.php 1.31 ?
og give me any directions..
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 23, 2002, 05:28:00 PM
I guess i not a big deal,,  but i use display.php  1.3 as I'm not able to modyfy 1.31  anyone who can share an finished display.php 1.31 ?
og give me any directions..

Do you mean you just want a version of Display.php with the calendar mod applied to it already? It is a really easy change to make in that file, it goes at almost the very bottom of the file -- no current code to change, just have to paste in that section from the .mod file and the one global line.

If you want though, send me an email and I'll send you  my Display.php. The only change I've made to mine I believe is for the calendar so it's a 1.31 + cal.mod.

Why is it that you can't modify the file? Do you mean that Boardmod isn't finding the spots?
Title: New Images
Post by: Myiasis on May 24, 2002, 11:01:04 AM
Daniel D. has provided some new graphics for the buttons in the mod. I thought they looked much better than the original ones I had created. The ZIP now has his graphics in it. If you want to update yours: calendar.gif, calendarpe.gif and linktocal.gif

Thank you Daniel D.!
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Daniel D. on May 24, 2002, 12:01:37 PM
Thank you for such (a) great mod(s) !! :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on May 26, 2002, 10:17:45 AM
This is one hell of a cool mod, thanks!!!!!!

I applied it today, and its working 99% without a problem.

The only problem I have noticed is if a user adds a birth date to there profile after the mod has been applied - it doesnt show up in the calendar.

I know its not just me, Yabb.info has the same problem too.

any ideas?



Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: opus on May 26, 2002, 10:32:34 AM

This is one hell of a cool mod, thanks!!!!!!

I applied it today, and its working 99% without a problem.

The only problem I have noticed is if a user adds a birth date to there profile after the mod has been applied - it doesnt show up in the calendar.

I know its not just me, Yabb.info has the same problem too.

any ideas?



I have not seen this problem.  I have however seen problem with the age  of a person that does not put in a year in his birthday.   The calendar says that the user is 2002 years old.  Of course so does the users profile.  It just jumps out at you on the calendar.     :P
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 26, 2002, 11:18:09 AM

This is one hell of a cool mod, thanks!!!!!!

I applied it today, and its working 99% without a problem.

The only problem I have noticed is if a user adds a birth date to there profile after the mod has been applied - it doesnt show up in the calendar.

I know its not just me, Yabb.info has the same problem too.


I haven't seen this problem. The mod doesn't rely on any special information to get birthdays out of the tables. It doesn't prepare the tables in any way to create birthdays when you install it. As long as the birthdates are in the table, it should be selecting them. I've had several users put in birthdates since the calendar has been installed and they show up.

If they are not showing up on the calendar and you mentioned they are not showing up somewhere else, I'd suspect something else is going on. Maybe there is a problem with the table or an index on the table.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on May 26, 2002, 11:38:37 AM
Thanks for the response Myiasis,



Well, my birthday is 11 /10 /1973 and its in my profile here.

But if you go to the calendar on this site its not there?!?

The only thing i can think of is that both Yabb.info and my site have used the database optimizer which speeds the board up several times.

this is the thread that has the optimize code :

http://www.yabb.info/community/index.php?board=163;action=display;threadid=6599

Is there a way to optimize the board including the calendar?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Chris Cromer on May 26, 2002, 11:41:09 AM
Yes it is Coyote, I can see your name there.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 26, 2002, 11:41:47 AM

I have not seen this problem.  I have however seen problem with the age  of a person that does not put in a year in his birthday.   The calendar says that the user is 2002 years old.  Of course so does the users profile.  It just jumps out at you on the calendar.     :P


I didn't realize you could put in a birthdate without a year. I put a fix in for the undefined years. If there is a valid year it will calculate an age. If there is no year info, or year info greater than the current year (negative ages) it just won't display an age.

Download the mod and replace your Calendar.php file to fix it (same link as first post).
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 26, 2002, 11:43:39 AM

Yes it is Coyote, I can see your name there.


I see it too. :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on May 26, 2002, 11:45:51 AM
I still cant see it??

does that mean the user cant see his own birthday?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Chris Cromer on May 26, 2002, 11:47:10 AM
No I can see my birthday. :)

Your just special. ;)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on May 26, 2002, 11:48:46 AM
awwwwww, shucks.

Thanks guys - i knew there was a good reason :)

Tony.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 26, 2002, 11:51:38 AM

awwwwww, shucks.

Thanks guys - i knew there was a good reason :)


Are you just missing it because of the other names there? There are 4 birthdays on that day (your's is the first name). You are looking at November, right? ;)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on May 26, 2002, 11:55:22 AM
OHHHHHHHHHH,


no i am in England where every thing is backwards

so its DD MM YEAR

thats why!!!
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on May 26, 2002, 11:56:51 AM
I feel stupid now :(
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Chris Cromer on May 26, 2002, 11:56:59 AM
lol
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Lonestar on May 26, 2002, 01:16:15 PM
Strangest thing has happened.

My MOD installed fine. Calender shows birthdays and holidays. You can click the calender link and it brings you to the calender.

Click the post an event on the calender itself, and then submit it. Then you post the topic and click submit again. The post is added, but the event isn't added.

So i cant add events from the calender. I can add the event by clicking on a post, then clicking the "add event to calender" link. I post the date and add event and the event is there.

SO technically i can add the event, but not directly from the calender, but indirectly through a post that is already added.

No errors in my database, it seems like when i click post event in the calender, and go through the steps it wont add it to the database queue because it goes to add a post. Its like the database cant do two things at once. I do one thing, then the other though and it works fine.

I have the smiley mod and mute mod and quick admin mod.

Calender is not useless to me due to these problem, but i would like it to work as designed. :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: groundup on May 26, 2002, 01:16:21 PM
lmao, backwards! lol
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 26, 2002, 03:24:22 PM

Strangest thing has happened.

My MOD installed fine. Calender shows birthdays and holidays. You can click the calender link and it brings you to the calender.

Click the post an event on the calender itself, and then submit it. Then you post the topic and click submit again. The post is added, but the event isn't added.

So i cant add events from the calender. I can add the event by clicking on a post, then clicking the "add event to calender" link. I post the date and add event and the event is there.

SO technically i can add the event, but not directly from the calender, but indirectly through a post that is already added.

No errors in my database, it seems like when i click post event in the calender, and go through the steps it wont add it to the database queue because it goes to add a post. Its like the database cant do two things at once. I do one thing, then the other though and it works fine.

I have the smiley mod and mute mod and quick admin mod.

Calender is not useless to me due to these problem, but i would like it to work as designed. :)


Double check to make sure all of the files have been modified. If you are upgrading from one version to another, make sure all of the changes have been applied through all the versions.

I'd go through the Calendar.mod file and check each of the changes to be sure they are in there. The most significant chagnes will be: 1) Most current version of Calendar.php. 2) There are a lot of changes in Post.php that need to be there to carry around the data as you are posting and eventually the call to the function that inserts the data.

I think those are the only files related to posting an event from the calendar.

I'm fairly confident of the current source to be working properly in this area. There have been some changes to this area over the different versions though, so if you have been upgrading double check the .mod file.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on May 26, 2002, 06:47:02 PM
I know this mod is done, but I wonder if in the next version(if there is gonna be one) whether you could have so the cell highlights when you mouseover it - it would make it more intuitive for users, instead of them clicking on the number. or selecting the date in the dropdown.

Just an Idea,

Thanks Myiasis.

Tony.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Lonestar on May 26, 2002, 11:10:49 PM
The MOD was just installed, not an upgrade at all.

It doesnt hinder anything, just want it to work properly. Ill double check post.php, but i doubt i missed anything but you never know. Thanks for the insight. Anything else you might have would be helpful.

here's the forum BTW
http://forum.unitedgamerscoalition.com
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 27, 2002, 10:14:59 AM
The MOD was just installed, not an upgrade at all.

It doesnt hinder anything, just want it to work properly. Ill double check post.php, but i doubt i missed anything but you never know. Thanks for the insight. Anything else you might have would be helpful.

here's the forum BTW
http://forum.unitedgamerscoalition.com

A couple of things... I looked at your board and I see the calendar is somewhat modified in layout. For testing purposes, you might want to go back to the original code to just be sure it isn't a problem with some of the changes.

The other thing is I saw in another message you are having some problems with a smiley mod. In particular, you mentioned Post.php; which is the file that controls the insertion of the events when you post from the calendar. For testing, you might want to start with an unmodified version of Post.php and just install the calendar on it. Test it to see if it works and start from there.

It's going to be hard to pinpoint something in particular if you have a lot of changes going on in that file. I really do believe the calendar code works properly and I still suspect something was missed. None of the other installations of the mod have reported this problem.

So if you can't spot anything wrong with Post.php, I'd start with the file fresh to test it. Or create a test board with fresh source and apply the mod to that and see if it works for you there.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 27, 2002, 12:04:38 PM
I know this mod is done, but I wonder if in the next version(if there is gonna be one) whether you could have so the cell highlights when you mouseover it - it would make it more intuitive for users, instead of them clicking on the number. or selecting the date in the dropdown.

I probably won't put in any new features for a while. Since the mod is going into YaBBSE 1.4, I'd like to keep it as is for now so Jeff doesn't have to worry about any untried stuff. I'm not currently aware of any bugs and I don't want to introduce any new ones.

If you search back through the messages somebody had added the mouse over code to the calendar. You might contact them and get the changes for how you could do it yourself.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Hypocrite on May 27, 2002, 12:31:11 PM
I got the cell highlighting working on my calendar.
Here are the steps you have to make. This is for the version 1.4 of the mod.

Find:
Code: [Select]
print "<tr>";
      for ($nCol=0;$nCol<7;$nCol++)
      {
         print "<td class=\"windowbg\" valign=\"top\" height=\"100\">";
         print "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
         print "<tr valign=\"top\"><td>";

         $nDay = ($nRow*7)+$nCol-$nShift+1;
         if ($nDay >= 1 && $nDay <= $nLastDay)


Replace with:
Code: [Select]
print "<tr>";
      for ($nCol=0;$nCol<7;$nCol++)
      {
         $nDay = ($nRow*7)+$nCol-$nShift+1;
           if ($nDay > 0 && $nDay <= $nLastDay)
         print "<td class=\"windowbg\" valign=\"top\" height=\"100\" onMouseOver=\"this.style.backgroundColor='white'; this.style.cursor='hand';\" onMouseOut=\"this.style.backgroundColor='#AFC6DB';\" onclick=\"window.location.href='$scripturl?action=calendarpe;month=$month;year=$year;day=$nDay';\">";
         else
           print "<td class=\"windowbg\" valign=\"top\" height=\"100\">";
         print "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
         print "<tr valign=\"top\"><td>";

         if ($nDay >= 1 && $nDay <= $nLastDay)


Then find:
Code: [Select]
if ($today[5] == $curMonth[5] && $today[4] == $curMonth[4] && $nDay == $today[3])
            {
               print "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>";
               print "<td bgcolor=\"#$modSettings[cal_todaycolor]\" valign=\"top\" height=\"100\" style=\"border:2px;border-style:outset\">";
               $PrintCurrentDay = true;
               CalendarPrintDay($bCanPost,$nDay,$month,$year,$strWeek);
            }
            else


And replace it with:
Code: [Select]
if ($today[5] == $curMonth[5] && $today[4] == $curMonth[4] && $nDay == $today[3])
            {
               print "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>";
               print "<td bgcolor=\"#$modSettings[cal_todaycolor]\" valign=\"top\" height=\"100\" onMouseOver=\"this.style.backgroundColor='white'; this.style.cursor='hand';\" onMouseOut=\"this.style.backgroundColor='#92C4F3';\" onclick=\"window.location.href='$scripturl?action=calendarpe;month=$month;year=$year;day=$nDay';\" style=\"border:2px;border-style:outset\">";
               $PrintCurrentDay = true;
               CalendarPrintDay($bCanPost,$nDay,$month,$year,$strWeek);
            }
            else

That should work.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Jeff Lewis on May 27, 2002, 01:19:28 PM

I probably won't put in any new features for a while. Since the mod is going into YaBBSE 1.4, I'd like to keep it as is for now so Jeff doesn't have to worry about any untried stuff.


Much appreciated - was just checking to see if anything else had come up :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on May 27, 2002, 02:38:56 PM
Thanks hypocrite :D

Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Lonestar on May 27, 2002, 04:49:10 PM
I didnt modify the Calendar at all. Except the code for the board index which handles the IMG for the calendar link.

I think your right on with the post.php though, ill fiddle with it some more. I didnt suspect it was a problem with your mod, and i knew it was a problem with my installation of the mod.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 28, 2002, 10:30:52 PM

I didnt modify the Calendar at all. Except the code for the board index which handles the IMG for the calendar link.

I think your right on with the post.php though, ill fiddle with it some more. I didnt suspect it was a problem with your mod, and i knew it was a problem with my installation of the mod.


I took a look at your source that you posted in the smilies-mod thread. Found the problem....

If you look at the last modification in Calendar.mod for the Post.php file, you'll see the code for the CalendarInsertEvent function; which is what puts the event in the calendar's table. You inserted the code AFTER the <search for> text when it should have been inserted BEFORE the <search for> text. As it sits in your Post.php it will only get added to the calendar if the post is an announcement. Move the 2 lines above that text and it will work properly for you.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Lonestar on May 29, 2002, 08:25:05 PM
My bad. With all the MOD trouble i had i misread some of your info. Just redid post.php (since i got the smiley mod to work now) for the calendar and your calendar works perfectly.

Sorry to trouble you. Great MOD works perfectly with my board.

Smiley MOD works for me now too, except i HAVE to use Vb Style option or else my POST.php goes whacky.

Oh well, it works like i want it to, and thats enough for me.  8)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Lonestar on May 30, 2002, 10:51:03 PM
I have an idea. Why not add a feature which allows you to Edit the events you add? Like you pushed it back in date, instead of deleting the event, and possibly the post to do so we can just edit the event to reflect the date change?

If this was already asked for forget i said it.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on May 31, 2002, 01:49:34 AM

I have an idea. Why not add a feature which allows you to Edit the events you add? Like you pushed it back in date, instead of deleting the event, and possibly the post to do so we can just edit the event to reflect the date change?

If this was already asked for forget i said it.


Have you read the Readme.txt file? Take a few minutes and read it, it's useful.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: darkdrone on June 02, 2002, 12:06:26 PM
I have a problem with this mod, as in it doesn't seem to matter how many times I try to enable it in the edit installed mods settings area in admin, it refuses to activate.  Can u shed any light on this?  Thanks!
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on June 02, 2002, 12:22:05 PM

I have a problem with this mod, as in it doesn't seem to matter how many times I try to enable it in the edit installed mods settings area in admin, it refuses to activate.  Can u shed any light on this?  Thanks!


If the options aren't staying set you are probably missing the variables in the settings table. Make sure all of the "cal_" rows are in that table.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: darkdrone on June 02, 2002, 12:54:05 PM
Thanks! Forgot about the database :), Anyway great mod (Hence y I wanted it to work SOOO bad! )
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Lonestar on June 02, 2002, 03:21:40 PM


I have an idea. Why not add a feature which allows you to Edit the events you add? Like you pushed it back in date, instead of deleting the event, and possibly the post to do so we can just edit the event to reflect the date change?

If this was already asked for forget i said it.


Have you read the Readme.txt file? Take a few minutes and read it, it's useful.


Read it before, and read it again. Excuse me for my ignorance. :-\
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on June 02, 2002, 06:31:48 PM

Read it before, and read it again. Excuse me for my ignorance. :-\


I'm not sure if you are saying you didn't see anything about editing? Tells you in there how to edit an event.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Lonestar on June 02, 2002, 06:46:46 PM


Read it before, and read it again. Excuse me for my ignorance. :-\


I'm not sure if you are saying you didn't see anything about editing? Tells you in there how to edit an event.


What i meant was i read it before, but didnt find anything on it then.

I just read it again and found it. SO yes i have found how to edit the event.

I must of skimmed instead of read and figured i knew how it all works. I do that sometimes. Next time ill read more thoroughly.  :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Ironman on June 05, 2002, 09:11:09 AM
Hi, I made a little change to it. I changed the '*' which brings you to the Event Edit Options with an Image, so it's a little easier to find.
(http://www.web-k.de/yabbse/YaBBImages/caltest.gif)
('Ereignis bearbeiten' appears certainly only at Mouse over)

Did the following Changes to get this work:

This Image (http://www.web-k.de/yabbse/YaBBImages/caleventedit.gif) copied to the YaBBImages Directory on my Server.
IMPORTANT for the following Code Changes: The Image should be named as 'caleventedit.gif'.

Change in  Calendar.php:
Code: [Select]
<search for>
$strOwner = "<a href=\"$scripturl?action=calendaree;eventid=$row[id]\"><font color=#FF0000>*</font></a>";
</search for>

<replace>
$strOwner = "<br><a href=\"$scripturl?action=calendaree;eventid=$row[id]\"><img src=\"../yabbse/caleventedit.gif\" alt=\"Ereignis bearbeiten\" border=\"0\"></a> ";
</replace>
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Demo on June 05, 2002, 12:24:05 PM


Have you read the Readme.txt file? Take a few minutes and read it, it's useful.


I'd like to read it, but where can you find this mod calender readme??? I've directly installed it from yabbse 1.4

Excuse me my ignorance

(But I really like to delete dates like independance day...)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: sylvester on June 05, 2002, 12:34:49 PM
if you have PHPMYADMIN:
go to phpmyadmin
insert this in Run SQL query/queries on database computer:
DELETE FROM prefixcalendar_holidays
replace prefix by your chosen db_prefix
if you do'n't have PHPMYADMIN:
make a new file, like removeholidays.php, and insert this in that file:

$MySQL["server"] = "dbserver";
$MySQL["name"] = "dbname";
$MySQL["user"] = "dbusername";
$MySQL["passwd"] = "dbpassword";
$MySQL["prefix"] = "YOUR yabbse_prefix";
$dbcon = mysql_connect($MySQL["server"],$MySQL["user"],$MySQL["passwd"]);
mysql_select_db ($MySQL["name"]);
$request = mysql_query("DELETE from {$MySQL[prefix]}calendar_holidays");

save that file, upload that file to your website
go to http://www.yourhost.com/removeholidays.php
and voila!
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Demo on June 05, 2002, 01:28:45 PM
Thanks, but it seems I've done something wrong

Code: [Select]

<?php<br>$MySQL["server"] = "localhost";<br>$MySQL["name"] = "demokratie_nl_db";<br>$MySQL["user"] = "demokratie";<br>$MySQL["passwd"] = "nicetry";<br>$MySQL["prefix"] = "yabbse_";<br>$dbcon mysql_connect($MySQL["server"],$MySQL["user"],$MySQL["passwd"]);<br>mysql_select_db ($MySQL["name"]);<br>$request mysql_query("DELETE from {$MySQL[prefix]}calendar_holidays");<br>?>


This is what my program looked like, but it didn't work... Thanks anyway for the info!!!
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Shindou Hikaru on June 05, 2002, 02:32:33 PM
Hmmz. Does it give a parse error? Or none at all?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Demo on June 06, 2002, 01:15:17 PM
I've used a stupid-people-solution:

Lycos offers a web-based interface to your db. I've been clicking for almost an hour know to individually remove the dates...  :-\
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Demo on June 06, 2002, 01:17:32 PM

Hmmz. Does it give a parse error? Or none at all?


Alas, no error at all. But I've found a solution, so no problem...

Thanks anyway!
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: GaleForce on June 17, 2002, 10:09:56 PM
I dont understand how to access the mySQL DB and add all the code in, replacing <prefix> with yabbse_. I replaced it but now what?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: GaleForce on June 18, 2002, 12:11:28 AM
Ok I edited the mySQL... and when I try to do the board mod it doesnt work... it gets an error in teh first step.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on June 18, 2002, 12:15:40 AM
What version of YABBSE are you trying to install it on? The mod is for YaBBSE 1.3.1. If you are using YaBBSE 1.4 this mod is included with the board so you don't need to install it.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: GaleForce on June 18, 2002, 12:20:34 AM
Uh oh... I was using 1.4... and I deleted the mySQL calendar that was already there and inserted the one you gave me :o

Please, can I talk to you on AIM or ICQ so I can get this resolved faster?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: GaleForce on June 18, 2002, 12:23:18 AM
Ok, I got the calendar to work again using the code you gave us, but where is the box by the stats and users online? Does that only appear if there is a birthday?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on June 18, 2002, 12:25:35 AM
Depends on what you turn on in the options. But yes, it only appears on the board index if there is something to display.

Turn on the events on the board index, then go post an event for the current day and you'll see it show up.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: GaleForce on June 18, 2002, 12:28:10 AM
Cool, is there a way to change the thing that says events in green to a different color?

And deleteing my Calendar database and replacing it with yours wont make a difference right?

One last thing, do you know anything about the smiley mod, cause im having trouble with that too and everyone is ignoring me :(
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on June 18, 2002, 12:38:25 AM
The colors are in the options.

You mean the calendar table? The definition you find for the table on this mod and the definition in YaBBSE 1.4 should be the same.

No, I haven't installed the smiley mod.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: GaleForce on June 18, 2002, 01:00:13 AM
Alright, thanks for your help... now if I can get the smileys up I will be happy, I have another question tho... its about user groups...

I am just gonna ask you cause you are very helpful. Is it possible to assign people to a usergroup so they can see private forums, but still use the ranking system we have for people not in the user group?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: AndyT on July 16, 2002, 01:09:12 PM
Missing months?

I seem to be missing a month!

Why is January displayed as

http://www.nfsuk.org.uk/forum/index.php?action=calendar;year=2002;month=0 (http://www.nfsuk.org.uk/forum/index.php?action=calendar;year=2002;month=0) ?

To get an event to appear in September, I had to put it as month 8.

Any ideas?


Andy
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Nemesis on July 16, 2002, 03:19:39 PM
Cause PHP coding starts month as 0 then work it way up, so there are 0-11 months in php. 12 don't exsist.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: AndyT on July 16, 2002, 04:52:13 PM

Cause PHP coding starts month as 0 then work it way up, so there are 0-11 months in php. 12 don't exsist.


Thanks, I saw that the New Years date was month 1 in the MySQL and thought it had to be January = 1

Anyway thanks

Andy
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Nemesis on July 19, 2002, 02:03:06 AM
No Problem  ;)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: ronnie_t on July 21, 2002, 05:10:32 PM
Hi:

I looked through most of the posts, but I may have missed this: I converted my yabb gold to se, but the birthdays that were absent in gold show up in se as 0/00/0000. Is there a quick way to eliminate birthdays from showing at all?

Can I just delete the birthday column in the database? I am assuming no, because the code somewhere is going to give me an error, right?

~~~~~~~~~~~~~~~~~~~~~~~~~~
Ronnie T

Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: ronnie_t on July 23, 2002, 12:51:01 AM
Hi:

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.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Andre on July 28, 2002, 02:12:39 PM
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!
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: md on August 05, 2002, 10:32:42 AM
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
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Bloke on August 07, 2002, 01:34:23 AM
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
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on August 07, 2002, 05:29:58 PM

Hi:

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.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on August 07, 2002, 05:35:17 PM

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...


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.

Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on August 07, 2002, 05:40:32 PM

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?


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.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Bloke on August 07, 2002, 08:41:58 PM
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
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on August 07, 2002, 10:17:38 PM

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


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.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on August 11, 2002, 06:02:30 PM
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.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on August 11, 2002, 07:32:17 PM
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.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on August 12, 2002, 02:23:53 AM
Thanks Myiasis :D

I'll do that.

Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Pitch on August 20, 2002, 03:45:46 AM
Is this Mod available for YaBB SE 1.3 as well?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on August 20, 2002, 07:36:20 AM

Is 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.
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Coyote on August 24, 2002, 07:05:47 AM


You 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?
Title: Re:[Beta] Calendar Mod [New Ver 1.3]
Post by: Myiasis on August 24, 2002, 05:05:26 PM
Just 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:
Code: [Select]

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


Change to:
Code: [Select]

   // Calendar.
   // if(in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($username == "$topicinfo[posterName]" && $username != 'Guest'))
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on August 24, 2002, 05:12:46 PM
thanks!!  ;D

this is a great mod!
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: TeNsHi on August 31, 2002, 12:23:27 PM
can you help me plz... im getting this error while trying to post an event...

An Error Has Occurred!

This topic doesn't exist on this board. Error Start+new+thread


sorry if i did something wrong =\
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on August 31, 2002, 01:21:22 PM
I think this is the fix you are after

http://www.yabb.info/community/index.php?board=172;action=display;threadid=12063

Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: TeNsHi on August 31, 2002, 01:59:30 PM
thnx for the fast reply ;)
Title: Re:[Done] HELP
Post by: Dktah on October 04, 2002, 01:11:06 AM
Hi .. I just installed the new version 1.41 and Im getting this Error when I try and post to the calander
This topic doesn't exist on this board. Error Start+new+thread

Can anyone Help?
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: pege on October 08, 2002, 06:14:39 PM
Just installed YabbSE 1.4.1.  Thanks, kewl.

Keep getting error message when trying to post an event to the calendar.  It tells me the topic does not exist on this board, but the topic does exsist.  It gives "error start+new+thread", no matter what name is put in there.  Also, what about recurring events?

Thanks
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on October 08, 2002, 06:22:47 PM
see my post abov ;)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: pege on October 08, 2002, 11:58:26 PM
Thanks, that code fix worked.  But what about recurring events?  Is there any way to have an event show up say every week on wednesday, throughout the whole year, without entering it 52 times?

Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: LunaticWithCandy on October 15, 2002, 11:08:08 PM
Having an issue with one of the colors being off the forum template:

http://mofm.recongamer.com/offcolor.jpg

I've checked every source page I can think of and can't find the source of the problem.

A little help please? :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on October 16, 2002, 01:36:31 AM

Having an issue with one of the colors being off the forum template:

http://mofm.recongamer.com/offcolor.jpg

I've checked every source page I can think of and can't find the source of the problem.

A little help please? :)


You mean the current day in that picture I assume? That's the "Current Day Color" in the Calendar Settings.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: LunaticWithCandy on October 16, 2002, 02:40:18 AM
Ohhh!  ;D

Thanks for that :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: diva_uno on October 18, 2002, 08:38:39 PM
I can see the calendar when I put "index.php?action=calendar" at the end of my board. But I can't see the calendar button. I uploaded all images in binary mode. I really don't know where to look to see why this is not showing up.
???
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: diva_uno on October 18, 2002, 09:32:20 PM
Man...I can't believe I found the problem. I can see the image now.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: diva_uno on October 29, 2002, 12:38:46 AM
I have that B-day problem where everyone's B-day is on the same day because I converted from SP 1.1 to SE. Do the members have to go and correct their b-day's so everyone's b-day isn't on the same day? Or is there an easier  way to correct  this? I know I don't want to go through all my members and clear the date I converted  the board from their b-day's. :-\
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on October 29, 2002, 03:36:08 AM
I have that B-day problem where everyone's B-day is on the same day because I converted from SP 1.1 to SE. Do the members have to go and correct their b-day's so everyone's b-day isn't on the same day? Or is there an easier  way to correct  this? I know I don't want to go through all my members and clear the date I converted  the board from their b-day's. :-\


I think I posted how you can fix that somewhere in this thread, but not sure anymore... You might search back through it for the details, but basically it's easy to fix....

I don't remember the field names offhand, but basically write an update statement for the database that sets all of the birthdays to NULL where they are equal to the incorrect date that the conversion puts in.

Search back through the messages, I bet I posted a sample of how to do it.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: diva_uno on October 30, 2002, 04:14:36 AM
I found your post here: http://www.yabb.info/community/index.php?board=158;action=display;threadid=6345;start=45 (http://www.yabb.info/community/index.php?board=158;action=display;threadid=6345;start=45)
But I couldn't follow what it said. I don't know where I am suppose to put this statement in my database. I am using phpMyAdmin. I went into "yabbse_members" and found "birthdate." But what to do from there I don't know. I clicked on "change" and I got a thing that looks like this:

(http://www.nimbuscreations.com/birthdate.jpg)

From getting that I don't know what to do. I don't know where to go to write to the tables or if to delete something?! I don't want to mess anything up so I think I need a more step by step understanding.
I'm sorry if I seem kinda clueless...but I guess I actually am. Your help is greatly appreciated. And thank you for a great mod...because you didn't have to share it. ;)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on October 30, 2002, 05:06:26 AM
I don't use phpMyAdmin, so I can't tell ya where exactly to put it. I think it says something like "Run SQL Query"on the box where you put it. Just paste in the update line from that post you linked with the database name changed to whatever yours is and the date changed to whatever date the conversion spammed your database with : update members set birthdate = NULL where birthdate = '2002-04-22';
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: diva_uno on October 30, 2002, 05:45:01 AM
Thanks it worked!!! ;D
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Esben on October 30, 2002, 09:36:12 PM
hi
how do i make the calendar function to work on my index.shtml

exampel
Quote
<!--#include virtual="/yabbse/SSI.php?function= ????????" -->


SSI.php ?????? ??? ???
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Spaceman-Spiff on October 30, 2002, 09:57:52 PM
its currently not available in SSI.php
u can code it yourself if u want to, it would be cool to have a small calendar in the site ;)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Esben on October 30, 2002, 10:21:37 PM
its currently not available in SSI.php
u can code it yourself if u want to, it would be cool to have a small calendar in the site ;)
i have try that but with none luck
i download this Mod SSI Kalender Infos.mod - Deutsch
Code: [Select]
<id>Kalender Infos einbinden</id>

<version>
1.1
</version>

<author>
sylvester (admin@computerfreakz.net)
Deutsche Anpassung Horseman (horseman@h-h-c.de)
</author>

<homepage>
http://www.computerfreakz.net (silvester
http://www.horsemen.info (horseman)
</homepage>

<mod info>
Dieses MOD ermöglicht es Dir Termine aus dem Kalender mittels der SSI.php in eine Webseite einzubinden.
</mod info>

<edit file>
SSI.php
</edit file>

<search for>
<tr><td align=right>$pass: </td><td><input type=password name="passwrd" size="9"></td></tr>
<tr><td> </td><td><input type=hidden name="cookielength" value="$txt[yse50]"><input type="submit" value="$txt[34]"></td></tr></table></form>
EOT;
}
</search for>

<add after>
function FetchCalendar($what=NULL) {
   global $db_prefix,$txt,$scripturl,$timeoffset,$scripturl;
   $timeUserOff = (isset($settings[18]) ? $settings[18] : 0);
   list($day,$month,$year) = explode('/',date('d/m/Y',time()+(($timeoffset+$timeUserOff)*3600)));

// Birthdates
   if($what == 'bdays') {
      $bdays_query = mysql_query("SELECT realName,memberName,year(birthdate) FROM {$db_prefix}members WHERE (dayofmonth(birthdate) = {$day} AND month(birthdate) = {$month})");
      if(mysql_num_rows($bdays_query) > 0)
         $return = '<B>'.$txt['calendar3'].'</B><BR>';
      while($bdays_result = mysql_fetch_row($bdays_query)) {
         $return .= '<A HREF=\''.$scripturl.'?action=viewprofile;user='.$bdays_result[1].'\'>'.$bdays_result[0].'</A> ('.($year - $bdays_result[2]).')<BR>';
      }
   }

// Events
   if($what == 'events') {
      $events_query = mysql_query("SELECT title,id_board,id_topic FROM {$db_prefix}calendar WHERE (day = {$day} AND month = {$month} AND year = {$year})");
      if(mysql_num_rows($events_query) > 0)
         $return =  '<B>'.$txt['calendar4'].'</B><BR>';
      while($events_result = mysql_fetch_row($events_query)) {
         $return .= '<A HREF=\''.$scripturl.'?action=display;board='.$events_result[1].';threadid='.$events_result[2].'\'>'.$events_result[0].'</A><BR>';
      }
   }

// Holidays
   if($what == 'holidays') {
      $holidays_query = mysql_query("SELECT title FROM {$db_prefix}calendar_holiday WHERE (day = {$day} AND month = {$month} AND (year IS NULL || year = {$year}))");
      if(mysql_num_rows($holidays_query) > 0)
         $return =  '<B>Holidays:</B><BR>';
      while($holidays_result = mysql_fetch_row($holidays_query)) {
         $return .= '<B>'.$holidays_result[0].'</B><BR>';
      }
   }

   if(isset($return)) {
      echo $return;
   }
}
</add after>

Help me here PLEASE  ::) ::)
or can some one send me the code
so i can have it front on my home page  :-\

Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: asme on November 15, 2002, 02:36:46 PM
I want to know how to get the calendar button to show to everyone even if they are not a registered user or not logged in.

In other words...  My calendar button only shows up after I log in. :(

Thanks for the great mod.  YaBBSE rules!
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on November 16, 2002, 12:26:46 AM
Look in Subs.php and find the lines that look like:

Code: [Select]

      // Calendar.
      if ($modSettings['cal_enabled'] == 1)
         $yymenu .= "$menusep<a href=\"$scripturl?action=calendar\">$img[calendar]</a>";


Take those 3 lines and move them outside of the satement block, right below it ... put them before next IF satement: if($enable_news=='1') {

Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: feday on January 15, 2003, 04:56:27 AM
Sort of a feature suggestion:
I've just enabled the calendar mod on my board (and it kicks ass), but I want to use it to post events for certain user groups. However I don't want members not  in the groups it is meant for to be able to see those events.
So I was wondering if it is possible to make it so that only certain member groups can use the calendar. Or an even nicer option would be; if you post an event on a certain board, that only the users the can read that board can see the event.

p.s. Hope this is the right place to post this, because the thread already had done in the subject  ???
-Fed
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Coyote on January 15, 2003, 05:22:27 AM
Thats a nice idea.

As the calender is now standard install for YabbSE - I think your post would be more suited to the Mod Ideas section.

although it cant hurt having it here ;)

Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: feday on January 15, 2003, 07:14:43 AM
I'll post it on that board as well then.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Myiasis on January 15, 2003, 11:39:27 AM
to use it to post events for certain user groups. However I don't want members not  in the groups it is meant for to be able to see those events.
So I was wondering if it is possible to make it so that only certain member groups can use the calendar. Or an even nicer option would be; if you post an event on a certain board, that only the users the can read that board can see the event.


You just described how it already functions. Events on the calendar only show up if you have access to the linked message. If you put the linked message in a board that only a certain member group can see, only those members will see it on the calendar.

As for making certain member groups able to use the calendar, that's in the options. You can control which groups are allowed to post. Everybody can still VIEW it, but the events won't show up if they don't have access to the messages.
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: feday on January 16, 2003, 03:53:03 AM
Could have sworn I tested that :/
Anyway, you were right myiasis. I r stupid noob :)
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Rahven on March 02, 2003, 10:17:32 AM
Ok, small question here. I dug through most of the posts about the calendar mod, and I either missed this post, or  no one else has had this problem.

Basically what happens is that I made a lil boo boo and linked an event to the calendar, but on the wrong day, so I clicked the lil red * to delete it, clicked the delete link, and I get this:

Failure in submission of form. Session timeout.

Any ideas? So far, everything else has been working fine.

-Rahven
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: charlottezweb on March 02, 2003, 10:19:45 AM
This probably won't answer your question directly, but I've added wrong dates in the past (when I'm doing multiple events from one post) and I think it's easiest to just go into phpmyadmin and delete that specific event from the mysql table...
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Rahven on March 02, 2003, 04:56:18 PM
Well actually, I think there's something else wrong. I was looking at it again and I noticed that next to the Year field, where it would normally say 'Year' it instead says '$txt[calendar10]'

I'm just getting started in PHP and I have no clue what the problem could be, or where to even begin to look. Any help would be appreciated.

I might try just deleting that DB entry though.. thanks Maddness

-Rahven
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: charlottezweb on March 02, 2003, 06:35:14 PM
I'm just getting started in PHP myself, yet it was very straightforward to go in and delete individual events for me...I unfortunately can't help with the coding parts yet
Title: Re:[Done] Calendar Mod [Ver 1.4]
Post by: Rahven on March 03, 2003, 04:24:03 AM
I upgraded to 1.5.1 and it's all fixed.. go figure

-Rahven