11
xoopdio
Re: user insertion
  • 2011/11/2 5:33

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


Hi

Thanks for your help. ;)

I had a look at the given link but I don't understand how to use that class :

- the createuser() function doesn't take any argument so what user could it create ?
- the insertUser() function takes 2 arguments : 1 $force ?? and the $user which I didn't find how it should be defined (or where)
...

Do you know if there is a tutorial anywhere on how to use this class to insert a new user ? I searched the documentations in vain for the moment..

Or maybe a little help on the procedure ?

I already implemented the insertion of new PHPBB3 users in the XOOPS database, but that was easy : PHPBB3 has a add_user() function with a defined array argument. But here, I boil my few last neurons on the XOOPS procedure..

Thank you.
"A tree is made of non-tree elements" Thich Nhat Hanh



12
xoopdio
user insertion
  • 2011/11/1 9:35

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


Hi

I try to insert a new user from mysql with the following line :

$sql 'INSERT INTO ' $table ' (name, uname, pass, email, url, user_avatar, user_regdate, user_icq, actkey, user_aim, user_yim, user_msnm, theme, umode, bio) VALUES ('NAME', 'UNAME', 'PASS', 'EMAIL', 'URL', $user_avatar, $date, 'USER_ICQ', $actkey, 'USER_AIM', 'USER_YIM', 'USER_MSNM', $theme, $umode, '');';


It does work (all variables are defined and match the variables of another user who doesn't have any trouble because defined with the XOOPS interface), but this sql defined user still can't access his mail box or even disconnect ???

Do you know why ?

Thank you.
"A tree is made of non-tree elements" Thich Nhat Hanh



13
xoopdio
Re: mysql query issue
  • 2011/10/16 6:23

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


Thanks Trabis : It works !

I did see the "when the query returns an array" from the pdf but I didn't think it could apply as it isn't a multidimensional array : I'm really a new newbie !

Thanks again !
"A tree is made of non-tree elements" Thich Nhat Hanh



14
xoopdio
mysql query issue
  • 2011/10/15 6:59

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


Hi

I got a problem to get a proper answer to a mysql query, even when I follow the "How to build your own XOOPS module" -> "The queries" recomendations :

global $xoopsDB;
$table $xoopsDB->prefix('config');
$sql "SELECT conf_value FROM x3ae_config WHERE conf_title
 IN('_MI_PHPBB3_ROOT_PATH', '_MI_PHPBB3_DB_HOST', '_MI_PHPBB3_DATABASE', 
'_MI_PHPBB3_DB_USER', '_MI_PHPBB3_DB_PASS', '_MI_PHPBB3_USERS_TABLE');"
;

$result $xoopsDB->queryF($sql);

list(
$PHPBB3_ROOT_PATH$PHPBB3_DB_HOST
$PHPBB3_DATABASE$PHPBB3_DB_USER$PHPBB3_DB_PASS$PHPBB3_USERS_TABLE)
 = 
$xoopsDB->fetchRow($result);

echo 
$PHPBB3_ROOT_PATH$PHPBB3_DB_HOST$PHPBB3_DATABASE$PHPBB3_DB_USER,
 
$PHPBB3_DB_PASS$PHPBB3_USERS_TABLE;


All I can get as answer is the first item ($PHPBB3_ROOT_PATH) when the query
answers fine in the mysql shell ?

I tried also :

$rows $xoopsDB->fetchArray($result);
var_dump($rows);


and get only :

array(1) { ["conf_value"]=> string(8"/phpbb3/" }


I guess that I miss something but what ?
Any idea ?

Thank you
"A tree is made of non-tree elements" Thich Nhat Hanh



15
xoopdio
Re: database config
  • 2011/10/14 8:37

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


Thanks !
"A tree is made of non-tree elements" Thich Nhat Hanh



16
xoopdio
solved : database config
  • 2011/10/14 6:25

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


Hello

Sorry if it has been already asked but I couldn't find the info nor in the wiki nor with a forum search : I saw that in the old versions of Xoops the database parameters were config in the mainfile.php but in the 2.5.1 or 2.5.2RC I couldn't find where or how Xoops find the name of the database to run with ?

Maybe someone could help me with that ?

Thank you
"A tree is made of non-tree elements" Thich Nhat Hanh



17
xoopdio
Re: Update translation
  • 2011/10/3 7:40

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


But.. You are the Omniscient .. !

Thanks for your answer ! ;)
"A tree is made of non-tree elements" Thich Nhat Hanh



18
xoopdio
Update translation
  • 2011/10/2 13:34

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


Hello

I would to help with the french translation. The SCM repositories says the last version was created for 2.3.2 and the french website offer the 2.5.0 for download.

My question is : is it possible (and how if it is) to make a kind of "diff" between the 2.5.0 french version and the new 2.5.2RC english version ?

I started to translate with xtransam but (unless I didn't understand everything), one can just start everything from scratch again, no ?

Thank you
"A tree is made of non-tree elements" Thich Nhat Hanh



19
xoopdio
Re: slogan for your site
  • 2011/10/2 12:06

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


Hi

Yes sorry, I don't know what happened : I reinstall it on my test server and it does show as you say : feel free to delete that unuseful post.

Regards
"A tree is made of non-tree elements" Thich Nhat Hanh



20
xoopdio
slogan for your site
  • 2011/10/2 4:05

  • xoopdio

  • Just popping in

  • Posts: 29

  • Since: 2011/9/27


Hi

Don't know if its a bug but it seems that the "slogan for your site" doesn't show anymore on the frontpage in Xoops 2.5.2RC.




TopTop
« 1 (2) 3 »



Login

Who's Online

209 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 209


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