Page Index Toggle Pages: 1 ... 12 13 [14]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Upload Avatar Mod 1.5 Beta SP1.31 (Read 32651 times)
Mxy
Guest


Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #195 - Dec 29th, 2004 at 3:56am
Print Post  
FYI

I get this message when replying (subject filled out) and when posting a new message with the subject field filled out.
  
Back to top
 
IP Logged
 
carl
Guest


Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #196 - Dec 29th, 2004 at 9:04am
Print Post  
i tried manually modifying the Subs.pl file as instructed in post #1 but when I do i automatically get a 500 error. running SP 1.4 on Unix system with Apache 1.3. anybody have a fix for this?
  
Back to top
 
IP Logged
 
carl
Guest


Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #197 - Dec 29th, 2004 at 9:05am
Print Post  
.. forgot to say on last post that i have the File Uploading mod installed too.
  
Back to top
 
IP Logged
 
carl
Guest


Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #198 - Dec 29th, 2004 at 9:23am
Print Post  
hah! just fixed my own problem.
heres what the mod in Subs.pl, Step #2 should look like when you are manually modifying it for SP 1.4..

Code
Select All
	if ($ENV{REQUEST_METHOD} eq 'POST') {
		if ($ENV{CONTENT_TYPE} =~ /multipart\/form-data/){
			use Upload::CGI; import Upload::CGI qw(:standard);
			my $query = new CGI;
			my (@keylist) = sort($query->param());
			foreach $key (@keylist) {
				$postsize += length($query->param($key));
				# may be dealing with multiple values; need to join with comma
				$value = join(', ', $query->param($key));
				$FORM{$key} = $value;
			}
			if ($query->param('file')) {
				$filename = $query->param('file');
				$postsize -= length($query->param('file'));
				$tmpfile = $query->tmpFileName($filename);
			}
			if ($query->param('umafile')){
		   my $avatar = $query->param('umafile');
 		  my $tmpfile = $query->tmpFileName($avatar);

		   local( $/, *TMP );
		   open(TMP,"$tmpfile");
		   my $filedata = <TMP>;
		   close(TMP);

		   open(TMP2,">$umauploaddir/$avatar");
		   print TMP2 $filedata;
		   close(TMP2);
			}
		} else {
			read(STDIN, my $input, $ENV{CONTENT_LENGTH});
			split_string(\$input, \%FORM)
		}
	} 

  
Back to top
 
IP Logged
 
hhpe
New Member
*
Offline



Posts: 40
Location: Dayton, Ohio
Joined: Mar 2nd, 2005
Gender: Male
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #199 - Mar 15th, 2005 at 10:31pm
Print Post  
I get this message after trying to upload:
An Error Has Occured!

Constant subroutine CGI::XHTML_DTD redefined at C:/Perl/lib/constant.pm line 108.

-- Also, for the absolute path when setting that up under settings for the uploaded avatars, is that in the form of something like: C;/wwwroot/chi-bin or what ever? I wasnt sure what the format of how it is suppesed to be entered. Maybe this is the cause of this error I am getting, I have it typed in wrong?
  
Back to top
 
IP Logged
 
louisle
God Member
*****
Offline


With a little bit of love
everything goes better

Posts: 1124
Location: Muenchen
Joined: Apr 9th, 2003
Gender: Male
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #200 - Mar 16th, 2005 at 2:28am
Print Post  
the absolute path should be /wwwroot/cgi-bin/
WITHOUT the driveletter "c:" even on Windows-servern

thx to carl Wink

please hold the line - i try to upgrade it for YaBB 2 ...

  

I LIKE SAUSAGE FINGERS:2thumbsup::2thumbsup::2thumbsup::2thumbsup::2thumbsup:
Back to top
IP Logged
 
hhpe
New Member
*
Offline



Posts: 40
Location: Dayton, Ohio
Joined: Mar 2nd, 2005
Gender: Male
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #201 - Mar 16th, 2005 at 8:55pm
Print Post  
I am stil getting the same error upon browsing for my picture and clicking upload.

I tried a lot of different things for the absolute path, no difference, same error as mentioned in my first post about this 2 posts up ^^ ..

if this helps, the actual web address to my personal upload folder is this:
http://huberheightspolice.com/cgi-bin/hhpe/yabb/images/avatars/personal

If that helps in determining what I should be putting in for my absolute path, please help me out.
  
Back to top
 
IP Logged
 
louisle
God Member
*****
Offline


With a little bit of love
everything goes better

Posts: 1124
Location: Muenchen
Joined: Apr 9th, 2003
Gender: Male
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #202 - Mar 17th, 2005 at 2:52pm
Print Post  
please tell me what ist your path on the harddrive or server

c:\inetpub\wwwroot\...

or something like that ? so the absolute path shoud be

/inetpub/wwwroot/...

greetings
louisle
  

I LIKE SAUSAGE FINGERS:2thumbsup::2thumbsup::2thumbsup::2thumbsup::2thumbsup:
Back to top
IP Logged
 
Slim
New Member
*
Offline


Trust me - I know what
I'm doing

Posts: 2
Joined: Mar 30th, 2005
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #203 - Mar 30th, 2005 at 4:15pm
Print Post  
May I clarify something?

My new board runs YaBB 1 Gold - SP 1.4.

If I edit the mod file by substituting Carl's code for the equivalent code in  the original - can I simply apply the mod using Boardmod against my own board, and expect it to work? Smiley

I don't have the file attachment mod installed, or indeed any other mod, apart from one very minor change to a line in Display.pl which I've made myself.

Thanks,
Slim
« Last Edit: Mar 30th, 2005 at 5:46pm by Slim »  
Back to top
 
IP Logged
 
TheSkier
Junior Member
**
Offline



Posts: 94
Location: Sakhalin
Joined: Jul 9th, 2004
Gender: Male
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #204 - Mar 30th, 2005 at 10:25pm
Print Post  
yes, it will work
actually this is what we all doing with original mods from time-to-time! Wink
  
Back to top
WWW  
IP Logged
 
PokerTony
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 8
Joined: Jan 28th, 2005
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #205 - Jul 7th, 2005 at 9:59pm
Print Post  
YAbb gold 1.3 Win2K Server

Only mods I have so far are new calendar, smtp mail mod, and improved im mod.

When I apply this mod with Board Mod, it appears to go ok. I don't get any error messages. But when I go to my forum I don't have the option of uploading an avatar. There's nothing in the preferences or the user profile about it. What am I doing wrong?
  
Back to top
 
IP Logged
 
masterflagg
New Member
*
Offline


Ich liebe der YaBB!

Posts: 7
Location: Duluth
Joined: Feb 19th, 2003
Gender: Male
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #206 - Aug 5th, 2005 at 4:32pm
Print Post  
Ok,

I read this entire post and did not see a related entry, so here goes:

Mod is working correctly I believe, the problem is that when I get pushed back to the profile page, the

"(no pic)" is selected in the avatar selection box, and I think that this setting is overriding my checkbox that I have my own avatar...

Any thought about this?

Info about my board:

yabb 1.4

Other installed mods:

YaBB 1 Gold - SP 1.4\advanced_post_stats_v14_sp13_sp14.mod
YaBB 1 Gold - SP 1.4\amm_sp131_15.mod
YaBB 1 Gold - SP 1.4\goto_last_post_sp13_sp14.mod
YaBB 1 Gold - SP 1.4\mbc2_sp14.mod
YaBB 1 Gold - SP 1.4\news_script_v20_sp13_sp14.mod
YaBB 1 Gold - SP 1.4\smart_resize_SP14.mod
YaBB 1 Gold - SP 1.4\print_who_is_online_v11_sp13_sp14.mod
YaBB 1 Gold - SP 1.4\MysteryPoster_1_1_SP_1_4.mod
YaBB 1 Gold - SP 1.4\menuitems_v_1_5_SP_1_3_and_1_4.mod
YaBB 1 Gold - SP 1.4\YaBB_1Gold_SP1.4_Sessions_Patch.mod
YaBB 1 Gold - SP 1.4\yams_502_amm_sp13.mod
YaBB 1 Gold - SP 1.4\MemberMap_3_sp131_14.mod
YaBB 1 Gold - SP 1.4\Polls_3_SP132_SP14.mod
YaBB 1 Gold - SP 1.4\yams_502_map_addon.mod
YaBB 1 Gold - SP 1.4\mbco2_polls_patch.mod
YaBB 1 Gold - SP 1.4\uplava15beta.mod

Any help would be greatly appreciated.


I have also attached my profile.pl file, which I think is the problem...
  

masterflaggProfile.zip ( 13 KB | Downloads )
Back to top
WWW  
IP Logged
 
PokerTony
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 8
Joined: Jan 28th, 2005
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #207 - May 15th, 2006 at 4:12pm
Print Post  
I have this mod installed on my yabb 1.3.1 board. I can enable uploading and when I attempt to upload an image it appears to work. But the image always shows up as a red X. When I look in the images/personal folder I can see the uploaded image file there , but it is 0 kb in size.

Any ideas?
  
Back to top
 
IP Logged
 
Stephan Reich
New Member
*
Offline


Ich mag Eintracht Frankfurt

Posts: 43
Location: Frankfurt am Main
Joined: Jul 14th, 2006
Gender: Male
Re: Upload Avatar Mod 1.5 Beta SP1.31
Reply #208 - Jul 14th, 2006 at 4:07pm
Print Post  
Hello,

I have this mod installed at YaBB 1 Gold SP 1.4 and I have the same problem like PokerTony.

Is this a problem of the mod or can it be a problem of the webserver too?

Bis dann...

Stephan
  

Erbarme Shocked. Zu spät, die Hesse komme Grin!
My YaBB-Version: YaBB 2.1 (10 - 22 h)
Back to top
WWWAIM  
IP Logged
 
Page Index Toggle Pages: 1 ... 12 13 [14] 
Send TopicPrint