 |
 |
 |
 |
#264552 - 12/13/03 10:06 PM
Re: A Generic Login Script
[Re: sf49rminer]
|
Member
Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
|
Hi,<br /><br />I think we did pretty much this. We have an index page for the site and on it wished to display certain parts of the IIP.<br />What I did was install the IIP, then copy bits and pieces of the code to our own index page, which seemed to work quite well (make certain the paths are correct though).<br /><br />The parts I added were:<br /> <br />// set params for message board inclusions<br />$palspath = "<your path to the pals-dir goes here>";<br />include "{$palspath}/main.inc.php";<br />include "{$palspath}/pals/languages/${$config['cookieprefix']."w3t_language"}/languagepal.php";<br />@include "{$palspath}/pals/configpal.php";<br /><br />// authenticate visitor<br />$userob = new user;<br />$user = $userob -> authenticate("");<br /><br />$user = $userob -> authenticate("U_Username,U_PicturePosts,U_ShowSigs,U_Email,U_PictureView,U_Status,U_Privates,U_Name,U_Title,U_Totalposts,U_Visible, U_Laston,U_Language,U_TimeOffset,U_Groups,U_Picture,U_Number");<br />list($palUusername,$palPicturePosts,$palShowSigs,$palEmail,$palPictureView,$palStatus,$palPrivates,$palRealName,$palUsertitle,$palTotalUposts,$palUVisible, $laston,$ubbt_language,$offset,$groups,$picture,$Uid,$CheckUser,$pass,$sessionid,$stylesheet,$status,$privates,$frontpage) = $user;<br /><br />if ($config['cookiepath'] == "") {<br /> $CookieNotice = "<br /><br /><blockquote><strong>Admins please note:</strong> The cookie path is not set site wide. This page must reside in the same directory as UBB.threads&trade; or cookies must be set site wide for this page to validate visitor access.</blockquote>"; <br />}<br /><br />$html = new html;<br />list($tbopen,$tbclose) = $html -> table_wrapper();<br /><br /><br />You can then just add in the parts of IIP you want by calling them like this:<br /> <br /> include "{$palspath}/pals/shortstatspal.php";<br /><br /><br />Sanuk!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#264556 - 12/15/03 07:40 AM
Re: A Generic Login Script
[Re: Cpher]
|
Lurker
Registered: 12/10/03
Posts: 9
|
// set params for message board inclusions$palspath = "<your path to the pals-dir goes here>";include "{$palspath}/main.inc.php";include "{$palspath}/pals/languages/${$config['cookieprefix']."w3t_language"}/languagepal.php";@include "{$palspath}/pals/configpal.php";// authenticate visitor$userob = new user;$user = $userob -> authenticate("");$user = $userob -> authenticate("U_Username,U_PicturePosts,U_ShowSigs,U_Email,U_PictureView,U_Status,U_Privates,U_Name,U_Title,U_Totalposts,U_Visible, U_Laston,U_Language,U_TimeOffset,U_Groups,U_Picture,U_Number");list($palUusername,$palPicturePosts,$palShowSigs,$palEmail,$palPictureView,$palStatus,$palPrivates,$palRealName,$palUsertitle,$palTotalUposts,$palUVisible, $laston,$ubbt_language,$offset,$groups,$picture,$Uid,$CheckUser,$pass,$sessionid,$stylesheet,$status,$privates,$frontpage) = $user;if ($config['cookiepath'] == "") { $CookieNotice = "<br /><br /><blockquote><strong>Admins please note:</strong> The cookie path is not set site wide. This page must reside in the same directory as UBB.threads™ or cookies must be set site wide for this page to validate visitor access.</blockquote>"; }$html = new html;list($tbopen,$tbclose) = $html -> table_wrapper();<br /><br />//////////////////////////////////////////<br /><br />Is that all you added? and where abouts did you add it, I tried it in my current require file, I guess i could just add it to my current index page. let me know if you have any ideas. Thanks again and sorry to bother you with these questions.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|