vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Widget does not write code (https://vborg.vbsupport.ru/showthread.php?t=324197)

romaszek 01-13-2017 06:45 PM

Widget does not write code
 
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

Quote:

Originally Posted by Lynne (Post 2580825)
What are you entering into the "Enter Static HTML" area of the widget?

yes

Quote:

Originally Posted by Lynne (Post 2580825)
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"
HTML Code:

<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 [DATE]1484389562[/DATE] at [TIME]1484389562[/TIME] ---------------

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

HTML 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

1 Attachment(s)
The code you posted saves just fine for me. However, you will need to upload the files for it (the second and third lines).

Attachment 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.


All times are GMT. The time now is 07:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01124 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete