Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Modules keep appearing on every pages

11 years 2 weeks ago
  • sonia's Avatar
    Topic Author
  • sonia
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hello Everyone!
I am very new with Joomla, so i hope i will make myself clear.
Actually, i have modules on front page that I don't want to appear on the other pages. But whenever I try to select the page from Menu Assignment, it does not apply to the rest of the site.

Could someone please explain me what I am doing wrong?
Also, maybe important to mention, i have set up a new menu in French. So i have those two options available.
If I choose the first one, the module does not appear at all, so I guess this is the second I have to choose.
/Users/Rumas/Desktop/Capture d’écran 2014-06-03 à 22.04.20.png

Many Many thanks for your help!

Attachments:
11 years 2 weeks ago
Licenses:

Hi, Sonia.

Your "Accueil" menu item is a home/frontpage item for JomSocial.
The rest of JomSocial menu items are in JomSocial toolbar that is a special kind of Joomla! menu as it is used for internal navigation.
So ALL menu items within JomSocial toolbar DON'T have OWN menu item ID. They inherit it from main manu ite -> home/frontpage menu item from Main menu.

So if you assign a module to "Accueil" menu item then it will be assigned to certain menu item ID.... and as the rest of menu items related with JomSocial inherit this menu item ID (all have the same as "Accueil") module will be displayed also on that pages.

So solution for this is to use JomSocial built-in module positions: documentation.jomsocial.com/wiki/Built-in_Module_Positions so you could assign certain modules to certain pages.


- 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
11 years 2 weeks ago
  • sonia's Avatar
    Topic Author
  • sonia
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hello Michal!
First, i really thank you for your very complete answers!
Well, i follow your instructions, and it did work.
But now, my boxes are on the right side. I don't seem to have the possibility to display them in line.
So, could you please explain to me how using this built-in module position, I can follow the original template from Socialize?
Because, if I go back to Socialize> Module Positions, then the module js_side_frontpage does not appear. So i really don't understand how to arrange other modules on the Front Page.
Well, again, I sincerely thank you! ;-)

Sonia

11 years 2 weeks ago
Licenses:

Hi, Sonia.

ALL built in positions are in sidebar at right (if you have not RTL language). So you cant display them inline.
Also, those module positions are BUILT-IN in JomSocial thus will be not listed in Socialize template module positions.

But there is solution for it too, but It will require template customizations.
Please tell me (prepare a print screens too - with whole page context as it is important, so don't crop printscreens) where you want to have module positions and I'll provide you with solution how to create 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
11 years 2 weeks ago
  • sonia's Avatar
    Topic Author
  • sonia
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

I guess that is my lucky day!
So, you will find attached the ideal front page.
Maybe that not everything will be possible!
You will see that the jomsocial nav (with notifications, messages…) does not appear on Front Page. It would rather have it only appearing when logged in.
I would like the three modules to overlap a little bit the 'header' (or what i think might be the header), but if not possible, i can go without!

Again, muchas gracias, thank you, merci!

Attachment frontpage.jpg not found

Attachments:
11 years 2 weeks ago
Licenses:

Hi, Sonia.

Ok, I remember that I already provided you with method that will hide main content area for guests:
www.jomsocial.com/forum/socialize-templa...a-in-frontpage#87564

So now you'll have to do opposite thing - display something only for users that are not logged in.
It will be in the same file as before: ROOT/templates/socialize/tpls/blocks/mainbody-js.php

But condition is a bit different:

<?php if ($user->id == 0) { ?>

It means if users have no ID -> are not logged in.
Then in this condition you'll add some divs with modules positions like this:
<?php if ($user->id == 0) { ?>
<?php if ($this->countModules('position-8')) : ?>
				<div id="something" class="something2">
					<div class="something-div">
						<jdoc:include type="modules" name="position-8" style="nonel" />
					</div>
				</div>
<?php endif; ?>
<?php } ?>

So this module position will be displayed only if users are not logged in and a module is assigned to position "position-8". Everything that should be visible only for not logged in should be enclosed in first condition.

Socialize is responsive template so you must remember to user row-fluid and span in order to create responsive content.

And that's it. The rest is css styling ^^

I hope this will help you.

As for search module for events. There is no such a module in com_community package. But you can extend Joomla! search feature with this plugin: www.jomsocial.com/addons/core-enhancemen...r-js-custom-profiles

Then you could use Joomla! default search module and perform searches for Events.


- 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
11 years 2 weeks ago
  • sonia's Avatar
    Topic Author
  • sonia
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Nice!
I will follow these instructions.
However, I have a question, is it possible to assign a new template only for the front page that will fit more what I am looking for?
Many thanks for your answer!
Sonia

11 years 2 weeks ago
Licenses:

Hi, Sonia.

Hmm... there is. As you know template just like modules can be assign to menu item IDs... and JomSocial toolbar items inherit menu item ID from parent menu item -> JomSocial frontpage.

So you'll need to force other JomSocial toolbar menu items to inherit other IDs.

Then create in hidden menu (just create new menu and call it hidden) direct links to Profile, Friends, Photos, Videos, Groups and Events. Now this elements should have own menu item ID and dropdown menu items will inherit only parent menu item id...

This should allow you to assign template to frontpage... or any other main element in hidden 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
11 years 2 weeks ago
  • sonia's Avatar
    Topic Author
  • sonia
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hello, Michal, how are you doing? this is me again;-)
OK, so i have tried the solution above to display the modules on Front page only to guests.
But for some reasons, i have the module appearing twice when not logged in. And once when logged in…
so i guess there is still something missing in what I am doing.

Here is the php file modified:
defined('_JEXEC') or die;
$user = JFactory::getUser();
?>
<?php if ($user->id == 0) { ?>
<?php if ($this->countModules('position-1')) : ?>
<div id="something" class="something2">
<div class="something-div">
<jdoc:include type="modules" name="position-1" style="nonel" />
</div>
</div>
<?php endif; ?>
<?php } ?>

All the rest of the file has been modified, only these line above //Layout configuration.

Thank you again!

Sonia

11 years 1 week ago
Licenses:

Hi, Sonia.

Then check Extensions -> Modules manager what modules are assigned to "position-1". Probably you have two modules assigned there.


- 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
11 years 2 days ago
Licenses:

Hi, Sonia.

We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.


- 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
10 years 11 months ago
  • sonia's Avatar
    Topic Author
  • sonia
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hello Michal,
very sorry for the late reply!
Please, give me few more days before closing the topic!
Many thanks
Sonia

10 years 11 months ago
Licenses:

Hi, Sonia.

Easy, no problem at all. I don't close the topic - just mark it as Resolved so it's moved from my TODO list.
You can change its state anytime you want - just make sure that thread status is "Pending Support". In other case I'll not see it on my list.


- 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
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