SocialEngine 4: Auto Update Wall Activity

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!

Tags: , , , , , , , | Posted under 3rd Party Software, SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Andrew Cross

Hi, I'm Andrew. A am a 25, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

2 Comments on SocialEngine 4: Auto Update Wall Activity

  1. Modifying core files is not a good idea, The upgrades will overwrite the files and you’ll loose all the modifications.

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 3 = 4

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>