-
AuthorPosts
-
joeluvny Friend
joeluvny
- Join date:
- June 2009
- Posts:
- 130
- Downloads:
- 39
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
October 6, 2014 at 10:28 am #201860Hello, is their a way for the JA System Social Feed Plugin to only the most pull in the most recent page feeds and not the entire Facebook feed history. I was using it to pull over 30 Facebook pages but it would not only pull in the most recent post but the entire Facebook post history which cause my database to get bloated and the data useless.
It was pulling feeds from pages all the way back to 2007
Also do you plan on added an expiration date feature to the plugin?
This feature would unpublish and automatically delete any feeds that as past a certain date, ex.( delete any feed that is more than 7 days old)Thank you
Josephjooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 6, 2014 at 10:45 am #551973Hi there,
Please allow me a bit time. I’ll check code of this plugin than we can see what can we do.Thank you,
Viet Vujoeluvny Friendjoeluvny
- Join date:
- June 2009
- Posts:
- 130
- Downloads:
- 39
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
October 6, 2014 at 10:47 am #551974Thank you, that would be great! 🙂
I would love to start using it againJoseph
joeluvny Friendjoeluvny
- Join date:
- June 2009
- Posts:
- 130
- Downloads:
- 39
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
October 18, 2014 at 2:00 pm #553449Hello Viet, do you have any updates on this issue yet?
Joseph
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 21, 2014 at 2:37 am #553675Hi there,
I’m sorry was bit busy with some issues. I’ll reply you update today.Thank you,
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 21, 2014 at 2:52 am #553677Hi there,
I have just checked into this plugin source code.
Let’s try to play with it.
pluginssystemjasocial_feedtablesjoomla.php
This’s table for Joomla! content. We’r using it to save data to Joomla! com_content article
$item['id'] = $id;
$item['created_by'] = $post['created_by'];
$item['created_by_alias'] = html_entity_decode($post['source_author'], ENT_COMPAT, 'UTF-8');
$item['catid'] = $post['catid'];
$item['alias'] = $post['source_alias'];
$item['title'] = html_entity_decode($post['source_title'], ENT_COMPAT, 'UTF-8');
$item['created'] = $this->dateToDb($post['source_published_date']);
$item['publish_up'] = date('Y-m-d H:i:s', time()-86400);
$item['publish_down'] = '';
$item['created'] = $this->dateToDb($post['source_published_date']);
As you can see, this item created time will stored by get from facebook source_published_date. Yup ! At this point we can inject our code to check time diferent
http://stackoverflow.com/questions/2040560/finding-the-number-of-days-between-two-dates
For sample you want to limit 7 days from current day with created time.I’m not sure our developer will include it in next version but at least we got solution.
Thank you,
Viet Vujoeluvny Friendjoeluvny
- Join date:
- June 2009
- Posts:
- 130
- Downloads:
- 39
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
October 21, 2014 at 3:42 am #553689Thank you for looking into this for me Viet but can you help me by giving me the code that i would inject after the
$item[‘created’] = $this->dateToDb($post[‘source_published_date’]);So that it only seek Facebook feeds that are not older than 7 days.
Thank you
Joseph
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by joeluvny 10 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum