Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 04:18 am EST

Geeklog Forums

How to create a Splash page for user to login under the static pages in center block


KevinL

Anonymous
Hello Geeklog team,

Can some one give me a light on how to put the USER_BLOCK to a static page? I would like to require all users to login first then be able to enter the site. I would like to set a static page as the splash page in the index page for every one to sign in.

Thanks for advance.

LeeK
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
I guess you could create a staticpage that calls the user block.


Text Formatted Code
COM_userMenu( $help='', $title='', $position='' )
 


I am not sure if it would work 100% or not but the function does return html so it should work.

The not yet released Geeklog 2.1.0 contains some update to the users page which allows visitors to directly access it without a please try again message.

http://www.yoursite.com/users.php

Not sure if this would work for you.

Tom
One of the Geeklog Core Developers.
 Quote

KevinL

Anonymous
Many thanks Tom,

I got this error:

Parse error: syntax error, unexpected $end in
........../plugins/staticpages/functions.inc(1559) : eval()'d code on line 1

I don't know why?

Thanks.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Text Formatted Code
echo COM_showBlock('user_block');


Might work...

Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

KevinL

Anonymous
Quote by: ::Ben

Text Formatted Code
echo COM_showBlock('user_block');


Might work...

Ben


Hello Ben,

It is working.

Thanks a lot.

 Quote

All times are EST. The time is now 04:18 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content