Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 7 of 7

Thread: Can not post comments on CMS articles

  1. #1

    Default Can not post comments on CMS articles

    This was reported earlier here but a new thread seems to be in order:
    http://www.vbenterprisetranslator.co...slating-2.html

    I am having this problem again where it doesn't allow to post comments to CMS articles. In the Firefox error console, it shows this message when trying to leave a comment:

    document.getElementById("vbet_addbbcodes") is null

  2. #2
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    At this moment it is not supported. We will work to support [ lang] also for CMS articles. I suppose there was some issue before and we left it as not needed, but I will check it again and see what happens there.
    Michał (vBET) is on holiday now and he will be in Monday. I will try to find a solution for you.

    P.S. I just tested CMS article with lang BBCode added manually and it translates fine. Please make test article with lang and langtitle BBCode added manually and check how it behaves. Maybe when you changed already existing article it was taken from vBulletin cache and changes was not recognized.

  3. #3

    Default

    This is not about translating CMS articles. Comments on CMS articles can not be posted at all, even when they are in our site default language.

  4. #4
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    can you paste here any url to this page when I can test it?

  5. #5
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Ok I had to check it several times but I was able to reproduce. This is vBET bug. If user has set his default language other than forum language, then vBET adds additional option for editor. Here we forgot to check this condition and we always add some Java Script even if option was not added - this is the cause of the issue.

    For quick fix please:
    1. Go to Admin CP -> Plugins & Products -> Plugin Manager
    2. Find plugin named: Handle default language for CMS article comments
    3. Edit it - find:
    Code:
    $view->comment_block = str_replace('if (comment_postid  > 0)', 'if (document.getElementById(\'vbet_addbbcodes\').checked) {
    4. Replace by:
    Code:
    $view->comment_block = str_replace('if (comment_postid  > 0)', 'if (document.getElementById(\'vbet_addbbcodes\') && document.getElementById(\'vbet_addbbcodes\').checked) {
    This is tested and will be included in next release. Please confirm that it help.

  6. #6

    Default

    That fix worked great and can now comment on CMS articles again. Great job in finding this problem!

  7. #7
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    We were happy to help You, for any other issue you are more than welcome to ask.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •