Página 1 de 1

Modify Profil Mod

Publicado: 20 Oct 2006, 23:34
por Sanchez17
Hola,

I hope someboady help me. I can only speak english. In the german support board, don't get I an answer.

I have a install the moify profile mod from Acid. It isn't really a mod. There are install docs to modfiy the profile.
(Download (English + German): http://www.phpbb.de/moddb/download.php?id=56)

I have add new fields in the profile. But the problem is, that the database doesn't take the things, which I write. The new field in the database are empty.

Where can be the problem?

I have here a few docs, which can help:
My admin_users.php
My usercp_avatar.php
My usercp_register.php

and the doc "profil_german.txt" is the install.txt (german).
But I have for you an english transaltion of this install.txt. (profil_english.txt)

http://www.fussball-international.net/docs/

Do you knwo, why my database doesn't take what I write?
I haven't find a mistake...
I hope, you can help me...I don't know, what I can do...

Respuesta: Modify Profil Mod

Publicado: 21 Oct 2006, 00:08
por KasLimon
Hello,

I can say you some possible errors in the modifications:
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
'interests'

#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, 'info' => 'info'[/quoteicy]You can find 2 times 'interests'. Then verify that it's added after => 'interests' and not after , 'interests'

If you've this well, then the problem appear difficult.

I'm trying the MOD in a "clean" phpbb because this mod appear old...

When finished, I'll tell you the result

:ok:

Respuesta: Modify Profil Mod

Publicado: 21 Oct 2006, 00:21
por KasLimon
I've tried it and it works:

Imagen

If you've did this modification well (that modification un my other post), tell us and we can try another possible fail...

What's your phpBB version?

Re: Modify Profil Mod

Publicado: 22 Oct 2006, 01:39
por Sanchez17
Hola KasLimon ( I drink in Spain always Kas :mrgreen: )

[quote]You can find 2 times 'interests'.[/quoteicy]

Yes. I had forget one. But nothing changes...it doesn't work...

[quote]Then verify that it's added after => 'interests' and not after , 'interests' [/quoteicy]

I had it so.


[quote]What's your phpBB version?[/quoteicy]

My version is 2.0.21. I always update to the newest version ;)


A note:

I dont have take "info". I have take :
"spieler" "team" "karte" and "symp"

I hadn't see a mistake in the usercp_register.php
http://www.fussball-international.net/d ... gister.txt

Where else can be a mistake?

Muchas gracias
for your help

Respuesta: Modify Profil Mod

Publicado: 22 Oct 2006, 16:47
por KasLimon
:lol: Kas! I don't drink Kas... I prefer Fanta ;) I don't know why I use this username... :roll:

Then, have you modified your template files?
I think that's the problem because when I was watching your forum I didn't see any new field in the viewprofile.

And if it isn't I can try to found the error in the usercp_register.php (I don't do it now because I haven't time, I'll look it after ;) )

Re: Modify Profil Mod

Publicado: 22 Oct 2006, 17:14
por Sanchez17
[quote]Kas! I don't drink Kas[/quoteicy]

lol, :lol:

[quote]Then, have you modified your template files? [/quoteicy]

Yes I have...

[quote]I think that's the problem because when I was watching your forum I didn't see any new field in the viewprofile. [/quoteicy]

I had upload an other profil_view_body and profil_add_body, without this field because, the new users write me all day a pm...that it doesn't work.
;)

[quote]I'll look it after[/quoteicy]

Very thanks for your help...

Respuesta: Modify Profil Mod

Publicado: 23 Oct 2006, 22:55
por KasLimon
I was readig your file and I didn't found the lines that you have to add...

Or... Have you changed "info" to "spieler"?

If you haven't, I need the modificated archive code ;)

Re: Modify Profil Mod

Publicado: 24 Oct 2006, 17:37
por Sanchez17
Hola,

[quote]Or... Have you changed "info" to "spieler"? [/quoteicy]

Right.

I have changed "info" to "spieler". Also, I have it repeat with other words.

In the install.txt was
"info"
And I have it changed and add more:

"spieler"
"team"
"karte"
"symp"

Here, you can see what I mean...that is my changed install.txt

http://www.fussball-international.net/d ... german.txt (German)

http://www.fussball-international.net/d ... nglish.txt (the same, but with my translation in english)


I hope, it'll be help...

Respuesta: Modify Profil Mod

Publicado: 24 Oct 2006, 18:45
por KasLimon
Well, now it looks more easy to solucionate it.

You have done a wrong SQL code modification (I think that ;) )
I don't understand German then I can't understand this:
Folgender Query muss über phpmyadmin ausgeführt werden (Prefix anpassen)..
Wenn man mehrere Felder hinzufügt/ändert, muss man den obigen Query duplizieren und
den Feldnamen "user_info" anpassen.[/quoteicy]
I think that you forgot the prefixes but I think that In my German quote it says something about the prefix...

And one more thing: One time, you add this line:

Código: Seleccionar todo

		'SYMP' => $Symp,
(I think that it must be 'SYMP' => $symp,)

I don't know more possibilities now, I'll look for more possible problems but all it appears right...

Re: Modify Profil Mod

Publicado: 24 Oct 2006, 19:06
por Sanchez17
Hola,

[quote]I think that you forgot the prefixes but I think that In my German quote it says something about the prefix... [/quoteicy]

No and yes :wink:

I have two boards, which are together.A few tables like session, users etc. are without prefix. So, the users don't have to register a new account at the second board.

The german text in your quote says, that I have to excute the code in my phpmyadmin and change the prefix.

[quote]And one more thing: One time, you add this line:[/quoteicy]

Right, I will change it.

But I have with all 4 fields (spieler,team,karte,symp) a problem. So, that cannot be the only mistake.

I will delete my codes in the usercp_register.php, and will add it new, today or tomorrow.Mayby it works then.
After that, I will inform you if it works or not.

Thanks for your help ;)

Re: Modify Profil Mod

Publicado: 05 Nov 2006, 22:39
por Sanchez17
Hola KasLimon,

I had work on my board,today.
I had delete all codes from the usercp_register and add it new.

Now, it works.

I don't know, what I had make wrong, but I think, that I had add these codes wrong:

Código: Seleccionar todo

# 
#-----[ IN-LINE FIND ]---------------------------------------------------
# 
$interests) . "'

# 
#-----[ IN-LINE ADD ]---------------------------------------------------
# 
, '" . str_replace("\'", "''", $spieler) . "', '" . str_replace("\'", "''", $team) . "', '" . str_replace("\'", "''", $karte) . "', '" . str_replace("\'", "''", $symp) . "'

Thanks for your help
:cerveza:

Respuesta: Modify Profil Mod

Publicado: 05 Nov 2006, 23:59
por KasLimon
Hi Sanchez17,

I'm happy because you've solved it. I don't know what was wrong, probably the lines that you say.

I mark it as Solved / Lo marco como Solucionado

:ok: Bye