XF 2 Tip How To Add Xenforo Resources Information

Savesido

New member
Registered
Joined
Mar 13, 2020
Messages
3
Points
3

Reputation:

IMG_20200413_111911_313.jpg
If you want to display something like this on your Xenforo Resources Page.
Follow the Steps Below.
Locate xfrm_resource_view in your Style Template and input this code.
Put the code within line 57 and 58 like the screenshot below
IMG_20200413_115113_328.jpg
HTML:
<!-- This is place to write the code for XFRM information-->

            <div align="center">

            <div class="block"><b><i class="fas fa-smile"></i> You must click like in order to download this resource.

            <div class="block"><i class="fas fa-download"></i> You can download 5 resources per day depending on your usergroup.

            </div></b></div></div>

            <!-- End of placement for code for XFRM Information -->

Now go extra.less and add this code also.
HTML:
.button
  background-color: #008CBA; /* Purple */
  border-radius: 5px;
  border: none;
  color: white;
  text-align: left;
  text-decoration: none;
  display: inline-block;
  font-size: 6px;
}
 

outplayed

Moderator
Moderator
Collaborate
Registered
Joined
Oct 27, 2019
Messages
151
Points
63

Reputation:

Actually doesn´t exist such a template xfrm_resource_view
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
20,038
Points
823

Reputation:

Have you installed the addon resource?
 

Attachments

  • 1.png
    1.png
    6.5 KB · Views: 126

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
20,038
Points
823

Reputation:

another color
button-like.png

Code:
.button {
  background-color: #008CBA; /* Light Blue */
  border-radius: 12px;
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}
 
Top