|
It's a pretty complicated mod to get it to do everything you want. And it would take a lot of customizing for your site anyway since every site is different.
Here is a quick and dirty way of getting started with this:
- Include /forum/common.asp on the pages where you want the Universal Login. This will make all the necessary variables available, plus connect to the database for you. It also will keep track of active users on that page too (as if they were in the forum). Our Active Users are tracked site-wide because of this. Note that the /forum/common.asp contains a lot of unnecessary code that is necessary for the forum, but not your pages, so you may want to get rid of some of that later, but if you want to get started right away, then you can simply include that file.
- Create another include file called /forum/common-disconnect.asp and put it at the bottom of any page where you include forum/common.asp. Here is the code to put into that file:
<% 'Clean up Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing rsCommon.close %> Or alternately, you can include the cleanup code in the page itself. I prefer the include method.
- Include and/or modify code from the forum pages. If you want the login button, then copy that from the forum code. If you want the settings button, copy that from the forum code. You want the stats? Copy that from the forum code. Basically anything that works on the forum page will now work on your page. (On my site I modified it significantly to do what I wanted instead of just using his code.)
Note that if you use Borg's code, you cannot redistribute it according to the license agreement without his permission.
License Agreement wrote:
You may use parts of this program including source code and images in your own private work, but you may NOT redistribute, repackage, sublicense, copy, or sell the whole or any part of this program even if it is modified or reverse engineered in whole or in part without the explicit written permission of the copyright holder.
Copyright notices must be transferred to any file that any source code from this program in whole or in part used within.
It is forbidden to repackage in full or any part of this software including source code and images as your own work and redistribute for profit or for free without the explicit written permission of the copyright holder.
You may not pass off the whole or any part of this software as your own work. |
On that last note, I want to say that Borg actually wrote most of my Universal Login (unknowingly). I just strategically placed and altered the code to get it to do what I wanted. I did make many changes though.
Later, when I have time, I will see about posting the mod that allows the login and logout scripts to return to the page they came from. (i.e. when they click login, it returns them to the same page they clicked login at when they are done logging in.) Without this mod, when people login or logout, they will arrive at the forum main page instead of back where they came from.
That should get you started. 
- Here is a demo of the http://www.caribbeanchoice.com - Universal Login .
- Here is a demo of our http://www.caribbeanchoice.com/newsletters.asp - newsletters function (which is basically a read-only forum I post newsletters to). This uses the watch/un-watch this forum feature of the forums, modified so that the wording says newsletters instead of forums where appropriate.
Enjoy! 
------------- http://www.wistex.com" rel="nofollow - WisTex Solutions http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums
|