*

rooman

  • ****
  • 223 posts
The title of the ad is long for Arabic
« on: October 05, 2022, 04:19:49 PM »
When adding an ad
A message is sent to the supervisor or the registrant in the alerts
That a new ad has been added
If the ad title is in English, it will appear short and with the same name
If the ad title is Arabic
Appears as symbols and long
What is the page responsible for sending the message?
Is it oc-includes\osclass\emails.php
How can this problem be solved?
Arabic
Quote
https://beta.mb-themes.com/%d9%84%d9%84%d8%a8%d9%8a%d8%b9/%d8%a5%d9%84%d9%83%d8%aa%d8%b1%d9%88%d9%86%d9%8a%d8%a7%d8%aa/%d8%a5%d9%84%d9%83%d8%aa%d8%b1%d9%88%d9%86%d9%8a%d8%a7%d8%aa-in-united-states-iowa-ireton-i34
English
Quote
https://beta.mb-themes.com/for-sale/electronics/samsung-s7-with-cover-i34

Everyone has the same ad

It should look like the picture
Like all sites
« Last Edit: October 05, 2022, 04:27:24 PM by rooman »

*

MB Themes

Re: The title of the ad is long for Arabic
« Reply #1 on: October 05, 2022, 08:37:00 PM »
It is encoded format
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 223 posts
Re: The title of the ad is long for Arabic
« Reply #2 on: October 06, 2022, 09:01:26 AM »
Good
Why when sharing an item
The short link is shared, not the long one

*

MB Themes

Re: The title of the ad is long for Arabic
« Reply #3 on: October 06, 2022, 01:53:51 PM »
@rooman
It is encoded format that is still fine. When it is and when it is not encoded, probably depends on many factors and is absolutely irrelevant. It might depend on server config, file where you store link etc etc
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 223 posts
Re: The title of the ad is long for Arabic
« Reply #4 on: December 30, 2022, 05:39:37 PM »
@rooman
It is encoded format that is still fine. When it is and when it is not encoded, probably depends on many factors and is absolutely irrelevant. It might depend on server config, file where you store link etc etc

When sharing the item using the code
Code: [Select]
<?php echo urlencode(osc_item_url()); ?>The same problem appears, the link is encrypted and long
And when using the code
Code: [Select]
<?php echo osc_item_url(); ?>The link appears without a problem and short
I also found this code
Code: [Select]
<?php echo rawurlencode(osc_item_url()); ?>I didn't try it
I think the problem with e-mails depending on the language is in this
urlencode
How can this problem be solved
And where to find the job responsible for sending emails to customers

*

MB Themes

Re: The title of the ad is long for Arabic
« Reply #5 on: December 30, 2022, 06:14:02 PM »
Encoded format is ok and safe.
For latin chars it will be same as unencoded, but for cyrilic, arabic etc it will try to make compatible with any device.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 223 posts
Re: The title of the ad is long for Arabic
« Reply #6 on: January 01, 2023, 09:58:27 AM »
For cyrilic, arabic
They are not compatible with the devices and appear in this long, annoying and incomprehensible way
Compare the two links (they are one link)
Annoying and incomprehensible link
Quote
https://beta.mb-themes.com/%d9%84%d9%84%d8%a8%d9%8a%d8%b9/%d8%a5%d9%84%d9%83%d8%aa% d8%b1%d9%88%d9%86%d9%8a%d8%a7%d8%aa/%d8%a5%d9%84%d9%83%d8%aa%d8%b1%d9%88%d9 %86%d9%8a%d8%a7%d8%aa-in-united-states-iowa-ireton-i34
Understandable and excellent link
look at the picture

*

MB Themes

Re: The title of the ad is long for Arabic
« Reply #7 on: January 02, 2023, 01:14:49 PM »
@rooman
Those 2 links are identical. If encoding would not be fine, it would not exists.
You can check oc-includes/osclass/formatting.php.

Comment/remove line:
Code: [Select]
$string = urlencode($string);
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 223 posts
Re: The title of the ad is long for Arabic
« Reply #8 on: January 02, 2023, 02:49:03 PM »
@rooman
Those 2 links are identical. If encoding would not be fine, it would not exists.
You can check oc-includes/osclass/formatting.php.

Comment/remove line:
Code: [Select]
$string = urlencode($string);

The problem has been resolved
But the link has become unclickable

*

rooman

  • ****
  • 223 posts
Re: The title of the ad is long for Arabic
« Reply #9 on: January 19, 2023, 09:12:32 AM »
when disabled //$string = urlencode($string);
A new problem has appeared
When editing an item and submitting
A URL error appears and the page cannot be displayed

*

MB Themes

Re: The title of the ad is long for Arabic
« Reply #10 on: January 20, 2023, 08:27:57 PM »
Well, you know why it was added here
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots