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.

Add module position to groups page

8 years 2 months ago
  • J's Avatar
    Topic Author
  • J
  • Offline
  • Fresh Boarder
  • Posts: 29
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

I am trying to add a module position to the groups page but I am struggling to find where to put the code. I am assuming the code to add a stacked module position called 'test' would be:

<div class="joms-module__wrapper--stacked"><?php $this->renderModules('test'); ?></div>

I am trying to add this module position between the 'members, events, photos, videos, more' tool bar and the 'activities / group details' tabs, as indicated by the arrow in the image below.

I would like this module position to be in the same column as the activities / groups details main section so it sits along side the side column on the left and not above the whole of this main section.

I have tried adding this code to \components\com_community\templates\default\groups.viewgroup.php at line 265 but I'm not even getting a new module position on the page.

Can someone please tell me where I should be inputting this code to create a stacked module position in this location.

Thanks in advance.

Attachments:
8 years 2 months ago
Licenses:

HI.

You should copy this file:

ROOT/components/com_community/templates/jomsocial/layouts/groups/single.php

to:

ROOT/templates/your-template/html/com_community/layouts/groups (if you don't have those folders - feel free to create them)

Then add your module code after <div class="joms-middlezone"> in line 814.

This position will appear on EVERY group page so you may consider to use Advanced Module Manager to limit module display to only one group (if needed).


- 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 2 months ago
  • J's Avatar
    Topic Author
  • J
  • Offline
  • Fresh Boarder
  • Posts: 29
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

Followed instructions but still doesn't appear to be working. (see images).

Have I done something obviously wrong or will i need to upload to a dev site for you to look?








Attachments:
8 years 2 months ago
Licenses:

HI.

First type in that line xxxxx to see if it will appear in place you want.
If it does (and it should as I tested it) - then also modules should show up.
So maybe module setings.
Images are too small to see details, please, host them in any web services or directly on your server - I need to see them bigger.


- 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 2 months ago
  • J's Avatar
    Topic Author
  • J
  • Offline
  • Fresh Boarder
  • Posts: 29
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Micheal xxxx is appearing on the page where I want to module to be, there must be something wrong with my code?

<div class="joms-module__wrapper--stacked"><?php $this->renderModules('test1292'); ?></div>

If there is nothing obvious i will upload images again.

8 years 2 months ago
Licenses:

HI.

Code is fine... maybe try not wrapping it with div yet.


- 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 2 months ago
  • J's Avatar
    Topic Author
  • J
  • Offline
  • Fresh Boarder
  • Posts: 29
  • Thank you received: 0
Licenses:
JomSocial Expired

That got it. Thanks very much.

8 years 2 months ago
  • J's Avatar
    Topic Author
  • J
  • Offline
  • Fresh Boarder
  • Posts: 29
  • Thank you received: 0
Licenses:
JomSocial Expired

Okay, so I have the problem that this module position is using tabs whereas I need a stacked position. I'm assuming this is where this div tags came in..?

Can you suggest a fix?

8 years 2 months ago
Licenses:

HI.

So removing div helped?
And when you wrap it with <div class="joms-module__wrapper--stacked"> module is not visible? Is that correct?


- 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 2 months ago
  • J's Avatar
    Topic Author
  • J
  • Offline
  • Fresh Boarder
  • Posts: 29
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Michal,

This is where i'm getting confused...

Originally the module position was not displaying with the div tags. After removing the div tags so only the code

<?php $this->renderModules('test1292'); ?>

was present, the module position worked.

However, this means the module position is using the tabs system. I have since reintroduced the div tags so my code is now
<div class="joms-module__wrapper--stacked"><?php $this->renderModules('test1292'); ?></div>

and the module position is still visible but it is still using the tabs system.

Should i upload to a dev site?

8 years 2 months ago
  • J's Avatar
    Topic Author
  • J
  • Offline
  • Fresh Boarder
  • Posts: 29
  • Thank you received: 0
Licenses:
JomSocial Expired

Sent u details in message.

8 years 2 months ago
Licenses:

Hi.

Dobra, I solved it :)

You need to use:

<div class="joms-module__wrapper--stacked"><?php $this->renderModules('test1292_stacked'); ?></div>

CSS code is one thing but module position name must have _stacked in it ;)


- 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 2 months ago
  • J's Avatar
    Topic Author
  • J
  • Offline
  • Fresh Boarder
  • Posts: 29
  • Thank you received: 0
Licenses:
JomSocial Expired

Absolute star!!

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