| 
Welcome, Guest

How to add a Google map to the CB 1.2 user profile
(1 viewing) (1) Guest

TOPIC: How to add a Google map to the CB 1.2 user profile

Re:How to add a Google map to the CB 1.2 user prof 3 years, 3 months ago #88223

  • JComeskey
  • JComeskey
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 31
  • Karma: 2
mercurioweb wrote:
I used "Fields delimiter" as field type.
As you can see in the attached image I defined the map details, but the result is the same,


I don't think those are the correct database field titles for you. You need to look at your Citta field and Provincia field and find the field title. It is probably cb_citta and cb_provincia. Just guessing.
RESIST Theocratic Police-State Feudalism!!
The topic has been locked.

Re:How to add a Google map to the CB 1.2 user prof 3 years, 3 months ago #88225

my fields are address, city and state, but also with cb_address, cb_city and cb_state, it doesn't work
Attachments:
The topic has been locked.

Re:How to add a Google map to the CB 1.2 user prof 3 years, 3 months ago #88228

  • JComeskey
  • JComeskey
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 31
  • Karma: 2
Another thing you can try, use this tag temporarily:
{mosmap address='2312 Far Hills Ave, Dayton, OH 45419'}

This will not be the correct address for your users (since it is my office mailing address), but it will let you know if the plugin is working or not.

Then if the plugin is working, then you can replace my address with your user address variables based upon your database field titles.

Post edited by: JComeskey, at: 2009/02/09 22:42
RESIST Theocratic Police-State Feudalism!!
The topic has been locked.

Re:How to add a Google map to the CB 1.2 user prof 3 years, 3 months ago #88230

if I insert the code of the mosmap in an article, it works, but if I insert it in a community builder profile it doesn't work
Attachments:
The topic has been locked.

Re:How to add a Google map to the CB 1.2 user prof 3 years, 3 months ago #88231

  • JComeskey
  • JComeskey
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 31
  • Karma: 2
Did you make the hack to the Joomla index.php file?

Also, it is possible that this will not work with CB 1.1. I don't know, I only have tested it in 1.2. CB 1.1 does not offer a delimiter field type, right?

FYI, even before I made the hack to the index.php file, I could get the plugin to pull the user's data into the tag by using the proper variable name.

In other words, I created a new delimiter field and entered {mosmap address='[cb_busstreet1], [cb_city], [cb_state] [cb_zip]'} into the field body.

Then even though my map was not working (since I had not done the hack), what displayed in the front end was:
{mosmap address='2312 Far Hills Ave.', 'Dayton', 'OH' '45419'}. So at least I knew that I had the user's field variables listed correctly.

Then after I made the hack, the map displayed too.
RESIST Theocratic Police-State Feudalism!!
The topic has been locked.

Re:How to add a Google map to the CB 1.2 user prof 3 years, 3 months ago #88255

how can I do the hack?
The topic has been locked.
Time to create page: 0.58 seconds