Search in support tickets

#826 – Text Editor Html tags displayed

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 28 October 2020 18:58 CET
morempg
Joomla! version : 3.8.12
PHP version : 7
AdsManager version : Pro version

My issue is when I used the Text Editor option in order to expand the capabilities in the ads discription it all works fine until I get back to the Home page under example Latests Ads and or the Featured ads I have noticed that the "html tags are displayed but when I click on the ad it all looks normal. How can I fix this so I don't see the html tags. I have added a image of the issue
Custom Fields
Joomla Version
3.8.12
PHP Version
7
Product
AdsManager
Product Version
Pro
Attachment
Thursday, 29 October 2020 14:35 CET
loic
Hello,

That's clearly an issue.

I will fix that tomorrow morning and give you the answer.

The editor text is cut when displayed in that module and the html tags are not understood as a result.
I keep that ticket open until the issue is solved.

Best regards.
 
Thursday, 29 October 2020 16:27 CET
morempg
Another question is where can I change "Welcome to WebSite Ads The better place to sell or buy" and the Title "Classified Ads"This is on the HomePage Categories and Icons. For some crazy reason I cannot find it.

Thanks
Attachment
Friday, 30 October 2020 08:43 CET
loic
Hello,

for the HTML tags displayed in the front page and the module.

To fix that, open the file templates/adsclarity/html/com_adsmanager/front/default.php, line 59 and add the folowing line
$row->ad_text = strip_tags($row->ad_text);


To have this
$row->ad_text = str_replace ('<br />'," ",$row->ad_text);
$row->ad_text = strip_tags($row->ad_text);
$af_text = JString::substr($row->ad_text, 0, 100);
if (strlen($row->ad_text)>100) {
     $af_text .= "[...]";
}
echo htmlspecialchars($af_text);


Do the same thing, in the following files :
templates/adsclarity/html/mod_paidsystem_feat/default.php, line 139
templates/adsclarity/html/mod_paidsystem_feat/grid.php, line 65

I switched that ticket to private, so if you are not sure about doing that modification yourself, please, provide me with an admin login and password, and I will do the modification for you.

For the text "Welcome to WebSite Ads The better place to sell or buy", you can change it in the configuration of adsmanager, "Text" tab.

Best regards.
 
Friday, 30 October 2020 10:39 CET
loic
Hello again,

I have just seen your other question on the mailbox.

To change the currency, in the administration of your website, go to components -> invoicing and add the currency in Setup -> currencies

After that in components -> paidsystem, you will be able to choose the active currency in the configuration, 'Currency' setting.

Best regards.
 
Friday, 30 October 2020 16:31 CET
morempg
Perfect, That worked for me and thank you very much for helping me with this issue. It might be good to put this back to Public in order for other to be able to have the solution in the future.

The only other issue I have is.

where can I change "Welcome to WebSite Ads The better place to sell or buy" and the Title "Classified Ads"This is on the HomePage Categories and Icons. For some crazy reason I cannot find it.

Attachment
Friday, 30 October 2020 17:58 CET
loic
Hello,

For the "Classified Ads" title, it's a translation. You can override all the translation by going to the administration section of your website Extensions -> Languages -> Override, select the language you need to override and click on new.

On the right of the form, you have a search engine that will allow you to search for a specific translation.

In our case, the constant is ADSMANAGER_FRONT_TITLE
After completing the form and saving it, the new translation will be used.

For the text "Welcome to WebSite Ads The better place to sell or buy", you can change it in the configuration of adsmanager, "Text" tab.

Since you didn't need to give me any credentials, I switch the ticket back to public.

Best regards.
 
Friday, 30 October 2020 22:07 CET
morempg
Everything worked perfectly,

Thanks
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.