Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Adding menu links to the toolbar

8 years 10 months ago
  • Melanie's Avatar
    Topic Author
  • Melanie
  • Offline
  • Fresh Boarder
  • Posts: 94
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

Hi,

I want to add a couple of extra links to the Events menu (where All Events, My Events etc. sit) but unsure which file I need to achieve this.

Can you point me in the right direction?

Kind regards

Mel

8 years 10 months ago
Licenses:

Hi, Melanie.

Just add new menu items to Backend -> Menu -> JomSocial toolbar menu


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 10 months ago
  • Melanie's Avatar
    Topic Author
  • Melanie
  • Offline
  • Fresh Boarder
  • Posts: 94
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

Hi Michal,

I don't think its the toolbar menu I mean, its the one in the image that appears when the Events page is opened:





I have the main links in a standard menu. I was using Socialize template but have since changed it as needed to use components built into my template and wanted a consistent login. (previously I was using a different template for front end view then socialize for community pages).

Mel

Attachments:
8 years 10 months ago
Licenses:

Hi, Melanie.

No, you can't add anything in that position as this is a kind of context menu and it's created automatically dependent what page you currently view. If you add a link there: it will be displayed as static item one every page that loads this bar and you'll need to hack core files to do that (so you'll need do your changes every time after upgrade).

So the best solution will be to use JomSocial toolbar. but as I see from your printscreen you moved into main site menu area... only icons left.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 10 months ago
  • Melanie's Avatar
    Topic Author
  • Melanie
  • Offline
  • Fresh Boarder
  • Posts: 94
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

Hi Michal,

apologies for the delay responding. I have now moved the menu items back to the toolbar, which is actually better so thanks. I have one final question, I am using Techjoomla's Jtiketing, Kunena and EasyBlog, and have added the menu links to the Toolbar, however I noticed that none of the icons display on any of the newly added menu item pages, for example the home icon, logout, notifications etc. Only the toolbar text links display so it doesn't look consistent.

Is this expected behaviour because they are not Jomsocial? Is there any way I can add them to the toolbar? I have gone through all the settings and cannot see where I might add them.

Kind regards

Mel

8 years 10 months ago
Licenses:

Hi, Melanie.

I need to see that issue. Could you edit your first post and provide site credentials?
Also link to your community pages will be helpful.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 10 months ago
  • Melanie's Avatar
    Topic Author
  • Melanie
  • Offline
  • Fresh Boarder
  • Posts: 94
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

Hi Michal,

I have added the details for you.

Mel

8 years 10 months ago
Licenses:

Hi, Melanie.

Ok, I see your issue. On JS pages icons are displayed well: ROOT/profile

But not on other pages: ROOT/events/ticket-sales/allticketsales

I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 10 months ago
  • Melanie's Avatar
    Topic Author
  • Melanie
  • Offline
  • Fresh Boarder
  • Posts: 94
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

Hi Michal,

many thanks. Will the developer need access to my site or is it enough that you have seen it?

Is there any quick fix I can apply or do I need to wait for a new release?

Kond regards

Mel

8 years 9 months ago
Licenses:

Hi Melanie,

I cant access administrator page:
Login denied! Your account has either been blocked or you have not activated it yet.

please update you credentials information at first topic at this post.

Regards

8 years 9 months ago
  • Melanie's Avatar
    Topic Author
  • Melanie
  • Offline
  • Fresh Boarder
  • Posts: 94
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

Hi Albertus,

my apologies, I disabled over the weekend as know you don't work then.

I have now reactivated.
Can you try again?

Mel

8 years 9 months ago
Licenses:

Hi Melanie,

here the steps:
edit [joomla site root]/components/com_community/helpers/event.php at line 536, after this code

if( COwnerHelper::isRegisteredUser() && $config->get('createevents') && $my->canCreateEvents() || COwnerHelper::isCommunityAdmin() )
{

    //$view->addSubmenuItem('index.php?option=com_community&view=events&task=create', JText::_('COM_COMMUNITY_EVENTS_CREATE') , '' , SUBMENU_RIGHT );

	if( $config->get('event_import_ical') )
	{
		$view->addSubmenuItem('index.php?option=com_community&view=events&task=import', JText::_('COM_COMMUNITY_EVENTS_IMPORT') , '' , SUBMENU_RIGHT );
	}
}

you can put
$view->addSubmenuItem('index.php?option=com_community&view=events&task=import', JText::_('COM_COMMUNITY_EVENTS_IMPORT') , '' , SUBMENU_RIGHT );

you can changing the URL
index.php?option=com_community&view=events&task=import

with your own custom menu, and
JText::_('COM_COMMUNITY_EVENTS_IMPORT')

with menu name.

Regards

8 years 9 months ago
  • Melanie's Avatar
    Topic Author
  • Melanie
  • Offline
  • Fresh Boarder
  • Posts: 94
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

Hi Alberto,

is that the fix in relation to what Michal identified here

Ok, I see your issue. On JS pages icons are displayed well: ROOT/profile

But not on other pages: ROOT/events/ticket-sales/allticketsales

I assign developer to this thread.


I tried it, I added the following line first after the 2 brackets in your example but that generated a white screen, then secondly I removed one of the brackets and the screen came back, but the menu icons were still not displaying on the jomsocial toolbar.

This is the code I used:


$view->addSubmenuItem('index.php?option=com_jticketing&view=orders&layout=default', JText::_('COM_JTICKETING_ALL_ORDERS') , '' , SUBMENU_RIGHT );

Kind regards

Mel

8 years 9 months ago
Licenses:

Hi Melanie,

about menu icons, here the fix:

This attachment is hidden for guests.
Please log in or register to see it.

unzip and put it at:
[joomla site root]/components/com_community/templates/jomsocial/layouts/toolbar/base.php

dont forget to make backup before replacing with new one.

Regards

This message has an attachment file.
Please log in or register to see it.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW