Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
phpBB2 Authentication Module :: Registration

 
Post new topic   Reply to topic     Forum Index -> Modules
View previous topic :: View next topic  
Author Message
HexAngel



Joined: 22 Feb 2006
Posts: 90

PostPosted: Sun May 14, 2006 8:07 pm    Post subject: phpBB2 Authentication Module :: Registration Reply with quote

I'm using the phpbb2 authentication module and would like to add a "register" button to be displayed when no user is logged in.

What's the best way to go about this?

p.

_________________
Home: eJournal
Thyme: Critical Events
Shop: Critical Graphics; Travel Photographs;
Back to top
View user's profile Send private message Visit poster's website
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Sun May 14, 2006 8:28 pm    Post subject: Reply with quote

Hi Hex,

1) Copy modules/today_link to modules/register

2) Rename modules/register/today_link.php to register.php

3) Edit modules/register/register_module.php

Search and replace 'today_link' with 'register'

change _TODAY_LINK_ to "Guest Registration"

add:

$_cal_modules['register']['guest_only'] = 1;

4) Modify modules/register/register.php to contain what ever content you want.
Back to top
View user's profile Send private message Visit poster's website
HexAngel



Joined: 22 Feb 2006
Posts: 90

PostPosted: Sun May 14, 2006 9:23 pm    Post subject: Reply with quote

Thanks Ian,

OK. Did everything through step #3, but no link appears in the nav bar.

p.

_________________
Home: eJournal
Thyme: Critical Events
Shop: Critical Graphics; Travel Photographs;
Back to top
View user's profile Send private message Visit poster's website
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Sun May 14, 2006 11:17 pm    Post subject: Reply with quote

Also, enable it in Options -> Nav Bar
Back to top
View user's profile Send private message Visit poster's website
HexAngel



Joined: 22 Feb 2006
Posts: 90

PostPosted: Mon May 15, 2006 3:35 am    Post subject: Reply with quote

That worked great. (Well, it will as soon as I design a registration page.) Thanks.

Now, what if instead I wanted it to appear on the horizontal nav bar adjacent to the "Log In" link, and not at all when the user is logged on?

p.

_________________
Home: eJournal
Thyme: Critical Events
Shop: Critical Graphics; Travel Photographs;
Back to top
View user's profile Send private message Visit poster's website
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Mon May 15, 2006 11:26 am    Post subject: Reply with quote

Disable the module in Options -> Nav bar. Then in register_module.php change these:

$_cal_modules['register']['parents'][] = 'navbar';
$_cal_modules['register']['navbar'] = "register/register.php";
$_cal_modules['register']['priority'] = 0;

to:

$_cal_modules['register']['parents'][] = 'footer';
$_cal_modules['register']['include'] = "register/register.php";
$_cal_modules['register']['priority'] = 999;

You'll probably also want to add:

$_cal_modules['register']['hide_nav'] = 1;

What that will do is create a link at Thyme's footer called "Register". The link's text is set to the 'display_name' property of the module. When someone clicks on the link, the contents of modules/register/register.php will be displayed. Which is now (I assume) the registration link that used to be in the nav bar. So register.php is where you should place your registration page code.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Modules All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.