Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter cugok

    (@cugok)

    I didn’t remember how I solve the problem. Probably I used qtranslate plugin I sent an additional data field called i.e. ‘lang’ and then using qtranslate I create a
    $string = “<!–:en–>english text<!–:–><!–:de–>german text<!–:–>”;
    and then use in ajax: qtrans_use($lang, $string);

    Thread Starter cugok

    (@cugok)

    I will provide more info:

    In index.php

    function getall() {
    		$.ajax({
    			type: "post",
    			url: "<?php bloginfo('template_url'); ?>/ajax/my-ajax-script.php",
    			success: function(data){ console.log(data) }
    ...

    In my-ajax-script.php:

    include_once('../../../../wp-blog-header.php');
    <?php _e('Translated text', 'mytemplate'); ?>

    _e(‘Translated text’ is copied from other php file where it’s working.

    Ajax is working but I’m getting not translated text.

    inside theme catalog (probably wp-content/themes/twentyeleven/style.css):

    file: style.css
    line: 475

    a:focus, a:active, a:hover {
        text-decoration: underline;
    }

    change
    text-decoration: underline;
    to
    text-decoration: underline;

    cugok

    (@cugok)

    Hey Ignacio! Thanks for fix! It works fine now 😉

    cugok

    (@cugok)

    Great fix!

    But if I’m editing post and before I’ve added minimum 2 records, I see only delete button (no “Add new” button!?)

    If I wan to add I’ve to delete all and then add all one more time.
    My code:

    [founder]
    type = fieldset_open
    multiple = true
    multipleButton = true

    [founder_txt]
    hideKey = true
    type = text
    size = 50
    label = Founder – Enter name and title
    class founder_txt
    blank = true

    [founder_img]
    hideKey = true
    type = file
    label = Founder – Upload photo
    class = founder_img
    blank = true

    [class]
    type = fieldset_close

    Screenshot: http://imageshack.us/m/716/7684/cftvl.jpg

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