Welcome, Guest. Please Login or Register.
April 20, 2024, 01:35:57 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 ... 20 21 [22] 23 Reply Ignore Print
Author Topic: [Done] Calendar Mod [Ver 1.4]  (Read 148183 times)
diva_uno
Full Member
***
Posts: 119


I'm your mama!!!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #315 on: October 30, 2002, 09:14:36 AM »
Reply with quote

I found your post here: 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:



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

Karma -1?! Damn that llama!!!
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #316 on: October 30, 2002, 10:06:26 AM »
Reply with quote

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';
Logged
diva_uno
Full Member
***
Posts: 119


I'm your mama!!!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #317 on: October 30, 2002, 10:45:01 AM »
Reply with quote

Thanks it worked!!! ;D
Logged

Karma -1?! Damn that llama!!!
Esben
Noobie
*
Posts: 5


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #318 on: October 31, 2002, 02:36:12 AM »
Reply with quote

hi
 how do i make the calendar function to work on my index.shtml

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

SSI.php ?????? ??? ???
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #319 on: October 31, 2002, 02:57:52 AM »
Reply with quote

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

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Esben
Noobie
*
Posts: 5


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #320 on: October 31, 2002, 03:21:37 AM »
Reply with quote

Quote from: Spaceman-Spiff on October 31, 2002, 02:57:52 AMits 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 ([email protected])
Deutsche Anpassung Horseman ([email protected])
</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  :-\

« Last Edit: October 31, 2002, 03:23:00 AM by Esben » Logged
asme
Noobie
*
Posts: 1


Llamas are cool, but I'm an alpaca!

WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #321 on: November 15, 2002, 07:36:46 PM »
Reply with quote

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


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #322 on: November 16, 2002, 05:26:46 AM »
Reply with quote

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') {

Logged
feday
Noobie
*
Posts: 6


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #323 on: January 15, 2003, 09:56:27 AM »
Reply with quote

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
« Last Edit: January 15, 2003, 09:58:45 AM by feday » Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #324 on: January 15, 2003, 10:22:27 AM »
Reply with quote

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

Logged

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


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #325 on: January 15, 2003, 12:14:43 PM »
Reply with quote

I'll post it on that board as well then.
Logged
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #326 on: January 15, 2003, 04:39:27 PM »
Reply with quote

Quote from: feday on January 15, 2003, 09:56:27 AMto 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.
Logged
feday
Noobie
*
Posts: 6


I'm a llama!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #327 on: January 16, 2003, 08:53:03 AM »
Reply with quote

Could have sworn I tested that :/
Anyway, you were right myiasis. I r stupid noob :)
Logged
Rahven
Noobie
*
Posts: 8


All your llama are belong to us!

Re:[Done] Calendar Mod [Ver 1.4]
« Reply #328 on: March 02, 2003, 03:17:32 PM »
Reply with quote

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
Logged

So it was more interesting acting with insane people with knives in their hands... that's where you're not really acting, you're like 'Get that knife away from my face.
-Bruce Campbell
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:[Done] Calendar Mod [Ver 1.4]
« Reply #329 on: March 02, 2003, 03:19:45 PM »
Reply with quote

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

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
Pages: 1 ... 20 21 [22] 23 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done] Calendar Mod [Ver 1.4] « previous - next »
 


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

Page created in 0.075 seconds with 20 queries.