By Mark Wuilleumier on Monday, 07 April 2014
Posted in General Issues
Replies 9
Likes 0
Views 509
Votes 0
I have multiple templates on my site. In the module "mod_easysocial_menu" under the "Navigation" section there are various menu items. Some are rendered under different templates and I want to change them. How do I do that? I have corsaPro template for my Social Pages, but "My Friends", for example, comes up with the Rockettheme Oculus template applied and I don't want that.
Thanks
Hi Mark,

I am sorry for the delay of this reply.

I understand that each of the Easy Social menu items under navigation map to different templates, but the point is I did not map those menu items.


Yes, the mapping is actually done automatically EasySocial will try it best to map to the correct menu item id. So when you click you 'myblog', the module actually called EasyBlog to get the current menu item id and if you did set template to your EasyBlog menu items, then clicking 'my blogs' will actually use the template you assigned.

Yes, i think the hidden menu method may work because when you added these menu items, EasySocial will map the menu items from your hidden menu

By the way, after i logged into your test site, i hit php fatal error:

Fatal error: Call to a member function addDescription() on a non-object in JOOMLA/media/com_easysocial/apps/user/users/users.php on line 158


Can you pass me your ftp account so that I can investigate this issue on your site?
Please advise.
Sam
·
Monday, 21 April 2014 13:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I am sorry for the delay of this reply.

If i recall correctly, Joomla module manager dont allow admin to set which template a module should display on. If you really want to assign your module based on template, then you might need the help from 3rd party component. Check out this 3rd party component called 'Advanced module manager' http://extensions.joomla.org/extensions/style-a-design/modules-management/10307

Hope this help and have a nice day
Sam
·
Monday, 07 April 2014 12:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sam,
Thanks for the quick reply to this. This is not my problem....it is not assigning a specific template to the module that I am trying to do. It is the wiring inside of the Stack Ideas module "mod_easysocial_menu". Look at the screenshot I attached. On the right side is "Socialize Menu" which is a rendering of this stack ideas module. Each of the items under "Navigation" is a listing of menu items that can access various sections within EasySocial. So when I click "My Friends" I get a page and that page is styled according to a template. What I am saying is each of those menu items is not the SAME template when selected. The "My Friends" comes up under the RocketTheme template Occulus. But when I click "My Blog Posts" it comes up under the Corsa template. I don't like this variation and want to control the template that renders the various menu items, or at least have them all come up under the SAME template.
So, what is the problem and how do I do this?
thanks,
Mark
·
Wednesday, 09 April 2014 12:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Ah sorry I've misunderstand you earlier and thanks for the clarification again. Currently I cant tell why the template got switched when you click on links from the module but I do suspect you've various menu items created which point to different location within EasySocial, e.g. one menu item A point to 'my friends', menu item B point to 'dashboard' and each menu item has assigned different template. If this is the case, then this is the correct behaviour where EasySocial try to re-use the menu item that matched the links of where you pointing to.

Anyway, can you pass me your Joomla backend admin access and your FTP account so that i can look into this issue further?
Please advise.
Sam
·
Wednesday, 09 April 2014 12:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sam,
Sorry for the delay in this response. Thanks for your help on the matter. The 3rd party component isn't going to work for me ...
I understand that each of the Easy Social menu items under navigation map to different templates, but the point is I did not map those menu items.
I have what I would call a work-around. I created hidden menu and implemented a menu item on that hidden menu for each of the Easy Social menu choices in navigation. I don't assign the hidden menu to any module. My desire was to not create a menu with all the menu items from the Easy Social menu, but instead have the Easy Social menu be that menu. I don't want to duplicate what that does.
Thanks,
Mark
PS: I have uploaded a test site and have provided credential via the form for an admin login
·
Saturday, 19 April 2014 16:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,
I think I will accept the hidden menu solution and lay this defect to rest. I don't know what FTP access will do and I can't get that to work, not to mention I am hesitant to give all this internal access to everybody to fix problems that should not need it. (I can be directed to add certain code to certain files without somebody directly accessing my file system. Doesn't that work?)
Thanks for the help.
Mark Wuilleumier
·
Thursday, 24 April 2014 10:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Can you edit this file 'JOOMLA/media/com_easysocial/apps/user/users/users.php' and search for below code at line 158:

$item->opengraph->addDescription( $item->title );


and replace the above with the following:


if (isset($item->opengraph) && $item->opengraph instanceof SocialOpengraph) {
$item->opengraph->addDescription( $item->title );
}


Let me know if you still hit this issue or not

Hope this help and have a nice day
Sam
·
Thursday, 24 April 2014 19:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sam,
I am not sure how exactly this relates to my original problem entered for this ticket (your php modification) because I am still on the older version of Easy Social as I don't want to disrupt something that works when I am ready to have my live site and my workaround does work. BUT this code change you suggested did change how the link (on the user name of my EasySocial members) redirects. Instead of a 404 error or something similar (can't remember exactly) it now redirects to the members EasySocial profile. THIS IS GOOD. So thanks for this suggestion and the resulting improvement!
·
Monday, 28 April 2014 04:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

You are welcome and glad to know the fix worked for you
Have a nice day
Sam
·
Monday, 28 April 2014 11:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post