Aangemaakte reacties

13 reacties aan het bekijken - 1 tot 13 (van in totaal 13)
  • Thread starter ProCessor

    (@processor)

    Ik ben er nog steeds niet achter…
    Heeft iemand nog enig idee?

    @richard: Die had ik zelf ook al geprobeerd, maar werkte niet.

    Thread starter ProCessor

    (@processor)

    Nee, precies hetzelfde probleem… dit wordt /home/wp-login.php

    Thread starter ProCessor

    (@processor)

    De CSS opties die de plugin zelf mee geeft zijn:

    Default

    #sidebar span.collapsing.archives {
            border:0;
            padding:0;
            margin:0;
            cursor:pointer;
    } 
    
    #sidebar span.monthCount, span.yearCount {text-decoration:none; color:#CCC}
    #sidebar li.collapsing.archives a.self {font-weight:bold}
    #sidebar ul.collapsing.archives.list ul.collapsing.archives.list:before {content:'';}
    #sidebar ul.collapsing.archives.list li.collapsing.archives.item:before {content:'';}
    #sidebar ul.collapsing.archives.list li.collapsing.archives.item {list-style-type:none}
    #sidebar ul.collapsing.archives.list li {
           margin:0 0 0 .8em;
           text-indent:-1em}
    #sidebar ul.collapsing.archives.list li.collapsing.archives.item:before {content: '\\\0BB \\\0A0' !important;}
    #sidebar ul.collapsing.archives.list li.collapsing.archives .sym {
       font-size:1.2em;
       font-family:Monaco, 'Andale Mono', 'FreeMono', 'Courier new', 'Courier', monospace;
       cursor:pointer;
        padding-right:5px;}";

    Block

    #sidebar li.collapsing.archives.item a {
                display:block;
                text-decoration:none;
                margin:0;
                padding:0;
                }
    #sidebar li.collapsing.archives a:hover {
                background:#CCC;
                text-decoration:none;
              }
    #sidebar span.collapsing.archives.item {
            border:0;
            padding:0;
            margin:0;
            cursor:pointer;
    }
    
    #sidebar li.collapsing.archives a.self {background:#CCC;
                           font-weight:bold}
    #sidebar ul.collapsing.archives.list ul.collapsing.archives.list:before,
      #sidebar ul.collapsing.archives.list li.collapsing.archives:before,
      #sidebar ul.collapsing.archives.list li.collapsing.archives.item:before {
            content:'';
      }
    #sidebar ul.collapsing.archives.list li.collapsing.archives.item {list-style-type:none}
    #sidebar ul.collapsing.archives.list li.collapsItem {
          }
    #sidebar ul.collapsing.archives.list li.collapsing.archives .sym {
       font-size:1.2em;
       font-family:Monaco, 'Andale Mono', 'FreeMono', 'Courier new', 'Courier', monospace;
        float:left;
        padding-right:5px;
        cursor:pointer;
    }

    De custom waar ik mee bezig ben

    .art-sidebar1 li.collapsing.archives.item a {
                display:block;
                width: 250px;
              	min-height: 12px;
                text-decoration:none;
                margin-top:-33px;
                padding: 7px;
    			background: #000000;
       			background: linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
      			background: -webkit-linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       			background: -moz-linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       			background: -o-linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       			background: -ms-linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       			background: linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       			-svg-background: linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       			border:1px solid transparent;
    			text-align: left;
    			color: #FFF;
                }
    .art-sidebar1 li.collapsing.archives a:hover {
    	width: 250px;
        min-height: 12px;
    	background: #FECF00;
    	background: linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
    	background: -webkit-linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
    	background: -moz-linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
    	background: -o-linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
    	background: -ms-linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       background: linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       -svg-background: linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       border:1px solid transparent;
       color: #000000;
              }
    
    .art-sidebar1 span.monthCount, span.yearCount {
    	text-decoration:none;
    	background: #000;
    	}
    
    .art-sidebar1 span.collapsing.archives.item {
    }
    
    .art-sidebar1 li.collapsing.archives a.self {}
    .art-sidebar1 ul.collapsing.archives.list ul.collapsing.archives.list:before,
      .art-sidebar1 ul.collapsing.archives.list li.collapsing.archives:before,
      .art-sidebar1 ul.collapsing.archives.list li.collapsing.archives.item:before {
            content:'';
      }
    .art-sidebar1 ul.collapsing.archives.list li.collapsing.archives.item {
    	padding: 7px;
    	color: #FFFFFF;
    	}
    .art-sidebar1 ul.collapsing.archives.list li.collapsItem {
    	background: #000;
          }
    .art-sidebar1 ul.collapsing.archives.list li.collapsing.archives .sym {
       font-size:1.2em;
       font-family:Monaco, 'Andale Mono', 'FreeMono', 'Courier new', 'Courier', monospace;
        float:left;
        padding-right:5px;
        cursor:pointer;
    }

    Heb al verschillende dingen uitgeprobeerd maar krijg de jaartallen en maanden niet gestyled…

    Thread starter ProCessor

    (@processor)

    Uhm foutje zie ik… ik bedoel natuurlijk mijn vmenu:

    .art-vmenublock
    {
       width: 250px;
       padding:7px;
       margin:10px;
    }
    div.art-vmenublock img
    {
       margin: 0;
    }
    
    .art-vmenublockcontent
    {
       margin:0 auto;
    }
    
    ul.art-vmenu, ul.art-vmenu ul
    {
       list-style: none;
       display: block;
    }
    
    ul.art-vmenu, ul.art-vmenu li
    {
       display: block;
       margin: 0;
       padding: 0;
       width: auto;
       line-height: 0;
    }
    
    ul.art-vmenu
    {
       margin-top: 0;
       margin-bottom: 0;
    }
    
    ul.art-vmenu ul
    {
       display: none;
       margin: 0;
       padding: 0;
       position: relative;
    }
    
    ul.art-vmenu ul.active
    {
       display: block;
    }
    
    ul.art-vmenu>li>a
    {
       background: #000000;
       background: linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: -webkit-linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: -moz-linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: -o-linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: -ms-linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       -svg-background: linear-gradient(top, rgba(89, 89, 89, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       border:1px solid transparent;
       padding:0 10px;
       margin:0 auto;
       color: #FFFFFF;
       min-height: 32px;
       line-height: 32px;
    }
    ul.art-vmenu a
    {
       display: block;
       cursor: pointer;
       z-index: 1;
       font-size: 12px;
       font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
       font-weight: normal;
       font-style: normal;
       text-decoration: none;
       position:relative;
    }
    
    ul.art-vmenu li{
       position:relative;
    }
    
    ul.art-vmenu>li
    {
       margin-top: 4px;
    }
    ul.art-vmenu>li>ul
    {
       padding: 0;
       margin-top: 8px;
       margin-bottom: 8px;
    }
    ul.art-vmenu>li:first-child
    {
       margin-top:0;
    }
    
    ul.art-vmenu>li>a:hover, ul.art-vmenu>li>a.active:hover
    {
       background: #FECF00;
       background: linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       background: -webkit-linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       background: -moz-linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       background: -o-linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       background: -ms-linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       background: linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       -svg-background: linear-gradient(top, rgba(255, 236, 153, 0.6) 0, rgba(255, 208, 0, 0.6) 50%, rgba(102, 83, 0, 0.6) 100%) no-repeat;
       border:1px solid transparent;
       padding:0 10px;
       margin:0 auto;
    }
    
    ul.art-vmenu a:hover, ul.art-vmenu a.active:hover
    {
       color: #204256;
    }
    
    ul.art-vmenu>li>a.active:hover>span.border-top, ul.art-vmenu>li>a.active:hover>span.border-bottom
    {
       background-color: transparent;
    }
    
    ul.art-vmenu>li>a.active
    {
       background: #FECF00;
       background: linear-gradient(top, #FFE366 0, #FFD000 54%, #A88900 100%) no-repeat;
       background: -webkit-linear-gradient(top, #FFE366 0, #FFD000 54%, #A88900 100%) no-repeat;
       background: -moz-linear-gradient(top, #FFE366 0, #FFD000 54%, #A88900 100%) no-repeat;
       background: -o-linear-gradient(top, #FFE366 0, #FFD000 54%, #A88900 100%) no-repeat;
       background: -ms-linear-gradient(top, #FFE366 0, #FFD000 54%, #A88900 100%) no-repeat;
       background: linear-gradient(top, #FFE366 0, #FFD000 54%, #A88900 100%) no-repeat;
       -svg-background: linear-gradient(top, #FFE366 0, #FFD000 54%, #A88900 100%) no-repeat;
       border:1px solid transparent;
       padding:0 10px;
       margin:0 auto;
       color: #7D2B03;
    }
    
    ul.art-vmenu>li>ul:before
    {
       margin:0 auto;
       display: block;
       position: absolute;
       content: ' ';
       top: 0;
       right: 0;
       bottom: 0;
       left: 0;
    }
    
    ul.art-vmenu li li a
    {
       background: #000000;
       background: linear-gradient(top, rgba(77, 77, 77, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: -webkit-linear-gradient(top, rgba(77, 77, 77, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: -moz-linear-gradient(top, rgba(77, 77, 77, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: -o-linear-gradient(top, rgba(77, 77, 77, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: -ms-linear-gradient(top, rgba(77, 77, 77, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       background: linear-gradient(top, rgba(77, 77, 77, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       -svg-background: linear-gradient(top, rgba(77, 77, 77, 0.8) 0, rgba(0, 0, 0, 0.8) 100%) no-repeat;
       margin:0 auto;
       position: relative;
    }
    ul.art-vmenu ul li
    {
       margin: 0;
       padding: 0;
    }
    ul.art-vmenu li li{
       position: relative;
       margin-top: 4px;
    }
    
    ul.art-vmenu ul a
    {
       display: block;
       position: relative;
       min-height: 30px;
       overflow: visible;
       padding: 0;
       padding-left: 15px;
       padding-right: 15px;
       z-index: 0;
       line-height: 30px;
       color: #FFFFFF;
       font-size: 12px;
       font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
       font-weight: normal;
       font-style: normal;
       margin-left: 0;
       margin-right: 0;
    }
    
    ul.art-vmenu ul a:visited, ul.art-vmenu ul a.active:hover, ul.art-vmenu ul a:hover, ul.art-vmenu ul a.active
    {
       line-height: 30px;
       color: #FFFFFF;
       font-size: 12px;
       font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
       font-weight: normal;
       font-style: normal;
       margin-left: 0;
       margin-right: 0;
    }
    
    ul.art-vmenu ul ul a
    {
       padding-left: 30px;
    }
    ul.art-vmenu ul ul ul a
    {
       padding-left: 45px;
    }
    ul.art-vmenu ul ul ul ul a
    {
       padding-left: 60px;
    }
    ul.art-vmenu ul ul ul ul ul a
    {
       padding-left: 75px;
    }
    
    ul.art-vmenu ul>li>a:hover, ul.art-vmenu ul>li>a.active:hover
    {
       background: #FECF00;
       background: linear-gradient(top, rgba(255, 219, 61, 0.6) 0, rgba(255, 208, 0, 0.6) 48%, rgba(189, 154, 0, 0.6) 100%) no-repeat;
       background: -webkit-linear-gradient(top, rgba(255, 219, 61, 0.6) 0, rgba(255, 208, 0, 0.6) 48%, rgba(189, 154, 0, 0.6) 100%) no-repeat;
       background: -moz-linear-gradient(top, rgba(255, 219, 61, 0.6) 0, rgba(255, 208, 0, 0.6) 48%, rgba(189, 154, 0, 0.6) 100%) no-repeat;
       background: -o-linear-gradient(top, rgba(255, 219, 61, 0.6) 0, rgba(255, 208, 0, 0.6) 48%, rgba(189, 154, 0, 0.6) 100%) no-repeat;
       background: -ms-linear-gradient(top, rgba(255, 219, 61, 0.6) 0, rgba(255, 208, 0, 0.6) 48%, rgba(189, 154, 0, 0.6) 100%) no-repeat;
       background: linear-gradient(top, rgba(255, 219, 61, 0.6) 0, rgba(255, 208, 0, 0.6) 48%, rgba(189, 154, 0, 0.6) 100%) no-repeat;
       -svg-background: linear-gradient(top, rgba(255, 219, 61, 0.6) 0, rgba(255, 208, 0, 0.6) 48%, rgba(189, 154, 0, 0.6) 100%) no-repeat;
       margin:0 auto;
    }
    ul.art-vmenu ul li a:hover, ul.art-vmenu ul li a.active:hover
    {
       color: #306482;
    }
    
    ul.art-vmenu ul a:hover:after
    {
       background-position: center ;
    }
    ul.art-vmenu ul a.active:hover:after
    {
       background-position: center ;
    }
    ul.art-vmenu ul a.active:after
    {
       background-position: bottom ;
    }
    
    ul.art-vmenu ul>li>a.active
    {
       background: #FECF00;
       background: linear-gradient(top, #FFDB3D 0, #FFD000 48%, #BD9A00 100%) no-repeat;
       background: -webkit-linear-gradient(top, #FFDB3D 0, #FFD000 48%, #BD9A00 100%) no-repeat;
       background: -moz-linear-gradient(top, #FFDB3D 0, #FFD000 48%, #BD9A00 100%) no-repeat;
       background: -o-linear-gradient(top, #FFDB3D 0, #FFD000 48%, #BD9A00 100%) no-repeat;
       background: -ms-linear-gradient(top, #FFDB3D 0, #FFD000 48%, #BD9A00 100%) no-repeat;
       background: linear-gradient(top, #FFDB3D 0, #FFD000 48%, #BD9A00 100%) no-repeat;
       -svg-background: linear-gradient(top, #FFDB3D 0, #FFD000 48%, #BD9A00 100%) no-repeat;
       margin:0 auto;
    }
    ul.art-vmenu ul a.active, ul.art-vmenu ul a:hover, ul.art-vmenu ul a.active:hover
    {
       color: #000000;
    }

    Thread starter ProCessor

    (@processor)

    Ik heb o.a. de CSS van het hmenu in het customCSS veld van de plugin (Moo collapsing archives) verwerkt. Echter zonder resultaat.

    Dit is standaard de CSS-opmaak van de plugin:

    #sidebar span.collapsing.archives {
            border:0;
            padding:0;
            margin:0;
            cursor:pointer;
    } 
    
    #sidebar span.monthCount, span.yearCount {text-decoration:none; color:#333}
    #sidebar li.collapsing.archives a.self {font-weight:bold}
    #sidebar ul.collapsing.archives.list ul.collapsing.archives.list:before {content:'';}
    #sidebar ul.collapsing.archives.list li.collapsing.archives.item:before {content:'';}
    #sidebar ul.collapsing.archives.list li.collapsing.archives.item {list-style-type:none}
    #sidebar ul.collapsing.archives.list li {
           margin:0 0 0 .8em;
           text-indent:-1em}
    #sidebar ul.collapsing.archives.list li.collapsing.archives.item:before {content: '0BB 0A0' !important;}
    #sidebar ul.collapsing.archives.list li.collapsing.archives .sym {
       font-size:1.2em;
       font-family:Monaco, 'Andale Mono', 'FreeMono', 'Courier new', 'Courier', monospace;
       cursor:pointer;
        padding-right:5px;}

    Dit is de CSS van mijn hmenu:

    ul.art-hmenu>li>a
    {
       background: #FECF00;
       background: linear-gradient(top, rgba(255, 227, 102, 0.8) 0, rgba(255, 208, 0, 0.8) 54%, rgba(168, 137, 0, 0.8) 100%) no-repeat;
       background: -webkit-linear-gradient(top, rgba(255, 227, 102, 0.8) 0, rgba(255, 208, 0, 0.8) 54%, rgba(168, 137, 0, 0.8) 100%) no-repeat;
       background: -moz-linear-gradient(top, rgba(255, 227, 102, 0.8) 0, rgba(255, 208, 0, 0.8) 54%, rgba(168, 137, 0, 0.8) 100%) no-repeat;
       background: -o-linear-gradient(top, rgba(255, 227, 102, 0.8) 0, rgba(255, 208, 0, 0.8) 54%, rgba(168, 137, 0, 0.8) 100%) no-repeat;
       background: -ms-linear-gradient(top, rgba(255, 227, 102, 0.8) 0, rgba(255, 208, 0, 0.8) 54%, rgba(168, 137, 0, 0.8) 100%) no-repeat;
       background: linear-gradient(top, rgba(255, 227, 102, 0.8) 0, rgba(255, 208, 0, 0.8) 54%, rgba(168, 137, 0, 0.8) 100%) no-repeat;
       -svg-background: linear-gradient(top, rgba(255, 227, 102, 0.8) 0, rgba(255, 208, 0, 0.8) 54%, rgba(168, 137, 0, 0.8) 100%) no-repeat;
       padding:0 31px;
       margin:0 auto;
       position: relative;
       display: block;
       height: 51px;
       cursor: pointer;
       text-decoration: none;
       color: #222E39;
       line-height: 51px;
       text-align: center;
    }
    
    .art-hmenu a,
    .art-hmenu a:link,
    .art-hmenu a:visited,
    .art-hmenu a.active,
    .art-hmenu a:hover
    {
       font-size: 12px;
       font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
       font-weight: bold;
       font-style: normal;
       text-decoration: none;
       text-transform: none;
       font-variant: normal;
       text-align: left;
    }
    
    ul.art-hmenu>li>a.active
    {
       background: #000000;
       background: linear-gradient(top, rgba(112, 112, 112, 0.8) 0, rgba(10, 10, 10, 0.8) 100%) no-repeat;
       background: -webkit-linear-gradient(top, rgba(112, 112, 112, 0.8) 0, rgba(10, 10, 10, 0.8) 100%) no-repeat;
       background: -moz-linear-gradient(top, rgba(112, 112, 112, 0.8) 0, rgba(10, 10, 10, 0.8) 100%) no-repeat;
       background: -o-linear-gradient(top, rgba(112, 112, 112, 0.8) 0, rgba(10, 10, 10, 0.8) 100%) no-repeat;
       background: -ms-linear-gradient(top, rgba(112, 112, 112, 0.8) 0, rgba(10, 10, 10, 0.8) 100%) no-repeat;
       background: linear-gradient(top, rgba(112, 112, 112, 0.8) 0, rgba(10, 10, 10, 0.8) 100%) no-repeat;
       -svg-background: linear-gradient(top, rgba(112, 112, 112, 0.8) 0, rgba(10, 10, 10, 0.8) 100%) no-repeat;
       padding:0 31px;
       margin:0 auto;
       color: #FFFFFF;
       text-decoration: none;
    }
    
    ul.art-hmenu>li>a:visited,
    ul.art-hmenu>li>a:hover,
    ul.art-hmenu>li:hover>a {
       text-decoration: none;
    }
    
    ul.art-hmenu>li>a:hover, .desktop ul.art-hmenu>li:hover>a
    {
       background: #858585;
       background: linear-gradient(top, #B5B5B5 0, #808080 58%, #595959 100%) no-repeat;
       background: -webkit-linear-gradient(top, #B5B5B5 0, #808080 58%, #595959 100%) no-repeat;
       background: -moz-linear-gradient(top, #B5B5B5 0, #808080 58%, #595959 100%) no-repeat;
       background: -o-linear-gradient(top, #B5B5B5 0, #808080 58%, #595959 100%) no-repeat;
       background: -ms-linear-gradient(top, #B5B5B5 0, #808080 58%, #595959 100%) no-repeat;
       background: linear-gradient(top, #B5B5B5 0, #808080 58%, #595959 100%) no-repeat;
       -svg-background: linear-gradient(top, #B5B5B5 0, #808080 58%, #595959 100%) no-repeat;
       padding:0 31px;
       margin:0 auto;
    }

    Ik heb vanalles geprobeerd om dit erin te krijgen… maar zonder succes helaas.

    Thread starter ProCessor

    (@processor)

    Ik heb nu dit:

    <?php
    /*
    Template Name: VWE import page
    */
    ?>
    <?php get_header();?>
    
    			<?php 
    
    			if (have_posts()) {
    
    				/* Start the Loop */
    
    				while (have_posts()) {
    
    					the_post();
    
    					get_template_part('content', 'page');
    
        error_reporting(E_ALL); ini_set("display_errors", "on");
        include_once("xml.class.php");
    
        //hier post informatie
        //$xmlData =  file_get_contents("php://input");
    
        //zo ziet de output eruit.
        $xmlData =  file_get_contents("input/xmlinput-1342704070.xml");
    
        $fh = fopen("input/xmlinput-" . time() . ".xml", "w");
        fwrite($fh, $xmlData);
        fclose($fh);
    
        $xml = new vweXML();
        $xml->setVar("XMLinput", $xmlData);
        $result = $xml->processXMLcontent();
    
        //$result = $xml->getResult();
    
        $result = $xml->getVar("XMLoutput");
    
        echo '<pre>';
    
        var_dump($result);
    
    					/* Display comments */
    
    					if (theme_get_option('theme_allow_comments')) {
    
    						comments_template();
    
    					}
    
    				}
    
    			} else {
    				theme_404_content();
    			}
    			?>
    			<?php get_sidebar('bottom'); ?>
    <?php get_footer(); ?>

    Nu krijg ik de pagina goed te zien. Alleen geeft hij dit weer:
    Warning: file_get_contents(input/xmlinput-1342704070.xml): failed to open stream: No such file or directory in …/wp-content/themes/autohuisthemegrey/page-template-vwe.php on line 29 Warning: fopen(input/xmlinput-1361360305.xml): failed to open stream: No such file or directory in …/wp-content/themes/autohuisthemegrey/page-template-vwe.php on line 33 Warning: fwrite() expects parameter 1 to be resource, boolean given in …/wp-content/themes/autohuisthemegrey/page-template-vwe.php on line 34 Warning: fclose() expects parameter 1 to be resource, boolean given in …/wp-content/themes/autohuisthemegrey/page-template-vwe.php on line 35 Warning: XMLReader::XML(): Empty string supplied as input in …/wp-content/themes/autohuisthemegrey/xml.class.php on line 43
    bool(false)

    Het mapje input staat wel in dezelfde directory…

    Thread starter ProCessor

    (@processor)

    Hmm… krijg het nog niet echt werkend.

    Thread starter ProCessor

    (@processor)

    Zou dit dan zo moeten werken?
    page-template-vwe.php:

    <?php
    
    /*
    
    Template Name: VWE import page
    
    */
    
    ?>
    
    <?php get_header(); include get_template_directory()."/includes/tt_meta.php"; ?>
    
    			<?php  global $this_post_id; $this_post_id = $post->ID;top_widget_print('in'); 
    
    if ( theme_get_meta_option($post->ID, 'theme_show_home_widget') && !theme_get_meta_option($post->ID, 'theme_show_home_widget_pos')){home_page_widget($size);}
    
     ?>
    
    <?php
        error_reporting(E_ALL); ini_set("display_errors", "on");
        include_once("xml.class.php");
    
        //hier post informatie
        //$xmlData =  file_get_contents("php://input");
    
        //zo ziet de output eruit.
        $xmlData =  file_get_contents("input/xmlinput-1342704070.xml");
    
        $fh = fopen("input/xmlinput-" . time() . ".xml", "w");
        fwrite($fh, $xmlData);
        fclose($fh);
    
        $xml = new vweXML();
        $xml->setVar("XMLinput", $xmlData);
        $result = $xml->processXMLcontent();
    
        //$result = $xml->getResult();
    
        $result = $xml->getVar("XMLoutput");
    
        echo '<pre>';
    
        var_dump($result);
    ?>
    
    <?php if ( theme_get_meta_option($this_post_id, 'theme_show_sb_bot') && !theme_get_meta_option($this_post_id, 'theme_show_sb_bot_wide') ) {get_sidebar('bottom');} ?>
    
    <?php get_footer(); ?>

    En dan de xml.class.php in dezelfde directory.
    Volgens mij moet ik nog aangeven dat het phpscript de content van de pagina is…

    Thread starter ProCessor

    (@processor)

    Het is al opgelost! Bedankt!

    Thread starter ProCessor

    (@processor)

    Heb ik geprobeerd… maar werkt niet.

    Dit staat er standaard:
    .art-content-layout .art-sidebar1
    {
    margin:0 auto;
    width: 350px;
    }

    en dan heb ik dit eronder gezet:
    .home.page.art-sidebar1 {
    margin 0 auto;
    width: 500px;
    }

    Thread starter ProCessor

    (@processor)

    Dat begint er al meer op te lijken 🙂
    Maar nog niet helemaal compleet.
    Header(image) en menu en footer kleuren ontbreken nog…

    Thread starter ProCessor

    (@processor)

    Heb het al opgelost 🙂 In de responsive stylesheet even de min-width vervangen. Bedankt voor de tip!

    Nog een vraagje, is er een handige manier om te zorgen dat de pagina wordt geprint zoals ie ook wordt weergeven ? (Nu krijg je alleen maar tekst als je print namelijk).

    Thread starter ProCessor

    (@processor)

    Ja, klopt.
    Ga ik dat even proberen.
    Dankjewel!

13 reacties aan het bekijken - 1 tot 13 (van in totaal 13)