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: 0
  • Guests: 460
  • Total: 460

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.

Porky

#20
Look here it gives you a list of all the SSI functions... It might help you out
http://www.tinyportal.net/index.php?topic=2323.0

GhostRider2110

#21
I seem to be having an issue with one of my sites using this code.   I have a block to show upcoming events:

www.usscalemasters.org/forums
SMF 1.1.9
TP 1.0 B4
Modified Blueskies theme



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


After a period of time, not accessing the site, say over night... The front page will display there are not upcoming events in the next 30 days. Yet there are.  If you go to the Calendar, click on the month of June, where the next events are, then go back to the front page, they are now displayed.  I have had others test this and it has the same behavior.  But one anyone checks the calendar directly, then everyone can see the upcoming events on the main page...  FYI - both the upcoming events block and the Calendar block will not show anything....

No errors in the logs I can find.

Any help would be appreciated. 

--Mitch
Mitchell Baker

GhostRider2110

I guess I stumped the panel... :)   Or should I start a new thread? I still have not found any answer to this.  --Mitch
Mitchell Baker

IchBin

Since its using only SSI pulled from SMF. There doesn't seem to be any way for us to control your issue. The code posted doesn't do any alteration of the code. It just outputs what the SSI function does. You should probably ask someone at SMF why that function is behaving that way.

GhostRider2110

Ok, thanks.. it is really strange..  I am going to go through my SMF settings again just to see of maybe it's a server cache issue. It sure acts like it... --Mitch
Mitchell Baker

GhostRider2110

Just checked and no caching is enabled on the server...  Will query SMF help and report back what I find.. -- Mitch
Mitchell Baker

GhostRider2110

Well I have posts in SMF forums and a ticket open, but still no luck.  One interesting thing I noticed today, since we rolled into June, all the events for June are now showing up, but nothing after June... --Mitch
Mitchell Baker

GhostRider2110

Seems it was a mod messing things up.  Repeating Events for Calendar http://custom.simplemachines.org/mods/index.php?mod=655 was causing the problem.  I removed that mod and all seems to be working.  I kinda miss what it did, but you can still span events over multiple days. It's ability to have events repeat every month, or year or X number of days was nice...

--Mitch
Mitchell Baker

rjackson

im lost, I tried to use this code but it dont work.. Im I using the wrong one?

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


ZarPrime

rjackson,

In what way does it not work?

I tried the code on my test site using SMF 1.1.10 and TP 1.0 beta 4 and it works fine.  You need to make sure that you have events posted for the next 30 days or it won't show them.  Even if there aren't any events, the block will state that.  There isn't much more we can do to help you without having the information that is requested at the bottom of the posting guidelines.  So, if you require additional help on this, Please Read and Follow the Posting Guidelines.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.