Forum Activity for @paul

paul
@paul
01/14/16 07:55:27PM
4,335 posts

Like/Dislike Buttons - semi-anonymous


Installation and Configuration

Quote:Right now you can receive an email that tells you who liked your post, but it doesn't say publicly. I'd rather have it completely anonymous or better yet, completely public. Facebook shows a list of who liked something. Can I have that?
Hover over the Like buttons and you'll get a list of who has liked an item.

Quote:Also, can I ONLY have a like button instead of both?
Checkout the Like module's Config tab in the ACP and select 'Like Button Only'.
hth
paul
@paul
01/14/16 07:49:50PM
4,335 posts

Discussions closing after 30 days


Installation and Configuration

hypnoscott:Hi paul,
I'll do that now. The stuff I'm missing is files that were uploaded inside groups. Lots of files were there, now there are none. from what I understand Ning doesn't include them in the archive.

Your site approved and showing in the showcase/members section (I took a screenshot of your homepage and added that) - thanks.
Is this an image embedded in a comment? Can you point me to where something is missing so that I can check it out?

Quote:Strumelia - what is the Jamroom tool to use on the groups? maybe I should give that another go
ACP=>Profiles=>Group Pages=>Tools=>Page Group Config
paul
@paul
01/14/16 07:15:38PM
4,335 posts

Site-wide Forum Header


Design and Skin Customization

Hi - Welcome to the Jamroom forums.

In your skins profile_header.tpl test for the Community profile and if true, don't show the top bar. Then, if the viewer/user is not the profile owner or admin, don't show the profile menu bar either -

{jrCore_include template="header.tpl"}

<div class="container">

	{if $profile_id != 2}

    <div class="row">
        <div class="col12 last">
            <div class="profile_name_box">
            
                <div class="block_config" style="margin-top:3px">
                    {jrCore_module_function function="jrFollower_button" profile_id=$_profile_id title="Follow This Profile"}
                    {jrCore_item_update_button module="jrProfile" view="settings/profile_id=`$_profile_id`" profile_id=$_profile_id item_id=$_profile_id title="Update Profile"}
                    {if jrUser_is_admin() || jrUser_is_power_user()}
                        {jrCore_item_create_button module="jrProfile" view="create" profile_id=$_profile_id title="Create new Profile"}
                    {/if}
                    {jrProfile_delete_button profile_id=$_profile_id}
                </div>

                <a href="{$jamroom_url}/{$profile_url}"><h1 class="profile_name">{$profile_name}</h1></a>
                
            </div>
        </div>
    </div>
    
    {/if}
    
    {if $profile_id != 2 || jrProfile_is_profile_owner($profile_id)}

    <div class="row">
        <div class="col12 last">
            <div class="profile_menu">
                {if jrCore_is_mobile_device()}
                    {jrProfile_menu template="profile_menu_mobile.tpl" profile_quota_id=$profile_quota_id profile_url=$profile_url}
                {else}
                    {jrProfile_menu template="profile_menu.tpl" profile_quota_id=$profile_quota_id profile_url=$profile_url}
                {/if}
            </div>
        </div>
    </div>

	{/if}

    <div class="row">

    {if $profile_disable_sidebar != 1}
        {jrCore_include template="profile_sidebar.tpl"}
    {/if}
hth
updated by @paul: 01/15/16 12:33:12AM
paul
@paul
01/14/16 06:53:29PM
4,335 posts

Birthday Notifications


Suggestions

Try this -

{capture name="birthday_tpl" assign="birthday_tpl"}
    {literal}
	<div class="container">
    	    {if isset($_items)}
                {$ctr = 0}
                {foreach from=$_items item="item"}
                    {if $item@first || ($item@iteration % 2) == 1}
                        <div class="row">
                    {/if}
                    <div class="col6{if $item@last || ($item@iteration % 2) == 0} last{/if}">
                        {$profile_url = jrCore_db_get_item_key('jrProfile', $item['_profile_id'], 'profile_url')}
                        <a href="{$jamroom_url}/{$profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="large" crop="portrait" class="img_scale" style="margin:0" alt="@`$item.user_name`" title="@`$item.user_name`"}</a>
                    </div>
                    {if $item@last || ($item@iteration % 2) == 0}
                        </div>
                    {/if}
                    {$ctr = $ctr + 1}
                    {if $ctr == 4}
                    	{break}
                    {/if}
                {/foreach}
				{if $info.total_items > 4}
				    // 'More' link code here
				{/if}
            {/if}
        </div>
    {/literal}
{/capture}

{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrUser" search="user_birthdate LIKE %`$this_month`-`$this_day`" limit="5" template=$birthday_tpl}
paul
@paul
01/14/16 06:48:51PM
4,335 posts

Birthday Notifications


Suggestions

You'd probably need to raise the limit value in the jrCore_list call then put a counter in the foreach loop so as to break out of the loop after four items.
Then test the total items variable -

{if $info.total_items > 4}
    // 'More' link code here
{/if}
paul
@paul
01/14/16 06:42:10PM
4,335 posts

Discussions closing after 30 days


Installation and Configuration

Goto your Jamroom profile page and click on the Sites button to add your site to the Showcase pages here - https://www.jamroom.net/hypnoscott/mysites - If you say something good about JR in the site description it'll certainly get accepted lol

I imported your site from Ning a few months ago and I recall it went well. What files are missing? You imply that they are not in the archive anyway? I know Ning don't archive some things but am not aware of any un-archived files?
Thanks
paul
@paul
01/14/16 06:32:34PM
4,335 posts

Birthday Notifications


Suggestions

Yeh - the problem is that this is a User listing and as such, associated profile info isn't included in the returned smarty data. We'll need to get the profile_url in the template code like this -

{capture name="birthday_tpl" assign="birthday_tpl"}
    {literal}
	<div class="container">
    	    {if isset($_items)}
                {foreach from=$_items item="item"}
                    {if $item@first || ($item@iteration % 2) == 1}
                        <div class="row">
                    {/if}
                    <div class="col6{if $item@last || ($item@iteration % 2) == 0} last{/if}">
                        {$profile_url = jrCore_db_get_item_key('jrProfile', $item['_profile_id'], 'profile_url')}
                        <a href="{$jamroom_url}/{$profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="large" crop="portrait" class="img_scale" style="margin:0" alt="@`$item.user_name`" title="@`$item.user_name`"}</a>
                    </div>
                    {if $item@last || ($item@iteration % 2) == 0}
                        </div>
                    {/if}
                {/foreach}
            {/if}
        </div>
    {/literal}
{/capture}

{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrUser" search="user_birthdate LIKE %`$this_month`-`$this_day`" limit="4" template=$birthday_tpl}
Note that this adds an extra database query for every user in the birthday list so will load the server a bit more, but if the limit is still four its not much of an issue. If greater, let me know and I'll give you some template code that's a bit more complicated but will get all the profile_urls in one hit.
Cheers
Pa
paul
@paul
01/14/16 12:48:04AM
4,335 posts

Discussions closing after 30 days


Installation and Configuration

As admin or forum owner go to the forum page and click on the settings tab, then set 'Forum Auto Lock' to 'Never'.
hth
paul
@paul
01/14/16 12:41:52AM
4,335 posts

Birthday Notifications


Suggestions

Sorry - This is what happens when I suggest code without actually trying it first lol
Yes, the user module does not have an item_list.tpl so we'll need include it in the template so try this -

{capture name="birthday_tpl" assign="birthday_tpl"}
    {literal}
	<div class="container">
    	    {if isset($_items)}
                {foreach from=$_items item="item"}
                    {if $item@first || ($item@iteration % 2) == 1}
                        <div class="row">
                    {/if}
                    <div class="col6{if $item@last || ($item@iteration % 2) == 0} last{/if}">
                        {jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="large" crop="portrait" class="img_scale" style="margin:0" alt="@`$item.user_name`" title="@`$item.user_name`"}</a>
                    </div>
                    {if $item@last || ($item@iteration % 2) == 0}
                        </div>
                    {/if}
                {/foreach}
            {/if}
        </div>
    {/literal}
{/capture}

{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrUser" search="user_birthdate LIKE %`$this_month`-`$this_day`" limit="4" template=$birthday_tpl}

Not sure where 'user_profile_birthday' has come from but it is 'user_birthdate' that contains all your imported birthdays so maybe disable that field and add in the proper one.
Thanks
paul
@paul
01/13/16 12:30:51AM
4,335 posts

Birthday Notifications


Suggestions

Actually, birthdays imported from Ning are in the User datastore (saved as user_birthdate) and are in the format yyyy-mm-dd so the above code to pick those up would be -

{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrUser" search="user_birthdate LIKE %`$this_month`-`$this_day`" limit="4"}
This will use the default user list template which is not in a grid format so you might want to add some custom user template code based on the profile grid template.

Also, add the birthday field to the User Account form, not the Profile Settings form. Add 'user_birthdate' as a text field and make the default 'yyyy-mm-dd' so as to persuade users to enter it in the right format (Also make that clear in the help text).
  240