Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

newNotificationCount dipslay in header

11 years 8 months ago
Licenses:
JomSocial Expired

Hi, when i open jomsocial frontpage(test.deadsocial.org) page title has change after full load page. In begin on title I see new Notifications Count number.
Example:
<title>(1) Welcome to ... </title>

This number is add when i create system messages notification. I do not want to be seen by all.

This is a very large problem, because don't think guest users must see system notifications

11 years 8 months ago
Licenses:

Hi, Norris.

This is a core feature, if you want to change it, you'll need... a core hack.

Core hacks are not recommended nor supported as they may not working with future JomSocial releases and/or cause issues that will be not supported. Users with core files hack refuse to upgrade their installation to keep those hacks and they are stuck with outdated and unsupported versions.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
11 years 8 months ago
Licenses:
JomSocial Expired

This is not core feature, this is a bug. Please tell me how to fix him.
I think for two solution, please tell me if is possible :

First i change my notification cmd. But i don't see possible notification cmd types. On your documentation i found only system message. Please tell me where to found possible cmd types.

Second i create regex whit javascript, after load page, remove char before first space in title.

Please tell me how to fix this.

11 years 8 months ago
Licenses:

Hi, Norris.

No, this is a feature introduced in JomSocial 3.2.1.5.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
11 years 8 months ago
Licenses:
JomSocial Expired

Sorry but this is not answer. I need to remove this feature.
Please tell me how.

11 years 8 months ago
Licenses:
JomSocial Expired

This is not seo freandly, please tell me where is a current file or method where set header title.

11 years 8 months ago
Licenses:

Hi, Norris.

It doesn't influence SEO in any way as this number shows number of new notifications. They are displayed only for LOGGED IN MEMBER.
SEO apply only to bots/spiders and they will NEVER log in so they will NEVER see that number in title.

So this feature is irrelevant for your site SEO.
This way of showing notifications is used on many sites and many apps.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
11 years 8 months ago
Licenses:
JomSocial Expired

This notification view only guest user. I told you for this on first post.
This count view only guests users.
Please open test.deadsocial.org/ to see this

11 years 8 months ago
Licenses:

Hi, Norris.

With all the respect but you didn't mentioned it happens for guests.
I saw this issue on your site now.

But I cant run troubleshoots test as I get: DirectoryIterator::__construct(/home/deadtest/public_html/cgi-bin/.cgi_wrapper): failed to open dir: Permission denied

Could you check if this also happens with Joomla default template like "Protostar"?
Try that and let me know how you get on.

Edit;

Number is not displayed in your site code:

prntscr.com/6733q7
prntscr.com/6733ua

So robots shouldn't see it anyway.

Displaying that number for guest is not default behavior and also not a bug but rather your site specific issue.
No one reported it yes and you're using JomSocial 3.2.1.4 (current one is 3.2.1.6)


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
11 years 8 months ago
Licenses:
JomSocial Expired

Ok i found where is the problem and fixed.
On components/com_community/controllers/activites.php in line 43 code like this :

            $response = array(
                'newEventInviteCount'  => $toolbar->getTotalNotifications('events' ),
                'newFriendInviteCount' => $toolbar->getTotalNotifications('friends' ),
                'newGroupInviteCount'  => $toolbar->getTotalNotifications( 'groups' ),
                'newNotificationCount' => $notifModel->getNotificationCount($my->id,'0',$myParams->get('lastnotificationlist','')),
                'newMessageCount'      => $toolbar->getTotalNotifications( 'inbox' ),
            );
newNotificationCount is broke when not set $my->id or $my->id = 0 .
To fix i added just if statment smoting like this:
 if($my->id > 0){
            $response = array(
                'newEventInviteCount'  => $toolbar->getTotalNotifications('events' ),
                'newFriendInviteCount' => $toolbar->getTotalNotifications('friends' ),
                'newGroupInviteCount'  => $toolbar->getTotalNotifications( 'groups' ),
                'newNotificationCount' => $notifModel->getNotificationCount($my->id,'0',$myParams->get('lastnotificationlist','')),
                'newMessageCount'      => $toolbar->getTotalNotifications( 'inbox' ),
            );
        }else{
            $response = array(
                'newEventInviteCount'  => 0,
                'newFriendInviteCount' => 0,
                'newGroupInviteCount'  => 0,
                'newNotificationCount' => 0,
                'newMessageCount'      => 0,
            );
        }
And all is woking fine. But it's a bug. $notifModel->getNotificationCount($my->id,'0',$myParams->get('lastnotificationlist','')) always return count of system_messages_notification.

The following user(s) said Thank You: Oriol
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW