TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 564
  • Total: 565
  • @rjen

Upcomming events block

Started by winrules, November 06, 2005, 08:20:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

manji

thanks!
And is there a way I can get them to display with a space between events? So they display on a separate line, but with a space between lines :)

akulion

im making a guess since i dont use it myself but u could add another br at the end like so:


      echo '<a href="' . $event['href'] . '">' . $event['date'] . ' : ' . $event['title'] . '</a><br >';


like this

      echo '<a href="' . $event['href'] . '">' . $event['date'] . ' : ' . $event['title'] . '</a><br ><br >';

manji

That worked pretty well! Thanks!

akulion


ckale

#14
I am trying to make two blocks.

1-people who has birthday TODAY block. (i made it using phpbox, smf's calendar settings)

2-but i didn't make the block "upcoming 5 events" or "upcoming events in 15 days".

if I set smf's calendar settings "15 days", birthday block shows me "birthdays in 15 days", but I want birthdays today and events today+ 15 days

Is it possible?




ckale

Quote from: ckale on November 04, 2006, 03:55:04 PM
I am trying to make two blocks.

1-people who has birthday TODAY block. (i made it using phpbox, smf's calendar settings)

2-but i didn't make the block "upcoming 5 events" or "upcoming events in 15 days".

if I set smf's calendar settings "15 days", birthday block shows me "birthdays in 15 days", but I want birthdays today and events today+ 15 days

Is it possible?





I think it is impossible :( with block codes


JPDeni

It is impossible if you use the built-in functions, but perfectly doable with php code.

MaERcS

ThatÃ,´s a great block, but I want the date like that: "18/02" (Day/Month)
You know how to do it?

Thanks.

tick

Quote from: foxfox on September 11, 2006, 10:23:48 AM
Quote from: scotte44 on November 07, 2005, 05:36:38 PM
This block would be really nice if it had two things:
Each event listed on a seperate line &


<?php
$result 
ssi_todaysEvents('array');
if (!empty(
$result))
{
   foreach (
$result as $event)
      echo 
'<a href="' $event['href'] . '">' $event['date'] . ' : ' $event['title'] . '</a><br >';
}
else
      echo 
'There are currently no events in the next XXX days.<br>';
?>


XXX is the timespan you set in the forums. The date might need some editing but i'm not that much of an expert.
I am using this code in a block.  What do I need to add to this to make it show holidays and birthdays.   I dont know much about coding so if this is simple please excuse me

tick

I tried a couple of different thing today with this but still cannot get it to display birthdays.  I think I should be calling the calender instead of todays Events but am not sure how to do this.  any input anybody?

This website is proudly hosted on Crocweb Cloud Website Hosting.