- Posts: 52
COMMUNITY FORUM
k2 comments
- Kevin
-
Topic Author
- Offline
- Senior Member
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
-
Topic Author
- Offline
- Senior Member
- Posts: 52
Please Log in or Create an account to join the conversation.
- Massoud
-
- Offline
- Junior Member
- Posts: 35
Please Log in or Create an account to join the conversation.
- Kevin
-
Topic Author
- Offline
- Senior Member
- Posts: 52
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
-
- Offline
- Platinum Member
- Posts: 15920
Also does your site have any JS errors?
Please Log in or Create an account to join the conversation.
- Kevin
-
Topic Author
- Offline
- Senior Member
- Posts: 52
Please Log in or Create an account to join the conversation.
- Kevin
-
Topic Author
- Offline
- Senior Member
- Posts: 52
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- Senior Member
- Posts: 52
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- Senior Member
- Posts: 52
Thanks
Kevin
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- Senior Member
- Posts: 52
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
-
- Offline
- Platinum Member
- Posts: 15920
'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
-
Topic Author
- Offline
- Senior Member
- Posts: 52
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
-
Topic Author
- Offline
- Senior Member
- Posts: 52
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- Senior Member
- Posts: 52
Thanks
Kevin
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You need to develop a K2 plugin for this to work.
Please Log in or Create an account to join the conversation.
- Kevin
-
Topic Author
- Offline
- Senior Member
- Posts: 52
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.