Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter haskar

    (@haskar)

    Btw,

    I am having similar problems with wp_list_pages() and wp_get_archives()

    Thread Starter haskar

    (@haskar)

    I have another problem to the same topic:

    new popUp(10, 10, 400, 400, "Index2" , <?php the_content('Read the rest of this entry &raquo;'); ?>, "white" , "black" , "9pt sans-serif" , "Index" , "#0F72BB" , "white" , "lightgrey", "#6DBAF3" , "black" , true , true , false , true , false , false ,'<?php bloginfo('template_url'); ?>/images/min.gif','<?php bloginfo('template_url'); ?>/images/max.gif','<?php bloginfo('template_url'); ?>/images/close.gif','<?php bloginfo('template_url'); ?>/images/resize.gif');

    does not seem to work. Do you gave any clues about the return Value of the the_content Function?
    I checked: http://codex.wordpress.org/Template_Tags/the_content and http://codex.wordpress.org/Function_Reference/get_the_content

    I also tried

    new popUp(10, 10, 400, 400, "Index2" , "<?php the_content('Read the rest of this entry &raquo;'); ?>",[...]);

    and

    new popUp(10, 10, 400, 400, "Index2" , '<?php the_content('Read the rest of this entry &raquo;'); ?>',[...]);

    Thread Starter haskar

    (@haskar)

    thank you so much filosofo!!

    although you solution didn’t work out for me, I begant to rethink the “”” and “‘” idea and tried this one:

    new popUp(250, 150, 200, 600, "sidebar" , <?php wp_list_categories('hide_empty=0&sort_column=name&optioncount=1&hierarchical=1'); ?> , "white" , "black" , "10pt sans-serif" , "Sidebar" , "#0F72BB" , "white" , "lightgrey", "#6DBAF3" , "black" , true , true , false , true , false , false ,'<?php bloginfo('template_url'); ?>/images/min.gif','<?php bloginfo('template_url'); ?>/images/max.gif','<?php bloginfo('template_url'); ?>/images/close.gif','<?php bloginfo('template_url'); ?>/images/resize.gif');

    … and it worked 🙂

    Thread Starter haskar

    (@haskar)

    Thank you for your answer filosofo 🙂

    you are right, my code doesn’t make any sense. It was actually some kind of dummy code.

    Here is some real code from my header file:

    <script language="javascript">
    <!--
    new popUp(250 , 0 , 950 , 150 , "header" , "<div id=\"header\"><h1><a href=\"<?php echo get_settings('home'); ?>/\"><?php bloginfo('name'); ?></a></h1><p class=\"description\"><?php bloginfo('description'); ?></p></div>" , "white" , "black" , "10pt sans-serif" , "Header" , "#0F72BB" , "white" , "lightgrey", "#6DBAF3" , "black" , true , true , false , true , false , false ,'<?php bloginfo('template_url'); ?>/images/min.gif','<?php bloginfo('template_url'); ?>/images/max.gif','<?php bloginfo('template_url'); ?>/images/close.gif','<?php bloginfo('template_url'); ?>/images/resize.gif');   
    
    showbox('header');
    //-->
    </script>

    As you can see, the 6th argument for the popUp() function is a string with HTML Code.

    The PopUp Code for the sidebar looks like this (simplified)

    <script language="javascript">
    <!--
    new popUp(250 , 0 , 950 , 150 , "header" , "<?php wp_list_categories('sort_column=name&optioncount=1&hierarchical=0'); ?>" , "white" , "black" , "10pt sans-serif" , "Header" , "#0F72BB" , "white" , "lightgrey", "#6DBAF3" , "black" , true , true , false , true , false , false ,'<?php bloginfo('template_url'); ?>/images/min.gif','<?php bloginfo('template_url'); ?>/images/max.gif','<?php bloginfo('template_url'); ?>/images/close.gif','<?php bloginfo('template_url'); ?>/images/resize.gif');   
    
    showbox('header');
    //-->
    </script>

    This should list all of the categories in a popUp- Box. But the Code doesn’t work. Even if I set ‘echo=0&style=none’ and so on

Viewing 4 replies - 1 through 4 (of 4 total)