11
Mamba
Re: Home Page
  • 2021/11/5 13:55

  • Mamba

  • Moderator

  • Posts: 11396

  • Since: 2004/4/23


The problem is that you have two different Publisher articles, and it's not an easy way to do it.

You can still accomplish it by doing this:

1) If you have no module set for the Home page, you can copy the content of one of the articles, and place it in a new custom Block, which you then make visible only to the Anonymous group.
Then you create another Block with the content for Registered users, and make it visible only to the Registered users.
You'll make both Blocks visible only on the "Top Page".

This way the groups will see only what you want them to see on the Home/Main page.

Other option:

2) You can clone Publisher (see the "Clone Module" tab in the Publisher's Admin), to a new module, (you can name it, e.g. "welcome", and create only one article there, the one that you want to use for the Anonymous.

Then you install the "Startup" module mentioned earlier, and set there the new "welcome" module as as starting module for the Anonymous group, and Publisher for Webmasters and Registered Users.

Maybe somebody else will come with a better idea?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

12
fla-ts
Re: Home Page
  • 2021/11/5 14:57

  • fla-ts

  • Friend of XOOPS

  • Posts: 204

  • Since: 2005/1/4 1


Hmm, gives me an idea, if I just swap the name and the content, it might work...I think :)

13
fla-ts
Re: Home Page
  • 2021/11/5 16:04

  • fla-ts

  • Friend of XOOPS

  • Posts: 204

  • Since: 2005/1/4 1


Quote:

fla-ts wrote:
Hmm, gives me an idea, if I just swap the name and the content, it might work...I think :)


.. ????? didn't work

14
Mamba
Re: Home Page
  • 2021/11/6 15:38

  • Mamba

  • Moderator

  • Posts: 11396

  • Since: 2004/4/23


Well, try the recommendations that I gave you above, and if they don't work, let me know what exactly didn't work, and then maybe we can help.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

15
fla-ts
Re: Home Page
  • 2021/11/6 16:45

  • fla-ts

  • Friend of XOOPS

  • Posts: 204

  • Since: 2005/1/4 1


I think I can solve it in a slightly different way that makes it clear to the visitor that the website is about two completely different topics, I just need to provide the 'banner' with some info. Take a look at fla-ts.com... :)

16
alain01
Re: Home Page
  • 2021/11/6 18:40

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


There is a very simple solution.
You just have to add 2 custom blocks only on the homepage and on the top for example.
"block-anonynous" : with content and visible only to anonymous people
"members-block" : with content and visible only for connected members.
This is a very simple and effective solution.

Do you understand the principle?

17
mondarse
Re: Home Page
  • 2021/11/6 19:51

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


An other not so simple method as Alain's one:

Use a custom php block.
Use code to get if the user is registered or anounymous.
Then with an if () { } else {} show different contents.

If worked for me, and even I show different contents depending on users group.

18
alain01
Re: Home Page
  • 2021/11/6 21:09

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Using custom blocks is indeed much easier.
No need for php.
As Mamba proposed in his first answer, there is the solution to act in the theme.tpl file

The best is to use the available tools which are the management of the custom blocks but if we want to use tpl files, we could do this :

In the theme.tpl
<{if $xoops_page == "index"}>
    <{include 
file="$theme_name/tpl/my_content.tpl"}>
<{/if}>

and in the file my_content.tpl
<{if $xoops_isuser|default:false}>
     <
h3>My content for membersh3>
    <
p>Content herep>
<{else}>
     <
h3>My content for anonymoush3>
    <
p>Content herep>
<{/if}>

19
fla-ts
Re: Home Page
  • 2021/11/7 9:03

  • fla-ts

  • Friend of XOOPS

  • Posts: 204

  • Since: 2005/1/4 1


I managed to have a second menu via clone menu (menu 2) Now it would make sense if I could hide articles with Link manager so that the articles of 'menu' and of 'menu 2' are different, then I would have a right-hand menu with only the 'technical applications' below it and a left-hand menu with only the articles from 'cd-ripservice'. In fact, two different links managers would be needed

20
Mamba
Re: Home Page
  • 2021/11/7 12:31

  • Mamba

  • Moderator

  • Posts: 11396

  • Since: 2004/4/23


Quote:
Now it would make sense if I could hide articles with Link manager

But you can!

Every link in MyMenus can be made visible or invisible to selected groups.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

186 user(s) are online (46 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits