Keyword

k2 comments

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122069 by Kevin
k2 comments was created by Kevin
:(
I add the recaptha to k2 comment, but the words doesn't display, so turn it off, also turn off the comment, not want to turn the comment back, but it doesn't come back. I really need it now. Please help.

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122070 by Kevin
Replied by Kevin on topic Re: k2 comments
I didn't see any reply yet, can anybody help me please!!!

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #122071 by Massoud
Replied by Massoud on topic Re: k2 comments
You probably need GD extension on PHP, login in your admin panel and go to system information, look for GD in PHP Information tab. if it's not enable ask to your host provider to do it for you.

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122072 by Kevin
Replied by Kevin on topic Re: k2 comments
it's installed and enabled.

gd

GD Support enabled
GD Version bundled (2.1.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.11
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XPM Support enabled
libXpm Version 30411
XBM Support enabled

Directive Local Value Master Value
gd.jpeg_ignore_warning 0 0

Can anybody who knows this help me to troubleshooting the problem.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #122073 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: k2 comments
Have you followed the instructions which are posted in this thread?
Also does your site have any JS errors?

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122074 by Kevin
Replied by Kevin on topic Re: k2 comments
I didn't see any posted instruction in this thread. I didn't see any JS error. This is my site www.nybsnews.com. If you click on any articles, you will see 'post the comment' text there, but it's not clickable.

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122075 by Kevin
Replied by Kevin on topic Re: k2 comments
The customer cannot post the comments now :( . Can you help please.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #122076 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: k2 comments
The comments are enabled for registered users only so I cannot see the form.

For setting up recaptcha please read this post: getk2.org/community/New-to-K2-Ask-here-first/10508-Re-reCaptcha-not-working#179730

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122077 by Kevin
Replied by Kevin on topic Re: k2 comments
Hi Krikor,

Thank you very much for your reply. I login and I can see the comments. Now my question is can sentence 'Login to post comments' link to a login page, so user can click on it then login to the site. I think this is most of the website do, right?

Thanks
Kevin

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #122078 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: k2 comments
You can override this in your item.php

Assign a menu item to the login page (com_users) and add this link to your overrides.

Read this tutorial on overriding if you do not have any experience with K2 templates.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122079 by Kevin
Replied by Kevin on topic Re: k2 comments
Thanks again. I think I understand what you said. Can you please also tell me what's the difference between mod_login and com_users? Which one I should go with in my case.

Thanks
Kevin

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #122080 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: k2 comments
it mod_login which is the default Joomla! login and mod_k2_user which is the login K2 uses.

The second will display your K2 profile plus links to front end editing.

On the other hand com_users is the core Joomla! user component.

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122081 by Kevin
Replied by Kevin on topic Re: k2 comments
Hi Krikor,

This is what I am doing and I want to make sure I did everything right.

1. I created the following folder:
/public_html/bsnews/templates/nybsnewstemplate/html/com_k2/default
2. I copied the everything in the following folder to the new folder:
/public_html/bsnews/components/com_k2/templates
3. edit the following line in the item.php file in the default folder in the new directory I created.
<div><?php echo JText::_('K2_LOGIN_TO_POST_COMMENTS');?></div>
4. I am not sure if my change is right, so I posted here to have you to have a look. This is the above line after edit.
<div><a href="www.nybsnews.com/index.php/en/login"> Tag

5. I don't have to change default folder name in the new directory since the change will apply to all the category, right?
6. Do I have to change the template name to each category? Are they going to pick it up automatically?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #122082 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: k2 comments
If you are using a single K2 category you only have to override the default category.

'K2_登录后发表评论 is not needed you only need the custom part not the K2_

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122083 by Kevin
Replied by Kevin on topic Re: k2 comments
The reason I customize the K2_ part because I want to replace English words with Chinese words since I build a Chinese website.

Now this is the problem

this is the code line I put in

<div><a href="nybsnews.com/index.php/en/login"><?php echo JText::_('登录后发表评论');?></a></div>

But each time I click on the link, it always goes to an unfounded page. I did element inspection. It looks like below:
<a href="/nybsnews.com/index.php/en/login">登录后发表评论</a>
I can see there is a / in in front of hyper link.

Can you please let me know why is this, what should I do to make it work.

Thanks
Kevin

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122084 by Kevin
Replied by Kevin on topic Re: k2 comments
One more thing I just discovered, when I click on the link above, the address become the following address:
www.nybsnews.com/index.php/en/component/k2/item/nybsnews.com/index.php/en/login

The addess I want to put in appended on the string:

www.nybsnews.com/index.php/en/component/k2/item

Do I have to put the hyper link into a php code. If so, can you please tell me what code line is this?

Thanks
Kevin

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #122085 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: k2 comments
You need http:// in front of your external link links.
eg: <a href="nybsnews.com/index.php/en/login">

Finally K2 is fully translatable. You should install the Chinese language pack - getk2.org/extend/translations.

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122086 by Kevin
Replied by Kevin on topic Re: k2 comments
Thank you very much Krikor, it finally worked. One more question, after I login, can user be redirect back to the page he want to put the comment on.

Thanks
Kevin

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #122087 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: k2 comments
This can be done with a custom implementation only.
You need to develop a K2 plugin for this to work.

Please Log in or Create an account to join the conversation.

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #122088 by Kevin
Replied by Kevin on topic Re: k2 comments
Can you please help me with the detail, which plug in I should install? I want to do it.

Also I installed the k2 chinese plug in and I already have the joomla chinese plug installed before. Not sure how to turn them on. There is no documentation I can find out.

Sorry I still keep this thread alive.

Thanks
Kevin

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum