HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Calendar Events

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#75302 (In Topic #15610)
Avatar

Fan in action

listing of events

Hello, I'm new to ocPortal and have installed it for a "family" web site. So far I like everything about it, however, I would like to add a section below the calendar that will list this months upcoming events, which will consist of family member birthdays, anniversaries & in memory of, etc.

How can I create the necessary block to display this information? Also, I don't know anything about writing code.

thanks for any help.

Jim
Back to the top
 
Posted
Rating:
#75305
Avatar

Community saint

Hi Jim. Welcome to ocPortal.

If you add …

Code

[block]side_calendar_listing[/block]
… under your 'calendar' in the side panel it should do the trick for you, provided you've got 'future' entries in your calendar.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#75308
Avatar

Fan in action

Wow, so easy!! Thanks Fletch!

If I can ask one more question, Currently, coming soon shows the icon (birthday), then the time (which is 12:00am) then the name. Is it possible to eliminate the "time" in coming soon? Since the birthday is all day, a time isn't necessary.

thanks again,

Jim
Back to the top
 
Posted
Rating:
#75309
Avatar

Community saint

I decided to give this a try since it's what I wanted in the first place but I guess I never noticed it.

The side_calendar_listing block appears to be deprecated (at least in 7.1.5). This feature is now built into the side_calendar block as a display option.

I agree that it would be nice to have the option to show dates without a start time since these are all-day events. I realize that I can mess with the TPL but I think this should be a standard option.

Bob
Back to the top
 
Posted
Rating:
#75314
Avatar

Fan in action

Yea I agree Bob. Hopefully it will become an option to remove the time. I tried to not have times and just use the dash, but it's a required field and wouldn't let me save it with the dashes. Perhaps the programmers could make the dash the default for an all-day event with no start time.

I thought about the template also, but there's no way I'm gonna mess with it with my limited knowledge. ;) I do like using ocportal as it seems to have most of what I wanted in my site.

thanks,

Jim
Back to the top
 
Posted
Rating:
#75316
Avatar

Community saint

If you do a forum search on calendars and my or Chris's names as submitters, you will see that they made the calendars a bit more flexible a while back. I argued then that a date without a start time is an implicit all-day event. I don't really care about the start time though, I'd rather they concentrate on making the time display optional.

For me personally, I only have all-day events although that could conceivably change (e.g., meet-and-greets) but then I could use two blocks and filters.

Bob
Back to the top
 
Posted
Rating:
#75323
Avatar

Fan in action

Thanks Bob, I agree, I would just like the time display to be an option. Do you know if the files that Chris sent to your were incorporated into the latest version ocportal, or was that just for you? If it was just for you then I guess I would need to do the same for mine? What happens when ocportal is updated, will we have to make the changes again?

It seems like we both have the same needs when it comes to the calendar and events. I'm currently creating a family web site (for the living), but then plan on creating another one dedicated to ancestors and will try and link the two.

Hey, thanks for all the help and info.

Jim
Back to the top
 
Posted
Rating:
#75331
Avatar

Community saint

Jim-

The changes were incorporated into the distribution. Prior to that, you needed to enter an ending date as well.

I'm not sure about the change to the starting year - that may have been something I had to adjust but it has not been over-written since.

Just for your information, the ocPortal upgraded is well-designed and does not touch any custom files (files in *_custom), It simply advises you that new updates are being blocked by your customization and leaves it to you to reconcile the  changes.

Bob
Back to the top
 
Posted
Rating:
#75335
Avatar

Fan in action

Bob, I really like what I see so far with ocportal.

Not sure how to use "custom files", but I guess as I use it more and more I'll learn.

I'm interested in knowing how you use the older years? I was thinking that when I create my ancestry site, I'd like to have a block for "On This Day", which would show what ancestor was born, married, moved, died or something of significance happened on this particular day (including showing the month/day/year). Hopefully I'll learn how to do these type of things.

again, thanks for all your help (and Fletch),

Jim
Back to the top
 
Posted
Rating:
#75337
Avatar

Community saint

JimL said

Not sure how to use "custom files", but I guess as I use it more and more I'll learn …… thanks for all your help (and Fletch)

*_custom files





Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#75340
Avatar

Community saint

JimL said

Bob, I really like what I see so far with ocportal.

Not sure how to use "custom files", but I guess as I use it more and more I'll learn.

I'm interested in knowing how you use the older years? I was thinking that when I create my ancestry site, I'd like to have a block for "On This Day", which would show what ancestor was born, married, moved, died or something of significance happened on this particular day (including showing the month/day/year). Hopefully I'll learn how to do these type of things.

again, thanks for all your help (and Fletch),


Once again, Fletch pretty much summed up the *_custom_files with another of his great graphics.

So far, I've been content to just list the events by date. I hope to do more with the way the information from the calendar is displayed when I get a chance, but right now I am just concentrating on getting more content posted rather than concerning myself with "appearance" issues. I've got a tiger but the tail on this project and it is taking a great deal of effort (and lost sleep) just to sort of stay on my revised imagined schedule.

Bob
Back to the top
 
Posted
Rating:
#75341
Avatar

Fan in action

thanks again to both of you. I don't know if I'm suppose to start a new topic, but where do I change the upload limit for images. It currently says 2 Mb, and I've changed it in the site options (upload section), but there must be a php file that I need to change, but I can't find any documentation on this.
Back to the top
 
Posted
Rating:
#75350
Avatar

Community saint

Adminzone >> Tools >> PHP info

Now check the tables and look under "Configuration - PHP core" and check the figures against …
  • post_max_size
  • upload_max_filesize
… comparing the 'Local Value' against the 'Master Value'.



I suspect your web host has limited your 'sizes' to 2MB.

Try rectifying it with the recommended.htaccess that comes with your ocPortal download. If that doesn't work, you will need to talk to your web host and ask them to raise the limits.

Good luck with the last recommendation.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#75372
Avatar

Fan in action

Great Fletch, I found it in the PHP info, and it does show 2MG for both. I looked in the recommended htacess file and it shows 16MG for both.

Now I read on the right side of PHP info that I may need a php.ini file, since my hosting is apache with cgi server (whatever that means :)) and it says I need to use a custom php.ini. I'm very new at this and don't understand how to do such things. If its something I can do, I'd like to try, but again, I have limited knowledge. I don't even know where it would go let alone how to make one.

Jim
Back to the top
 
Posted
Rating:
#75387
Avatar

Community saint

Rename recommended.htaccess to .htaccess and upload it to the root folder of your installation. It is just possible that your webhost allows your 'post_max_size' & 'upload_max_filesize' to be overridden by the .htaccess, although I have my doubts. I know this worked for me with one of my previous web hosts.

If the sizes can't be changed by the .htaccess file, then you will need to talk to your web host and request that they increase the limits for you as a 'one-off'.

If your host offers cPanel, then it may be possible to access the php.ini file and attempt to edit it. Ask their 'live help' (or equivalent) if this possible.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#75392
Avatar

Fan in action

Thanks Fletch, I tried that with the htaccess and it didn't change, so I contacted my provider and yes they had the limit set to 2mb. They did give me instructions on how to change it (in the php.ini file, which was hidden).

Again, I can't tell you enough how much I appreciate the help. So much to learn and so little time, eh? :)

Jim
Back to the top
 
Posted
Rating:
#75393
Avatar

Community saint

That's really sucky that they had it set so low. And here I was unhappy with my host that only provided 64M. My new host happily has a limit of 128M which means my uploaded images are no longer compressed to the point of discernible reduction in quality.

Bob
Back to the top
 
Posted
Rating:
#75394
Avatar

Community saint

JimL said

They did give me instructions on how to change it (in the php.ini file, which was hidden).
Woooo-freaking-hooooo!

Hang on to that provider. They aren't all as accommodating as your bunch appear to be!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#75413
Avatar

Community saint

Most times this is set standard low by most providers. Yes also if you hired a dedicated server. You have change this mostley your self or ask them to do it for you.


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#75415
Avatar

Community saint

Harry-S said

Most times this is set standard low by most providers.
What limit have you set for your hosting, Harry?

I know one of my previous hosts explained that it was kept artificially low to prevent spammers overloading the server, gaining access from a 'loosely-controlled' script.

I can understand their point of view, but like JimL's hosts, they should be prepared to raise the limits (or allow the customer edit access to the php.ini file) when it is explained to them that the software one is using, e.g. ocPortal, is locked down tight as a wall-safe!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand