As we all know that when there is a new update in the wall feed it shows.
1 New Feed. Click to view it.
If you want to show updates directly in the wall without clicking anything then follow these steps.
1: Open /application/modules/Activity/widgets/feed/index.tpl
2: Find
<?php if( !empty($this->checkUpdate) ): // if this is for the live update if ($this->activityCount) echo "<script type='text/javascript'> document.title = '($this->activityCount) ' + activityUpdateHandler.title; </script> <div class='tip'> <span> <a href='javascript:void(0);' onclick='javascript:activityUpdateHandler.getFeedUpdate(".$this->firstid.") ;$(\"feed-update\").empty();'> {$this->translate(array( '%d new update is available - click this to show it.', '%d new updates are available - click this to show them.', $this->activityCount), $this->activityCount)} </a> </span> </div>"; return; // Do no render the rest of the script in this mode endif; ?>
3: Replace it with
<?php if( !empty($this->checkUpdate) ): // if this is for the live update if ($this->activityCount) echo "<script type='text/javascript'> activityUpdateHandler.getFeedUpdate(".$this->firstid."); </script> <script type='text/javascript'> document.title = '(New updates) ' + activityUpdateHandler.title; </script>"; return; // Do no render the rest of the script in this mode endif; ?>
4: Save and upload.
You are done.
Looking for quality SocialEngine Web Hosting? Look no further than Arvixe Web Hosting!
Modifying core files is not a good idea, The upgrades will overwrite the files and you’ll loose all the modifications.
Even so if you keep a copy of the file once edited you can re-upload it, you would only need to redo this if they move something or add something to this page.