YaBB SE Community
Development => Completed mods => Topic started 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
-
Nice thing!
Are birthdays included (autom. from the birthday-mod or user profiles) or do you have to submit them as calendar events?
-
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.
-
Sorry, maybe I'm blind or what, but I can't see any Mod in that Sample above... :)
-
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.
-
LOL, now I've seen it. I must be blind, maybe I should contact a doctor for my eyes... ;)
-
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 ?!
-
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? ;)
-
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.
-
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.
-
Woohoo, it works ;)
-
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?
-
.....well, it works both ways now ;D
-
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?
-
Yes, there you have to translate most of it.
Also in modsettings.php................
-
what a great mod. thx !!
-
what a great mod. thx !!
Thanks, and yer welcome. :)
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.
-
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
-
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
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
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>";
-
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?
-
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
-
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
-
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 ???
-
Nice, that little add-on ;D
-
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.
-
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 ;)
-
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?
-
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.
-
Do you get any new buttons?...
-
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.
-
you mean from other mods? yeah I got the moods mod working fine on here and the improved stats work.
-
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.
-
Wow Thanks man I appreciate you being so patient its there now gonna play I sure hope the members appreciate this thanks again. :D
-
Nevermind :D Please try CalendarA Mod.. and give me some feedback :)
-
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
-
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?
-
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.
-
[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. :)
-
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.
-
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
-
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....
-
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.
-
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.
-
That might be kind of amusing to do. :) I'll see if I can come up with a moon phase indicator.
-
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.
-
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".
-
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 :(
-
;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
-
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 :)
-
<?// 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
-
;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
-
please help me i don't see calendar buttons
but i 've changed all files and upload gif into images directory
-
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
-
sorry i don't made this mistake
i upload index.php in ./
-
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.
-
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?
-
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
-
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:
// 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... ;)
-
Ha :-[ I have a good button for calendar in Thai language.. but I don't think anybody is interested :P
-
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... :)
-
Please, can anyone help me out here?
Please, pleeeeeease? :'( :-* :'(
-
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?
-
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. :)
-
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... :'(
-
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..
-
Oh, thanks! You'll get my email in a IM right now... :D
-
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!
-
;)
-
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.
-
;) 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..
-
;) 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:
//if ($cats[$row['id_cat']][0] == "" || $bPowerUser || in_array($settings[7],$cats[$row['id_cat']]))
-
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?
???
-
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.
-
I would like to make it so only members can post. I do not want guests to post.
any ideas ?
/me .
-
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.
-
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 .
-
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.
-
Are you still up to Moon Phase thingy?
-
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.
-
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 .
-
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
-
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
-
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.
-
If you are looking for more features to add to this, how about the ability to span multiable dates with one event.
/me .
-
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
-
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.
-
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?
-
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
-
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?
-
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.
-
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... ;)
-
i cant se why everyone like boardmod so much, since you have to download your forum, then modifi it, and then upload again
-
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...
-
Hi all,
I've been waiting for this mod very long, great work!
For future releases I have some additional features on my wishlist:
- let the admin/gmod add an event that doesn't point to a new thread, but to an existing one someone else posted (I have a category "calendar" where users often post events without adding it to the calendar in the first place)
- make the date clickable - some users tend to post the event on the first of the month (which is the default selection in action=calendarpe) - let the date that was clicked be the one that is selected by default
- in Germany (and some other countries) the week doesn't start on sunday, but on monday - a checkbox in admin center would be nice
- display a tooltip "edit event" when the mouse points on the asterisk
- option in admin center "default category" would be nice - users often don't see the dropdown list with the category
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
-
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??
-
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).
-
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.
-
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.
-
ADDON FOR CALENDAR
Image addon
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?
-
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.
-
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.
-
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)
-
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. ;)
-
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.
-
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!
-
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 .
-
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)
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 :)
-
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 :)
-
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.
-
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. ;)
-
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)
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 ?!
-
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?
-
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.
-
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
if( $MenuType == 1 ) {
$menusep = ' | ';
$img['admin'] = $txt[2];
$img['delete'] = $txt[31];
when it turns out I had this
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
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.
-
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.
-
now, how can I add those table-background-pictures ??
-
I changed the mod file to not conflict with that other mod.
-
And what about my question ?
-
Arlight that is good, all of us need to work together and try not to make confilcts with eachother's mods.
-
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?
-
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.
-
Is there a way to get 'todays events' to show up on the boardindex???
-
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)
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......
-
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.
-
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!!)
-
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!
-
I did everything correctly but when I click on the Calendar button I get this error
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. ???
-
I did everything correctly but when I click on the Calendar button I get this error
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.
-
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
-
Basically after you upgrade, then you just have to reinstall the mods again. Installing a mod shouldn't affect future upgrades of YaBBSE.
-
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.
-
I hardly can't wait :) thanks for the good work!
-
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 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
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?
-
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.
-
I have asked a question two times.....really, nobody bothers replying to it. It's a shame...... :-[
-
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. :)
-
Yep ( I wasn't talking to you by the way, so don't get me wrong.... )
-
Can the person who has been writing this contact me? :)
jeff@lewismedia.com
-
Where is that handy mod-writer ?!
:D
-
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
-
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.
-
I manually inputed the main tables. I was using MySQL
-
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.
-
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
-
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.
-
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.
-
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.
-
I have installed your lovely calendar mod. Is it possible to just post an event without linking it to a post/thread??
Thanks
-
I mean if i post it to general board and move it to test board, it still points to the old location :)
-
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.
-
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.
-
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).
-
Oh I just realized you have the calendar installed on this site now. Woo! :D
-
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
-
http://dynamic3.gamespy.com/~temple/forum/index.php
i've installed the calender mod on my forum now as well :)
-
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.
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. ;)
-
Who's Omario? He a spam cop?
Yes ! ;D :-X :P
-
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! ::)
-
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..
-
Ah, now I see...
THAT'S why you put up so many flags in Norway on that particular day... ;D
-
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 ;)
-
I'll write it into my calender at once: "May 17, going to Norway..."
-
;) 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--
-
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 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.
-
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
-
I think BoardModSE has instructions with it. There is a link to the program as a sticky message in this category.
-
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. :)
-
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
-
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.
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.
-
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.
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.
-
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 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.
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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...
-
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.
-
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.
-
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.
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);
-
Nice, thanks. :) I forgot all about Easter.
I'll add those to the Readme.txt file for future downloaders too.
-
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...'
-
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
-
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)
-
Oh Wow, this is very cool - you have worked hard on it.
Thank you!!
Tony.
-
I am about to get in trouble here.. but.. According to the calendar on this yabb.info today is Myiasis' birthday
::)
-
Just did your update to 1.4.. its just the job! If only all mods updated so easily ;D
-
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
-
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.
-
i got it installed on my forum now :)
http://dynamic3.gamespy.com/~temple/forum
Thanks. It's great :D
-
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.
-
Yes, I've noticed that, and maybe you should add an alt=$txt['calendar24'] to the link as well?
-
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.
-
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
-
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.
-
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
-
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
-
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).
-
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
-
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?
-
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???
-
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 ;)
-
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...
-
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 :)
-
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.
-
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.
-
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.
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")
-
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
-
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 ???
-
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>
-
well.... where is the link for downloading the 1.4 version ?
-
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).
-
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?
-
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.
-
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.
-
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.
-
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. :)
-
Well, I saw aaron@mud-master and it simply hit a light somewhere up there... :)
-
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..
-
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?
-
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.!
-
Thank you for such (a) great mod(s) !! :)
-
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?
-
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
-
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.
-
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?
-
Yes it is Coyote, I can see your name there.
-
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).
-
Yes it is Coyote, I can see your name there.
I see it too. :)
-
I still cant see it??
does that mean the user cant see his own birthday?
-
No I can see my birthday. :)
Your just special. ;)
-
awwwwww, shucks.
Thanks guys - i knew there was a good reason :)
Tony.
-
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? ;)
-
OHHHHHHHHHH,
no i am in England where every thing is backwards
so its DD MM YEAR
thats why!!!
-
I feel stupid now :(
-
lol
-
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. :)
-
lmao, backwards! lol
-
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.
-
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.
-
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
-
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.
-
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.
-
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:
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:
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:
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:
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.
-
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 :)
-
Thanks hypocrite :D
-
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 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.
-
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)
-
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.
-
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.
-
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!
-
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.
-
Thanks! Forgot about the database :), Anyway great mod (Hence y I wanted it to work SOOO bad! )
-
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. :-\
-
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.
-
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. :)
-
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:
<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>
-
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...)
-
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!
-
Thanks, but it seems I've done something wrong
<?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!!!
-
Hmmz. Does it give a parse error? Or none at all?
-
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... :-\
-
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!
-
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?
-
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.
-
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.
-
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?
-
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?
-
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.
-
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 :(
-
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.
-
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?
-
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
-
Cause PHP coding starts month as 0 then work it way up, so there are 0-11 months in php. 12 don't exsist.
-
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
-
No Problem ;)
-
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
-
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.
-
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!
-
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
-
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
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
Thanks Myiasis :D
I'll do that.
-
Is this Mod available for YaBB SE 1.3 as well?
-
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.
-
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?
-
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:
// Calendar.
if(in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($username == "$topicinfo[posterName]" && $username != 'Guest'))
Change to:
// Calendar.
// if(in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($username == "$topicinfo[posterName]" && $username != 'Guest'))
-
thanks!! ;D
this is a great mod!
-
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 =\
-
I think this is the fix you are after
http://www.yabb.info/community/index.php?board=172;action=display;threadid=12063
-
thnx for the fast reply ;)
-
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?
-
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
-
see my post abov ;)
-
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?
-
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? :)
-
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.
-
Ohhh! ;D
Thanks for that :)
-
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.
???
-
Man...I can't believe I found the problem. I can see the image now.
-
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 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.
-
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. ;)
-
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';
-
Thanks it worked!!! ;D
-
hi
how do i make the calendar function to work on my index.shtml
exampel
<!--#include virtual="/yabbse/SSI.php?function= ????????" -->
SSI.php ?????? ??? ???
-
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 ;)
-
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 <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 :-\
-
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!
-
Look in Subs.php and find the lines that look like:
// 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') {
-
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
-
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 ;)
-
I'll post it on that board as well then.
-
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.
-
Could have sworn I tested that :/
Anyway, you were right myiasis. I r stupid noob :)
-
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
-
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...
-
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
-
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
-
I upgraded to 1.5.1 and it's all fixed.. go figure
-Rahven