[CH 2.1.6g] UploadPic 1.3.7

Seznam modifikací nainstalovaných na tomto fóru.
Topic
User avatar
leschek
Administrátor
Reactions:
Posts: 724
Joined: 23 Oct 2005 23:22
Tykání: Ano

[CH 2.1.6g] UploadPic 1.3.7

Unread post by leschek »

Upload Pic umožňuje přidat do příspěvků fotografie a obrázky. Děje se to tak, že se uploadnou na server, kde je nainstalované fórum. Při nahrávání obrázku se vytvoří bbcode, který se zkopíruje do příspěvku (v nové verzi stačí kliknout na odkaz).

Pokud je obrázek velký, tak bude zmenšen na velikost nastavenou v administraci nebo určenou uživatelem. Obrázky je možno otáčet.

V ACP je vidět obrázky, které jsou uploadnuty, a které se používají, takže je možno zabránit nahraní obrázku na váš server a jejich použití jinde.

Taky se dá nastavit, kdo může obrázky na server nahrávat.

Pokud by byl obrázek použit mimo vaše stránky, je nahrazen jiným obrázkem s vysvětlením, že to není to pravý ořechový.

Do obrázku je možno vložit vodoznak.

Mód se dá stáhnout tady.

Češtinu najdete zde

Instalace na CH trošku jiná než na vanilla phpBB a instalační soubor můžete najít na stránce s downloadama na tomto fóru.

Zatím se zdá, že všechno funguje, ale je možné, že se najdou nějaké chyby.

Anglickej FAQ můžete najít na stránkách autora modu.

Code: Select all

##############################################################
## MOD Title:   UploadPic
## MOD Author:  buegelfalte < N/A > ( B.Funke ) http://forum.beehave.de
## MOD Description:
##   UploadPic adds a link to the message-editor, which allows
##   the user to upload a picture (jpg/gif/png) and paste it
##   to the message (standard/align left/align right, align
##   requires the MOD "Left and Right IMG tags") with the
##   correct BBCode.
##   The uploaded image will be resized (if too big) to the
##   maximum size given by the admin or to a (lower) size
##   entered by the user.
##   Images can be rotated by 90/180/270 degrees.
##   Images with a filesize larger than a given limit (after
##   conversion) will be rejected.
##   The admin can control the uploaded pictures in the ACP
##   and delete images (one by one or all with one click)
##   not used in a message (any more).
##   (this is to prevent users from uploading images to
##    your forum to use them in *another* forum)
##   You can give each user permission to upload images (to
##   secure your webspace), or even allow guests to upload
##   (not recommended).
## MOD Version: 1.3.4
##
## Installation Level: Medium
##
## Installation Time: 15 Minutes
## Files To Edit:
##   posting.php
##   privmsg.php
##   viewonline.php
##   admin/admin_users.php
##   admin/index.php
##   includes/constants.php
##   language/lang_english/lang_admin.php
##   language/lang_english/lang_main.php
##   templates/subSilver/admin/user_edit_body.tpl
##   templates/subSilver/posting_body.tpl
##   templates/subSilver/subSilver.cfg
##
## Included Files:
##   uploadpic.php
##   admin/admin_uploadpic.php
##   admin/admin_uploadpic_config.php
##   admin/admin_uploadpic_groups.php
##   admin/admin_uploadpic_latest.php
##   admin/admin_uploadpic_users.php
##   includes/uploadpic_functions.php
##   install/install_uploadpic.php
##   templates/subSilver/admin/admin_uploadpic.tpl
##   templates/subSilver/admin/admin_uploadpic_config.tpl
##   templates/subSilver/admin/admin_uploadpic_group.tpl
##   templates/subSilver/admin/admin_uploadpic_groups.tpl
##   templates/subSilver/admin/admin_uploadpic_latest.tpl
##   templates/subSilver/admin/admin_uploadpic_user.tpl
##   templates/subSilver/admin/admin_uploadpic_users.tpl
##   templates/subSilver/uploadpic_body.tpl
##   templates/subSilver/uploadpic_gallery.tpl
##   templates/subSilver/uploadpic_posted.tpl
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## Developed/tested with:
##   phpBB 2.0.17 - 2.0.21
##
## Notes:
##   This MOD needs the GD-library to be installed with PHP.
##   (You'll see an error message if it's missing.)
##
## Warning:
##   Although several security-checks are performed, this MOD
##   can be used to fill your webspace with junk.
##   Use with caution & only grant permission to users you trust!
##
## Please make sure you have the latest version of UploadPic:
## http://www.beehave.de/forum/viewtopic.php?t=527
##
## If you have questions or bug-reports, please check phpbb.de/
## phpbb.com *first* for threads on your topic.
## Alternative adress (for suggestions also):
## http://www.beehave.de/forum/viewforum.php?f=17
## A FAQ-list can be found here:
## http://www.beehave.de/forum/viewtopic.php?t=521
##
## If you want to support my work, you can do so via
## PayPal: paypal@beehave.de
##
## This MOD will install using EasyMOD!
##
##############################################################
## MOD History:
##
##   2005-08-03 - Version 1.0.0 (release)
##   2005-11-17 - Version 1.1.2 (release)
##        - bugfix: GIF would always be renamed to JPG
##        - added support for UploadPic in private messages (PMs)
##        - enhanced doc-files
##        - install-script
##        - enhanced file-handling
##        - check for avatar-pics uploaded with UploadPic
##        - install-script
##        - moved configuration to database
##        - added "insert as link"
##   2005-11-19 - Version 1.1.2a (rerelease)
##        - added support for x-citrix-pjpeg (and other JPG-types)
##        - fixed bug that sometimes would occur with GZIP switched on
##        - minor changes to improve memory-usage
##   2005-11-22 - Version 1.1.3 (release)
##        - changed UploadPic to work with the Junior Admin MOD
##   2005-11-28 - Version 1.1.3a (internal)
##        - small changes
##   2005-12-15 - Version 1.2.0 (release)
##        - permissions can now be set for whole groups at once
##          (new entry in the ACP-menu)
##        - gallery: users can view their uploaded pictures and
##          insert them into posts (again)
##        - improved error-handling
##        - general makeover for MOD-DB-compliance
##   2005-12-22 - Version 1.2.1 (release)
##        - provided compatibility with virtual directories
##        - added "select all/none" for userlist
##        - set upload-permission for admin(s) on install
##   2005-12-26 - Version 1.2.2 (release)
##        - minor changes to increase security
##   2005-12-27 - Version 1.2.2a (rerelease)
##        - fixed bug (in IE) with datatype-check
##   2005-12-30 - Version 1.2.4 (release)
##        - added support for GD-libraries without GIF-support
##        - added editable textfield with user-infos to display
##          before upload
##   2006-01-05 - Version 1.2.5 (release)
##        - (another) general makeover for MOD-DB-compliance
##        - changes to support the use of UploadPic with the
##          "Quick Reply MOD" (or others)
##        - fixed errors caused by wrong config-inputs
##        - added link to insert the uploaded picture and switch
##          back to the form to upload another one (can be
##          switched off in the ACP)
##   2006-01-22 - Version 1.2.6 (release)
##        - fixed (one more) problem with wrong script_path
##          settings (should now work with all possibilities)
##        - "all/none"-checkbox is automatically checked if all
##          users are checked (for user- and group-list)
##        - moved optional information-text to language-files
##   2006-02-12 - Version 1.3.0 (release)
##        - rebuilt the uploading process to prevent errors
##          with "open_basedir"-restriction on some servers
##        - changed the install-script to support PostgreSQL
##          and MSSQL
##        - added swedish language (by Max)
##        - added dutch language (by FredSchenk)
##        - added german formal language
##        - changes to make UploadPic work with the "Knowledge
##          Base"
##        - view "latest x uploads" in ACP with a function
##          to "censor" inappropriate pictures
##        - added support for domain-forwarding and local
##          forums with changing IPs
##        - replaced the "UploadPic"-link with a button
##        - changes to make UploadPic work with "easyCMS"
##        - enhanced sorting-order: the newst pictures are now
##          always first in all lists
##        - you can set a minimum number of posts a user has
##          to write before he can upload (still only users
##          with permission !)
##        - UploadPic has its own page constant now, so you
##          can see who's currently upload in the ACP and
##          viewonline.php
##   2006-02-16 - Version 1.3.1 (release)
##        - UploadPic now checks if uploaded pictures are
##          used in the signature
##        - the UploadPic-Button is now included also for the
##          upload in PMs (instead of the link)
##        - fixed a small problem with username with spaces
##        - changed the install-script to run with certain
##          MODs which would cause errors
##        - after deleting the unused images a message is
##          displayed showing how many files have been deleted
##   2006-02-17 - Version 1.3.1a (rerelease)
##        - small bugfixes
##        - changed uploadpic.php so you can place an upload
##          button next to the signature-textarea (or any
##          other textarea with a different form name)
##   2006-04-09 - Version 1.3.2 (release)
##        - minor changes
##   2006-07-29 - Version 1.3.2 (rerelease)
##        - included french language files (by abpphpbb)
##        - included danish language files (by Stranger)
##   2006-11-14 - Version 1.3.3 (release)
##        - temporary files will be deleted after an
##          unsuccessful upload
##        - added support for Lexicon MOD
##        - guests can now be allowed to upload
##        - UploadPic can be deactivated for all users
##          (including the admin) in the ACP
##        - resizing of pictures can be switched off, an
##          error message is displayed and the picture is
##          rejected, if it is too large
##        - added pagination for "UploadPic users" and
##          "UploadPic latest"
##   2007-03-06 - Version 1.3.4 (release)
##        - resized pictures in "UploadPic latest"
##        - display pictures in picture-list per user
##        - added pagination in picture-list per user
##        - small bugfixes
##        - added arabic language files (by dr.3)
##        - added links to allow/disallow upload for all users
##          with one click
##        - linked username in "UploadPic latest" to all
##          pictures of that user
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
Last edited by leschek on 29 May 2008 01:01, edited 1 time in total.
User avatar
leschek
Administrátor
Reactions:
Posts: 724
Joined: 23 Oct 2005 23:22
Tykání: Ano

Unread post by leschek »

Aktualizoval jsem mod na verzi 1.3.7.
Pořád ještě platí odkaz na stažení v prvním příspěvku.
V nové verzi je možno skrýt Upload Pic ve zvolených fórech a v Galerii by mělo být stránkování.

Mód se nemusí znovu instalovat, stačí aktualizovat z verze 1.3.4 na 1.3.5 na 1.3.6 na 1.3.7

Jestli se vám to nechce dělat postupně tak jsem spojil aktualizace do jednoho souboru. Doufám, že jsem na nic nezapomněl.

Code: Select all

##############################################################
## MOD Title:   UploadPic (Update from 1.3.4 to v1.3.7)
## MOD Author:  buegelfalte < N/A > ( B.Funke ) http://forum.beehave.de
## MOD Description:
##   This is only the UPDATE-file ! For a complete installation
##   and version-history see uploadpic.txt
##
##   These instructions will update UploadPic from version
##   1.3.4 to 1.3.7
##
## MOD Version: 1.3.7
##
## Installation Level: Easy
##
## Installation Time: 5 Minutes
##
##############################################################
## Author Notes:
##
## If you want to support my work, you can do so via
## PayPal: paypal@beehave.de
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
#
copy root/includes/uploadpic_functions.php to includes/uploadpic_functions.php
copy root/admin/admin_uploadpic.php to admin/admin_uploadpic.php
copy root/admin/admin_uploadpic_config.php to admin/admin_uploadpic_config.php
copy root/uploadpic.php to uploadpic.php
copy root/templates/subSilver/uploadpic_gallery.tpl to templates/subSilver/uploadpic_gallery.tpl
copy root/templates/subSilver/uploadpic_body.tpl to templates/subSilver/uploadpic_body.tpl
copy root/templates/subSilver/images/lang_english/up_uploading.gif to templates/subSilver/images/lang_english/up_uploading.gif
copy root/templates/subSilver/admin/admin_uploadpic_config.tpl to templates/subSilver/admin/admin_uploadpic_config.tpl
#
#-----[ OPEN ]------------------------------------------
# NOTE: apply this to ALL your templates
#
templates/subSilver/subSilver.cfg

#
#-----[ FIND ]------------------------------------------
#
// MOD UploadPic - end

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$images['uploadpic_uploading'] = "$current_template_images/{LANG}/up_uploading.gif";

#
#-----[ OPEN ]------------------------------------------
#
posting.php

#
#-----[ FIND ]------------------------------------------
#
if ($board_config['uploadpic_disabled'] != 1)

#
#-----[ REPLACE WITH ]------------------------------------------
#
if (($board_config['uploadpic_disabled'] != 1) && (!in_array($forum_id, explode(",", $board_config['uploadpic_disallowforums']))))

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
// UploadPic

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['UP_conf_disallowforums'] = 'hide UploadPic in these forums<br />(forum-IDs, separated by commas)';
#

#-----[ OPEN ]------------------------------------------
#
language/lang_czech/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
// UploadPic

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['UP_conf_disallowforums'] = 'skrýt UploadPic v těchto fórech<br />(ID fór, rozdělené čárkou)';

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Zatím se zdá, že všechno funguje.
User avatar
leschek
Administrátor
Reactions:
Posts: 724
Joined: 23 Oct 2005 23:22
Tykání: Ano

Unread post by leschek »

Včera jsem nějakým šíleným nedopatřením přehlídl jeden soubor, kterej se má uploadnout při aktualizaci UploadPicu. Konkrétně tento:

Code: Select all

Zkopírujte  root/templates/subSilver/admin/admin_uploadpic_config.tpl do templates/subSilver/admin/admin_uploadpic_config.tpl
Pak se nemůžu divit, že se mi nezobrazí v administraci možnost srytí UploadPicu v některých fórech, že?
V aktualizaci jsem to opravil a všem, koho to nějakým způsobem způsobilo újmu, se pokorně omlouvám.