Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 01-13-2017, 06:45 PM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 01-13-2017, 09:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 01-14-2017, 07:32 AM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
What are you entering into the "Enter Static HTML" area of the widget?
yes

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #4  
Old 01-14-2017, 05:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
Благодарность от:
MarkFL
  #5  
Old 01-14-2017, 06:07 PM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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-->
    
Reply With Quote
  #6  
Old 01-15-2017, 01:42 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
romaszek
  #7  
Old 01-15-2017, 07:31 AM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your work but my forum does not work.
(PM link and password to test forum)
e.g Widget Test
Reply With Quote
  #8  
Old 01-17-2017, 07:19 AM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem created ModSecurity on the server.
Everything is already working.

Thank you Lynne.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:59 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.07165 seconds
  • Memory Usage 2,267KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete