Forum Activity for @iamtimbo

iamtimbo
@iamtimbo
03/04/15 05:39:15AM
301 posts

Will a ujGooglemaps map appear in a SiteBuilder panel?


GoogleMaps

Hi Steve,

Sorry for the delay - real life keeps getting in the way....

I've swapped in the code you supplied. You can see the lat/long profile data showing, but not the maps themselves. Obviously this is the sample profiles that I have added the data to manually.

Does that help? The link to this page is iamtimbo.com/dorset. I've dropped the wall so that you can access it - let me know when you've seen enough, and I'll reactivate it.

Obviously, ultimately I want to map the profile_latitude and profile_longitude fields, as we discussed earlier - that exists for every profile.
ultrajamcapture.PNG.png ultrajamcapture.PNG.png - 36KB

updated by @iamtimbo: 03/04/15 05:39:58AM
iamtimbo
@iamtimbo
02/28/15 08:04:01AM
301 posts

Will a ujGooglemaps map appear in a SiteBuilder panel?


GoogleMaps

Hi Steve,

Double-checked - I'm definitely in the right place. I already have simple and multi-item maps on other pages - they all seem to be fine. Code is in the item_list.tpl in User Profiles, and is currently:

{if isset($_items)}

{ujGoogleMaps_map name="multimap" map=$_items module="jrProfile" height="500" width="100%" map_type="hybrid"} 

    {foreach from=$_items item="item"}
    <div class="item">

        <div class="container">
            <div class="row">
                {*** <div class="col2">
                    <div class="block_image">
                        <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="24" crop="auto" class="iloutline img_scale" alt=$item.profile_name title=$item.profile_name width=false height=false}</a>
                    </div>
                </div>***}
                <div class="col10 last">
                    <div class="p10">
                        {***<h4><a href="{$jamroom_url}/{$item.profile_url}">{$item.profile_name|truncate:45:"...":true}</a></h4>***}
                        <h4><a href="{$jamroom_url}/{$item.profile_url}">{$item.profile_place}, {$item.profile_county}, {$item.profile_postcode}</a></h4>
                        {***{if !empty($item.profile_bio)}
                        <br><span class="normal">{$item.profile_bio|jrCore_format_string:$item.profile_quota_id|truncate:250:"..."}</span>
                        {/if}***}
                    </div>
                </div>
            </div>
        </div>

    </div>
    {/foreach}
  
{/if}

Apologies for the commented-out stuff. No javascript is firing at all (related to googlemaps), according to the source in Firefox - and I can see what I'm looking for from a page with a different, working map. Bit baffled....
iamtimbo
@iamtimbo
02/26/15 03:15:32PM
301 posts

Will a ujGooglemaps map appear in a SiteBuilder panel?


GoogleMaps

Hi - I'm busy trying to get my head round this, but wasn't making any headway, so I decided to just create the simplest multi-item map for profiles that I could. I've set a couple of profiles with profile_googlemaps data (before I try and do the clever stuff above!), but I can't even get a simple map to show.

I've achieved this without a problem for the Gallery module in the item_list.tpl. As I understand it, using virtually the same smarty in the Profile item_list.tpl (essentially just changing the module to jrProfile) should work to plot all profiles on a map, but it doesn't - no map appears at all.

Using debug, I can see that profile_googlemaps fields are populated in the array for the profiles that I've set them for - so is there some key difference in the way ujGooglemaps works with profiles? I noticed that someone else had issues with a profile multimap, but I'm not sure if they solved it or gave up.

My only thought is that every item in the array might need populated profile_googlemaps fields for it to work, but I'm not sure why that would make a difference - it doesn't in the Gallery implementation.
iamtimbo
@iamtimbo
02/22/15 03:53:51PM
301 posts

Will a ujGooglemaps map appear in a SiteBuilder panel?


GoogleMaps

Thanks, Steve - I'll process this and see what occurs.....!
iamtimbo
@iamtimbo
02/17/15 10:59:44AM
301 posts

Can I not use arithmetic in search?


Jamroom Developers

Thanks Brian - again!

Every day is a lesson, and I've learned more in the last three weeks than in the last three years! It was never my intention to get into this whole development lark, but I'm getting hooked, and now have a bursting notebook. Sorting my SQL from my Smarty from my PHP is often the issue, but I'm getting there slowly.....

I think I need to create me a JamRoom one of these Smarty cheatsheet posters! http://www.cheat-sheets.org/saved-copy/SmartyCheatSheet.pdf

EDIT: Forgot to add link.....
updated by @iamtimbo: 02/17/15 11:06:03AM
iamtimbo
@iamtimbo
02/17/15 10:26:43AM
301 posts

Will a ujGooglemaps map appear in a SiteBuilder panel?


GoogleMaps

Hi Steve - yes I'm working through - every day is a learning experience! I know it's because my lat and long data isn't where the module is expecting it to be, I'm just learning to teach it where to look (as it were)......
iamtimbo
@iamtimbo
02/17/15 10:22:55AM
301 posts

Can I not use arithmetic in search?


Jamroom Developers

However I seem to format my searches, either with or without brackets, the arithmetic seems to be ignored, eg:

{jrCore_list module="jrProfile" search1 = "profile_longitude < ($profile_longitude + 0.02)" limit="100" order_by = "_created desc"}

only returns values 'less than $profile_longitude', but not 'less than $profile_longitude + 0.02'.
updated by @iamtimbo: 03/23/15 12:52:03AM
iamtimbo
@iamtimbo
02/15/15 03:22:52PM
301 posts

Homepage not visible to logged out users


Using Jamroom

I'm using the Slate skin already! I'll pop the admin login over to you - thanks Michael.....
iamtimbo
@iamtimbo
02/14/15 01:36:02AM
301 posts

Homepage not visible to logged out users


Using Jamroom

Not sure what you mean by content - it has panels and widgets with stuff in, if that's what you mean - see the attachment. The issue is that only the admin sees it. Anyone else gets the panel not found error. No other pages have this problem.
image.jpg image.jpg - 510KB

updated by @iamtimbo: 02/14/15 01:36:26AM
  24