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.


[RESOLVED] - Promoting a post ... (afterthought - CRONJOB)

Login / Search

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

Community saint

I concede the complexity of this CMS, but since I've 'resurrected' my old site I would like to "bring to the front" older posts (News & Blogs) that are worth re-publishing. Currently they languish in the archives, and will probably never be read again by my visitors.

  • Can it be done?
  • Will the original comments accompany it?
I don't see a simple check-box or calendar-type choice that would allow this, hence I ask.

O_o

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:
#62597
Avatar

Community saint

Hi Fletch,

The best method I know to bump an old post to the front is to add a reply to it: "bump" and it should now appear on top of your News Block on the Front Page.

Jean
Back to the top
 
Posted
Rating:
#62599
Avatar

Community saint

No, doesn't work for me Jean!

I was referring to items posted as 'News' or 'Blog' entries, listed under their own 'newscats'.

'Bumping' Forum posts works fine, but I am not replicating anything from the forums on my front page.

Unles you can educate me further …

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:
#62602
Avatar

Community saint

Yes, you're right Fletch, I was thinking of forum entries. But, I'm sure I had students bumping my blog entries by writing comments on old ones…I've removed blogs from my first page sometime ago in favor of read only forum news to avoid this…but maybe my memory is failing me on this, as I've just tested it and it does not indeed bump the blogs up.

However, I know of three ways of achieving what you want:

1- Use the History Feature on your Blog Block (This day, week, month in History) This should bring back some of your posts to light.


2- To target a specific post in history, create a new Blog Category such as "Archive Highlights"
Add a new Blog Block for this category with only one entry at the time.
Edit a specific entry you want to refresh, change the Category and save. Voila it will be instantly publish on the front page. Every-time you want to replace it, just edit another archive in the same way.

3- There is a third way, That I can think of, but I'm not familiar with the proceedings.
Atom feed the entries you want to revive and post them of your front page with an RSS Block.


I hope this can help. I'm sure there are programmatic ways of achieving this, but I don't know them.

Cheers,
Jean
Back to the top
 
Posted
Rating:
#62605
Avatar

Community saint

Thanks, Jean.

I'll give each of them a bit of a run and see if what is delivered is what I am after.

 :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:
#62968
Avatar

Community saint

I think I will put this one to rest as [UNRESOLVED].

Tried various ways, but not able to 're-publish' so that the archived posts can be re-published in their own right, taking the original comments with them.

The only thing I can think of to do  is to re-publish each as a NEW post and then manually transfer the comments from the original to the new post.

But that is a bit kludgy and time consuming …

(must make a 'thumbs down' emoticon like this …)


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:
#64376
Avatar

Community saint

Re-visiting this issue!

Used one of Jean's suggestions and built a special News category (called 'Recycled') and a container on the front page to display only that category, thus forcing the engine to select and show only items I put in there. So far, so good, but this is fairly mind-numbing 'manual' work necessitating checking 'first-published' dates, because the old posts have now been sorted into various categories!

Experimenting with one post I wondered if I could change the date/time of publishing in the database and allow it to automatically surface to the top of the pile. It works, but (always a BUT, huh?) trying to decipher the encrypted (encoded?) date in the tables is a lost case:



I realised I had just edited that post to whip it into shape for the new display, so looked at the 'edit_date' field and copied that into the 'date_and_time' and voilá, I got the desired result:



Now all that remains is for somebody to explain how the 'date_and_time' figure is calculated, and if there is a simple algorithm to calculate it outside the DB tables.

Any offers?

 :(  

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:
#64377
Avatar

I think actually rescheduling publication will also change the date to the new publishing date.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64378
Avatar

Community saint

*BUMP*

Found the answer - at least for ME. May not be everybody's idea of a solution.

The date/timestamp in ocP's database tables is a 'converted' UNIX_TIMESTAMP. To get the value you want, you have to input an SQL Query, like so:
SELECT UNIX_TIMESTAMP('2005-03-27 03:00:00');
That will return a 10-figure value (1111885200) that you can enter into the relevant field.

To reverse the action input an SQL Query, like so:
SELECT FROM_UNIXTIME(1111885200);
That will return the date/time ('2005-03-27 03:00:00').

I'm happy that I can now do a 'work-around'. Thought I'd share in case other's wanted to decipher something similar.

 :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:
#64379
Avatar

Community saint

Chris Graham said

I think actually rescheduling publication will also change the date to the new publishing date.

You were obviously replying while I was composing, Chris. But thanks for the response.

Except that I must have missed something fundamental, because I cannot find anywhere that allows me to 'reschedule' publication.

A pointer would be helpful so that I don't have to go through my convoluted scenario to achieve the same objective.

Thanks.

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:
#64380
Avatar

Is CRON set up?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64382
Avatar

Community saint

CRON is available at the host, but I've never set it up in ocPortal, nor can I find where to do so.


Update:
Belay that! Found the CRON setup in Admin. Attempting to configure it. Will shout for help if something isn't understood.

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:
#64384
Avatar

Community saint

OK, hand-holding time again!

I've set up a Cronjob using my host's CP:

Code

/usr/bin/php-cli -C -q --no-header /home/fletch/public_html/anglo/data/cron_bridge.php

The response is that a Cronjob has been set up.

But what the hell does it do, and how do I tell it to, for instance, 're-publish' a post?

Is there a GUI, or do I need to use OcCLE, or do I set this up in the CP?

And what is the syntax?

 O_o

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:
#64388
Avatar

If CRON is working the Admin Zone front page will no longer have it on the todo list, and a new schedule option will automatically appear on news form.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64389
Avatar

Community saint

Success!

Thanks Chris.

May I suggest that those 'simple' explanations be included in the 'tute'?

Looking back to the 'tute', from the completed task, all becomes clear. BUT, when your average user doesn't have a clue about how to set up and trigger a Cronjob, it turns into a bit of a daunting learning curve.

Perhaps somebody like me needs to write an "ocPortal for Dummies" guide which may well serve to ease the fears of the average guy or gal who wants to take on this CMS.

 ;)

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:
#64401
Avatar

Our configuration tutorial explains CRON setup quite well. I'll update the news tutorial to reference it and also explain about how you can tell CRON is working and it's impact on advertised functionality.

Thanks


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: