User Requests

Isleander
Isleander
@isleander
11 years ago
558 posts
1. I have a user asking where they can find out who they are following. I don't have an answer.

Is it possible to show on the profile page, not only who is following you, but who you have chosen to follow?
Followers*
Following**

That way people can go directing the each person's profile from their own profile page.

2. Also, it is possible to have members' names, as well as avatars, on the main "Profiles" page? http://YOURSITE/profile

3. Are you working on a Chat module? Is this something we could expect in the future?
updated by @isleander: 07/09/16 09:21:02AM
Strumelia
Strumelia
@strumelia
11 years ago
3,603 posts
As per #2- yes I agree that would be cool, but note that as it is now, the member's name will pop up upon hovering over the avatar.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 12/29/14 09:23:54AM
paul
@paul
11 years ago
4,335 posts
1) Found this in the jrFollower module -

/**
* Returns an array of profiles a given user_id follows
* @param $user_id string User ID
* @return mixed Array of profile IDs or false if none
*/
function jrFollower_get_profiles_followed($user_id)

Haven't used it before but what I'd try is putting this in a template -

{assign var="_followed" value=jrFollower_get_profiles_followed($_user['_user_id'])}
{debug}

See what the $_followed array looks like in the debug window, then go from there.

2) Yes - Edit the appropriate template accordingly. What skin are you using?

3) We're not at the moment, but checkout http://www.cometchat.com/jamroom-chat
hth
Pa


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
Strumelia:
As per #2- yes I agree that would be cool, but note that as it is now, the member's name will pop up upon hovering over the avatar.

That only works with mouse over, but not with touch screens and mobiles devices (iPad).
It would be clearer to see a name rather than mouse over default avatars, looking for a user.
updated by @isleander: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
I'm currently using the Ningja Skin.

Little bit ahead of me there.. "debug window"?

Add to the profile tpl? skins/jrNingja/jrProfile_index.tpl

updated by @isleander: 12/29/14 09:23:54AM
paul
@paul
11 years ago
4,335 posts
Sorry - Wasn't sure were you were on the JR learning curve.

Checkout this video -{debug} Using smarty debug console


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
OK
updated by @isleander: 12/29/14 09:23:54AM
paul
@paul
11 years ago
4,335 posts
And to add profile name, in the jrProfile_item_list.tpl template, try this for starters -
<div class="container">
    <div class="row">
        <div class="col12 last">
            <div class="item">
                {if isset($_items)}
                {foreach from=$_items item="item"}
                    {$item.profile_name}
                    <br>
                    <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline img-profile" alt=$item.profile_name title=$item.profile_name width=172 height=172}</a>
                {/foreach}
                {/if}
            <div style="clear:both">
            </div>
        </div>
    </div>
</div>



--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
OK.. Thanks

The {debug} thing. Can that be used using Dreamweaver?
updated by @isleander: 12/29/14 09:23:54AM
paul
@paul
11 years ago
4,335 posts
Not sure how DW is used with JR development, but as long as the the {debug} ends up in the template and on your server, then yes.


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
paul:
And to add profile name, in the jrProfile_item_list.tpl template, try this for starters -
<div class="container">
    <div class="row">
        <div class="col12 last">
            <div class="item">
                {if isset($_items)}
                {foreach from=$_items item="item"}
                    {$item.profile_name}
                    <br>
                    <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline img-profile" alt=$item.profile_name title=$item.profile_name width=172 height=172}</a>
                {/foreach}
                {/if}
            <div style="clear:both">
            </div>
        </div>
    </div>
</div>

Not sure which divs (if any) this is meant to go between, but not seeing any change after resets.

Do I add this code, or do I replace the existing code?
updated by @isleander: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
This is what I have
updated by @isleander: 12/29/14 09:23:54AM
paul
@paul
11 years ago
4,335 posts
Replace the entire code in the template with the above. The profile name should show above the image.
Make sure you have the developer module installed and developer mode turned on so that you see changes immediately.


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
Yes I thought as much.. thanks again.

=update=
Yes got them now.. but alignments looks very clumsy.
Is it possible to make images/avatars smaller?
updated by @isleander: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
Looks just awfaul on iPad.. I thinks best not to use it for now.
jpg
 •  294KB


updated by @isleander: 12/29/14 09:23:54AM
paul
@paul
11 years ago
4,335 posts
Yeah - It could do with a bit of styling to control it. This works -
<div class="container">
    <div class="row">
        <div class="col12 last">
            <div class="item">
                {if isset($_items)}
                    <div class="row">
                        {foreach from=$_items item="item"}
                            <div class="col2{if $row@last} last{/if}">
                                <div class="center" style="padding:10px;">
                                    {$item.profile_name|truncate:20}<br>
                                    <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline img-profile" alt=$item.profile_name title=$item.profile_name width=172 height=172}</a>
                                </div>
                            </div>
                        {/foreach}
                    </div>
                {/if}
            </div>
        </div>
    </div>
</div>



--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
douglas
@douglas
11 years ago
2,804 posts
paul:
Yeah - It could do with a bit of styling to control it. This works -
<div class="container">
    <div class="row">
        <div class="col12 last">
            <div class="item">
                {if isset($_items)}
                    <div class="row">
                        {foreach from=$_items item="item"}
                            <div class="col2{if $row@last} last{/if}">
                                <div class="center" style="padding:10px;">
                                    {$item.profile_name|truncate:20}<br>
                                    <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline img-profile" alt=$item.profile_name title=$item.profile_name width=172 height=172}</a>
                                </div>
                            </div>
                        {/foreach}
                    </div>
                {/if}
            </div>
        </div>
    </div>
</div>

This should actually be this:

<div class="container">
    <div class="row">
        <div class="col12 last">
            <div class="item">
                {if isset($_items)}
                    <div class="row">
                        {foreach from=$_items item="item"}
                            <div class="col2{if $item@last} last{/if}">
                                <div class="center" style="padding:10px;">
                                    {$item.profile_name|truncate:20}<br>
                                    <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline img-profile" alt=$item.profile_name title=$item.profile_name width=172 height=172}</a>
                                </div>
                            </div>
                        {/foreach}
                    </div>
                {/if}
            </div>
        </div>
    </div>
</div>

The if statement to check to see if it is the last column, ie. class="col2 etc... should be $item not $row.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 12/29/14 09:23:54AM
paul
@paul
11 years ago
4,335 posts
Thanks Douglas - That's what happens when you blindly copy and paste.
It still worked though ;-)


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
Isleander
Isleander
@isleander
11 years ago
558 posts
Thanks for the help.. Yes, that is much tidier, even on iPad!
updated by @isleander: 12/29/14 09:23:54AM
Strumelia
Strumelia
@strumelia
11 years ago
3,603 posts
paul:
And to add profile name, in the jrProfile_item_list.tpl template, try this for starters -
Replace the entire code in the template with the above. The profile name should show above the image.
Make sure you have the developer module installed and developer mode turned on so that you see changes immediately.

Should I do this from within my server cPanel, or from within my JR site module settings?
and- Can i just copy the code into notepad for safety before I make the change and try it out, or is there a smarter way to make a safe copy before I change the template?
(I am using the Ningja skin)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 12/29/14 09:23:54AM
michael
@michael
11 years ago
7,793 posts
Strumelia:
paul:
And to add profile name, in the jrProfile_item_list.tpl template, try this for starters -
Replace the entire code in the template with the above. The profile name should show above the image.
Make sure you have the developer module installed and developer mode turned on so that you see changes immediately.

Should I do this from within my server cPanel, or from within my JR site module settings?
and- Can i just copy the code into notepad for safety before I make the change and try it out, or is there a smarter way to make a safe copy before I change the template?
(I am using the Ningja skin)

The safest way to try something out is via the template editor because you can easily revert it if it doesn't work.

So go to:
* ACP -> SKINS -> NINGJA -> TEMPLATES -> jrProfile_item_list.tpl -> MODIFY
* copy+paste in that code.
* click SAVE CHANGES
* click CANCEL
* locate the checkbox next to jrProfile_item_list.tpl and check it
* click SAVE CHANGES

done.
updated by @michael: 12/29/14 09:23:54AM
Strumelia
Strumelia
@strumelia
11 years ago
3,603 posts
Thank you Michael, I will check into this.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 12/29/14 09:23:54AM