1
tzvook
PPnews for xoops 1.3.8
  • 2003/9/21 18:56

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Hello folks,
I'm still using 1.3.8 on one of my sites, and since it's full of hacks, some are custom, I won't upgrade for a long time.

I'm using PPnews, but I has about 1300 users that I need to enter to the PPnews, a bit tricky without messing with MySQL directly.
since PPnews integration with XOOPS is so poor, I hope someone did some kind of hack for the problem.

I'd like to hear some opinions about that
10x

2
tzvook
Re: PPnews for xoops 1.3.8
  • 2003/10/2 7:49

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


no bright ideas ppls ?
hard to belive no-one has this problem ...

3
Herko
Re: PPnews for xoops 1.3.8
  • 2003/10/2 8:01

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


I tried to enter them all in the MySQL tables manually. There was a problem with the password when doing that, because the password for the registered users is stored as a MD5 encrypted hash value, which you can't decrypt, and therefore, you can't use in another module. So passwords is out of the question. Giving all your 1300 users two passwords (one for the site, and one for managing their pp-news data) probably isn't an option.

What I did in the end was switch to Evennews fromhttp://ackbarr.greatweb.com and manually imported the user data.

Herko

4
tzvook
Re: PPnews for xoops 1.3.8
  • 2003/10/2 8:40

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


10x Herko for the quick reply

Yep the password thing it a bump indeed, but since I'm still using XOOPS 1.38 (can't upgrade - too many hacks and mods), seems that the only option is to finish doing it manually through the users interface (aufull and boaring work .. maybe one of my editors will do part of it)

It teach one thing though - not to mess with too many custom mods, stay closer to the core as much as you can

5
kain
Re: PPnews for xoops 1.3.8
  • 2003/10/2 15:30

  • kain

  • Just popping in

  • Posts: 56

  • Since: 2002/1/9 9


hi tzvook, here at kuht.it, during the stage .07, we made a core hack to:
- show in user profile the ability to receive email notices from the administrator (this can be done by a trigger in database and modifying some core files)
- module that allow sending a newsletter only at users that accept newsletter in their profile (default = 1 in registration, can be changed) with preview and email were the newsletter will be sent.

btw it doesn't use XOOPS classes, the module was born during XOOPS 1.3.8.
it needs more work because it is not perfect-standard module, but since we passed to another cms we don't need it anymore, let me know if you're interested in this little module/hack .

6
tzvook
Re: PPnews for xoops 1.3.8
  • 2003/10/7 16:58

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Hi kuht.it
10x for replying
Yep - very interested in the hack
can you send it to tzvook@dotcom.co.il ?
10x in advanced.

7
svaha
Re: PPnews for xoops 1.3.8
  • 2003/11/13 23:43

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Found this on :

http://nl.php.net/manual/en/ref.mysql.php

Quote:
soren at byu dot edu
14-Mar-2003 07:23
Let's say that you want to generate a MySQL password hash from a plain text password. Normally, you would just submit the MySQL query "SELECT PASSWORD('password')", but if for some reason you can't access to MySQL database directly, then you can use the following function (translated right out of the MySQL source code):

function mysql_password($passStr) {
$nr=0x50305735;
$nr2=0x12345671;
$add=7;
$charArr = preg_split("//", $passStr);

foreach ($charArr as $char) {
if (($char == '') || ($char == ' ') || ($char == '\t')) continue;
$charVal = ord($char);
$nr ^= ((($nr & 63) + $add) * $charVal) + ($nr << 8);
$nr2 += ($nr2 << 8) ^ $nr;
$add += $charVal;
}

return sprintf("%08x%08x", ($nr & 0x7fffffff), ($nr2 & 0x7fffffff));
}

example:

<? print mysql_password("hello"); ?>

outputs:

70de51425df9d787

Which is the same result you get if you do "SELECT PASSWORD('hello')" directly in MySQL. Hopefully you'll never be in a situation where you have to use this, but if you need it (like I did), it's here.


Aloha

Login

Who's Online

158 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

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

Latest GitHub Commits