Support closed from the 15 November 2021 to the 26 November 2021

The support will be closed.

We will come back the 29 November 2021.

Best regards.

Search in support tickets

#846 – HTML Tags

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.
Monday, 16 November 2020 17:31 CET
morempg
Joomla! version : 3.9.22
PHP version : 7.4
AdsManager version : pro

I did as you mentioned below and that fixed everything except one, when you select "All Ads" there is a Module in the left below the search options that is Called "In The Same Category" and HTML tags appear there, what file can I change this in and what would be the appropriate script for it
-------------------------------------------------------------------------------------------------------------

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.
Custom Fields
Joomla Version
3.9.22
PHP Version
7.4
Product
AdsManager
Product Version
Pro
Tuesday, 17 November 2020 17:00 CET
loic
Hello,

It is in the file templates/adsclarity/html/mod_adsmanager_ads/vertical.php, line 71, the correct code is the following :

$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);


It's only missing one line.

Best regards.
 

Please rate this ticket

Help us improve our support services by rating this ticket from one to five stars, according to how much you are satisfied from the handling of this ticket, one being not satisfied and five being very satisfied.