Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Removing html link code from e.g. [group]

8 years 3 months ago #283537 by TalkStor_adm!n
Removing html link code from e.g. [group] was created by TalkStor_adm!n
Hi,

Had a look round for this but couldn't find anything.

When I send an invite to join one of my groups the recipient gets an email with the following line in it:

'You have been invited to join the group Test Group 2 by robgratt'

'Test Group 2' and 'robgratt' are shown as links. But if you click on 'Test Group 2' you are taken to the site but get the error message:
Error
Group does not exist

Clicking on 'robgratt' goes to the site but get the following:
Error
You are not authorized to view this page!

How can I include the group name and inviter without the link code, please? I have found it in the language.php file, but it only has the placeholders [group] and [user].

All help appreciated!

Rob

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 3 months ago #283539 by nant

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

8 years 3 months ago #283540 by TalkStor_adm!n
Replied by TalkStor_adm!n on topic Removing html link code from e.g. [group]
Sorry - I guess that WOULD be useful!

Joomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT

CB - 2.0.14+build.2016.06.16.19.39.02.18f2ce0c8

GJ - 3.0.1+build.2016.06.07.01.41.26.c1e032fd3

If you need anything else, please let me know.

Rob

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 3 months ago #283560 by krileon
Replied by krileon on topic Removing html link code from e.g. [group]
You need to modify its language string for that. The best way to do this for now is an override language plugin as shown below.

www.joomlapolis.com/forum/6-news-and-publicity/227556-cb-language-override-video-tutorial-resources

Next the language string you need to change is as follows.

Code:
'GROUP_INVITE_MESSAGE' => "You have been invited to join the group [group] by [user]!\n\n[message]",

Change [group] to [group_name] for non-linked name. The following notification substitutions are supported.

[category_id]
[category_name]
[category_description]
[category]
[group_id]
[group_name]
[group_description]
[group]
[user]


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

8 years 3 months ago #283610 by TalkStor_adm!n
Replied by TalkStor_adm!n on topic Removing html link code from e.g. [group]
Hi, Kyle,

Thanks for that - will take a look.

Does the same apply for [user]? i.e. change to [user_name] so the 'Error You are not authorized to view this page!' message won't appear?

Thanks again for the quick response.

Rob

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 3 months ago #283622 by krileon
Replied by krileon on topic Removing html link code from e.g. [group]

Does the same apply for [user]? i.e. change to [user_name] so the 'Error You are not authorized to view this page!' message won't appear?

For user you just use normal user substitutions. So for example [username], etc..


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum