test
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • thomaskremer Friend
    #166392

    Hello,
    It took me 5 hours to find out, but the JA social plugin is messing up the multiple template management for my site.
    I have JA Edenite, JA Travel and JA Events installed and assigned to different menu items. Everything works fine, untill I enable the JA social plugin: menu-items won’t show up with their assigned template anymore, but they show the default template.
    You can have a look on my site.

    Can you give me a bugfix?
    Thanks!
    Thomas

    himangi Friend
    #401873

    Hi Thomas,

    I published the Ja social system plugin on your site and checked all the menu items named ‘nieuws’ from the menus at the top but could not see what exactly you are seeing. Can you please give me a link to a page you see messed up after publishing the plugin?
    another thing is the plugin version you are using is 1.0.2 and the latest available version is 1.0.3. Please upgrade the plugin and check if you see the site messed up. You can download the new plugin from http://www.joomlart.com/forums/downloads.php?do=cat&id=20395

    thomaskremer Friend
    #401877

    Hello Himangi,
    The exact problem is to find when you go to http://gm.stjan.org/jac-home. Without JA Social, the template is Edenite (as configured). With JA Social enabled, it shows JA Travel, which is the default template.
    Updating the plugin didn’t fix the problem. Too bad, because I chose JA Travel especially because of these social bookmarks.
    Could you find a solution?
    Thanks!
    Thomas

    thomaskremer Friend
    #402013

    Received a message that you would close the ticket. I’m still hoping for a solution!
    Thomas

    himangi Friend
    #402036

    Hi Thomas,

    I am sorry I think the message about ticket getting closed was generated automatically..

    I am talking with other JA team members regarding your problem. Please wait till we find anything more about it.

    chavan Friend
    #404078

    Hi thomaskremer

    Sorry for late replied. It took me a long time for find this issue. Now I found it, you open file plugins/system/jat3/jat3/core/ajax.php

    Add this block code


    // Remove style mappings for menu items this style is NOT assigned to.
    // If unassigned then all existing maps will be removed.
    $query = $db->getQuery(true);
    $query->update('#__menu');
    $query->set('template_style_id=0');
    if ($pages) {
    $query->where('id NOT IN ('.implode(',', $pages).')');
    }

    $query->where('template_style_id='.(int) $styleid);
    $query->where('checked_out in (0,'.(int) $user->id.')');
    $db->setQuery($query);
    $db->query();

    after block code


    // Refresh page assignment
    if ($pages) {
    JArrayHelper::toInteger($pages);

    // Update the mapping for menu items that this style IS assigned to.
    $query = $db->getQuery(true);
    $query->update('#__menu');
    $query->set('template_style_id='.(int)$styleid);
    $query->where('id IN ('.implode(',', $pages).')');
    $query->where('template_style_id != '.(int) $styleid);
    $query->where('checked_out in (0,'.(int) $user->id.')');
    $db->setQuery($query);
    $db->query();
    }

    in saveData function

    Save it, and remove all page assignment & re-assign them.

    Note: This bug will be fixed in next version. However, you should notice this when upgrade JA T3 plugin

    thomaskremer Friend
    #404128

    Thanks for your reply.
    Sorry to say, but I can’t make it work. Same bug remains…
    Could you have a look?
    Thanks!
    Thomas

    thomaskremer Friend
    #404145

    Maybe this could help to solve this issue: as all works fine without Joomla Core SEF enabled, it seems to be a problem with the Itemid, which is not integrated in the SEF url.
    Is there a way to solve this?
    Thanks!
    Thomas

    chavan Friend
    #404262

    Hi Thomas

    Could you show me what menu if I click it, it must be change template? I don’t see this menu in your configuration.

    How do you know there is a problem with the Itemid? Could you show me about that by screenshot?

    thomaskremer Friend
    #404407

    Hello,
    the Itemid thing was just a thought because of the SEF settings: with SEF off it works, with SEF on it doesn’t work. But maybe that hasn’t anything to do with the Itemid.

    Please find the bug while clicking http://gm.stjan.org/jac-home (in attachment you’ll find a screenshot to the Menu item).

    – Now http://gm.stjan.org/jac-home should be in JA Edenite, but it isn’t.
    – When I unpublish the module with JA Social, it will show in JA Edenite as configured.

    But I still like to use JA Social and have several JA Templates.
    Maybe there is a way to have a live chat on this issue, so that I can explain better? It takes quite a while, waiting for the answer the next day (I’m in France now, I guess I sleep when you work and v.v.).

    Thanks!
    Thomas


    1. JA_Social_bug
    chavan Friend
    #404417

    Hi Thomas

    In my experience, if Itemid is not exists or wrong, the item of mainmenu is not active & change color.

    JaSocial plugin is only used in j1.6, so I will try to fix it. You will be received feedback when I finish fixing it.

    chavan Friend
    #406261

    Hi Thomas

    I found solution for you. You could follow below steps to fix it
    1. Open file plugins/system/jasocial/jasocial.php
    2. Comment the code line


    $this->stylesheet ($this->plugin);

    in construction function (plgSystemJASocial)
    3. Create new function name onAfterDispath:


    function onAfterDispath()
    {
    $this->stylesheet ($this->plugin);
    }

    Save and surf your website.

    thomaskremer Friend
    #406580

    Thanks, it’s fixed. Everything fine now!

    Thomas

Viewing 13 posts - 1 through 13 (of 13 total)

This topic contains 13 replies, has 3 voices, and was last updated by  thomaskremer 13 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum