Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[#5044] Images in CBSubs Mailer

  • nphic
  • nphic
  • OFFLINE
  • Posts: 203
  • Thanks: 25
  • Karma: 1
10 years 10 months ago - 9 years 10 months ago #240378 by nphic
[#5044] Images in CBSubs Mailer was created by nphic
Folks,

I have a number of mailers that include an image of our logo. I attempted to use an absolute path to the image. I placed an "http:www.xxxxx.xxx" in front of the image path of "images/stories/...". When I save the mailer, it strips out the www. How do I get the mailer to accept an absolute path to the image?

Thanks,
Joe
Last edit: 9 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
10 years 10 months ago #240391 by krileon
Replied by krileon on topic Images in CBSubs Mailer
You can use the live_site substitution to append the live path. Example usage as follows.

[cb:config param="live_site" /]/images/stories/image.png


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.

  • nphic
  • nphic
  • OFFLINE
  • Posts: 203
  • Thanks: 25
  • Karma: 1
10 years 9 months ago #242064 by nphic
Replied by nphic on topic Images in CBSubs Mailer
Kyle,

Thanks for the response and sorry for the delay in responding!

Hey. So does this line go in <image src="[cb:cong...." ?

When I do that, the image does not display. Sorry. Not a wizard at this stuff.

Thanks,
Joe

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
10 years 9 months ago #242069 by krileon
Replied by krileon on topic Images in CBSubs Mailer

Hey. So does this line go in <image src="[cb:cong...." ?

Yes, example as follows.

Code:
<img src="[cb:config param="live_site" /]/images/stories/image.png" />

When I do that, the image does not display. Sorry. Not a wizard at this stuff.

The above is just an example. You need to change the path to point to an image that actually exists.


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.

  • nphic
  • nphic
  • OFFLINE
  • Posts: 203
  • Thanks: 25
  • Karma: 1
9 years 11 months ago #256424 by nphic
Replied by nphic on topic Images in CBSubs Mailer
Kyle,

Well, I'm finally getting around to this 10 months later! :)

I tried doing what you suggested and the code keeps getting truncated. I'm using JCE Editor and I put it into code mode. Here is what I entered:

<img src="[cb:config param=" www.nphic.org " /]images/stories/Graphics/Logos/NPHIC-Logo-Invoice.jpg" />

When I toggle the editor back to WYSIWYG mode, I get a broken picture icon. I switch back into code mode and this is what I see:

<img src="[cb:config param=" alt="" />

Any thoughts on why this is happening?

Thanks,
Joe

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
9 years 11 months ago #256472 by krileon
Replied by krileon on topic Images in CBSubs Mailer
You don't put your actual live_site in the param, it's literally the string live_site. So in your case you'd have the below.

Code:
<img src="[cb:config param="live_site" /]/images/stories/Graphics/Logos/NPHIC-Logo-Invoice.jpg" />

Your editor isn't going to be able to render it as it's not processed until display where the substitution will properly replace with your site URL.


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