Benutzername    Passwort    Autologin    
  Passwort vergessen       Registrieren  
beeForum Foren-übersicht » hal9000 » mod support
Neues Thema eröffnen   Neue Antwort erstellen Hervorhebung entfernen


Problem mit UploadPic für Signatur
Gehe zu Seite Zurück  1, 2 Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
Kiss News





Titel: (Kein Titel)
Verfasst am: Sa, 18 Feb 2006, 19:58
Beitrag
Antworten mit Zitat

keine Ahnung, momentan funktioniert es. Ich erlaube auch jeden eine Signatur und auch Fotos hochladen, sollte also kein Problem sein....
Danke nochmals!

Nach oben
Rang:
Makc666





Titel: (Kein Titel)
Verfasst am: Mo, 01 Mai 2006, 05:33
Beitrag
Antworten mit Zitat

I have a problem with this Add-On.
https://www.beehave.de/forum/viewtopic.php?p=2410#2410

All code is inserted correct.
But when I click on Upload picture and upload or select picture from gallery and hit standart none url is inserted to Signature field.
Also I get this error.

Code:
Line:  252
Char: 2
Error: 'opener.document.forms.user.signature' is null or not an object
Code: 0


Here is that part of code:
Code:
</style>
</head>

<body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5493B4">
<span class="gen"><a name="top"></a></span>

<script language="javascript" type="text/javascript">
<!--
function copycode(text) {
   if (opener.document.forms['user'].signature.createTextRange && opener.document.forms['user'].signature.caretPos) {
      var caretPos = opener.document.forms['user'].signature.caretPos;
      caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
      opener.document.forms['user'].signature.focus();
   } else {
   opener.document.forms['user'].signature.value  += text;
   opener.document.forms['user'].signature.focus();
   }
   window.close();
}
//-->
</script>


Here is my usercp_register.php
http://stop.starnet.ru/phpbb/usercp_register.php.txt

Update:
I tried to use clean usercp_register.php from 2.0.20 only with necessary two modifications.
Still the same error...
Also tried to use clean profile_add_body.tpl from 2.0.20 only with necessary two modifications.
Still the same error...


Zuletzt bearbeitet von Makc666 am Do, 04 Mai 2006, 08:30, insgesamt einmal bearbeitet. (1 Prozent)

Nach oben
Rang:
Makc666





Titel: (Kein Titel)
Verfasst am: Mo, 01 Mai 2006, 21:38
Beitrag
Antworten mit Zitat

Today I tried to install on a clean 2.0.20 board.
The same error.


Zuletzt bearbeitet von Makc666 am Do, 04 Mai 2006, 08:28, insgesamt einmal bearbeitet. (1 Prozent)

Nach oben
Rang:
boris



Beiträge: 11195

Titel: (Kein Titel)
Verfasst am: Mo, 01 Mai 2006, 23:31
Beitrag
Antworten mit Zitat

Makc666 @ Mo, 01 Mai 2006, 21:38 gab folgendes von sich:
Today I tried to install on a clean 2.0.20 board. The same error.

It seems that the JavaScript-part can't find the input-box to insert the code into.
Why, I don't know, sorry. I double checked my code and put it into my board to test it (2.0.20) and it works just fine !


____________
beehave - home of humbug ... [we can't afford to be neutral]

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Makc666





Titel: (Kein Titel)
Verfasst am: Mo, 01 Mai 2006, 23:49
Beitrag
Antworten mit Zitat

boris @ Mon, 01 May 2006, 23:31 gab folgendes von sich:
Makc666 @ Mo, 01 Mai 2006, 21:38 gab folgendes von sich:
Today I tried to install on a clean 2.0.20 board. The same error.

It seems that the JavaScript-part can't find the input-box to insert the code into.
Why, I don't know, sorry. I double checked my code and put it into my board to test it (2.0.20) and it works just fine !


You want to say that Error code i posted here:
https://www.beehave.de/forum/viewtopic.php?p=3233#3233
means that it can't find?
I thought that it means that JavaScript just doesn't work at all.


Zuletzt bearbeitet von Makc666 am Do, 04 Mai 2006, 08:28, insgesamt einmal bearbeitet. (1 Prozent)

Nach oben
Rang:
Makc666





Titel: (Kein Titel)
Verfasst am: Di, 02 Mai 2006, 00:28
Beitrag
Antworten mit Zitat

I installed again on a new clean forum 2.0.20

When I open page:
/profile.php?mode=editprofile

I get an error:
Code:
Line:  353
Char: 1
Error: Object expected
Code: 0
URL: http://mysite.com/forum/profile.php?mode=editprofile


Line 353 in HTML source is:
Code:
      <strong><a href="uploadpic.php?inputname=signature&formname=user" onclick="window.open('uploadpic.php?inputname=signature&formname=user', '_uploadpic', 'height=400,resizable=yes,scrollbars=yes,width=470');return false;" target="_uploadpic" class="nav" onMouseOver="helpline('up')"><img src="templates/subSilver/images/lang_english/up_button.gif" name="upbutton" alt="UploadPic" title="UploadPic" border="0"></a>&nbsp;<br /></strong>


This error will dissapear if you remove code:
onMouseOver="helpline('up')"
Where does this variable "helpline('up')" is taken from?

Can you give me access to your forum where this mod works with clean 2.0.20...


Zuletzt bearbeitet von Makc666 am Do, 04 Mai 2006, 08:28, insgesamt einmal bearbeitet. (1 Prozent)

Nach oben
Rang:
boris



Beiträge: 11195

Titel: (Kein Titel)
Verfasst am: Di, 02 Mai 2006, 07:43
Beitrag
Antworten mit Zitat

Makc666 @ Mo, 01 Mai 2006, 23:49 gab folgendes von sich:
You want to say that Error code i posted here: (...) means that it can't find?

Yes. It means, that JavaScript is trying to send the code to the opening window in insert it into the signature-field, but can't find it. If JavaScript didn't work at all, nothing would happen, not even an error.

Makc666 gab folgendes von sich:
This error will dissapear if you remove code: onMouseOver="helpline('up')" Where does this variable "helpline('up')" is taken from?

That's part of the BBCode-buttons, you can leave it out or you'll have copy all of the helpline-function to your profile.php-template as well.

Makc666 gab folgendes von sich:
Can you give me access to your forum where this mod works with clean 2.0.20...

No. I'm not running a "clean" 2.0.20 but a heavily modded 2.0.20 that was updated way back from 2.0.something that I installed 1,5 years ago.

I can do the modification (that I'm not using usually) again with my forum tonight and then you can compare the source-code of my profile-page and the UploadPic-page (popup-window) with your forum.


____________
beehave - home of humbug ... [we can't afford to be neutral]

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Makc666





Titel: (Kein Titel)
Verfasst am: Di, 02 Mai 2006, 08:34
Beitrag
Antworten mit Zitat

boris @ Tue, 02 May 2006, 07:43 gab folgendes von sich:
Makc666 gab folgendes von sich:
Can you give me access to your forum where this mod works with clean 2.0.20...

No. I'm not running a "clean" 2.0.20 but a heavily modded 2.0.20 that was updated way back from 2.0.something that I installed 1,5 years ago.

I can do the modification (that I'm not using usually) again with my forum tonight and then you can compare the source-code of my profile-page and the UploadPic-page (popup-window) with your forum.


It will be great, if you will modify this forum's profile and popup page.
If you can, p;ease, show me those pages code, so I can compare with my pages.


Zuletzt bearbeitet von Makc666 am Do, 04 Mai 2006, 08:28, insgesamt einmal bearbeitet. (1 Prozent)

Nach oben
Rang:
boris



Beiträge: 11195

Titel: (Kein Titel)
Verfasst am: Di, 02 Mai 2006, 21:30
Beitrag
Antworten mit Zitat

All right, I made the changes to my forum again.

The only changes I made are the ones written down here:
https://www.beehave.de/forum/viewtopic.php?p=2410#2410

You can now check out and edit your profile and compare the source code with your forum. I just tested the upload to the signature with Firefox and Internet Explorer and everything works fine.

Let me know when you find something, so we can include the bits in here in case somebody else has the same problem. Nobody ever did up till now so I'm pretty curious what the problem is - are you sure to have the most recent version of UploadPic and the template-files from the latest archive uploaded ?

I'll remove the code again tomorrow night or so because I don't want the feature in my forum Smile


____________
beehave - home of humbug ... [we can't afford to be neutral]

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Makc666





Titel: (Kein Titel)
Verfasst am: Mi, 03 Mai 2006, 01:20
Beitrag
Antworten mit Zitat

boris @ Tue, 02 May 2006, 21:30 gab folgendes von sich:
All right, I made the changes to my forum again.

The only changes I made are the ones written down here:
https://www.beehave.de/forum/viewtopic.php?p=2410#2410

You can now check out and edit your profile and compare the source code with your forum. I just tested the upload to the signature with Firefox and Internet Explorer and everything works fine.

Let me know when you find something, so we can include the bits in here in case somebody else has the same problem. Nobody ever did up till now so I'm pretty curious what the problem is - are you sure to have the most recent version of UploadPic and the template-files from the latest archive uploaded ?

I'll remove the code again tomorrow night or so because I don't want the feature in my forum Smile


Yes. It works on this forum.
And on mein it doesn't work.

So I can assume:
1. You are using another Upload Pick files.
or
2. You entered extra code some where on your forum.

Just for me, can you install a CLEAN 2.0.20 to beehave.de/forum-clean/ and we will test there.

I use phpBB for more than 3 years and installed about 100 mods.
And this is the first time when I get stuck.
If you want, I can invite you to my test board in PM.


Zuletzt bearbeitet von Makc666 am Do, 04 Mai 2006, 08:28, insgesamt einmal bearbeitet. (1 Prozent)

Nach oben
Rang:
boris



Beiträge: 11195

Titel: (Kein Titel)
Verfasst am: Mi, 03 Mai 2006, 09:56
Beitrag
Antworten mit Zitat

Makc666 @ Mi, 03 Mai 2006, 01:20 gab folgendes von sich:
1. You are using another Upload Pick files.

No, I'm using the latest release, which is here

Makc666 gab folgendes von sich:
2. You entered extra code some where on your forum.

I changed a lot, but as everybody else that is using the signature-code has no problems I don't assume that I entered "extra code" that just by coincidence everybody else has, too.

Makc666 gab folgendes von sich:
Just for me, can you install a CLEAN 2.0.20 to beehave.de/forum-clean/ and we will test there.

Sorry. This has already gone far beyond the time I can spare for this snippet.
1. it's not part of the original UploadPic-package which I'm supporting
2. it was only done as a favour for somebody who doesn't know PHP and I don't even us it myself
3. it seems to work for everybody except you

If I find the time, I'll install a fresh phpBB on a local server tonight and check it out there as doing it locally is a lot less work to install, and especially de-install.
If it works there, I can't help you out, if it does not I may investigate further if I find the time (don't count on it), but as I said: I can not grant support for anything that is not part of the actual MOD, as I do have a life away from the screen - believe it or not Cool


____________
beehave - home of humbug ... [we can't afford to be neutral]


Zuletzt bearbeitet von boris am Do, 09 Apr 2009, 18:18, insgesamt einmal bearbeitet. (1 Prozent)

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
boris



Beiträge: 11195

Titel: (Kein Titel)
Verfasst am: Mi, 03 Mai 2006, 21:10
Beitrag
Antworten mit Zitat

Here we go - and you were right ! I don't know why, but it seems the phpBB-people changed the form name or removed it throughout the new releases while the name was still present in the older versions - you should have seen it, when you checked your profile_add_body.tpl source-code !

So, this should do it:

Code:
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post">

#
#-----[ REPLACE WITH ]------------------------------------------
#
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post" name="user">


____________
beehave - home of humbug ... [we can't afford to be neutral]


Zuletzt bearbeitet von boris am Do, 04 Mai 2006, 07:51, insgesamt einmal bearbeitet. (1 Prozent)

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Makc666





Titel: (Kein Titel)
Verfasst am: Do, 04 Mai 2006, 00:40
Beitrag
Antworten mit Zitat

boris @ Wed, 03 May 2006, 21:10 gab folgendes von sich:
Here we go - and you were right ! I don't know why, but it seems the phpBB-people changed the form name or removed it throughout the new releases while the name was still present in the older versions - you should have seen it, when you checked your profile_add_body.tpl source-code !

So, this should do it:

Code:
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post">

#
#-----[ REPLACE WITH ]------------------------------------------
#
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post" name="user">


The code you posted is right but it is for Admins only Smile
For Users you have to
Code:
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post">
#
#-----[ REPLACE WITH ]------------------------------------------
#
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post" name="user">


As for your words:
boris @ Wed, 03 May 2006, 21:10 gab folgendes von sich:
Here we go - and you were right ! I don't know why, but it seems the phpBB-people changed the form name or removed it throughout the new releases while the name was still present in the older versions - you should have seen it, when you checked your profile_add_body.tpl source-code !

I just checked file:
phpBB-2.0.0_to_2.0.20.patch
I even checked every patch file for each version.
There was never such line:
Code:
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post" name="user">

That's why I think you have to update post here:
https://www.beehave.de/forum/viewtopic.php?p=2410#2410

Thanks for helping!


Zuletzt bearbeitet von Makc666 am Do, 04 Mai 2006, 08:28, insgesamt einmal bearbeitet. (1 Prozent)

Nach oben
Rang:
boris



Beiträge: 11195

Titel: (Kein Titel)
Verfasst am: Do, 04 Mai 2006, 07:51
Beitrag
Antworten mit Zitat

Makc666 @ Do, 04 Mai 2006, 00:40 gab folgendes von sich:
The code you posted is right but it is for Admins only Smile

True ... and still a little mistake:
for the forum, you have to edit
templates/subSilver/profile_add_body.tpl
for the ACP the file is
templates/subSilver/admin/user_edit_body.tpl
(there's no "profile_add_body.tpl" in the admin-dir - actually you can skip the admin/user_edit_body.tpl-edit, because the other changes are also only made for the forum, not for the ACP, so just changing the admin/user_edit_body.tpl won't give you the UploadPic-Link for the signature in the ACP !)

Makc666 gab folgendes von sich:
I just checked file: phpBB-2.0.0_to_2.0.20.patch I even checked every patch file for each version. There was never such line:

Don't as me where it came from, I just know that nobody ever had a problem with the snippet, so I guess the 'name="user"' must have been in there from way back ...
Whatever - I'll update the snippet and then: case closed Cool


____________
beehave - home of humbug ... [we can't afford to be neutral]

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Makc666





Titel: (Kein Titel)
Verfasst am: Do, 04 Mai 2006, 08:22
Beitrag
Antworten mit Zitat

boris @ Thu, 04 May 2006, 07:51 gab folgendes von sich:

Makc666 gab folgendes von sich:
I just checked file: phpBB-2.0.0_to_2.0.20.patch I even checked every patch file for each version. There was never such line:

Don't as me where it came from, I just know that nobody ever had a problem with the snippet, so I guess the 'name="user"' must have been in there from way back ...
Whatever - I'll update the snippet and then: case closed Cool

I checked all versions of phpBB from 2.0.0
I didn't find that string in that file.

I also never had any problems with your MOD except for profile issues. Razz

Nach oben
Rang:
boris



Beiträge: 11195

Titel: (Kein Titel)
Verfasst am: Do, 04 Mai 2006, 09:20
Beitrag
Antworten mit Zitat

Makc666 @ Do, 04 Mai 2006, 08:22 gab folgendes von sich:
I checked all versions of phpBB from 2.0.0 I didn't find that string in that file.

Ok, let's just pretend it has been sneaking around and put itself in there big grin

I changed the snippet but left out the changes for the admin/*.tpl as that would require more changes in the ACP-files and I don't really think an admin must be able to upload pictures to his users signatures ...

Finally: what does "À ñòóêà÷êîâ ìû íå ëþáèì!" in your signature mean ?
(I just see weird letters as I don't have a cyrillic font installed - even then, I probably wouldn't know Wink)


____________
beehave - home of humbug ... [we can't afford to be neutral]

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Makc666





Titel: (Kein Titel)
Verfasst am: Do, 04 Mai 2006, 21:12
Beitrag
Antworten mit Zitat

boris @ Thu, 04 May 2006, 09:20 gab folgendes von sich:
Makc666 @ Do, 04 Mai 2006, 08:22 gab folgendes von sich:
I checked all versions of phpBB from 2.0.0 I didn't find that string in that file.

Ok, let's just pretend it has been sneaking around and put itself in there big grin

Mr. Green

boris @ Thu, 04 May 2006, 09:20 gab folgendes von sich:
I changed the snippet but left out the changes for the admin/*.tpl as that would require more changes in the ACP-files and I don't really think an admin must be able to upload pictures to his users signatures ...

You are right Smile

boris @ Thu, 04 May 2006, 09:20 gab folgendes von sich:
Finally: what does "À ñòóêà÷êîâ ìû íå ëþáèì!" in your signature mean ?
(I just see weird letters as I don't have a cyrillic font installed - even then, I probably wouldn't know Wink)

Hm... If translate word by word it will be:
"And we don't like peach/snitch men!"
in other words this frase means
that "My sort of people don't like when other man/men tell another/rest things about other people he/they ha(s)ven't to"
understandable? Razz

Nach oben
Rang:
boris



Beiträge: 11195

Titel: (Kein Titel)
Verfasst am: Do, 04 Mai 2006, 23:53
Beitrag
Antworten mit Zitat

Makc666 @ Do, 04 Mai 2006, 21:12 gab folgendes von sich:
"My sort of people don't like when other man/men tell another/rest things about other people he/they ha(s)ven't to"
understandable? Razz

Yep, I think I got the point Wink


____________
beehave - home of humbug ... [we can't afford to be neutral]

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Makc666





Titel: (Kein Titel)
Verfasst am: Do, 04 Mai 2006, 23:55
Beitrag
Antworten mit Zitat

boris @ Thu, 04 May 2006, 23:53 gab folgendes von sich:
Makc666 @ Do, 04 Mai 2006, 21:12 gab folgendes von sich:
"My sort of people don't like when other man/men tell another/rest things about other people he/they ha(s)ven't to"
understandable? Razz

Yep, I think I got the point Wink

I forgot to say that the image is the most important thing in this signature! =)

Nach oben
Rang:
Beiträge der letzten Zeit anzeigen:   
Neues Thema eröffnen   Neue Antwort erstellen    beeForum Foren-übersicht » hal9000 » mod support Seite 2 von 2
Gehe zu Seite Zurück  1, 2
Gehe zu:  



ähnliche Beiträge
Thema Autor Forum Antworten Verfasst am
Keine neuen Beiträge Film: Das letzte Problem boris zelluloid 0 Do, 24 Feb 2022, 17:51 Letzten Beitrag anzeigen
Keine neuen Beiträge uploadpic auf orion phpBB instalieren hewika mod support 9 Mo, 03 Jan 2011, 21:18 Letzten Beitrag anzeigen
Keine neuen Beiträge uploadpic Problem -> hilfe benötigt Dakota mod support 1 So, 15 Aug 2010, 15:39 Letzten Beitrag anzeigen
Keine neuen Beiträge Major Problem UncleR internet junk 0 Do, 19 Feb 2009, 14:51 Letzten Beitrag anzeigen
Keine neuen Beiträge Chris Baty - No Plot? No Problem! boris kühnes mittelscharfer 0 So, 23 Nov 2008, 17:30 Letzten Beitrag anzeigen


Schreiben: nein. Antworten: nein. Bearbeiten: nein. Löschen: nein. Umfragen: nein.
phpBB © phpBB Group | impressum