Support

  1. DaffRider
  2. Bug Report
  3. Tuesday, August 04 2015, 05:36 PM
Hi

The notification and conversation only display on the home page of SocialNetwork :(

i have test to edit Users/view.ctp to add this code:

			<li>
<a id="notifications" data-url="<?php echo $this->request->base?>/notifications/ajax_show/home" rel="home-content" href="/<?php echo $this->request->base?>/home/index/tab:notifications"><i class="icon-globe"></i> <?php echo __('Notifications')?> <span id="notification_count" class="badge_counter"><?php echo $cuser['notification_count']?></span></a>
</li>
<li>
<a id="messages" data-url="<?php echo $this->request->base?>/conversations/ajax_browse" rel="home-content" href="/<?php echo $this->request->base?>/home/index/tab:messages"><i class="icon-envelope"></i> <?php echo __('Messages')?> <span class="badge_counter"><?php echo $cuser['conversation_user_count']?></span></a>
</li>


But the link dont work, loop loading

could you help me to add the correct code ? thank you ;)
Attachments (2)
admin Accepted Answer
Admin
Hi,
2 issue

1. Loading container
you need to replace rel="home-content" with rel="profile-content", rel attribute define container to load the page.

2. Check is Current user is owner of profile
You need to check if current user is the owner of profile, otherwise you need to hide these links, to check this you can add a "if" statement like this
if ( $uid == $user['User']['id'] ) {
// SHOW THESE LINK
}


NOTE: $uid contain current user id ( same as $cuser['id'] )
  1. more than a month ago
  2. Bug Report
  3. # 1
DaffRider Accepted Answer
HI

Ok great but where are the files to edit ?

Thx you for your help, could you say me the process ?

Thx

David
  1. more than a month ago
  2. Bug Report
  3. # 2
admin Accepted Answer
Admin
i have test to edit Users/view.ctp to add this code:
in Users/view.ctp is correct.

try to add following code about line 129 in Users/view.ctp
<?php if ( $uid == $user['User']['id'] ) : ?>
<li>
<a id="notifications" data-url="<?php echo $this->request->base?>/notifications/ajax_show/home" rel="profile-content" href="/<?php echo $this->request->base?>/home/index/tab:notifications"><i class="icon-globe"></i> <?php echo __('Notifications')?> <span id="notification_count" class="badge_counter"><?php echo $cuser['notification_count']?></span></a>
</li>
<li>
<a data-url="<?php echo $this->request->base?>/conversations/ajax_browse" rel="profile-content" href="#"><i class="icon-envelope"></i> <?php echo __('Messages')?> <span class="badge_counter"><?php echo $cuser['conversation_user_count']?></span></a>
</li>
<?php endif; ?>
  1. more than a month ago
  2. Bug Report
  3. # 3
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 4
admin Accepted Answer
Admin
Hi,
this forum sometime replace parenthesis (due to emoticon purpose), I have fixed code in previous code, try now ;)
  1. more than a month ago
  2. Bug Report
  3. # 5
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 6
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 7
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 8
admin Accepted Answer
Admin
Hi,
try to check in Social Network Admin Panel->System Settings->Email Settings your configuration, if this is ok please post me your "Site Details" to check this issue.
  1. more than a month ago
  2. Bug Report
  3. # 9
DaffRider Accepted Answer
I have write info in site detail

thank you
  1. more than a month ago
  2. Bug Report
  3. # 10
admin Accepted Answer
Admin
Can you try to set 25 into SMTP port, I think that for some reason the PHP smtp library don't understand SSL connection.

Sorry missing URL in site details to check :( .
  1. more than a month ago
  2. Bug Report
  3. # 11
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 12
admin Accepted Answer
Admin
Sorry I get this message:
Connexion refusée ! Soit votre compte a été bloqué, soit vous ne l'avez pas encore activé. :(
  1. more than a month ago
  2. Bug Report
  3. # 13
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 14
admin Accepted Answer
Admin
Hi,
sorry for late reply, our team war in vacation.

Can you try to set 25 into SMTP port, I think that for some reason the PHP smtp library don't understand SSL connection.
Now works?

i have an other question about notification it's possible to have red square on the avatar (kunena or shortcode in article ...)
Sorry this is not possible

when we open popup for message or anything for close this popup we need to use Esc Key i think it's a good idea for next release to include simple cross circle button on top right of the popup
This is already present, try to read this reply https://www.easy-profile.com/support/add-friends-or-any-other-add-the-splash-screen-does-not-go-away.html#reply-6913
  1. more than a month ago
  2. Bug Report
  3. # 15
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.