View Full Version : Widget does not write code
romaszek
01-13-2017, 06:45 PM
Hello,
vB v. 4.2.3 Patch Level 2
Widget Static HTML does not write code.
I am saving and open the widget. No content.
what to do?
Lynne
01-13-2017, 09:28 PM
What are you entering into the "Enter Static HTML" area of the widget?
What is the template name listed under "Template Name" and have you verified that that template exists and is totally default in the style you are using?
romaszek
01-14-2017, 07:32 AM
What are you entering into the "Enter Static HTML" area of the widget?
yes
What is the template name listed under "Template Name" and have you verified that that template exists and is totally default in the style you are using?
Style vB - Default.
Template Name: 'vbcms_widget_static_page"<div class="cms_widget">
<div class="block">
<div class="cms_widget_header">
<h3><img src="{vb:stylevar imgdir_siteicons}/html.png" alt="" /> {vb:raw widget_title}</h3>
</div>
<div class="cms_widget_content widget_content">
{vb:raw static_html}
</div>
</div>
</div>
I turned off all modifications - no change.
--------------- Added 1484389562 at 1484389562 ---------------
I tested the widget ... weird
e.g
1. does not accept the code: 'border-radius: 50%;'
but 'border-radius: 50px;' accepts (not accept '%')'
2. does not accept the code: '<div class="caption">TOUCH?ENABLED</div>'
but '<div class="caption">TOUCH ENABLED</div>' accepts (not accept '.')
('.') dot code e.g 'header a.active {font-weight:bold; }' is accepted
3. does not accept the code: '<html>'
but '</html>' accepts
4. does not accept the code: '<href='http://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet' type='text/css'/>'
but '<href='http://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet' type='textcss'/>' accepts (not accept '/')'
slash in </di>, </body>, </html> is accepted
If the code contains these characters, it does not save anything
I do not understand.
Lynne
01-14-2017, 05:14 PM
I want to know the code/html you are entering into the Enter Static HTML" area of the widget. Please post the html using an html tag. (And, just an FYI, but if you are entering <html> in there, then that is totally wrong as you may only have one <html> tag on a page.)
romaszek
01-14-2017, 06:07 PM
yes, code/html are entering into the Enter Static HTML area of the widget.
I've done this many times, always worked.
<html> tag does not use this.
Sorry, bad english.
this code
<link href='http://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet' type='text/css'>
<link href="slider/2/ninja-slider.css" rel="stylesheet" type="text/css" />
<script src="slider/2/ninja-slider.js" type="text/javascript"></script>
<style>
body {font: normal 0.9em Arial;margin:0;}
a {color:#1155CC;}
ul li {padding: 10px 0;}
header {display:block;padding:60px 0 20px;text-align:center;position:absolute;top:8%;left:8%;z-index:4;}
header a {
font-family: sans-serif;
font-size: 24px;
line-height: 24px;
padding: 8px 13px 7px;
color: #fff;
text-decoration:none;
transition: color 0.7s;
}
header a.active {
font-weight:bold;
width: 24px;
height: 24px;
padding: 4px;
text-align: center;
display:inline-block;
border-radius: 50%;
background: #C00;
color: #fff;
}
</style>
<!--start-->
<div id="ninja-slider">
<div class="slider-inner">
<ul>
<li>
<a class="ns-img" href="slider/img/1.jpg"></a>
<div class="caption">RESPONSIVE</div>
</li>
<li>
<a class="ns-img" href="slider/img/2.jpg"></a>
<div class="caption">TOUCH?ENABLED</div>
</li>
<li>
<a class="ns-img" href="slider/img/3.jpg"></a>
<div class="caption">VIDEO?AUDIO</div>
</li>
<li>
<a class="ns-img" href="slider/img/4.jpg"></a>
<div class="caption">NON?JQUERY</div>
</li>
<li>
<a class="ns-img" href="slider/img/5.jpg"></a>
<div class="caption">MOBILE?FRIENDLY</div>
</li>
</ul>
<div class="navsWrapper">
<div id="ninja-slider-prev"></div>
<div id="ninja-slider-next"></div>
</div>
</div>
</div>
<!--end-->
Lynne
01-15-2017, 01:42 AM
The code you posted saves just fine for me. However, you will need to upload the files for it (the second and third lines).
155696
romaszek
01-15-2017, 07:31 AM
Thank you for your work but my forum does not work.
(PM link and password to test forum)
e.g Widget Test
romaszek
01-17-2017, 07:19 AM
The problem created ModSecurity on the server.
Everything is already working.
Thank you Lynne.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.