Bilder in Lexikoneinträge einfügen <- möglich ???

Forum_Lexicon_Desc

Beitragvon Hostmaster » 21. Feb 2007 16:14

wicher hat geschrieben:UploadPic >> http://www.beehave.de/forum/viewforum.php?f=17


Super!

Vielen dank.
Hostmaster
 
Beiträge: 22
Registriert: 25. Okt 2005 05:55

Beitragvon wicher » 21. Feb 2007 16:56

No thanks, glad to be of assistance
Benutzeravatar
wicher
User
 
Beiträge: 32
Registriert: 9. Feb 2006 01:11
Wohnort: Netherlands

Beitragvon volker » 29. Sep 2007 11:18

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>&nbsp;<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
#


habe das mal so eingebaut. die bilder werden aber nicht im ordner PixLex gespeichert sondern im userpix. :oops:

Zugefügt nach 4 Minute(n):

erledigt, habe die falsche datei bearbeitet :oops:
Gruß Volker
Fuchsienfreunde
volker
User
 
Beiträge: 65
Registriert: 13. Dez 2004 16:43

Beitragvon Ergonomic » 1. Okt 2007 20:41

Hallo

Wie ist das eigentlich wenn man das PimpmyAlbum mit dem Addon Bildpostin eingebaut hat?

Danke für die Info.

Gruss Ergonomic
Ergonomic
User
 
Beiträge: 40
Registriert: 22. Aug 2006 17:44
Wohnort: Münster

Beitragvon AmigaLink » 1. Okt 2007 21:14

Was macht das AddOn?
Stellt es einen BBCode zur Verfügung, mittels dem Album-Bilder im Forum gepostet werden können?
Wenn ja, dann kannst du diesen BBCode auch im Lexikon verwenden. :)
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon Holger » 9. Okt 2007 14:12

Wiecher, as far as I can see your integration will not work with UploadPic 1.3.4?
Holger
User
 
Beiträge: 48
Registriert: 18. Jan 2007 09:47

Beitragvon wicher » 9. Okt 2007 22:33

I dont know, i did not update anything regarding this lately.
Benutzeravatar
wicher
User
 
Beiträge: 32
Registriert: 9. Feb 2006 01:11
Wohnort: Netherlands

Vorherige

Zurück zu Lexicon v2



Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 13 Gäste

cron