Discord Widget Html

TheMichtoXF

Active member
Registered
Joined
Aug 30, 2022
Messages
34
Points
18

Reputation:

Hello,
I would like to use discord's default widget html code because I find it prettier than the [AH discord widget] plugin but the problem is when I copy/paste the code "iframe=scr....." in the add widget section I have an error from xenforo.

What is the problem ?
 

BattleKing

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

Reputation:

Hello,
I would like to use discord's default widget html code because I find it prettier than the [AH discord widget] plugin but the problem is when I copy/paste the code "iframe=scr....." in the add widget section I have an error from xenforo.

What is the problem ?
TheMichtoXFShow us the complete code please
 

TheMichtoXF

Active member
Registered
Joined
Aug 30, 2022
Messages
34
Points
18

Reputation:

yes this is the complete code :
Code:
<iframe src="https://discord.com/widget?id=1026997658783852073&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>
 

BattleKing

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

Reputation:

yes this is the complete code :
Code:
<iframe src="https://discord.com/widget?id=1026997658783852073&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>
TheMichtoXFwhere did you get an error message?

It works fine for me:

Blok.png
 

TheMichtoXF

Active member
Registered
Joined
Aug 30, 2022
Messages
34
Points
18

Reputation:

That's exactly i want !
I have the error message when I click the save button after copying the iframe link. ( When I save without link it works ) I have the following error message: "oops.. We ran Into some problems"
 

BattleKing

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

Reputation:

That's exactly i want !
I have the error message when I click the save button after copying the iframe link. ( When I save without link it works ) I have the following error message: "oops.. We ran Into some problems"
TheMichtoXFstrange I just copied the content from here in the HTL Widget. Which version of Xenforo are you using?
 
View previous replies…

BattleKing

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

Reputation:

Yes i don't understand why..
I use 2.2.10 patch 1 version
TheMichtoXFPHP: <!DOCTYPE html> <html style="height:100%"> <head> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <title> 403 Forbidden </title></head> <body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;"> <div style="height:auto; min-height:100%; "> <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;"> <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">403</h1> <h2 style="margin-top:20px;font-size: 30px;">Forbidden </h2> <p>Access to this resource on the server is denied!</p> </div></div><div style="color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;"> <br>Proudly powered by <a style="color:#fff;" href="http://www.litespeedtech.com/error-page">LiteSpeed Web Server</a><p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p></div></body></html>

Check errors in webserver log.

Take a look into https://bobcares.com/blog/litespeed-403-forbidden-error/ possibly that will help
 

BattleKing

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

Reputation:

PHP: <!DOCTYPE html> <html style="height:100%"> <head> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <title> 403 Forbidden </title></head> <body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;"> <div style="height:auto; min-height:100%; "> <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;"> <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">403</h1> <h2 style="margin-top:20px;font-size: 30px;">Forbidden </h2> <p>Access to this resource on the server is denied!</p> </div></div><div style="color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;"> <br>Proudly powered by <a style="color:#fff;" href="http://www.litespeedtech.com/error-page">LiteSpeed Web Server</a><p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p></div></body></html>

Check errors in webserver log.

Take a look into https://bobcares.com/blog/litespeed-403-forbidden-error/ possibly that will help
BattleKingProblem caused by mod_security.
What has been changed, disabled or changed some rules?
 

TheMichtoXF

Active member
Registered
Joined
Aug 30, 2022
Messages
34
Points
18

Reputation:

Yes thanks i will check this link and i will Ask to my webserver provider. I'll keep you in touch
 
Top