solved Problem with Genosis Events

Melih
Melih
@melih
8 years ago
198 posts
Hello Brian, I hope you are well.

I have a problem with Genosis Events Module. When i try to add an event to another profile as an admin, the event is added to my profile. Can you please check.
updated by @melih: 02/13/17 05:09:08PM
brian
@brian
8 years ago
10,136 posts
I've just tested this here and I don't see this - it's working for me. What type of event are you adding?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Melih
Melih
@melih
8 years ago
198 posts
Anything. When i click to + button my name appairing at the title.
brian
@brian
8 years ago
10,136 posts
Melih:
Anything. When i click to + button my name appairing at the title.
I don't see that here on my local Genosis test install nor on my main site - it's working properly.

Are you all up to date on the Genosis modules?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Melih
Melih
@melih
8 years ago
198 posts
Yes, everything is updated, i don't know when this happened or what cousing this.
Melih
Melih
@melih
8 years ago
198 posts
Brian,

I am having this problem with Genosis Event release 1.2.14.
I downgraded to 1.2.13 and it working properly in this case.
updated by @melih: 11/14/16 08:44:47AM
brian
@brian
8 years ago
10,136 posts
Melih:
Brian,

I am having this problem with Genosis Event release 1.2.14.
I downgraded to 1.2.13 and it working properly in this case.

I'm not able to replicate this here, but will check out the differences between 1.2.13 and 1.2.14 and see if I can spot why you're seeing this.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Melih
Melih
@melih
8 years ago
198 posts
Thank you Brian.

And i tried to update the module again and problem came back. So this problem definitely about 1.2.14 release.
brian
@brian
8 years ago
10,136 posts
Melih:
Thank you Brian.

And i tried to update the module again and problem came back. So this problem definitely about 1.2.14 release.

Have you customized your Genosis Event templates in ACP -> Genosis -> Genosis Events -> Templates? If so, you need to update your custom versions to match the changes in the 1.2.14 release (use the compare tool). The profile_id is now passed in when clicking the + button, which fixes the issue where if you had multiple tabs open it could use the wrong profile_id since it was always using what the "active" profile_id was, instead of the profile_id you were viewing.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Melih
Melih
@melih
8 years ago
198 posts
No i didn't customize.

After realizing this problem i deleted Event module and reinstalled to check then after that i wrote here. Both releases are untouched
brian
@brian
8 years ago
10,136 posts
Hmm.. that really doesn't make any sense. When you go into the "create" form, look at the URL - do you see the profile_id being passed in? It should look like this:

yoursite.com/genevent/create/profile_id=????

Where ???? will be the profile_id you are creating the event for.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Melih
Melih
@melih
8 years ago
198 posts
No i didn't see that profile_id part, only genevent/create
Melih
Melih
@melih
8 years ago
198 posts
Brian,

I made a fresh installation with a empty db in a subdomain for try. Problem still exist. When i try to add an event to "Mother Samplefamily" by clicking to + button in her profile, the event is adding to my profile. And there is no profile_id in the url. And fyi i didn't touch anyting, everything is coming from "genosis-free-core-latest.zip" which i downloaded few minutes ago.
brian
@brian
8 years ago
10,136 posts
I think I see the issue - the updated + sign URL is actually in the new Genosis skin - so update to the JR6 beta as outlined here:

https://www.jamroom.net/the-jamroom-network/forum/announcements/44027/jamroom-6-beta-kick-off

and then you'll be able to update to the latest Genosis skin - that should fix it up.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Melih
Melih
@melih
8 years ago
198 posts
Oh, ok. It will take time to upgrade the skin for me :) You know i changed it a lot. But i will try it.
Thank you Brian!
I will let you know.
updated by @melih: 11/15/16 01:26:23AM
brian
@brian
8 years ago
10,136 posts
The change you want is located in the "profile_index.tpl" file - the specific line for adding the new event should be:

<a href="{$jamroom_url}/{$murl}/create/profile_id={$_profile_id}" title="{jrCore_lang skin="jrGenosis" id=35 default="Add new Timeline Event"}">{jrCore_icon icon="plus"}</a>

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Melih
Melih
@melih
8 years ago
198 posts
i tried that but it goes to 404 page.
brian
@brian
8 years ago
10,136 posts
Sorry - forgot to include the line above it - should be:

{jrCore_module_url module="jrGenEvent" assign="murl"}
<a href="{$jamroom_url}/{$murl}/create/profile_id={$_profile_id}" title="{jrCore_lang skin="jrGenosis" id=35 default="Add new Timeline Event"}">{jrCore_icon icon="plus"}</a>



--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Melih
Melih
@melih
8 years ago
198 posts
No i did try this before you said. But i can try it again. I don't want to update the core to beta release because i made lots of changes to localize somethings and i have to do them again and again on every update :(
brian
@brian
8 years ago
10,136 posts
Melih:
No i did try this before you said. But i can try it again. I don't want to update the core to beta release because i made lots of changes to localize somethings and i have to do them again and again on every update :(

See the code I posted JUST ABOVE your response. The reason you got a 404 is that it was missing this line:

{jrCore_module_url module="jrGenEvent" assign="murl"}

This has nothing to do with updating the core or anything else.

Here's what your profile_index.tpl file should look like (if you want to use the one that is in the new Genosis skin):

{* default index for profile *}

<div class="col9 last">

    {jrCore_include template="profile_menu_include.tpl" hilight="timeline"}

    <div class="block" style="padding:6px">

        {if strlen($profile_story) > 0}
            <div id="profile_story_box">{$profile_story|jrCore_format_string:$profile_quota_id}</div>
        {/if}

        <div class="title">
            <div class="block_config">
                {if jrProfile_is_profile_owner($_profile_id)}
                    {jrCore_module_url module="jrGenEvent" assign="murl"}
                    <a href="{$jamroom_url}/{$murl}/create/profile_id={$_profile_id}" title="{jrCore_lang skin="jrGenosis" id=35 default="Add new Timeline Event"}">{jrCore_icon icon="plus"}</a>
                {/if}
            </div>
            <h1>{jrCore_lang skin="jrGenosis" id=42 default="Timeline"}</h1>
            <div class="breadcrumbs">
                <a href="{$jamroom_url}/{$profile_url}/">{$profile_name}</a> &raquo; <a href="{$jamroom_url}/{$profile_url}">{jrCore_lang skin="jrGenosis" id=42 default="Timeline"}</a>
            </div>
        </div>

        <div class="block_content" style="margin-top:12px">

            {jrGenEvent_get_events profile_id=$_profile_id}

            {jrCore_db_get_item module="jrProfile" item_id=$_profile_id assign="item"}
            {jrCore_item_detail_features module="jrProfile" item=$item}

        </div>

    </div>



--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Melih
Melih
@melih
8 years ago
198 posts
Actually when i tried this it didn't work but now it's working. Probably i made a typo while was adding that profile_id part.

Thank you very very much Brian.
brian
@brian
8 years ago
10,136 posts
No problem - glad to see that is working.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags