|
Page 1 of 2
|
krisbfunk 
Joined: December 2006
Posts: 95
Location:
|
 FAP CUSTOMIZATION - Image Upload While Posting
Didn't want to lose track of this, I find it a pretty useful mod for linking new photos in a discussion without having to go to the album to upload first. Perhaps someone could pull it all over from both sites? It adds an 'upload pic' link to posting_body.tpl, when clicked it opens an album upload form allowing you to upload to permissable album categories. Once uploaded 'albumimg' tags are auto inserted into the post.
Original Posting of Mod:
http://www.mightygorgon.com/viewtop...d+while+posting
Author updates to Mod:
http://www.welsolutions.com/viewtopic.php?t=10
|
#1 Sun 28 Jan, 2007 20:47 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
lefty74 
Joined: January 2007
Posts: 137
|
 Re: Image Upload While Posting
very nice, I had something similar that came already 'preinstalled' with my template FIBlack, however, not linked to FAP.
|
#2 Sun 28 Jan, 2007 21:35 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: Image Upload While Posting
Perhaps someone could pull it all over from both sites?
Be my guest.
|
#3 Mon 29 Jan, 2007 20:41 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
 Re: Image Upload While Posting
Brillant Addon, it works perfectly,
This thing makes it so easy to post an image.
I had to adjust the script just a little, making these changes:
#-----[ 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 ]------------------------------------------
#
To get the MOD to work in private messages I added:
#
#-----[ 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
To see the full image in the post instead of thumbnails I changed:
#-----[ 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 ]------------------------------------------
#
The first change is necessary and the other two are optional.
Thanks a lot to Ewelin for writing this MOD.
|
#4 Sun 18 Mar, 2007 13:38 |
|
felix968 
Joined: February 2007
Posts: 122
Location:
|
 Re: Image Upload While Posting
In this MOD ewlin says:
#-----[ FIND ]------------------------------------------
#
if( isset($HTTP_POST_VARS['user_id']) )
#
#-----[ BEFORE, ADD ]------------------------------------------
#
I checked album_upload.php and there is indeed no instance of a HTTP_POST_VARS, only HTTP_POST_FILES.
My FAP version is 1.4.1
|
#5 Tue 20 Mar, 2007 09:47 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
 Re: Image Upload While Posting
In this MOD ewlin says:
#-----[ FIND ]------------------------------------------
#
if( isset($HTTP_POST_VARS['user_id']) )
#
#-----[ BEFORE, ADD ]------------------------------------------
#
I checked album_upload.php and there is indeed no instance of a HTTP_POST_VARS, only HTTP_POST_FILES.
My FAP version is 1.4.1
That´s why ewelin recommended to make this change in his install.txt,
#-----[ 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 ]------------------------------------------
#
|
#6 Thu 22 Mar, 2007 19:10 |
|
HammerBe 
Joined: April 2007
Posts: 17
Location:  berlin
|
 Re: Image Upload While Posting
I have not find this
#
#-----[ OPEN ]------------------------------------------
#
album_upload.php
#
#-----[ FIND ]------------------------------------------
#
if( isset($HTTP_POST_VARS['user_id']) )
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Start ewelin Posting Upload Mod
if( isset($HTTP_POST_VARS['mode']) )
{
$mode = intval($HTTP_POST_VARS['mode']);
}
elseif( isset($HTTP_GET_VARS['mode']) )
{
$mode = intval($HTTP_GET_VARS['mode']);
}
// End ewelin Posting Upload Mod
#
#-----[ FIND ]------------------------------------------
|
#7 Mon 16 Apr, 2007 22:41 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
 Re: Image Upload While Posting
Read my last post before yours,
You´re asking the same question felix968 asked and I´ve explained this point twice allready, in this six-post topic. :bb_attention:
It says,
Don´t look for if( isset($HTTP_POST_VARS['user_id']) ) look for if( isset($_POST['user_id']) ) instead.
|
#8 Tue 17 Apr, 2007 02:29 |
|
HammerBe 
Joined: April 2007
Posts: 17
Location:  berlin
|
 Re: Image Upload While Posting
Thanks
I have problem, if I look for according to if if ($album_config['switch_nuffload'] == 1) have I with me 6 piece-take I first get I error message.
Parse error: parse error, unexpected '}' in /srv/www/vhosts/myhome/httpdocs/album_upload.php on line 39
Line 39 is This }
Thanks
|
#9 Tue 17 Apr, 2007 16:04 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
 Re: Image Upload While Posting
You must edit the last instance of that piece of code, on or near line 1440.
Where you went wrong is that you started to look from the beginning but you should start looking from the place where you were in the album_upload.php after ahving made the last edit before this one that is giving you trouble.
You understand what I try to explain?
|
#10 Tue 17 Apr, 2007 21:40 |
|
felix968 
Joined: February 2007
Posts: 122
Location:
|
 Re: Image Upload While Posting
Read my last post before yours,
You´re asking the same question felix968 asked and I´ve explained this point twice allready, in this six-post topic. :bb_attention:
It says,
Don´t look for if( isset($HTTP_POST_VARS['user_id']) ) look for if( isset($_POST['user_id']) ) instead.
I've done all, but when i modify posting_body.tpl and i click on new topic, I've a page without topic ...only the page with menu link and other in board, but no new topic: does it work with phpbb 2.0.21 and FAP 1.4.1?
|
#11 Tue 17 Apr, 2007 23:46 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
 Re: Image Upload While Posting
I've done all, but when i modify posting_body.tpl and i click on new topic, I've a page without topic ...only the page with menu link and other in board, but no new topic: does it work with phpbb 2.0.21 and FAP 1.4.1?
Tell us exactly what version of phpbb you are using, what template and exactly what edits you made to posting_body.tpl. Without this info nobody will be able to tell you anything, except for saying that you must have made a mistake somewhere and maybe even more then one.
|
#12 Wed 18 Apr, 2007 08:29 |
|
felix968 
Joined: February 2007
Posts: 122
Location:
|
 Re: Image Upload While Posting
I've done all, but when i modify posting_body.tpl and i click on new topic, I've a page without topic ...only the page with menu link and other in board, but no new topic: does it work with phpbb 2.0.21 and FAP 1.4.1?
Tell us exactly what version of phpbb you are using, what template and exactly what edits you made to posting_body.tpl. Without this info nobody will be able to tell you anything, except for saying that you must have made a mistake somewhere and maybe even more then one.
Sorry, in my post before i've written I have phpbb 2.0.21 ad FAP 1.4.1
Anywhere, i use subsilver template and here is my posting_body.tpl:
<!-- mod : post icon -->
<script language="javascript" type="text/javascript" src="mods/bbcode_box/bbcode_box.js"></script>
<!-- BEGIN privmsg_extensions -->
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
<tr>
<td valign="top" align="center" width="100%">
<table height="40" cellspacing="2" cellpadding="2" border="0">
<tr valign="middle">
<td>{INBOX_IMG}</td>
<td><span class="cattitle">{INBOX_LINK} </span></td>
<td>{SENTBOX_IMG}</td>
<td><span class="cattitle">{SENTBOX_LINK} </span></td>
<td>{OUTBOX_IMG}</td>
<td><span class="cattitle">{OUTBOX_LINK} </span></td>
<td>{SAVEBOX_IMG}</td>
<td><span class="cattitle">{SAVEBOX_LINK} </span></td>
</tr>
</table>
</td>
</tr>
</table>
<br clear="all" />
<!-- END privmsg_extensions -->
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>
{POST_PREVIEW_BOX}
{ERROR_BOX}
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>
<!-- BEGIN switch_not_privmsg -->
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
<!-- END switch_not_privmsg -->
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<tr>
<th class="thHead" colspan="2" height="25"><b>{L_POST_A}</b></th>
</tr>
<!-- BEGIN switch_username_select -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" /></span></td>
</tr>
<!-- END switch_username_select -->
<!-- BEGIN switch_privmsg -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td>
</tr>
<!-- END switch_privmsg -->
<tr>
<td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />
</span> </td>
</tr>
<!-- BEGIN switch_icon_checkbox -->
<tr>
<td valign="top" class="row1"><span class="gen"><b>{L_ICON_TITLE}</b></td>
<td class="row2">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<!-- BEGIN row -->
<tr>
<td nowrap="nowrap">
<span class="gen">
<!-- BEGIN cell -->
<input type="radio" name="post_icon" value="{switch_icon_checkbox.row.cell.ICON_ID}"{switch_icon_checkbox.row.cell.ICON_CHECKED}> {switch_icon_checkbox.row.cell.ICON_IMG}
<!-- END cell -->
</span>
</td>
</tr>
<!-- END row -->
</table>
</td>
</tr>
<!-- END switch_icon_checkbox -->
<tr>
<td class="row1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td><span class="gen"><b>{L_MESSAGE_BODY}</b></span> </td>
</tr>
<tr>
<td valign="middle" align="center"> <br />
<table width="100" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b>{L_EMOTICONS}</b></td>
</tr>
<!-- BEGIN smilies_row -->
<tr align="center" valign="middle">
<!-- BEGIN smilies_col -->
<td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td>
</tr>
<!-- END switch_smilies_extra -->
</table>
</td>
</tr>
</table>
</td>
<!--
//====================================================================== |
//==== Start Advanced BBCode Box MOD =================================== |
//==== v5.1.0 ========================================================== |
//====
-->
<td class="row2" valign="top"><span class="gen"><span class="genmed"></span>
<table id="posttable" width="100%" border="1" bordercolor="#C0C0C0" style="border-collapse: collapse;" cellspacing="0" cellpadding="0" valign="top">
<tr align="right" valign="middle">
<td valign="center">
<table width="100%" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td background="mods/bbcode_box/images/bg.gif" valign="middle"><img src="mods/bbcode_box/images/dots.gif" style="padding-left: 4px;"></td>
<td background="mods/bbcode_box/images/bg.gif">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="left" width="70%">
<select style="height: 20px;" name="ft" onChange="BBCft()" onMouseOver="helpline('ft')">
<option style="font-weight : bold;" selected="selected">Font type</option>
<option value="Arial">Default font</option>
<option style="color:black; background-color: #FFFFFF; font-family: Arial;" value="Arial" class="genmed">Arial</option>
<option style="color:black; background-color: #FFFFFF; font-family: Arial Black;" value="Arial Black" class="genmed">Arial Black</option>
<option style="color:black; background-color: #FFFFFF; font-family: Century Gothic;" value="Century Gothic" class="genmed">Century Gothic</option>
<option style="color:black; background-color: #FFFFFF; font-family: Comic Sans MS;" value="Comic Sans MS" class="genmed">Comic Sans MS</option>
<option style="color:black; background-color: #FFFFFF; font-family: Courier New;" value="Courier New" class="genmed">Courier New</option>
<option style="color:black; background-color: #FFFFFF; font-family: Georgia;" value="Georgia" class="genmed">Georgia</option>
<option style="color:black; background-color: #FFFFFF; font-family: Lucida Console;"value="Lucida Console">Lucida Console</option>
<option style="color:black; background-color: #FFFFFF; font-family: Microsoft Sans Serif;" value="Microsoft Sans Serif" class="genmed">Microsoft Sans Serif</option>
<option style="color:black; background-color: #FFFFFF; font-family: Symbol;" value="Symbol" class="genmed">Symbol</option>
<option style="color:black; background-color: #FFFFFF; font-family: Tahoma;" value="Tahoma" class="genmed">Tahoma</option>
<option style="color:black; background-color: #FFFFFF; font-family: Trebuchet;" value="Trebuchet" class="genmed">Trebuchet</option>
<option style="color:black; background-color: #FFFFFF; font-family: Times New Roman;" value="Times New Roman" class="genmed">Times New Roman</option>
<option style="color:black; background-color: #FFFFFF; font-family: Verdana;" value="Verdana" class="genmed">Verdana</option>
</select>
<select style="height: 20px;" name="fs" onChange="BBCfs()" onMouseOver="helpline('fs')">
<option style="font-weight : bold;" selected="selected">Font Size</option>
<option style="color:black; font-size: 8;" value="8" class="genmed">{L_FONT_TINY}</option>
<option style="color:black; font-size: 10;" value="10" class="genmed">{L_FONT_SMALL}</option>
<option style="color:black; font-size: 12;" value="12" class="genmed">{L_FONT_NORMAL}</option>
<option style="color:black; font-size: 18;" value="18" class="genmed">{L_FONT_LARGE}</option>
<option style="color:black; font-size: 24;" value="24" class="genmed">{L_FONT_HUGE}</option>
</select>
<select style="height: 20px;" name="fc" onChange="BBCfc()" onMouseOver="helpline('fc')">
<option style="font-weight : bold;" selected>Font Color</option>
<option style="color:black; value="{T_FONTCOLOR1}" value="{T_FONTCOLOR1}">{L_COLOR_DEFAULT}</option>
<option value="darkred">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select>
</td>
<td align="right" width="30%"><a href="http://hvmdesign.com/" class="gensmall" title="BBCode Box MOD - by Disturbed One - www.HVMDesign.com" target="blank">Advanced BBCode Box v5.1.0</a></td>
</tr>
</table>
</td>
</tr>
<tr height="28">
<td background="mods/bbcode_box/images/bg.gif" valign="middle"><img src="mods/bbcode_box/images/dots.gif" style="padding-left: 4px;"></td>
<td background="mods/bbcode_box/images/bg.gif" valign="middle">
<img border="0" src="mods/bbcode_box/images/justify.gif" class="postimage" name="justify" type="image" onClick="BBCjustify()" onMouseOver="helpline('justify')" style="border-style: outset; border-width: 1" alt="justify"><img border="0" src="mods/bbcode_box/images/right.gif" name="right" type="image" onClick="BBCright()" onMouseOver="helpline('right')" class="postimage" alt="right"><img border="0" src="mods/bbcode_box/images/center.gif" name="center" type="image" onClick="BBCcenter()" onMouseOver="helpline('center')" class="postimage" alt="center"><img border="0" src="mods/bbcode_box/images/left.gif" name="left" type="image" onClick="BBCleft()" onMouseOver="helpline('left')" class="postimage" alt="left"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/sup.gif" class="postimage" name="supscript" type="image" onClick="BBCsup()" onMouseOver="helpline('sup')" alt="" /><img border="0" src="mods/bbcode_box/images/sub.gif" name="subs" class="postimage" type="image" onClick="BBCsub()" onMouseOver="helpline('sub')" alt="" /><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/bold.gif" name="bold" type="image" onClick="BBCbold()" onMouseOver="helpline('b')" class="postimage" alt="bold"><img border="0" src="mods/bbcode_box/images/italic.gif" name="italic" type="image" onClick="BBCitalic()" onMouseOver="helpline('i')" class="postimage" alt="italic"><img border="0" src="mods/bbcode_box/images/under.gif" name="under" type="image" onClick="BBCunder()" onMouseOver="helpline('u')" class="postimage" alt="under line"><img border="0" src="mods/bbcode_box/images/strike.gif" class="postimage" name="strik" type="image" onClick="BBCstrike()" onMouseOver="helpline('strike')" alt="" /><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/fade.gif" name="fade" type="image" onClick="BBCfade()" onMouseOver="helpline('fade')" class="postimage" alt="fade"><img border="0" src="mods/bbcode_box/images/grad.gif" name="grad" type="image" onClick="BBCgrad()" onMouseOver="helpline('grad')" class="postimage" alt="gradient"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/rtl.gif" name="dirrtl" type="image" onClick="BBCdir('rtl')" onMouseOver="helpline('rtl')" class="postimage" alt="Right to Left"><img border="0" src="mods/bbcode_box/images/ltr.gif" name="dirltr" type="image" onClick="BBCdir('ltr')" onMouseOver="helpline('ltr')" class="postimage" alt="Left to Right"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/marqd.gif" name="marqd" type="image" onClick="BBCmarqd()" onMouseOver="helpline('marqd')" class="postimage" alt="Marque to down"><img border="0" src="mods/bbcode_box/images/marqu.gif" name="marqu" type="image" onClick="BBCmarqu()" onMouseOver="helpline('marqu')" class="postimage" alt="Marque to up"><img border="0" src="mods/bbcode_box/images/marql.gif" name="marql" type="image" onClick="BBCmarql()" onMouseOver="helpline('marql')" class="postimage" alt="Marque to left"><img border="0" src="mods/bbcode_box/images/marqr.gif" name="marqr" type="image" onClick="BBCmarqr()" onMouseOver="helpline('marqr')" class="postimage" alt="Marque to right">
</td>
</tr>
<tr height="28">
<td background="mods/bbcode_box/images/bg.gif" valign="middle"><img src="mods/bbcode_box/images/dots.gif" style="padding-left: 4px;"></td>
<td background="mods/bbcode_box/images/bg.gif" valign="middle">
<img border="0" src="mods/bbcode_box/images/code.gif" name="code" type="image" onClick="BBCcode()" onMouseOver="helpline('code')" class="postimage" alt="Code"><img border="0" src="mods/bbcode_box/images/quote.gif" name="quote" type="image" onClick="BBCquote()" onMouseOver="helpline('quote')" class="postimage" alt="Quote"><img border="0" src="mods/bbcode_box/images/spoil.gif" class="postimage" name="spoil" type="image" onClick="BBCspoil()" onMouseOver="helpline('spoil')" alt="" /><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/url.gif" name="url" type="image" onClick="BBCurl()" onMouseOver="helpline('url')" class="postimage" alt="URL"><img border="0" src="mods/bbcode_box/images/email.gif" name="email" type="image" onClick="BBCmail()" onMouseOver="helpline('mail')" class="postimage" alt="Email"><img border="0" src="mods/bbcode_box/images/web.gif" name="web" type="image" onClick="BBCweb()" onMouseOver="helpline('web')" class="postimage" alt="Web Page"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="20" border="0" alt=""><img border="0" src="mods/bbcode_box/images/img.gif" name="img" type="image" onClick="BBCimg()" onMouseOver="helpline('img')" class="postimage" alt="Image"><img border="0" src="mods/bbcode_box/images/flash.gif" name="flash" type="image" onClick="BBCflash()" onMouseOver="helpline('flash')" class="postimage" alt="Flash"><img border="0" src="mods/bbcode_box/images/video.gif" name="video" type="image" onClick="BBCvideo()" onMouseOver="helpline('video')" class="postimage" alt="Video"><img border="0" src="mods/bbcode_box/images/sound.gif" name="stream" type="image" onClick="BBCstream()" onMouseOver="helpline('stream')" class="postimage" alt="Stream"><img border="0" src="mods/bbcode_box/images/ram.gif" name="ram" type="image" onClick="BBCram()" onMouseOver="helpline('ram')" class="postimage" alt="Real Media"><img border="0" src="mods/bbcode_box/images/googlevid.gif" name="GVideo" type="image" onClick="BBCGVideo()" onMouseOver="helpline('googlevid')" class="postimage" alt="GoogleVid"><img border="0" src="mods/bbcode_box/images/youtube.gif" name="youtube" type="image" onClick="BBCyoutube()" onMouseOver="helpline('youtube')" class="postimage" alt="Youtube"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/list.gif" name="listdf" type="image" onClick="BBClist()" onMouseOver="helpline('list')" class="postimage" alt="List" /><img border="0" src="mods/bbcode_box/images/hr.gif" name="hr" type="image" onClick="BBChr()" onMouseOver="helpline('hr')" class="postimage" alt="H-Line"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/plain.gif" name="plain" type="image" onClick="BBCplain()" onMouseOver="helpline('plain')" class="postimage" alt="Remove BBcode">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="9"><span class="gensmall">
<input type="text" name="helpbox" size="45" maxlength="100" style="width:100%; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /></span>
</td>
</tr>
<tr>
<td colspan="9">
<span class="gen"><textarea name="message" rows="15" cols="35" wrap="virtual" style="width:100%; border: 0px;" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea></span>
</td>
</tr>
</table>
</span></td>
<!--
//====
//==== End Advanced BBCode Box MOD ==================================== |
//===================================================================== |
-->
</tr>
<tr>
<td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
<td class="row2"><span class="gen"> </span>
<table cellspacing="0" cellpadding="1" border="0">
<!-- begin imageshack mod -->
<iframe src="http://www.imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="100"></iframe>
<!-- end imageshack mod -->
<!-- BEGIN switch_html_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_HTML}</span></td>
</tr>
<!-- END switch_html_checkbox -->
<!-- BEGIN switch_bbcode_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_BBCODE}</span></td>
</tr>
<!-- END switch_bbcode_checkbox -->
<!-- BEGIN switch_smilies_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_SMILIES}</span></td>
</tr>
<!-- END switch_smilies_checkbox -->
<!-- BEGIN switch_signature_checkbox -->
<tr>
<td>
<input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />
</td>
<td><span class="gen">{L_ATTACH_SIGNATURE}</span></td>
</tr>
<!-- END switch_signature_checkbox -->
<!-- BEGIN switch_notify_checkbox -->
<tr>
<td>
<input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
</td>
<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
</tr>
<!-- END switch_notify_checkbox -->
<!-- BEGIN switch_delete_checkbox -->
<tr>
<td>
<input type="checkbox" name="delete" />
</td>
<td><span class="gen">{L_DELETE_POST}</span></td>
</tr>
<!-- END switch_delete_checkbox -->
<!-- BEGIN switch_type_toggle -->
<tr>
<td></td>
<td><span class="gen">{S_TYPE_TOGGLE}</span></td>
</tr>
<!-- END switch_type_toggle -->
<a href="javascript:void(0);" onclick="window.open('{L_POSTING_UPLOAD}', '_imageupload', 'resizable=yes,width=800,height=450');return false;">Upload to our Photo Album</a>
</table>
</td>
</tr>
{ATTACHBOX}
{POLLBOX}
<tr>
<td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>
</tr>
</table>
<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
<tr>
<td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>
</form>
<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td valign="top" align="right">{JUMPBOX}</td>
</tr>
</table>
{TOPIC_REVIEW_BOX}OPEN [b][/b]
FIND
[codeblock][/codeblock]
REPLACE WITH
I attach here the others modified files (album_upload.php, posting.php, templates/subSilver/album_upload_body.tpl), to hpe...
Description: |
Modified files for ewelin mod |
 Download |
Filename: |
ewelin_mod.zip |
Filesize: |
23.93 KB |
Downloaded: |
256 Time(s) |
|
#13 Wed 18 Apr, 2007 09:46 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
 Re: Image Upload While Posting
I don´t think the problem is in posting_body.tpl because the edit you made there seems to be correct. I put that file in a vanilla testboard I have and had a look, I get the posting page, with some errors because you have other MODs installed too, but I have been able to post a topic with your .tpl
I could see there´s a few mistakes you made in other edits, like this at the end of the file: OPEN [b][/b]
FIND
[codeblock][/codeblock]
REPLACE WITH
Seeing how bad your editing is I guess it´s quite likely you made mistakes in other files you edited.
Most likely it´s in posting.php, but I´m not going to check all your edits, check them yourselves.
|
#14 Wed 18 Apr, 2007 12:31 |
|
felix968 
Joined: February 2007
Posts: 122
Location:
|
 Re: Image Upload While Posting
I don´t think the problem is in posting_body.tpl because the edit you made there seems to be correct. I put that file in a vanilla testboard I have and had a look, I get the posting page, with some errors because you have other MODs installed too, but I have been able to post a topic with your .tpl
I could see there´s a few mistakes you made in other edits, like this at the end of the file: OPEN [b][/b]
FIND
[codeblock][/codeblock]
REPLACE WITH
Seeing how bad your editing is I guess it´s quite likely you made mistakes in other files you edited.
Most likely it´s in posting.php, but I´m not going to check all your edits, check them yourselves.
Sure it's as you said (but the error before -
FIND
REPLACE WITH[/code]
was attaching the file in this post), so I'm looking for mistakes, but I've another question about.
I'm installed ip_20070405_101111_rc and I've modifies same files for ewelin mod (The only mod I have)
Now I can see in posting.php ewelin link (upload to your album, see picture below):
and clicking on link open a new windows where setting attach file:
but, when I click on send, I've a blank page: below on the left of this windows there is "completed"
but i have no images in topic and album too!
|
#15 Wed 18 Apr, 2007 14:40 |
|
|
Page 1 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|