solved Some profiles still not showing past updates

Eddy
Eddy
@eddy
10 years ago
479 posts
Some profiles in my site are still not showing past updates on the timeline /activity and also don't show the "contact" artist option on the profile header even though others do :P.

updated by @eddy: 05/10/14 09:06:53PM
brian
@brian
10 years ago
10,148 posts
Not sure what the "contact artist" in the header is - that must be something you added. As for the timeline, I'm not seeing any issues here on jamroom.net or the skins on my test site, so double check that there are actual entries to show.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Eddy
Eddy
@eddy
10 years ago
479 posts
I have this code:

{capture name="tpl" assign="tpl"}
    {literal}
        {jrCore_module_url module="jrPrivateNote" assign="murl"}
        {foreach $_items as $i}
        <a href="{$jamroom_url}/{$murl}/new/user_id={$i._user_id}"><div class="profile_menu_entry">Send a Note to {$i.user_name}</div></a>
        {/foreach}
    {/literal}
{/capture}
{jrCore_list module="jrUser" limit="1" profile_id=$_post._profile_id template=$tpl}

on the profile menu template, but it doesn't show in all profiles, just some, wondering if it's something in the code.
updated by @eddy: 04/06/14 01:42:08PM
michael
@michael
10 years ago
7,715 posts
profile_id=$_post._profile_id

Is going to require that there is a "/profile_id=15" in the full url somewhere.
http://your-site.com/some-user/profile_id=15

That seams strange to use for a users profile. Make sure thats the correct var.

Would normally expect to be using $_profile.something as $_profile contains all the info of the profile being looked at.
Eddy
Eddy
@eddy
10 years ago
479 posts
I don't quite understand Michael, what should the new code look like?
douglas
@douglas
10 years ago
2,791 posts
Give this a try:

{capture name="tpl" assign="tpl"}
    {literal}
        {jrCore_module_url module="jrPrivateNote" assign="murl"}
        {foreach $_items as $i}
        <a href="{$jamroom_url}/{$murl}/new/user_id={$i._user_id}"><div class="profile_menu_entry">Send a Note to {$i.user_name}</div></a>
        {/foreach}
    {/literal}
{/capture}
{jrCore_list module="jrUser" limit="1" profile_id=$_profile_id template=$tpl}

I just removed the "_post." part from the profile_id parameter in your jrCore_list function.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Eddy
Eddy
@eddy
10 years ago
479 posts
Tried that Douglas and it didn't work, when clicking on it it just directed to my profile, here are two artist profiles using old code, "contact" shows on one doesn't show on the other.

http://www.soabem.com/sandro-g
http://www.soabem.com/jose-malhoa-unofficial
douglas
@douglas
10 years ago
2,791 posts
Are you doing this in the skins/jrProJamLight/profile_menu.tpl file?

If so, give this a try:

<a href="{$jamroom_url}/note/new/user_id={$_user_id}"><div class="profile_menu_entry">Send a Note to {$profile_name}</div></a>



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Eddy
Eddy
@eddy
10 years ago
479 posts
It does show now on all profiles, the problem is when clicking on it to contact the artist, it re-directs to my profile :(.
Eddy
Eddy
@eddy
10 years ago
479 posts
Sorry, it's actually working just fine, the reason why it wasn't working on certain profiles is because I created those myself, all good, thank you.
douglas
@douglas
10 years ago
2,791 posts
Glad to hear it. :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Eddy
Eddy
@eddy
10 years ago
479 posts
Yeah, thank you, however the old code wasn't showing on the profiles I had created even when I was logged out, so I advise everyone to use your latest code, works great and it's a lot leaner :P.

Tags