Forum Activity for @ultrajam

SteveX
@ultrajam
03/17/15 12:16:42PM
2,589 posts

How to remove links from profile_menu.tpl


Using Jamroom

I menat to add that code (profile_quota_id="{$profile_quota_id}") to the template NOT inside the jrProfile_menu function. Just put it before the function and see what gets printed to the page - kind of like a poor man's debug - you see jsut the variable you are interested in.

Make it more obvious by putting it in a h1:
<h1>profile_quota_id="{$profile_quota_id}"</h1>

BUT, if your quota id is 2, that might be something now working quite right in the code. As far as I can see you should only get that error message if $profile_quota_id is not a number.
SteveX
@ultrajam
03/17/15 12:09:52PM
2,589 posts

changing /profile page to smaller avatars


Using Jamroom

Within your row you will have divs with class="col3". You need to change that to class="col2" and change the smarty which ends each row to end the div after each 6 profiles.
SteveX
@ultrajam
03/17/15 11:40:17AM
2,589 posts

How to remove links from profile_menu.tpl


Using Jamroom

That looks fine to me, I have used it exactly like that although it was a year or more ago.

To receive that error message means your $profile_quota_id is not a number. Put this in your template to check that:
profile_quota_id="{$profile_quota_id}"

So my guess is that you are including the menu somewhere where it cannot be used - where are you trying to make your profile menu appear?

Docs:
https://www.jamroom.net/the-jamroom-network/documentation/development/1997/jrprofile-menu
SteveX
@ultrajam
03/16/15 11:42:12AM
2,589 posts

Will a ujGooglemaps map appear in a SiteBuilder panel?


GoogleMaps

I've jsut tried this in my profiles item_list.tpl just after the {if isset($_items)}, and it does work. (it creates a diagonal line of markers as it just adds 1 to the lng and lat for each profile). Only some of the profiles have map data, some do not, this adds a marker for each profile.

{$i = 1}
{foreach $_items as $key => $val}
{$profile_latitude = $i + 1}
{$profile_longitude = $i + 1}
  {$_items[$key].profile_googlemaps_lat=$profile_latitude}
  {$_items[$key].profile_googlemaps_lng=$profile_longitude}
  {$_items[$key].profile_googlemaps="address placeholder"}
  {$i++}
{/foreach}

{ujGoogleMaps_map module="jrProfile" name="testy" marker="infowindow" map=$_items height="300" width="100%" map_type="hybrid" }

Give that exact code a try in your template and let me know what you see.
updated by @ultrajam: 03/16/15 11:42:49AM
SteveX
@ultrajam
03/16/15 04:48:27AM
2,589 posts

Will a ujGooglemaps map appear in a SiteBuilder panel?


GoogleMaps

1.0.6 is in the Marketplace now.
SteveX
@ultrajam
03/16/15 04:44:15AM
2,589 posts

Will a ujGooglemaps map appear in a SiteBuilder panel?


GoogleMaps

I meant profiles rather than other module items. I asked because I saw results like yours when I had module="jrCore" in the ujGoogleMaps function (I had copied and pasted it from above). When I corrected that the map appeared.

The main bug I fixed was to do with having no results in the first or second profiles listed, but from your screenshot you do have results for the first two profiles. So it might not fix whatever the problem is there.

I'll get the new version uploaded to the marketplace, update it and give it a try.
SteveX
@ultrajam
03/16/15 01:32:33AM
2,589 posts

Date drop down showing date when not entered


Design and Skin Customization

You have both test_ and task_ as the prefix - that can't be right.
SteveX
@ultrajam
03/15/15 07:17:10PM
2,589 posts

Question Regarding Seamless Module Function


Using Jamroom

Don't fudge anything. That's a really bad idea.
SteveX
@ultrajam
03/15/15 06:17:26PM
2,589 posts

Question Regarding Seamless Module Function


Using Jamroom

I'm not going to share them, but my success messages are particularly inspiring ;)
SteveX
@ultrajam
03/15/15 06:08:48PM
2,589 posts

Question Regarding Seamless Module Function


Using Jamroom

derrickhand300:ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
YYYYYYYYYYYYYYYYYYYYYYYYYYYY
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I prefer meaningful expletives in my debug. They catch the attention better than foo bar.

Any casual code reader would blush, even rednecks :)
  105