Skip to Content Skip to Menu

[SOLVED] Assigning template to temporary links?

  • wag
  • wag
  • OFFLINE
  • Posts: 18
  • Thanks: 1
  • Karma: 1
10 years 3 months ago - 10 years 3 months ago #247169 by wag
Hi,
i have the problem of assigning the joomla template i use to certain links/messages that show up in the process of a user's registration.

I use a 'yootheme' template (on a Joomla 3.3 site) that i have redesigned to my needs (other typo, colors etc.). It is assigned to all the menu-links there are in my website and it is also the standard template. Everything works fine so far.

Here comes the problem:

1. the registration via Community Builder on the website including "registration complete"-message works, "my template" will be displayed.


2. Now if a user has registered he gets several messages via email:

"Confirm your registration" - if a user does this, he got over to the website and a new message (that he "now can login") shows up, BUT now the original template instead of "my template" is displayed...?

The link in the email looks something like that:
http://www domain com/ ... /index.php?option=com_comprofiler& task=confirm& confirmcode= rege7933e3fd2411ea4fdb2dd3e371ad1a00047fdda& amp; Itemid=136

- for that I have no menulink which i could assign "my template" to, and
- these links are only temporary links!

Or other links i.e. for messages like "Error: You are not authorized to view this page! You need to log in."
are NOT shown in "my template", they're all shown in the original template...


Let's say it that way:
i only can assign "my template" to existing menulinks (or links i created in a hidden menu), but NOT to temporary registration links etc.

HOW can i fix that "every message" is shown in "my template" not in the original one?
I hope someone can help?

Cheers
wag
Last edit: 10 years 3 months ago by krileon.

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

  • wag
  • wag
  • OFFLINE
  • Posts: 18
  • Thanks: 1
  • Karma: 1
10 years 3 months ago #247183 by wag
Replied by wag on topic Assigning template to temporary links?
Any solution in sight? :dry:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago - 10 years 3 months ago #247206 by krileon
Replied by krileon on topic Assigning template to temporary links?
Template assignment is entirely dependent on Itemid. The Itemid in the URL sent in the email is "136". Find the Joomla menu item associated with that Itemid then assign your template to it. It's likely your CB Registration menu item or CB profile menu item. The "done" links I don't think have an Itemid but I believe that's fixed in CB 2.0.


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.
Last edit: 10 years 3 months ago by krileon.

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

  • wag
  • wag
  • OFFLINE
  • Posts: 18
  • Thanks: 1
  • Karma: 1
10 years 3 months ago #247223 by wag
Replied by wag on topic Assigning template to temporary links?
Hi Kyle,
thanks for that hint. But this is what i am trying to say: these "Email"-Links are 'like temporary links', one has item ID 136, the next registered user got ID 179 ...
There is no menu link with id 136 or 179 etc i could assign the template to.

See what JOE and JIM had in their mail inboxes soon after registration via CB - this is automaticly sent by CB:

Greetings Joe,
Thank you for applying for registration with us. We have
received your request and we will process it as soon as you confirm your email address by clicking on the following hyperlink:

http : //www. domain . com/.../index.php?option=com_comprofiler& task=confirm&confirmcode=rege7933e3fd2411ea4fdb2dd3e371ad1a00047fdda& Itemid=136

Once your email address is confirmed our moderators will be notified to continue the activation process.
You will be notified by email of the progress of your registration process.
Email: ...
Name: Joe
Username: Joe
Kind Regards,
Website Administration Team

NOTE: This email was automatically generated from website .....



Greetings Jim,
Thank you for applying for registration with us. We have
received your request and we will process it as soon as you confirm your email address by clicking on the following hyperlink:

http : //www. domain . com/.../index.php?option=com_comprofiler&
task=confirm&confirmcode=rege91e1b70c233b6f9fcc7f5aca9238ca90047fddd&Itemid=179


Once your email address is confirmed our moderators will be notified to continue the activation process.
You will be notified by email of the progress of your registration process.
Email: ...
Name: Jim
Username: Jim
Kind Regards,
Website Administration Team

NOTE: This email was automatically generated from website .....


If there would be a component that creates these Email-Links with always the same ID i would assign the template to this (hidden)menu link.

But i think of that this "com_comprofiler" always creates a pretty new link with a pretty new ID.
I hope you get the point?

Thanks
wag

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago #247276 by krileon
Replied by krileon on topic Assigning template to temporary links?
CB uses the first menu link the user has access. This is typically always the profile menu link. It's not possible to force it to a single Itemid as it builds that URL internally automatically. The alternative is to construct the URL manually, which you can do using the below.

[cb:config param="live_site" /]/index.php?option=com_comprofiler&task=confirm&confirmcode=[cbactivation]&Itemid=ITEM_ID_HERE

You can then replace ITEM_ID_HERE with whatever menu item id you like.


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.

  • wag
  • wag
  • OFFLINE
  • Posts: 18
  • Thanks: 1
  • Karma: 1
10 years 3 months ago #247382 by wag
Replied by wag on topic Assigning template to temporary links?
OK, i created a new menu "System Link", menu item type "External URL", and as link i put in:
index.php?option=com_comprofiler&task=confirm&confirmcode=[cbactivation]&Itemid=147
(ID 147 is "CB Registration" menu link), and assigned my template to.

Now, when i click on the confirmation link that came with the email:

... index.php?option=com_comprofiler&task=confirm&confirmcode=rege7933e3fd2411ea4fdb2dd3e371ad1a00047fdda&Itemid=136

nothing has changed. Inside the browser's URL bar that link is shown:

http : //www . domain . com / index.php?option=com_comprofiler&task=confirm&confirmcode=rege7933e3fd2411ea4fdb2dd3e371ad1a00047fdda&Itemid=136

and the other template is still shown...

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

Moderators: beatnantkrileon
Powered by Kunena Forum