Forum Replies Created

Viewing 15 replies - 1 through 15 (of 37 total)
  • Thread Starter poper

    (@poper)

    Thanks a lot plodder, you rock!
    It works 🙂
    Thanks again!

    Thread Starter poper

    (@poper)

    And here are the template files i’m using for WP (no loop, just the layout): http://personales.ya.com/poper/cole3.rar (header, index, footer and style.css)

    Thread Starter poper

    (@poper)

    Thanks plodder. I’m going to check the link.
    One more odd thing: If I copy and paste the code from the page rendered by WP into a new HTML file it’s shown properly in IE6! but i doesn’t in localserver

    The code is here:
    http://personales.ya.com/poper/index.html —> HTML from a page rended by WP
    http://personales.ya.com/poper/style.css –> CSS
    Thanks a lot!

    Thread Starter poper

    (@poper)

    Thanks for the answer, unfortunely it doesn’t work. The problem is not only the centering but also the width of the “caja” DIV. The odd thing is that the “pie” DIV (the grey footer) renders OK in IE (and both DIVs share almost the same CSS code)

    Thread Starter poper

    (@poper)

    Moshu and strugglefish thanks a lot, it works like a charm!

    Thread Starter poper

    (@poper)

    strugglefish I’ve tried something similar:

    elseif (is_page()) {
    // we're looking at a static page. Which one?
    if (is_page('5' || '9' || '10' || '11')) {
    wp_list_pages('sort_column=menu_order&exclude=8,3&title_li=');
    } elseif (is_page('8' || '3')) {
    // our about page.
    echo "HTML";
    } else {
    // catch-all for other pages
    echo "html";
    }

    It works, but It always show the HTML for the first option (even if the displayed page is #8 or 3)
    Thanks a lot

    Thread Starter poper

    (@poper)

    Thanks a lot moshu, I’m gonna try it

    Thread Starter poper

    (@poper)

    Thanks for you answer, but I understand that, but I want to know if that piece of code can be assigned to different pages at the same time (to avoid repeating code and increase the size of the file).

    // we’re looking at a static page. Which one?
    if (is_page(‘8 or 9 or 10‘)) {
    // our about page.
    echo “HTML for pages 8, 9 or 10”;

    I mean translate ‘8 or 9 or 10’ to PHP code.
    Thanks again and sorry for my English.

    Thread Starter poper

    (@poper)

    I’ve found a solution. All you have to do is changing these lines in /wp-includes/gettext.php (108-111)

    // $MAGIC1 = (int)0x950412de; //bug in PHP 5
    $MAGIC1 = (int) - 1794895138;
    // $MAGIC2 = (int)0xde120495; //bug
    $MAGIC2 = (int) - 569244523;

    for these ones:

    // $MAGIC1 = (int)0x950412de; //bug in PHP 5
    $MAGIC1 = 2500072158;
    // $MAGIC2 = (int)0xde120495; //bug
    $MAGIC2 = 3725722773;

    If it doesn’t work, you can try these ones:

    $MAGIC1 = (int)0x950412de; //bug in PHP 5
    //$MAGIC1 = (int) - 1794895138;
    $MAGIC2 = (int)0xde120495; //bug
    //$MAGIC2 = (int) - 569244523;

    I hope it helps others.

    Thread Starter poper

    (@poper)

    Acording to the phpinfo, gettext is enabled

    Pues entonces no sé a que puede deberse el error. Comprueba que las rutas están correctas (/wp-includes/languages/es_ES.mo) y que has subido el fichero .mo en lugar del .po.

    En estos momentos yo estoy usando la traducción 1.5 en mi blog que está actualizado a la 1.5.2 y no he encontrado ningún problema. Las nuevas versiones que han ido apareciendo corregian fallos y no añadian nuevas características que implicasen nuevas cadenas de texto, por lo que funcionan bien.
    Saludos

    Hola
    si los datos que has puesto son exactos, el fallo está en las mayúsculas. El nombre que emplees en wp-config.debe ser exactamente igual al que tengo el fichero con la traducción:

    es_ES.mo (dentro de wp-includes/languages/)
    define (’WPLANG’, ‘es_ES’); (en wp-config.php)

    Por lo que has escrito, el fichero con la traducción está nombrado como es_Es.mo con la segunda letra en minúscula Haz los cambios oportunos para que ambos nombre coincidan.

    Espero que sea eso. Un saludo.

    Hi, Upgrading was fine but I’ve found an error on my site. My index.php calls to a SSI function in order to get the lastest posts from a forum (SMF 1.0.3):

    <?php require("/home/mydir/public_html/foro/SSI.php"); ?>

    I worked nice with WP 1.5 , but after upgrading to 1.5.1 this error appears:


    Fatal error: Cannot redeclare is_admin() (previously declared in /home/mydir/public_html/wp-includes/functions.php:1367) in /home/mydir/public_html/forum/Sources/Security.php on line 111

    once I remove
    <?php require("/home/mydir/public_html/foro/SSI.php"); ?> from the very first line of the index.php the page loads fine, although obviously SSI functionality is lost.

    Any idea about what’s happening, please?
    Thanks

    poper

    (@poper)

    Hi Callistawolf,
    I’ve solved the problem this way:
    Write the post, change the timestamp (checking the appropriate box previously) and then click on the ‘Publish’ button, not on ‘save’. It will be posted using the ‘old’ date.

    poper

    (@poper)

    Same problem here. I need to introduce posts that were written long time ago so the timestamp needs to be changed. ‘Edit timestamp’ is checked, date is changed, then I save but the original timestamp remains, no changes appear
    Help please!

Viewing 15 replies - 1 through 15 (of 37 total)