EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Author Topic: calender block needed  (Read 8736 times)

0 Members and 1 Guest are viewing this topic.

Offline ke4obt

  • Posts: 4
  • Karma: 0
  • Gender: Male
  • CQ CQ CQ From KE4OBT Located At Grid Square EM90ck
calender block needed
« on: December 01, 2008, 06:13:40 pm »
I am looking for a calender block that shows the same info that the SMF calender shows e.g. hollidays, events and birthdays. with proper permishons (calender visible perms. and b.day visible perms.).
Is this at all possable

    Thanks Lots
Philip "Flip" Halley IV - KE4OBT
The Blind Ham
Helping Other Blind Hams
At Ham Radio Advisors

Offline chinaren

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 4
  • www.TomeCity.com
    • Read Tired of Death for free!
Re: calender block needed
« Reply #1 on: December 01, 2008, 06:56:48 pm »
Ooh yes!  That's a good idea.  A nice little calander display (showing a month or a week in a block).  Would be loverly.  :)


Offline ctl_dog

  • Posts: 4
  • Karma: 0
Re: calender block needed
« Reply #2 on: December 18, 2008, 12:04:02 pm »
I agree, that would be nice.

Offline BigJon

  • Posts: 13
  • Karma: 0
Re: calender block needed
« Reply #3 on: January 25, 2009, 08:06:57 pm »
Would love to see something that would show upcoming events for the next X number of days or so.

Offline ohioreef

  • Posts: 6
  • Karma: 0
Re: calender block needed
« Reply #4 on: January 28, 2009, 06:41:54 pm »
A calendar EZblock would definately be very nice!!

Offline flea2010

  • Posts: 2
  • Karma: 0
Re: calender block needed
« Reply #5 on: February 20, 2009, 04:19:37 am »
I don't know how to create an EzBlock, but I used the following code in a php-block to show the next few events from the calendar:

Code: [Select]
$dbresult = db_query(" SELECT DATE_FORMAT(startDate, '%d.%m.%Y') AS startDate_de, c.* FROM smf_calendar c WHERE startDate >= CURRENT_DATE ORDER BY startDate ASC LIMIT 5 ");
while ($row = mysql_fetch_assoc($dbresult))
{
if ($row['ID_TOPIC'] > 0 )
{
echo $row['startDate_de'].' <a href="index.php?topic='.$row['ID_TOPIC'].'">'.$row['title'].'</a><br>';
}
else
{
echo $row['startDate_de'].' '. $row['title'].'<br>';
}


}

And this one for the birthdays of the current-date:

Code: [Select]

echo "<ul>";

$dbresult = db_query(" SELECT id_member, memberName, YEAR(CURRENT_DATE) - YEAR(birthdate) AS yearsold, birthdate, mg.onlineColor FROM smf_members m LEFT JOIN smf_membergroups AS mg ON (mg.ID_GROUP = IF(m.ID_GROUP = 0, m.ID_POST_GROUP, m.ID_GROUP))WHERE DAYOFMONTH(birthdate) = DAYOFMONTH(CURRENT_DATE) AND MONTH(birthdate) = MONTH(CURRENT_DATE) ");
while ($row = mysql_fetch_assoc($dbresult))
{
echo '<li><a href="',$scripturl,'?action=profile;u=',$row['id_member'],'" style="color: ' . $row['onlineColor'] . ';">'.$row['memberName']."</a> (".$row['yearsold'].")";
}
echo "</ul>";

Offline BigJon

  • Posts: 13
  • Karma: 0
Re: calender block needed
« Reply #6 on: February 20, 2009, 04:27:27 pm »
Nice!

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: calender block needed
« Reply #7 on: February 22, 2009, 09:51:39 pm »
A calender ezBlock is on my todo list.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
27183 Views
Last post November 29, 2008, 10:57:43 pm
by newb
1 Replies
7645 Views
Last post December 17, 2008, 07:10:57 pm
by EzPortal
1 Replies
8482 Views
Last post April 02, 2009, 01:05:51 pm
by Sam
3 Replies
6765 Views
Last post February 11, 2011, 03:54:13 pm
by asdgdahae
0 Replies
2990 Views
Last post March 06, 2016, 01:09:27 am
by sirrobfromoz

+-SMF Gallery

Quick Menu


Powered by EzPortal