wicher hat geschrieben:UploadPic >> http://www.beehave.de/forum/viewforum.php?f=17
Super!
Vielen dank.
wicher hat geschrieben:UploadPic >> http://www.beehave.de/forum/viewforum.php?f=17
wicher hat geschrieben:I took the liberty to write the changes down that i made at my forum.
These changes make it so that the pics uploaded to the lexicon are saved in a different directorie then the one used for upoading to normal postings.
I hope you'll apreciate it.
- Code: Alles auswählen
#######################################################################
# Lexicon 2.0.4 Compatible to UpLoadPic 1.3.1a
# Original idea from: Son Goku / Son
# This is not realy a mod, its just a handy thing.
# These changes result in:
# Pics uploaded to the lexicon are saved in a new directorie called PixLex
# Pics uploaded to the lexicon are not deleted when deleting not used pics from the UpLoadPic ACP.
#######################################################################
#
# OPEN:
#
admin/admin_lexicon_edit.php
#
# FIND:
#
$admin_lexicon_action_url = append_sid("admin_lexicon_edit.$phpEx?mode=new_keyword_confirms");
$mode = '';
$template->assign_vars(array(
#
# AFTER, ADD:
#
'S_UPLOADPIC' => append_sid($phpbb_root_path.'uploadpiclex.'.$phpEx.'?inputname=explanation&formname=post'),
'L_UPLOADPIC' => $lang['UploadPic'],
'L_UPHELP' => $lang['UP_Help'],
#
# FIND:
#
$admin_lexicon_action_url = append_sid("admin_lexicon_edit.$phpEx?id=$keyword_id&mode=edit_confirms");
$mode = '';
$template->assign_vars(array(
#
# AFTER, ADD:
#
'S_UPLOADPIC' => append_sid($phpbb_root_path.'uploadpiclex.'.$phpEx.'?inputname=explanation&formname=post'),
'L_UPLOADPIC' => $lang['UploadPic'],
'L_UPHELP' => $lang['UP_Help'],
#
# FIND:
#
'L_FONT_HUGE' => $lang['font_huge'],
#
# AFTER, ADD:
#
'S_UPLOADPIC' => append_sid($phpbb_root_path.'uploadpiclex.'.$phpEx.'?inputname=explanation&formname=post'),
'L_UPLOADPIC' => $lang['UploadPic'],
'L_UPHELP' => $lang['UP_Help'],
#
# OPEN:
#
templates/subSilver/admin_lexicon_edit.tpl
#
# FIND:
#
f_help = "{L_BBCODE_F_HELP}";
#
# AFTER, ADD:
#
up_help = "{L_UPHELP}";
#
# FIND:
#
<tr>
<td><span class="gen"><textarea name="explanation" rows="22" cols="35" wrap="virtual" style="width:450px" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{EXPLANATION_BODY}</textarea></span></td>
</tr>
#
# BEFORE, ADD:
#
<tr>
<td colspan="9">
<strong><a href="{S_UPLOADPIC}" onclick="window.open('{S_UPLOADPIC}', '_uploadpic', 'height=400,resizable=yes,scrollbars=yes,width=470');return false;" target="_uploadpic" class="nav" onMouseOver="helpline('up')">{L_UPLOADPIC}</a> <br /></strong>
</td>
</tr>
#
# OPEN:
#
uploadpic.php
#
# SAVE AS:
#
uploadpiclex.php
#
# OPEN:
#
uploadpiclex.php
#
# FIND:
#
require($phpbb_root_path . 'includes/uploadpic_functions.'.$phpEx);
#
# REPLACE WITH:
#
require($phpbb_root_path . 'includes/uploadpiclex_functions.'.$phpEx);
#
# FIND:
#
$gen_simple_header = TRUE;
#
# AFTER, ADD:
#
$up_picpath = $board_config['script_path'].'PixLex/';
#
# OPEN:
#
includes/uploadpic_functions.php
#
# SAVE AS:
#
includes/uploadpiclex_functions.php
#
# OPEN:
#
includes/uploadpiclex_functions.php
#
# FIND:
#
$up_picdir = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['uploadpic_picdir']));
#
# REPLACE WITH:
#
$up_picdir = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'].'PixLex/'));
#
# CREATE FOLDER
#
PixLex
#
# CHMOD
#
chmod PixLex 777
#
# EOHandyThing
#
Mitglieder in diesem Forum: 0 Mitglieder und 6 Gäste