This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

pietkei

  • ***
  • 69 posts
Alerts only for logged in users
« on: January 29, 2021, 04:39:20 PM »
Hello,

How to disable the ALERT ( Subscibe to this search) text for non logged on users.
(Anyway what's the use for non logged on users??)
(I just found out why this option is also for non logged on users, an email should be send to the person who activated the alert, but because my site is NOT sending an email i did not know the reason)

So i have another question as well:
Why is my site not sending an email

Question2)

I have seen a few more threads about thus issue but i can't find the solution.
Please check the added image.

Thanks!

OsClass: 4.2.2
Theme: Gamma

« Last Edit: January 29, 2021, 07:51:14 PM by pietkei »

*

MB Themes

Re: Alerts only for logged in users
« Reply #1 on: January 29, 2021, 08:56:06 PM »
@pietkei
You should put it into block (button link):
Code: [Select]
<?php if(osc_is_web_user_logged_in()) { ?>
 ....
<?php } else { ?>
.....
<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pietkei

  • ***
  • 69 posts
Re: Alerts only for logged in users
« Reply #2 on: January 29, 2021, 10:05:31 PM »
@pietkei
You should put it into block (button link):
Code: [Select]
<?php if(osc_is_web_user_logged_in()) { ?>
 ....
<?php } else { ?>
.....
<?php ?>

Thanks.

I am not sure where and how to add the code.

In another thread i assumed to edit header.php

This is what i found in the Gamma theme header.php:

Code: [Select]
<?php if(osc_is_web_user_logged_in()) { ?>
        <div class="user-menu">
          <div class="ins">
            <strong><?php echo osc_logged_user_name(); ?>


Can you please insert the piece of code, as you mentioned?

I am no php coder, i hope you will help me.

Thanks!


BTW
This issue is caused by the fact that when a user activate an ALERT an email should be sent to him, but that's the problem, no email is sent.
If the mail was sent then there is no problem.

« Last Edit: January 29, 2021, 10:44:18 PM by pietkei »

*

pietkei

  • ***
  • 69 posts
Re: Alerts only for logged in users
« Reply #3 on: January 30, 2021, 01:19:02 AM »
Hello,

Please forget the original message, sorry.

I am not sure how the alert messages should work:

1. Person A makes an alert
2. He will receive this alert in his account
3. When another person list that article he made an alert for, should Person A receive mail that some posted a similar article?

Is this how it should work?


My situation:

I noticed that the alerts now are working using a PC and a Tablet, while the user was not logged on or logged off. The user receives his alerts in his account.
But he does not receive an email when someone post a listing he applied for.

Alerts are not working using a smart phone, after filling in an email it keeps saying, please add email address.




« Last Edit: January 30, 2021, 03:29:13 PM by pietkei »

Marked as best answer by frosticek on February 01, 2021, 04:44:17 PM
*

MB Themes

Re: Alerts only for logged in users
« Reply #4 on: February 01, 2021, 06:34:26 AM »
@pietkei
Alert is "Subscription to listings for particular search".
Let's say you are on search page and select:
  • Category - Vehicles
  • Location - Bremen, Alabama, US
  • Price - 10 000 : 20 000

When new listing matching all 3 filters is created, you will get email notification (probably using daily, maybe hourly cron, not sure). But notification is not instant at time of publish.

In case there is new Vehicle listing created in Bremen, but price is 25 000, you will not get notification, as this listing is not matching your filters/alert settings.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pietkei

  • ***
  • 69 posts
Re: Alerts only for logged in users
« Reply #5 on: February 01, 2021, 04:10:51 PM »
@pietkei
Alert is "Subscription to listings for particular search".
Let's say you are on search page and select:
  • Category - Vehicles
  • Location - Bremen, Alabama, US
  • Price - 10 000 : 20 000

When new listing matching all 3 filters is created, you will get email notification (probably using daily, maybe hourly cron, not sure). But notification is not instant at time of publish.

In case there is new Vehicle listing created in Bremen, but price is 25 000, you will not get notification, as this listing is not matching your filters/alert settings.

Thanks!

I was a bit confused, now it's clear!

Pieter