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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 470
  • Total: 470

auto publishing articles

Started by prometheus fire, November 03, 2009, 03:17:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prometheus fire

Is there a way to add articles in Tiny Portal and then have them automatically appear on the frontpage on a given date?

I'm prepping a new site and I want to have about 2 weeks worth of article written, prepared and saved to the site.  I plan on publishing 1 article each day, I would like  to be able to set a date for the article to be active and then be able to forget about it so my staff and I can continue to work ahead.

If I were to "post-date" the articles based on whatever schedule I come up with, is there some script that will automatically make them active?

I only want this as a feature to keep from having to log in everyday just to activate a stored article.  This is something that would be useful for websites that are growing fast.

IchBin

There's no way to make articles go active automatically by some sort of date or timer. Your best bet is to put them in a category and keep the category permissioned until you get to the date you want. Then just turn the cat public.

ZarPrime

Well, I don't know how this could be done either but the idea has some merit ;)

I don't know if it could be based on the users time on his computer or the server time, but server time would probably be best, if that's possible.  Perhaps each article could have optional settings for start date and end date where the following would happen ...

1.  If a start date is in there, it would start showing up on that date.
2.  If there was an end date, the article would automatically stop showing after that date.
3.  If there was a start date and an end date, those guidelines would be followed.
4.  If neither date is selected by the author, it would start immediately and never shut off.

There could be an additional global setting where an Admin could say that the guidelines would be followed, but that the article could still be available for viewing on the article page itself, or the article could be totally turned off after that date.  If willdcards (*) were enabled for something like the month/day/year (like month/day/* or */day/*, etc.), then articles could be setup that would show on certain dates every month or every year.  For instance ...

1.  A setting of 12/15/* to 12/25/* would show your Christmas Greeting article for the 10 days between December 15th and December 25th of every year.
2.  A setting of */01/* to */07/* would show the owner's donation article daily from the first to the 7th of every month and then shut off until the next month.

These are just a couple of examples, but you get the idea.  I don't think this is an idea for the TP core, though it could be, but I can see this as a possible enhancement for the FrontPage Module that Bloc has been talking about for the future.

Personally speaking, I am of the opinion that a site owner should check into their site on a daily basis, or at least one of his Admins should, if only to check for new questions from his members or to check for new members awaiting activation, but I can see where something like this could certainly help to automate the process of running a Forum.  In fact, I like the idea enough that I am going to move this into Feedback and perhaps Bloc will comment on it when he gets a chance.

ZarPrime

bloc

I very much like this feature, but I wonder if its something that should be built-in already, at least the basic publish start/end date. That should cover most cases, though more esoteric ones, like skipping every second day, will need to be in a frontpage module.

Also, another reason to include it now, is that it means the core fetching functions for getting the articles will need to cater for this limit, to be optimal.

This website is proudly hosted on Crocweb Cloud Website Hosting.