• Resolved robinmetral

    (@robinmetral)


    Hey Arun/Kuttappi,

    First of, thanks for the plugin. I’ve been looking for a simple Q&A plugin ALL DAY, but all I could find were things like DWQA – much too complicated and difficult to tweak.

    Anyway– I installed the plugin and personalized the messages (translating them to french) straight away. Unfortunately it didn’t work: I think some fields (including the secret question ones) were missing, so posting was impossible.
    Then I tried to go back to the basics and use only [askmeanythingpeople], but the same problem occurs. You can witness it on the page I sent you.

    I hope you can help me fix this! Looking forward to your support before rating you 5 stars 🙂
    Robin

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter robinmetral

    (@robinmetral)

    Hey Arun and thanks for your reply !

    The version you tested on the webpage is not translated. I’ve used the default settings and messages. I’m trying to get it to work before translating it.

    How did you still manage to post a question ? 😀 It doesn’t work on my end – see a screenshot here.

    Thanks in advance for your help
    Robin

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hey Robin,

    Who me? I posted a question? Must be someone anonymous 😉

    Jokes aside, I see the problem now. It is the CSS of your theme.

    Here is how to fix it. Add the following CSS to the ‘Custom CSS’ tab in the plugin settings and save it.

    .ask-me-anything-people #commentform .comment-form-comment label {
    	display: block !important;
    	position: static !important;
    }

    This should work. Please let me know if it does.

    Regards,
    Arun

    Thread Starter robinmetral

    (@robinmetral)

    It works! Thank you so much 🙂
    Last couple things:

    (1) in terms of translations, I’d need to also edit the following text fields:
    – “Enter your answer..” in the secret question field
    – “Since you are currently logged in, your question will not be anonymous. Please log out or open this page in a private window if you wish to stay anonymous.”
    – “asked:” and “replied:” (in the replies)
    – “on” and “at” in the date display

    (2) EDIT: FIXED I can’t hide the avatar using the 0 value. Any idea why?

    /* FORCE HIDE AVATAR */
    .amaavatar .avatar {
    	display: none !important;
    }

    (3) On your website, the avatar is appearing on the left of the comments, and the name+”asked”+date are appearing on one line. How can I do this too? It would greatly improve readability.

    Thanks again Arun
    Robin

    • This reply was modified 6 years, 6 months ago by robinmetral.
    • This reply was modified 6 years, 6 months ago by robinmetral.
    • This reply was modified 6 years, 6 months ago by robinmetral.
    • This reply was modified 6 years, 6 months ago by robinmetral.
    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hey Robin,

    1. There are no shortcodes for these text fields. You can translate it programmatically. Add this code to the functions.php of the current theme: http://millionclues.com/wordpress-tips/translate-wordpress-programmatically-gettext/

    Couple of fields were not translation ready. I have updated them in the latest version I just updated. Ver 1.3.1. Please update the plugin before you use it.

    Note: For complete translation use the .pot file. For your convenience, I have generated one and added it to the /languages/ folder.

    Here is a tutorial on how to translate using .POT files using various tools: http://wplang.org/translate-theme-plugin/

    To tell WordPress to use the language file, follow this tutorial: https://wordpress.stackexchange.com/a/139161/90061

    2. That is weird, it should be hidden. However, you can also use a workaround. Add this CSS to the Custom CSS box (below the previous CSS).

    .amaavatar img {
    	display: none !important;
    }

    Hope that helps.

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    3. The theme you are using sets <span> in comments as block. <span> elements need to be display: inline. This will make it in one line.

    Thread Starter robinmetral

    (@robinmetral)

    Thanks for the reply! I’ll get translating 🙂
    As for the inline display of comment meta, I’ve tried variations of this code

    /* FORCE COMMENT INFO DISPLAY TO INLINE */
    .div.ama-question-meta span {
    	display: inline !important;
    }

    … but without success.
    Do I need to change all of my site’s comment display settings? Couldn’t I simply edit the span elements in the AMA page?
    Cheers
    Robin

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    You are using the wrong selector for the span. It should be

    .ask-me-anything-people #comments span

    Thread Starter robinmetral

    (@robinmetral)

    Hey!

    First of, translation done 👍 I emailed you the files

    The code above doesn’t work either 🙁
    I don’t know what I can try next. Hope you can help me get this right!

    Cheers

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Robin,

    Did you try this? http://millionclues.com/wordpress-tips/translate-wordpress-programmatically-gettext/

    The CSS I sent before was just the selector, it should be:

    .ask-me-anything-people #comments span {
    	display: inline !important;
    }

    I think you should do some manual digging and read on how to get the translation done using the link I provided and other resources on Google. Everything you need to translate it is on this thread.

    Thread Starter robinmetral

    (@robinmetral)

    Hi again 🙂

    I didn’t try the programmatic translation, because I’ve done a full file-based translation of your plugin. The advantage of a file-based translation is that other French speakers wouldn’t need to go through the process of programmatic tranlation in order to use your plugin in their native language 🙂

    As for the inline comment meta, the code you sent is the one I used – which still doesn’t work.
    I’ll keep checking for solutions online, but if you have any input on how to get this done, it would be greatly appreciated!

    Cheers and all the best
    Robin

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Robin,

    Makes sense. After uploading the translation files did you edit your wp-config.php as mentioned here? https://wordpress.stackexchange.com/a/139161/90061

    You will need to add:

    define('WPLANG', 'fr_FR');

    This should load the translations.

    Arun

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hey Robin,

    Did you get a chance to follow through with my last suggestion? Setting the WPLANG in wp-config.php will tell WordPress to use the translation file you created.

    Marking as resolved as the original request was answered and nothing is remaining at my end for translation to work. Feel free to open a new thread if you have more questions.

    Best regards,
    Arun

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Fields missing, plugin not working’ is closed to new replies.