×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: CComment Core 5.3.8 - smiley don't load...

CComment Core 5.3.8 - smiley don't load... 6 years 10 months ago #35939

  • Informatique Prog
  • Informatique Prog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hello,

I'm testing your component and i found it nice (great job).

I have just one problem, when i write a comment and i want to add a smiley, nothing.
In fact, i have a Javascript error
TypeError: el.getParent(...).getElement(...) is null  aa832d2247bf6e9d1ac2e0026ec7ad84.min.js:138:1012

Any idea ?

CComment Core 5.3.8 - smiley don't load... 6 years 10 months ago #35940

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You'll have to disable the minification in the comment settings and give us a link to the page. Then maybe we could get an idea what's going on.

Regards,
Daniel

CComment Core 5.3.8 - smiley don't load... 6 years 10 months ago #35941

  • Informatique Prog
  • Informatique Prog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
I've disable minification.
The problem is there no
<div class='ccomment-emoticons hide'>
In \components\com_comment\templates\default\default_form.php
I found that to write the div you need a 'layout.support_emoticons' param
Below the SQL value of 'com_content'
{"basic":{"include_categories":"1","categories":["22"],"exclude_content_items":""},"security":{"authorised_users":["10","13"],"auto_publish":"0","notify_moderators":"1","moderators":["13"],"captcha":"0","captcha_type":"default","maxlength_text":"30000"},"layout":{"tree":"1","sort":"0","comments_per_page":"0","support_ubb":"1","support_pictures":"0","pictures_maxwidth":"200","voting_visible":"1","date_format":"age","show_readon":"0","menu_readon":"0","intro_only":"0","emoticon_pack":"funny-grey"},"template":{"template":"default"},"template_params":{"emulate_bootstrap":"1","minify_scripts":"0","notify_users":"0","pagination_position":"0","form_position":"0","form_avatar":"0","form_ubb":"1","required_user":"0","required_email":"0","show_rss":"0","show_search":"0","preview_visible":"0","preview_length":"80","preview_lines":"5"},"integrations":{"gravatar":"0","support_profiles":"0"}}
param would be there no ?

CComment Core 5.3.8 - smiley don't load... 6 years 10 months ago #35942

  • Informatique Prog
  • Informatique Prog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
I've added it, and it's works.
But when i go in the comment component's administration and save.
this param go away...

I think if i buy the pro version, i 'll not have this problem ;)
Can i buy it now and use it (we are on a test domain) ?

CComment Core 5.3.8 - smiley don't load... 6 years 10 months ago #35943

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You can use it wherever you want, But I don't understand why you run in this. It should work out of the box. What settings have you changed. And can we see a link to the page?

Regards,
Daniel

CComment Core 5.3.8 - smiley don't load... 6 years 10 months ago #35944

  • Informatique Prog
  • Informatique Prog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Sorry, i can't give you an URL (internal site, need LDAP connect...)

Before
{"basic":{"include_categories":"1","categories":["22"],"exclude_content_items":""},"security":{"authorised_users":["10","13"],"auto_publish":"0","notify_moderators":"1","moderators":["13"],"captcha":"0","captcha_type":"default","maxlength_text":"30000"},"layout":{"tree":"1","sort":"0","comments_per_page":"0","support_ubb":"1","support_pictures":"0","pictures_maxwidth":"200","voting_visible":"1","date_format":"age","show_readon":"0","menu_readon":"0","intro_only":"0","emoticon_pack":"modern"},"template":{"template":"default"},"template_params":{"emulate_bootstrap":"1","minify_scripts":"0","notify_users":"0","pagination_position":"0","form_position":"0","form_avatar":"0","form_ubb":"1","required_user":"0","required_email":"0","show_rss":"0","show_search":"0","preview_visible":"0","preview_length":"80","preview_lines":"5"},"integrations":{"gravatar":"0","support_profiles":"0"}}

With phpMyAdmin i add "support_emoticons":"1", now i have
{"basic":{"include_categories":"1","categories":["22"],"exclude_content_items":""},"security":{"authorised_users":["10","13"],"auto_publish":"0","notify_moderators":"1","moderators":["13"],"captcha":"0","captcha_type":"default","maxlength_text":"30000"},"layout":{"tree":"1","sort":"0","comments_per_page":"0","support_ubb":"1","support_emoticons":"1","support_pictures":"0","pictures_maxwidth":"200","voting_visible":"1","date_format":"age","show_readon":"0","menu_readon":"0","intro_only":"0","emoticon_pack":"modern"},"template":{"template":"default"},"template_params":{"emulate_bootstrap":"1","minify_scripts":"0","notify_users":"0","pagination_position":"0","form_position":"0","form_avatar":"0","form_ubb":"1","required_user":"0","required_email":"0","show_rss":"0","show_search":"0","preview_visible":"0","preview_length":"80","preview_lines":"5"},"integrations":{"gravatar":"0","support_profiles":"0"}}

No more javascript error, all is good

Now if i go in "Comment configuration for com_content", do nothing just "save & close"
"support_emoticons":"1" as gone
{"basic":{"include_categories":"1","categories":["22"],"exclude_content_items":""},"security":{"authorised_users":["10","13"],"auto_publish":"0","notify_moderators":"1","moderators":["13"],"captcha":"0","captcha_type":"default","maxlength_text":"30000"},"layout":{"tree":"1","sort":"0","comments_per_page":"0","support_ubb":"1","support_pictures":"0","pictures_maxwidth":"200","voting_visible":"1","date_format":"age","show_readon":"0","menu_readon":"0","intro_only":"0","emoticon_pack":"modern"},"template":{"template":"default"},"template_params":{"emulate_bootstrap":"1","minify_scripts":"0","notify_users":"0","pagination_position":"0","form_position":"0","form_avatar":"0","form_ubb":"1","required_user":"0","required_email":"0","show_rss":"0","show_search":"0","preview_visible":"0","preview_length":"80","preview_lines":"5"},"integrations":{"gravatar":"0","support_profiles":"0"}}

And sorry i just find that i'm not in the right section :whistle:

CComment Core 5.3.8 - smiley don't load... 6 years 10 months ago #35947

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
The support emoticons options is under layout. So you want to say that once you set it to yes and you save the configuration it is set to false???

CComment Core 5.3.8 - smiley don't load... 6 years 10 months ago #35951

  • Informatique Prog
  • Informatique Prog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Not exactly.
In the CComment Core version, the support emoticons options under layout is ON (and you can't change this in the core version).
But if you see the config SQL value in the table `dqobg_comment_setting` for 'com_content' entry, there's no param 'support_emoticons'
In \components\com_comment\templates\default\default_form.php
<?php if ($this->config->get('layout.support_emoticons')) : ?>
    <div class='ccomment-emoticons hide'>
That's why i haven't in the HTML code the
<div class='ccomment-emoticons hide'>
No param, No DIV => Javascript error

To check, i have added with PhPMyAdmin "support_emoticons":"1" in the SQL value and no more Javascript error.
but if you go in "Comment configuration for com_content", do nothing just "save & close", the param disappear...

PS : I have bought the PRO version => no problem with it
Thanks for your attention
  • Page:
  • 1
Time to create page: 0.518 seconds