https://www.icyphoenix.com/viewtopic.php?f=26&t=1034&p=10304#p10304
-----------------------------------
Dogs and things
Sun 18 Mar, 2007 13:38

Re: Image Upload While Posting
-----------------------------------
Brillant Addon, it works perfectly,

This thing makes it so easy to post an image. :P 

I had to adjust the script just a little, making these changes:
[code linenumbers=false]#-----[ OPEN ]------------------------------------------
#
posting_upload_mod_001.txt
#
#-----[ FIND ]------------------------------------------
#
if( isset($HTTP_POST_VARS['user_id']) )
#
#-----[ REPLACE WITH ]------------------------------------------
#
if( isset($_POST['user_id']) )
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 

[/code]
To get the MOD to work in private messages I added:
[code linenumbers=false]# 
#-----[ OPEN ]------------------------------------------ 
# 
privmsg.php 
# 
#-----[ FIND ]------------------------------------------ 
#
	'L_OPTIONS' => $lang['Options'],
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
// Start ewelin Posting Upload Mod
	'L_POSTING_UPLOAD' => append_sid("album_upload.$phpEx?user_id=" . $userdata['user_id'] ."&mode=forum_upload"),
// End ewelin Posting Upload Mod[/code]



To see the full image in the post instead of thumbnails I changed:
[code linenumbers=false]#-----[ OPEN ]------------------------------------------
#
posting_upload_mod_001.txt
#
#-----[ FIND ]------------------------------------------
#
			($mode == 'forum_upload') ? $bbcode_output .= "n[albumimg]" . $new_pic_id['pic_id'] . "[/albumimg]" : '';

#
#-----[ REPLACE WITH ]------------------------------------------
#
			($mode == 'forum_upload') ? $bbcode_output .= "n[fullalbumimg]" . $new_pic_id['pic_id'] . "[/fullalbumimg]" : '';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 

[/code]
The first change is necessary and the other two are optional.

Thanks a lot to Ewelin for writing this MOD. :thanks:


