Osclass Support Forums

Osclass theme support => Beta Osclass Theme => Topic started by: Andrey on November 28, 2019, 05:58:23 PM

Title: the user to hide the phone
Post by: Andrey on November 28, 2019, 05:58:23 PM
Hello! Please tell me: how to make it possible for the user to hide the phone at will, as with an email

(https://do-mos.ru/Phone.JPG) Thank you
Title: Re: the user to hide the phone
Post by: MB Themes on November 29, 2019, 03:09:18 PM
@Olime
You would have to update database as well because information if email is shown or not is stored in item table.
Title: Re: the user to hide the phone
Post by: Andrey on November 29, 2019, 07:15:10 PM
You did not understand me. I want the user to be able to hide the phone or show when submitting an ad. For dating category.
There is also Beta at the Head.php
<? php if (osc_get_canonical ()! = '') {?> <link rel = "canonical" href = "<? php echo osc_get_canonical ();?>" /> <? php}?> but it doesn't work after alpha. Yandex sends:

Hello!

Important pages have changed the attribute rel = "canonical":

https://site.net/elektrostal/uslugi/avtouslugi/ustanovka-webasto-remont-vebasto-v-elektrostali_i176728
Old value: https://site.net/elektrostal/uslugi/avtouslugi/ustanovka-webasto-remont-vebasto-v-elektrostali_i176728
New value: -

https://site.net/zhukovskiy/kuplyu-prodam/odezhda-obuv-aksessuary/detskiy-garderob/kostyum-zimniy_i179099
Old value: https://site.net/zhukovskiy/kuplyu-prodam/odezhda-obuv-aksessuary/detskiy-garderob/kostyum-zimniy_i179099
New value: -

Why the rel = "canonical" attribute does not work :? Tell me please. Thank you
Title: Re: the user to hide the phone
Post by: MB Themes on November 30, 2019, 09:05:03 AM
I understood very well, just do not understand why you mix different topic. Canonical urls are generatex by osclass and may not be shown on every page.
Title: Re: the user to hide the phone
Post by: Andrey on November 30, 2019, 09:51:58 AM
Sorry for mixing the threads. Beta do not generate rel = "canonical"

You say update the database. It was updated when installing Osclass 3.9.0
Title: Re: the user to hide the phone
Post by: Andrey on November 30, 2019, 10:51:08 AM
Yes, sorry, this is my problem. On the test site, Beta generates rel = "canonical".
What could be the problem please help
Title: Re: the user to hide the phone
Post by: MB Themes on November 30, 2019, 02:03:28 PM
Theme does not generate canonical urls, osclass does.