Skip to Content Skip to Menu

[SOLVED] Country Flag option?

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago - 10 years 3 months ago #247410 by krileon
Replied by krileon on topic Country Flag option?
Please see our substitution tutorial below. Multiple substitution and IF usage examples are provided.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb

Example of what you're wanting as follows.

Code:
[cb:if cb_country!=""] <img src="mysite.com/images/countries/[cb_country].png" /> [/cb:if]


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.

  • imaaxx
  • imaaxx
  • OFFLINE
  • Posts: 126
  • Thanks: 11
  • Karma: 2
10 years 3 months ago #247452 by imaaxx
Replied by imaaxx on topic Country Flag option?
And i would place that into a delimiter field?

Thanks

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 3 months ago #247454 by nant
Replied by nant on topic Country Flag option?

imaaxx wrote: And i would place that into a delimiter field?

Thanks


yes

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

  • imaaxx
  • imaaxx
  • OFFLINE
  • Posts: 126
  • Thanks: 11
  • Karma: 2
10 years 2 months ago - 10 years 2 months ago #247693 by imaaxx
Replied by imaaxx on topic Country Flag option?
Hello,

I cant seem to get this to work, i created the fields delimiter added this code:

<p>[cb:if cb_country!=""] <img src="images/countries/[cb_country].gif" alt="" /> [/cb:if]</p>

but JCE keeps changing it and adding in the <p> </p>, am i missing something.

Alan
Last edit: 10 years 2 months ago by imaaxx.

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

  • imaaxx
  • imaaxx
  • OFFLINE
  • Posts: 126
  • Thanks: 11
  • Karma: 2
10 years 2 months ago #247696 by imaaxx
Replied by imaaxx on topic Country Flag option?
Also i am using the default country field that is installed when you set-up CB, do i need to un-publish that one and make a new one named cb_country? or am i ok to use the default one?

Sorry for all the questions.

Alan

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

  • imaaxx
  • imaaxx
  • OFFLINE
  • Posts: 126
  • Thanks: 11
  • Karma: 2
10 years 2 months ago #247699 by imaaxx
Replied by imaaxx on topic Country Flag option?
Well i was able to locate a plugin for Cb that works in Joomla 3.XX here is the link in case anyone else wants to use this for there sites.

www.angekdesign.com.au/downloads/community-builder

I was able to configure it and get it working in under 5 minutes, its a great addition to CB. It should be part of the core in my opinion.

You can close this or mark it solved!

Alan

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

Moderators: beatnantkrileon
Powered by Kunena Forum