1
tekchip
How do you make the default module stay at the top of the page?
  • 2005/3/29 19:21

  • tekchip

  • Just popping in

  • Posts: 11

  • Since: 2005/3/29


I've been playing with XOOPS for several weeks now and still havn't figured out how to make the default module stay as the top center block of the page. Any other blocks seem to always go above it no matter how their wheight is set. Any help would be much appreciated! Thanks in advance!

2
tjnemez
Re: How do you make the default module stay at the top of the page?
  • 2005/3/29 19:32

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


you need to edit your theme.html and place this
<div><{$xoops_contents}></div> above the code for displaying blocks.

3
tekchip
Re: How do you make the default module stay at the top of the page?
  • 2005/3/29 21:28

  • tekchip

  • Just popping in

  • Posts: 11

  • Since: 2005/3/29


Thanks for the info. That worked well but still didn't accomplish what I am after. I would like anon users to see a welcome block(custom block with welcome message) at the top of the page followed by the recent news. I'd like registered users to see a left block of who's online and a right block of coming events with a center block of recent news following that. So basically I cant set a default module I would need to set default module to none and then set block settings in the admin.

Here's the new problem. I cant seem to figure out which of the news blocks just displays the regular plane jane news. Blog style I guess is what you would call it. News is never article size so I just want to display the full story content on the front page.

Is there a way to accomplish this? I've seen quite a few sites using XOOPS that seem to have it done.

I guess the easiest way to put this would be that I want to display the module home page(that you see when you click the news link or set the module as default) only treated like it's a regular block.

4
tjnemez
Re: How do you make the default module stay at the top of the page?
  • 2005/3/29 23:25

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


again, edit your theme.html and set it up accordingly

center-center blocks
<div><{$xoops_contents}></div>
cneter-left center-right
and so on

not sure about news blocks.

for showing certain blocks to reg users or another group go to system admin groups and set up to show how you want it.

5
tripmon
Re: How do you make the default module stay at the top of the page?
  • 2005/3/29 23:43

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


go to admin->groups->registeredusers

remove the permisssion for the custom block you want to display to anon users

go to admin->groups->anonusers

remove anon permissions for the whosonline block

Use the same method for any other unique group based content you wish to display

GL

6
artigas
Re: How do you make the default module stay at the top of the page?
  • 2005/3/29 23:49

  • artigas

  • Quite a regular

  • Posts: 208

  • Since: 2004/12/21


Quote:

I would like anon users to see a welcome block(custom block with welcome message) at the top of the page followed by the recent news.


Create a custom block that only the anon users see.

Quote:

I'd like registered users to see a left block of who's online and a right block of coming events with a center block of recent news following that.


XOOPS has a limitation with center blocks, so you will have to have the center block come first. Followed, by the left and right blocks.

On both cases you will need to set the order to achieve what you want.

Hope That Helps.

WOW! The first time I answered something rather than asking a question.

7
tripmon
Re: How do you make the default module stay at the top of the page?
  • 2005/3/30 0:02

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


FYI Artigas

Quote:
XOOPS has a limitation with center blocks, so you will have to have the center block come first. Followed, by the left and right blocks.


The limitation is the theme not xoops. With some tricky smarty code, you can set lc and rc blocks with weight <10 to display above center blocks and lc and rc blocks with weight>10 to display below.

I only mention this as I hate to see XOOPS get blamed for things it didn't do

8
artigas
Re: How do you make the default module stay at the top of the page?
  • 2005/3/30 0:06

  • artigas

  • Quite a regular

  • Posts: 208

  • Since: 2004/12/21


Greetings tripmon -

Learned a whole bunch of new things today.

Thank you for the clarification. Glad to see that there is a way around it. No offense meant about the XOOPS limitation comment.

9
tripmon
Re: How do you make the default module stay at the top of the page?
  • 2005/3/30 0:18

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


LOL,

Hey Arti,

I guess my jokes aren't too good... I get blamed for things I didn't do all the time, thought I was being funny

No offence and it's good to see you getting to the answering as opposed to asking point!

Sorry if I in any way stole your thunder

10
artigas
Re: How do you make the default module stay at the top of the page?
  • 2005/3/30 0:53

  • artigas

  • Quite a regular

  • Posts: 208

  • Since: 2004/12/21


Greetings tripmon -

You did not steal anything.

No harm! No foul! Enjoy!

Login

Who's Online

241 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

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

Latest GitHub Commits