xF2 Template Modification Remove Text On Mouse Hover (Download Button)

rigarus99

Well-known member
Registered
Joined
Sep 13, 2021
Messages
192
Points
53

Reputation:

I noticed that when i hover the download button it appears this text.
The file on the example image is hosted on mega.
When i host files on google or someone else then it shows the name of the hoster/site.
Is there a way to hide that via extra.less or template modification ?

1641830203928.png
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,497
Points
523

Reputation:

Yes it is possible via template modification, look for xfrm_resource_wrapper_macros

Regular Expression:
Find: /(data-xf-init="tooltip")[\s]+(class="button--cta")[\s]+(title="\{\{ \$resource.CurrentVersion.getExternalDownloadDomain\(\) \}\}")/
Replace: $2

1641833328200.jpg
 

rigarus99

Well-known member
Registered
Joined
Sep 13, 2021
Messages
192
Points
53

Reputation:

Yes it is possible via template modification, look for xfrm_resource_wrapper_macros

Regular Expression:
Find: /(data-xf-init="tooltip")[\s]+(class="button--cta")[\s]+(title="\{\{ \$resource.CurrentVersion.getExternalDownloadDomain\(\) \}\}")/
Replace: $2

View attachment 27392
BattleKingMany many thanks !
Appreciate your help :)
I will look into it when im finish with my work.
 

rigarus99

Well-known member
Registered
Joined
Sep 13, 2021
Messages
192
Points
53

Reputation:

1641975560377.png

there are only templates from other addons such paid resources but nothing related to the basic xfrm.
there needs to be a seperate section for xfrm or not ?
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,497
Points
523

Reputation:

View attachment 27395
there are only templates from other addons such paid resources but nothing related to the basic xfrm.
there needs to be a seperate section for xfrm or not ?
r4z0rknownYou need to add a own template modification. You need to enable the development mode, so that you see the add modification button.

$config['development']['enabled'] = true;

Before:
1641995067600.png


After:
1641995162500.png
 
Top