imageshack mod

Con l'avvento della versione phpBB 3.1 Beta 2 e successive abbiamo rimosso tutte le MOD per sperimentare le estensioni.
Rispondi
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

imageshack mod

Messaggio da Darkman »

Questa, al momento, è la più semplice

Codice: Seleziona tutto

    ###############################################
    ## MOD Title: ImageShack upload box
    ## MOD Author: kber < [email protected] > (kber) http://www.phpbbegypt.com
    ## MOD Description: if you gonna desactivated attachment on your board , This hack adds a small ImageShack upload box to your new topic and post reply pages.
    ## MOD Version:1.1.0
    ## Installation Level: Easy
    ## Installation Time: 1 minute
    ## Files To Edit: 2
    ##   styles/subsilver2/template/posting_body.html
    ##          styles/prosilver/template/posting_editor.html
    ## Included Files:N/A 
    ## 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:
    ## this free tool taking from http://imageshack.us/ - free hosting image
    ##############################################################
    ## MOD History:
    ## 2007-05-26- virsion 1.1.0
    ## - first releaed
    ##############################################################
    ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    ##############################################################
    #
    #-----[ OPEN ]------------------------------------------
    #
       styles/subsilver2/template/posting_body.html
    #
    #-----[ FIND ]------------------------------------------
    #
    {MESSAGE}</textarea>
    #
    #-----[ AFTER,ADD ]------------------------------------------
    #
    <!--Imageshack in post MOD - start-->
    <center>
       <iframe src="http://imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="290" height="100"></iframe>
    </center>
    <!--Imageshack in post MOD - stop-->

    #
    #-----[ OPEN]------------------------------------------
    #
       styles/prosilver/template/posting_editor.html
    #
    #-----[ FIND ]------------------------------------------
    #
    {MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
    #
    #-----[ AFTER,ADD ]------------------------------------------
    #
    </br><!--Imageshack in post MOD - start-->
    <center>
       <iframe src="http://imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="290" height="100"></iframe>
    </center>
    <!--Imageshack in post MOD - stop-->

    #
    #-----[ SAVE/CLOSE ALL FILES ]--------------------------------
    #
    # EoM

 
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Re: imageshack mod

Messaggio da Darkman »

Ma qui in Darkylab mi sono spinto a metterla migliore

http://phpbb3hacks.com/viewtopic.php?f=11&t=27

File Copy

Copy: root/styles/prosilver/template/imageshack.html
To: styles/prosilver/template/imageshack.html

Apri: language/en/posting.php
Cerca

Codice: Seleziona tutto

'IMAGES_ARE_OFF'			=> '[img] is <em>OFF</em>',
PRIMA aggiungi

Codice: Seleziona tutto

'IMAGESHACK_UPLOAD_BAR'			=> 'Imageshack upload bar',
Apri: styles/prosilver/template/posting_editor.html

cerca

Codice: Seleziona tutto

<textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea
DOPO aggiungi

Codice: Seleziona tutto

<!-- INCLUDE imageshack.html -->
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Re: imageshack mod

Messaggio da Darkman »

Naturalmente stessa cosa oer il file language/it personalizzando come volete
Rispondi