121
sylvainb
Re: MyAnnonces
  • 2003/5/15 13:55

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


You can find it on http://www.myxoops.de under the name of myAds and you must be registered to be able to download it!
Also want to say that it has been updated yesterday and it still doesn't have any other languages than german in the english directory.
Else 1 : you can wait until the end of the week end, i'll try to make a language translation and submit the module in the download section of my web site.

Else 2 : if you can read french, you can go THERE to what to change to make MyAnnonces for XOOPS 1.3.x working under XOOPS 2.

Else 3 : if you can't read french just do this :
in addannonces.php where it's written
Quote:
global $xoopsDB, $xoopsConfig, $xoopsUser, $xoopsTheme;

add $xoopsLogger at the end like that :
Quote:
global $xoopsDB, $xoopsConfig, $xoopsUser, $xoopsTheme, $xoopsLogger;

And to see photos attached in the popup window in display-image.php just comment with // OpenTable() and CloseTable()



122
sylvainb
Re: remembering logins?
  • 2003/4/23 4:59

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Yes, i know!
I've just experienced it with a patch to include a gallery!



123
sylvainb
Re: remembering logins?
  • 2003/4/22 20:51

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


And voila!
Quote:
File: user.php
==============
After:
------
setcookie($xoopsConfig['session_name'], '', time()- 3600, '/', '', 0); (line +/- 74)
Add:
----
//autologin code//
setcookie ("uid", "", time() - 3600);
setcookie ("pass", "", time() - 3600);
//end autologin code//




File: common.php
================
After:
------
$sess_handler =& xoops_gethandler('session'); (line +/- 127)
Add:
----
//autologin code//
if(empty($HTTP_SESSION_VARS['xoopsUserId']) && !empty($HTTP_COOKIE_VARS['uid']))
{
$passSQL = "select uid from ".$xoopsDB->prefix("users")." where pass = '".$HTTP_COOKIE_VARS['pass']."' and uid = ".$HTTP_COOKIE_VARS['uid'];
@$passQry = $xoopsDB->query($passSQL);
$passRst = $xoopsDB->fetchArray($passQry);
if ($passRst['uid'] == $HTTP_COOKIE_VARS['uid'])
{
$HTTP_SESSION_VARS['xoopsUserId'] = $HTTP_COOKIE_VARS['uid'];
$xoopsUser =& $member_handler->getUser($HTTP_SESSION_VARS['xoopsUserId']);
$HTTP_SESSION_VARS['xoopsUserGroups'] = $xoopsUser->getGroups();
}
else
{
setcookie ("session_name", "", time() - 3600);
setcookie ("uid", "", time() - 3600);
setcookie ("pass", "", time() - 3600);
}
}
//end autologin code//
After:
------
setcookie($xoopsConfig['session_name'], session_id(), time()+(60*$xoopsConfig['session_expire']), '/', '', 0); (line +/- 172)
Add:
----
if(!empty($HTTP_COOKIE_VARS['pass']) && !empty($HTTP_COOKIE_VARS['uid'])) // check or cookies already exist
{
// Cookie Set Code for autologon //
$passSQL = "select pass from ".$xoopsDB->prefix("users")." where uid = ".$HTTP_SESSION_VARS['xoopsUserId'];
@$passQry = $xoopsDB->query($passSQL);
$passRst = $xoopsDB->fetchArray($passQry);
setcookie('uid',$HTTP_SESSION_VARS['xoopsUserId'],time()+(60*60*24*365), '/', '', 0);
setcookie('pass',$passRst['pass'],time()+(60*60*24*365), '/', '', 0);
// Cookie Set Code for autologon //
}





Template: system_block_login.html
=================================
Add:
----
<input type="checkbox" name="rememberme" value="On" class ="formButton" />Remember me?<br />




File: include/checklogin.php
============================
After:
------
setcookie($xoopsConfig['session_name'], session_id(), time()+$xoopsConfig['session_expire'], '/', '', 0);
Add:
----
if($rememberme == "On") // check or user has checked the checkbox, if not do nothing
{
// == Cookie Set Code for AutoLogon == //
$passSQL = "select pass from ".$xoopsDB->prefix("users")." where uid = ".$HTTP_SESSION_VARS['xoopsUserId'];
@$passQry = $xoopsDB->query($passSQL);
$passRst = $xoopsDB->fetchArray($passQry);
setcookie('uid',$HTTP_SESSION_VARS['xoopsUserId'],time()+(60*60*24*365), '/', '', 0);
setcookie('pass',$passRst['pass'],time()+(60*60*24*365), '/', '', 0);
// == Cookie Set Code for AutoLogon == //
}

But it's still on koudanshi's site THERE




TopTop
« 1 ... 10 11 12 (13)



Login

Who's Online

245 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 245


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Feb 29
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits