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

YaBB SE Community  |  Development  |  Completed mods  |  [Done] Calendar Mod [Ver 1.4] « previous next »
Pages: 1 ... 15 16 [17] 18 19 ... 23 Reply Ignore Print
Author Topic: [Done] Calendar Mod [Ver 1.4]  (Read 148168 times)
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #240 on: May 26, 2002, 04:56:51 PM »
Reply with quote

I feel stupid now :(
Logged

To the world - you are just one person, but to one person you are the world!
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #241 on: May 26, 2002, 04:56:59 PM »
Reply with quote

lol
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #242 on: May 26, 2002, 06:16:15 PM »
Reply with quote

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. :)
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #243 on: May 26, 2002, 06:16:21 PM »
Reply with quote

lmao, backwards! lol
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #244 on: May 26, 2002, 08:24:22 PM »
Reply with quote

Quote from: Lonestar on May 26, 2002, 06:16:15 PMStrangest 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.
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #245 on: May 26, 2002, 11:47:02 PM »
Reply with quote

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

To the world - you are just one person, but to one person you are the world!
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #246 on: May 27, 2002, 04:10:49 AM »
Reply with quote

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
Logged

Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #247 on: May 27, 2002, 03:14:59 PM »
Reply with quote

Quote from: Lonestar on May 27, 2002, 04:10:49 AMThe 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.
« Last Edit: May 27, 2002, 03:18:09 PM by Myiasis » Logged
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #248 on: May 27, 2002, 05:04:38 PM »
Reply with quote

Quote from: Coyote on May 26, 2002, 11:47:02 PMI 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.
« Last Edit: May 27, 2002, 05:07:13 PM by Myiasis » Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #249 on: May 27, 2002, 05:31:11 PM »
Reply with quote

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.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #250 on: May 27, 2002, 06:19:28 PM »
Reply with quote

Quote from: Myiasis on May 27, 2002, 05:04:38 PMI 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 :)
Logged

Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #251 on: May 27, 2002, 07:38:56 PM »
Reply with quote

Thanks hypocrite :D

Logged

To the world - you are just one person, but to one person you are the world!
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #252 on: May 27, 2002, 09:49:10 PM »
Reply with quote

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

Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #253 on: May 29, 2002, 03:30:52 AM »
Reply with quote

Quote from: Lonestar on May 27, 2002, 09:49:10 PMI 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.
Logged
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #254 on: May 30, 2002, 01:25:05 AM »
Reply with quote

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)
Logged

Pages: 1 ... 15 16 [17] 18 19 ... 23 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done] Calendar Mod [Ver 1.4] « previous - next »
 


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

Page created in 0.104 seconds with 20 queries.