Bad Icon user class

Phoca Email (Newsletter) - sending emails and managing newsletters in Joomla! CMS
ScaleBXL
Phoca Member
Phoca Member
Posts: 38
Joined: 14 Feb 2024, 14:20

Bad Icon user class

Post by ScaleBXL »

Hello,

Is it possible to change the bad class of the newsletter form field?
I tried to override it but I can't find the Glyphicon class to change it with user-icon


Image

Joomla 4.4.5
PHP 8.1.29
Phoca Email Version 5.0.0
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bad Icon user class

Post by Jan »

Hi, are you sure, you don't use some template override for Phoca Email. There is no more such code in Phoca Email :idea:

Check if your template does not override the file: components/com_phocaemail/layouts/newsletter_form.php

Jan
If you find Phoca extensions useful, please support the project
ScaleBXL
Phoca Member
Phoca Member
Posts: 38
Joined: 14 Feb 2024, 14:20

Re: Bad Icon user class

Post by ScaleBXL »

Hello Jan,

Thank you for your reply, I don't have any Phoca Email override
My template don't use glyphicon, I'm using a RocketTheme template with Gantry 5

Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bad Icon user class

Post by Jan »

Not sure, if this can be some cache issue? Try to clear the cache in your Gantry.

If it does not help. Open this file:
components/com_phocaemail/layouts/newsletter_form.php

See the code on line 45 or 57, which should be:

Code: Select all

echo '<div id="ph-form-subscribe-name" class="input-group">';
	echo '<span class="input-group-text" title="'. Text::_('COM_PHOCAEMAIL_NEWSLETTER_NAME').'">';
	echo '<span class="icon-user hasTooltip"></span>';
	echo '</span>';
	echo '<input id="ph-mod-name" type="text" name="name" class="form-control '.$requiredC.'" tabindex="0" size="18" placeholder="'. Text::_('COM_PHOCAEMAIL_NEWSLETTER_NAME') .'" value="" '.$required.' />';
	echo '</div>';
}
No glyphicons but standar icon-xxx

Can you see new classes or do you see there glyphicons?

Jan
If you find Phoca extensions useful, please support the project
ScaleBXL
Phoca Member
Phoca Member
Posts: 38
Joined: 14 Feb 2024, 14:20

Re: Bad Icon user class

Post by ScaleBXL »

Hello Jan

No result with clearing the cache, in my newsletter_form I have the same class "icon-user"

It makes no sense :x
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bad Icon user class

Post by Jan »

So, if
- this is not template override
- and it is not in the file directly

the only idea I have now, is, that e.g. some system plugin overwrites the classes when the site renders. Do you use some specific system plugin which somehow changes the output of html?

Jan
If you find Phoca extensions useful, please support the project
ScaleBXL
Phoca Member
Phoca Member
Posts: 38
Joined: 14 Feb 2024, 14:20

Re: Bad Icon user class

Post by ScaleBXL »

I'm still at the beginning of development, so I only installed Phoca Cart, Phoca Email, Fabrik, JCE

I tried deactivating the JCE, JCE media box, and Fabrik system plugins without result.

I also have NetzSinn Social Share Buttons Module, but this one uses svg files with class "rrssb"
ScaleBXL
Phoca Member
Phoca Member
Posts: 38
Joined: 14 Feb 2024, 14:20

Re: Bad Icon user class

Post by ScaleBXL »

Ok problem resolved ! You were right !

I have checked all my plugins directory with grepWin !

The culprit is Phoca Upgrade System Plugin !
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bad Icon user class

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply