Jump to content

Integrare imageshack all'editor


najaru

Recommended Posts

A volte può essere utile integrare imageshack alll'editor completo, in modo che gli utenti possano caricare agevolmente le immagini e ottenere i codici tag da inserire nei post

Per inserirlo aprire acp - look&feel - scegliere la skin specifica - editor - ips_editor
cercare

<!-- Toolpanes --><script type="text/javascript">//<![CDATA[$('{$editor_id}_toolbar_1').show();$('{$editor_id}_toolbar_2').show();// Rikki: Had to remove <form>... </form> because Opera would see </form> and not pass the topic icons / hidden fields properly. Tried "</" + "form>" but when it is parsed, it had the same affectipb.editor_values.get('templates')['link'] = new Template("<label for='#{id}_url'>{$this->lang->words['js_template_url']}</label><i

e quindi inserire PRIMA
 

<iframe src="http://imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70">Update your browser for ImageShack.us!</iframe>

appena sotto la finestra del messaggio apparirà un widget di imageshack



Versione 3.3 o 3.4 o http://community.invisionpower.com/files/file/6262-imageshackus-post-upload-form/ Edited by Skillman_92
aggiunta app 3.3 3.4
  • Like 2
Link to comment
Share on other sites

  • 1 year later...

PROVA CON

<script src="http://imageshack.us/scripts/syndicate/widget.js" type="text/javascript" charset="utf-8"></script><script type="text/javascript">new ImageShackSyndicateWidget({width: "300",height: "110",theme: {shell: {buttonColor: "#3cbbfa",color: "#111111",backgroundColor: "#cccccc",backgroundImage: "",text: "Select photos and videos to upload."}}}).render();</script>

PER PERSONALIZZARLO VAI QUI

Edited by Skillman_92
Link to comment
Share on other sites

ho provato a seguire le istruzioni di posizionamento del file, editor/ips_editor, inserendo il codice postato da Skilmann ma non mi esce nulla.

Link to comment
Share on other sites

allora ho testato e nemmeno a me funziona... per ora ho visto che funziona solo cambiando il file da modificare... quindi

Andate nel skin_post > postFormTemplate > cercare


<if test="upload_form_check:|:$formData['uploadForm']">
<fieldset class='attachments'>
{$formData['uploadForm']}
</fieldset>
</if>

e aggiungere PRIMA


<script src="http://imageshack.us/scripts/syndicate/widget.js" type="text/javascript" charset="utf-8"></script><script type="text/javascript">new ImageShackSyndicateWidget({width: "300",height: "110",theme: {shell: {buttonColor: "#3cbbfa",color: "#111111",backgroundColor: "#cccccc",backgroundImage: "",text: "Select photos and videos to upload."}}}).render();</script>

  • Like 1
Link to comment
Share on other sites

Prova questo:

<script src="http://imageshack.us/scripts/syndicate/widget.js" type="text/javascript" charset="utf-8"></script><script type="text/javascript">new ImageShackSyndicateWidget({width: "300",height: "110",theme: {shell: {buttonColor: "#3cbbfa",color: "#111111",backgroundColor: "#cccccc",backgroundImage: "",text: "Scegli la foto o il video da caricare."}}}).render();</script>

;)

  • Like 2
Link to comment
Share on other sites

  • 1 month later...

Ciao!

 

Se volete risparmiare un pò di spazio potete affiancare le due cose in questo modo:

<div style="width:540px; float:left;">			<if test="upload_form_check:|:$formData['uploadForm']">				<fieldset class='attachments'>					{$formData['uploadForm']}				</fieldset>			</if>			</div><div style="width:300px; float:left;"><script src="http://imageshack.us/scripts/syndicate/widget.js" type="text/javascript" charset="utf-8"></script><script type="text/javascript">new ImageShackSyndicateWidget({width: "300",height: "110",theme: {shell: {buttonColor: "#3cbbfa",color: "#111111",backgroundColor: "#ffffff",backgroundImage: "",text: "Carica%20una%20foto%20con%20ImageShack"}}}).render();</script></div>

 

Il risultato sarà questo:

post-1144-0-21308100-1357396272_thumb.pn

 

Ciaoo :)

  • Like 2
Link to comment
Share on other sites

  • 4 months later...
  • 2 years later...

Ciao a tutti.

Da sempre ho usato dello spazio esterno al server per allegare le foto, ma cercavo qualcosa di più immediato, tipo questa integrazione.

Perciò ho eseguito le istruzioni, ma non mi funziona. Una volta che seleziono il file da caricare e dopo aver premuto "upload", mi carica semplicemente il sito di imageshack.

Premetto che ho inserito il codice come da indicazione e che la board è una 3.4.8. Il codice API, pure quello è stato inserito correttamente...

 

Dove sbaglio?

Link to comment
Share on other sites

Cosa intendi per registrazione? Se per registrazione intendi aprire un account imageshack, quello l'ho fatto (altrimenti non avrei potuto avere l'API).

 

Altrimenti, ci sono altre soluzioni?

Link to comment
Share on other sites

  • Admin

Cosa intendi per registrazione? Se per registrazione intendi aprire un account imageshack, quello l'ho fatto (altrimenti non avrei potuto avere l'API).

 

Altrimenti, ci sono altre soluzioni?

Premetto che non so se funziona, perchè imageshack ha completamente rivoluzionato il proprio sito in questi ultimi anni, puoi provare questo hook: https://community.invisionpower.com/files/file/6262-imageshackus-post-upload-form/?tab=comments#comment-6808

 

Altrimenti puoi provare questi hook che però non fanno riferimento imageshack ma ad altri servizi di hosting.

 

https://community.invisionpower.com/files/file/6186-ihost-post-upload-form/

https://community.invisionpower.com/files/file/6255-directuploadnet-post-upload-form/

  • Like 2
Link to comment
Share on other sites

Grazie mille.

 

La prima hook è la stessa linkata nel primo post, la seconda non funziona mentre la terza funziona.

 

Una volta che seleziono il file da caricare mi si apre la pagina di directupload con l'immagine caricata ed i codici da copiare. Non è possibile che il "copia e incolla" venga fatto in automatico? Se sì, come?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. to insert a cookie message.