Gossamer Forum
Home : Products : DBMan : Customization :

active custom page

Quote Reply
active custom page
So far I have been startind my db's from static html search page, with a link to signup and dbman propper. These have been part of a larger site, so it seemed logical to use the static page as the front end.
What I need to do with this new site is to make an active version of my previous static pages.
So what I need to do is upon start up, have dbman bypass logon and go to a custom page, like sub html_home_page, which would contain a custom search, and a list of categories with running totals, etc.
I will also need to have a link to signup (no problem), and logon (problem).
I don't wish to mess with any permissions, because they need to be in place when the user logs on.
I will also be using a mod which gives both auth_modify_own and default permissions.
So is it possible upon startup to direct dbman to a new sub routine, and then what would be the url to logon, from that active page.
thanks
Bob
Quote Reply
Re: active custom page In reply to
The link you use to bypass the login screen is the following (BTW: This has been mentioned numerous times in this forum like twice in the last two days, as well as being mentioned in the README file, and also there is an FAQ in the Resource Center regarding this issue. Wink):

Code:
http://www.myserver.com/cgi-bin/dbman/db.cgi?db=default&uid=default

Then you create your "home page" with all the links for the signup form, search form, etc. in the sub html_home routine in the html.pl file. Just add in your own HTML between the print qq| and |;.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: active custom page In reply to
Eliot I've read all the post about bypassing logon. Sorry I should have been clearer.
I don't want to go to home page upon startup, I want to go straight to a custom page.
The url would have to read somthing like this, http://www.myserver.com/cgi-bin/dbman/db.cgi?db=default&custom_page=1
Users would still need to log on to maintain there records, via a link to logon, which would be on the returned custom page. The custom page would be totally seperate to dbman.
The reason I would like to use this custom active page instead of starting from a static page is so I can return a current category listing with current totals, which you carn't do with a static page.
So the first page users will see, will be the custom page, with will have links to members admin (which will take them to the logon screen) and to signup for new members.
If this carn't be done I work around it.
thanks
Bob
Quote Reply
Re: active custom page In reply to
Like I mentioned before, you can place all the link information along with a listing of categories on the sub html_home routine, which is the main screen. Creating another custom "Main Page" would be more trouble than its worth.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: active custom page In reply to
Ok, not a problem, i'll work it some other way. Bacially I was looking for a way of creating two home pages.
thanks
Bob
Quote Reply
Re: active custom page In reply to
Fine. If you want to create two "home pages" (why, I don't really understand), here is what you do:

1) Add the following codes to the sub main in the db.cgi file with the rest of the elsif statements:

Code:
elsif ($in{'custom_page'}) { if ($per_view) { &html_custom_page; } else { &html_unauth; } }

2) Then in your html.pl file, create another sub-routine called sub html_custom_page. This can be a copy of the sub html_home routine.

3) To link to this page, use the following URL:

Code:
http://www.myserver.com/cgi-bin/dbman/db.cgi?db=default&uid=default&custom_page=1

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: active custom page In reply to
Thanks Eliot, I was going to attack this from a different angle, now I'll continue with my origional plan.
Thanks
Bob
Quote Reply
Re: active custom page In reply to
You're welcome.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us