Welcome, Guest. Please Login or Register.
April 26, 2024, 02:38:36 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done] Calendar Mod [Ver 1.4] « previous next »
Pages: 1 ... 7 8 [9] 10 11 ... 23 Reply Ignore Print
Author Topic: [Done] Calendar Mod [Ver 1.4]  (Read 148258 times)
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #120 on: May 12, 2002, 10:43:40 AM »
Reply with quote

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.
Logged
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #121 on: May 12, 2002, 10:47:10 AM »
Reply with quote

Is there a way to get 'todays events' to show up on the boardindex???
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #122 on: May 12, 2002, 10:52:09 AM »
Reply with quote

Quote from: PHX on May 09, 2002, 01:07:39 AMI 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


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

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #123 on: May 12, 2002, 10:57:13 AM »
Reply with quote

Quote from: PioneeR on May 12, 2002, 10:47:10 AMIs 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.
Logged
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #124 on: May 12, 2002, 11:02:57 AM »
Reply with quote

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

Logged
lenaP
Jr. Member
**
Posts: 97


Well well...

Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #125 on: May 12, 2002, 11:55:49 AM »
Reply with quote

Quote from: Myiasis on May 12, 2002, 10:43:40 AMIf 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!
Logged
BloodThirsty229
Guest
Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #126 on: May 12, 2002, 06:47:50 PM »
Reply with quote

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.  ???
Logged
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #127 on: May 13, 2002, 06:03:07 AM »
Reply with quote

Quote from: BloodThirsty229 on May 12, 2002, 06:47:50 PMI 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.
« Last Edit: May 13, 2002, 06:23:26 AM by Myiasis » Logged
gijs
Guest
Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #128 on: May 13, 2002, 08:24:56 AM »
Reply with quote

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
« Last Edit: May 13, 2002, 08:27:32 AM by gijs » Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #129 on: May 13, 2002, 08:28:24 AM »
Reply with quote

Basically after you upgrade, then you just have to reinstall the mods again. Installing a mod shouldn't affect future upgrades of YaBBSE.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #130 on: May 13, 2002, 02:59:31 PM »
Reply with quote

Quote from: gijs on May 13, 2002, 08:24:56 AMWill 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.
« Last Edit: May 13, 2002, 03:00:27 PM by Myiasis » Logged
gijs
Guest
Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #131 on: May 13, 2002, 05:08:14 PM »
Reply with quote

I hardly can't wait  :) thanks for the good work!
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #132 on: May 13, 2002, 07:53:55 PM »
Reply with quote

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.
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #133 on: May 14, 2002, 04:47:47 PM »
Reply with quote

Quote from: Hypocrite on May 13, 2002, 07:53:55 PMI 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?
« Last Edit: May 14, 2002, 04:48:46 PM by Hypocrite » Logged
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.3]
« Reply #134 on: May 14, 2002, 05:04:34 PM »
Reply with quote

Quote from: Hypocrite on May 14, 2002, 04:47:47 PMThe 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.
« Last Edit: May 14, 2002, 05:05:33 PM by Myiasis » Logged
Pages: 1 ... 7 8 [9] 10 11 ... 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.017 seconds with 20 queries.