Forum Activity for @paul

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


Ning To Jamroom

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


Ning To Jamroom

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).
paul
@paul
01/12/16 04:02:48AM
4,335 posts

Birthday Notifications


Suggestions

A quick 'How To' . . .

1) As admin, goto your profile settings and click on the Form Designer
2) Create field 'profile_birthday' and select 'date_birthday' as the type, and 'string' for validation. Select group(s) that this is active for. Save.
3) In SiteBuilder, create an Template Code widget and title it "Today's Birthdays".
4) Copy and paste this code as the template -
{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrProfile" search="profile_birthday LIKE %`$this_month``$this_day`" limit="4" template="widget_list_grid_2.tpl" tpl_dir="jrProfile"}
paul
@paul
01/10/16 05:21:15PM
4,335 posts

Birthday Notifications


Suggestions

Ning member birthdays are imported and are in the the user datastore but by default none of our skins show them. A bit of profile template editing could rectify that.
But you talk about notifications. How would you want it to work?
paul
@paul
01/10/16 05:10:28PM
4,335 posts

Closed Group Admissions


Using Jamroom

Glad you're sorted. Funnily enough, a few days ago I spent several minutes trying to remember how to do the same thing. And I developed the module !! Too much beer perhaps ;-)
paul
@paul
01/09/16 06:16:10PM
4,335 posts

Problem in deleting many users/profiles at once..


Using Jamroom

Jamroom doesn't have tools for 'mass deletion' of anything. Its not something that users often want to do and as in your case above where there is specific criteria for the deletion, a general purpose tool would be difficult.
So we are looking at something custom - a 'temporary' module with a tool to do your specific deletions. Fairly straightforward!! Open a ticket for this with exactly what you want to happen and I'll see what can be done.
Thanks
  241