• eCommerce
  • Social and Community Suite
  • Content Management
  • RSS Extensions
  • VirtueMart Extensions
Follow us on Twitter   Join The Factory on the New Digg  
(0) | Login | Register | Lost Password?
Username: Password:  
Home
Our Products
Joomla 1.7.x  (23) & J!1.6.x
Joomla 1.5.x (28)
Joomla 1.0.x (17)
Factory Club Extensions (7)
Drupal, Elxis, MODx (6)
Windows Gadgets for J! (11)
Free Templates (4)
All Products (92)
Documentation
Tweets
Forum
Contact Us
Terms & Conditions
How to Buy Guide
Customers FAQ's
Updates & Upgrades
About Us
The Factory Demo Server for Joomla Extensions
Money Back Guarantee
Payment Methods for Joomla Extensions
Follow us on Facebook

Latest Tweets

  • Join us at the Joomladay UK!
  • The Factory Extensions Joomla Compatibility Chart
  • Love Factory 2.4 for Joomla 1.7
  • Love Factory - Memberships [VIDEO]
  • Love Factory - Custom Fields Integration [VIDEO]
  • Love Factory - Google Maps Integration [VIDEO]
  • Love Factory - Administrator Guide [VIDEO]
  • Love Factory - Memberships
  • Collection Factory for Joomla 1.6 with CB support
  • Reverse Auction Factory 1.5.9
 
   Home   Help Search Login Register  
The Factory > Forum > Content Management Suite for Joomla CMS. > Article Factory Manager > JomSocial plugin: Article Activity for com_articleman aswell?
Pages: [1]
« previous next »
  Print  
Author Topic: JomSocial plugin: Article Activity for com_articleman aswell?  (Read 2646 times)
anderscarlen
Newbie
*
Posts: 8


View Profile
JomSocial plugin: Article Activity for com_articleman aswell?
« on: February 20, 2010, 10:03:26 pm »

Hi,

I am using Article Factory Manager together with JomSocial. I wold love for greater integration between the two.  (And I think you can tell by the number of times the topic "Integration with JomSocial" have been read, that I am not the only one. ) It would probably mean a greater exposure for Article Manager, and possible more revenue for you guys aswell.  Now to my specific question, and also a good start to offer some practical steps on how to start.

My suggestion would be to start the integration by creating a plugin that will add an "activity" into JomSocials activity stream, whenever a users publishes a new article.
Luckily: there is already a plugin that does the same for normal content (com_content).
And while I am not a programmer- I am guessing that it wouldn't take too much of an effort to adapt this existing plugin to also work with Article Factory Manager?

If someone could help me in the right direction I would be more then willing to help out with testing this.

How do I change this plugin to also work with com_articleman ?


---
Here are the bits I THINK are the most relevant pieces of code, but I have also attached the original plugin as a zip-file.

Examples of code:
require_once( JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php' );
require_once( JPATH_ROOT . DS . 'components' . DS . 'com_content' . DS . 'helpers' . DS . 'route.php');


Comment: Need to include articleman somehow, maybe with this?
      // include Article Manager Component.
      require_once(JPATH_SITE . DS . "components" . DS . "com_articleman" . DS . "class" . DS . "articleman_engine.php");


Then, instead of using the standard route - helper, I think I should use articleman somehow in the section below, right?

Quote
   // Add activity logging
               CFactory::load ( 'libraries', 'activities' );
      
               $act = new stdClass();
               $my            = CFactory::getUser( $article->created_by );
               
               $message      = $this->params->get( 'newarticlemessage' , '{multiple}{actors}{/multiple}{single}{actor}{/single} added a new article' );
      
               $link         = JRoute::_( ContentHelperRoute::getArticleRoute( $article->id . ':' . $article->alias , $article->catid , $article->sectionid ) );
               $message      .= ' <a href="' . $link .'">' . $article->title . '</a>';
               
               $act->cmd       = 'article.create';
               $act->actor    = $my->id;
               $act->target    = 0;
               $act->title      = JText::_( $message );
               $act->content   = $article->text;
               $act->app      = 'article';
               $act->cid      = $my->id;
               CActivityStream::add( $act );
      
      
« Last Edit: February 20, 2010, 10:08:16 pm by anderscarlen » Logged
scholary
Newbie
*
Posts: 2


View Profile
Re: JomSocial plugin: Article Activity for com_articleman aswell?
« Reply #1 on: June 10, 2010, 03:40:26 pm »

I totally agree with you, and am in exactly the same position as you.

I am running an article based website and want to allow my jomsocial users a way to upload new articles and have them listed within their profiles.

Have you had any success with your plugin to date?

TheFactory needs this!!!
Logged
anderscarlen
Newbie
*
Posts: 8


View Profile
Re: JomSocial plugin: Article Activity for com_articleman aswell?
« Reply #2 on: June 18, 2010, 07:19:36 pm »

No - the plugin describe above does NOT work.

Maybe we can pool our resources and get the Factory to do this for us?

How much would custom development of this little plugin cost? Anyone?

/anders
Logged
anderscarlen
Newbie
*
Posts: 8


View Profile
Re: JomSocial plugin: Article Activity for com_articleman aswell?
« Reply #3 on: September 09, 2010, 01:23:22 pm »

Quote from: scholary on June 10, 2010, 03:40:26 pm
Have you had any success with your plugin to date?

TheFactory needs this!!!

Hi, I have now paid a programmer to help me fix this problem. It displays the activity message in the activity stream (just as JomSocial would do with articles added through Joomlas Standard Article Manager.)
If you are interested in this solution, and willing to donate a few dollars to help with the programming costs, just let me know.

The solution works perfectly as of today.
/anders
« Last Edit: September 09, 2010, 02:28:24 pm by anderscarlen » Logged
Pages: [1]
  Print  
« previous next »
 
Jump to:  

Loading...
Joomla Extension - RSS Factory Manager  Joomla Extension - EBook Factory  Joomla Extension - Briefcase Factory  Joomla Extension - Auctions Factory  Joomla Module - RSS Contextual  Joomla Module - Exchange Factory (Europe / EURO)  Joomla Module - Exchange Factory (Romania/ RON)  Joomla Custom Extensions Development   Free Joomla Extensions  Joomla Extension - RSS Factory Pro (Enhanced Version)  Joomla Virtuemart Payment Plugin - Gecad (EPayment.ro)  Joomla Module - Mosimage / Image Module  Joomla Extension - Reverse Auction Factory (Lowest Bidder Auctions)  Joomla Extension - Article Factory Manager  Joomla Module - Lavalamp Menu  Joomla Module - RSS Image Extractor  Joomla Module - Exchange Factory (Europe / EURO) for Joomla 1.0.15  Joomla Module - Exchange Factory (Romania / RON) for Joomla 1.0.15  Joomla Module - Top Movies (IMDB)   Joomla Module - EBay Latest Auctions  Auction Factory Standalone PHP script