Hallo,
ist es möglich auch Bilder in das Lexicon v2.0.4 einzufügen? Das wäre echt super!
## Snippet
##
##############################################################
## Title: Lexicon v2.0.4 with UploadPic 1.3.1a
## Author: SonGoku < info@ceiko.de > (SonGoku) http://www.ceiko.de
## Description: kombiniert Lexicon v2.0.4 mit UploadPic_1_3_1a
## Version: 1.0.0
##
## Original Version Lexicon v2.0.4 by http://www.amigalink.de
## Original Version UploadPic 1.3.1a by http://www.beehave.de
##
## Installation Level: easy
## Installation Time: 10 Minutes
## Files To Edit: 2
##
## admin/admin_lexicon_edit.php
## templates/subSilver/admin/admin_lexicon_edit.tpl
##
##
## getestet mit phpBB 2.0.19
##
##
##############################################################
## bevor Du den Mod einbaust, mach ein Backup von den zu editerenden Dateien
##############################################################
#
# Wichtiger Hinweis
#
# vorraussetzung ist natürlich das beide Mods"Lexicon v2.0.4 und UploadPic 1.3.1a" installiert sind.
#
# die Funktion beim UploadPic 1.3.1a "unbenutzte Bilder löschen" sollte man nicht verwenden wenn dieser Snippet hier eingebaut wird.
# Es werden dann im Lexicon alle Bilder gelöscht die hinzugefügt wurden .
#
# Bilder Zensieren kann man im im Lexicon v2.0.4 nicht da dieses übern ACP benutzt wird und da kommt ja nicht jeder rein.
#
#
#
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_lexicon_edit.php
#
#-----[ FIND ]------------------------------------------
#
break;
} // overview end
#
#-----[ AFTER, ADD ]------------------------------------------
#
// create switch for UploadPic
if (($userdata['user_allow_uploadpic'] == 1) && ($userdata['user_posts'] >= intval($board_config['uploadpic_minposts'])))
#
#-----[ FIND ]------------------------------------------
#
'L_FONT_HUGE' => $lang['font_huge'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'S_UPLOADPIC' => append_sid($phpbb_root_path.'uploadpic.'.$phpEx.'?inputname=explanation&formname=post'),
'L_UPLOADPIC' => (file_exists($phpbb_root_path.$images['uploadpic_button'])) ? '<img src="'.$phpbb_root_path.$images['uploadpic_button'].'" name="upbutton" alt="'.$lang['UploadPic'].'" title="'.$lang['UploadPic'].'" border="0">' : $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 ]------------------------------------------
#
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<td><span class="genmed">
<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>
</span></td>
#
#-----[ FIND ]------------------------------------------
#
<td colspan="9">
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td colspan="10">
#
#
danach die geänderten Dateien hochladen und die Originalen überschreiben.
Höchstens vielleicht um das, von dir angesprochene, "unbenutzte Bilder löschen" Problem zu lösen.OK wer Proggen kann der könnte es evt. besser lösen.
#######################################################################
# 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
#
AmigaLink hat geschrieben:Zur Zeit gibt es diesbezüglich noch nichts. Zumindest ist mir nichts bekannt.
Bei oxpus wurde auch bereits gefragt ob bzw. wie man den Upload Pic 1.3.1a integrieren kann. Aber leider haben weder oxpus noch ich Erfahrungen mit diesem MOD.
Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste