Keyword

k2 comments

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 9 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
10 years 9 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 9 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
10 years 9 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_

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 9 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
10 years 9 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
10 years 9 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 9 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
10 years 9 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 9 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