DeeEmm

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Running CRON for JomSocial

To enable your JomSocial site to communicate with it's members you need to set a CRON job up to pop messages off of the mail queue. This is done by calling the following script. "http://yourdomain.com/index.php?option=com_community&task=cron"

Normally this can be easily achieved by adding a cron via cPanel or whatever your flavour of web admin interface happens to be. If, like me, you are running a virtual or dedicated server you might need to add a CRON via the command line.

My particular flavour of linux happens to use the crontab function to run CRON tasks. To add a cron job its simply a case of running the following command

sudo crontab -e

Continue reading
4025 Hits
0 Comments

Allow guests to view JomSocial activity stream comments

I have recently migrated a site from Dolphin to JomSocial and needed to modify the way that the activity stream was displayed to visitors. By default the replies and likes of activity stream posts are only displayed to friends of the original poster. This means that the comments are very limited in their reach.

The overall effect of hiding activity stream comments and likes from guests is that this valuable activity is wasted. I wanted to show this activity to guest visitors so that they could see how active the site is. This in turn encourages them to join and hopefully encourages them to comment. 

Of course, this may not be suitable for all sites, but in the case of this site, there was no activity that is 'secret' or 'private'; the activity stream is public viewable, and so should be the comments.

The modification you need to do this is pretty straightforward, it simply involves removing or commenting out two lines of code. 

Continue reading
15485 Hits
0 Comments