Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    Modifica della phat immagini RTE version = 4.0

    utilizzo questa phat evidenziata in rosso per visualizzare immagini in un percorso specifico

    Const strImageUploadPath= "public\Gestione_generale_Img\"

    Ora vorrei che questa phat si potesse trasformare in questa maniera evidenziata in (blu)

    Const strImageUploadPath= "public\Gestione_generale_Img\Numero_2"

    dove però (Numero_2) sta per il campo del record all'interno della tabella "Pippo" in un data-

    base Access, qui nasce la complicazione.

    l'editor è scritto tutto in VBSCRIPT quindi la domanda è

    Posso puntare diretto alla tabella "Pippo" campo "Numero_2" con una nuova phat diretta oppure

    no? Altra domanda, devo integrare una connessione al data-base dentro il file
    RTE_setup.asp ?????

    posto lo script intero del file RTE_setup.asp

    Mi vanno bene anche spunti di partenza cortesemente con link di puntamento a esempi presistenti o lezioni sull'argomento.

    Grazie !!!


    script:
    <!--#include file="RTE_license.asp" -->
    <%
    Dim blnAbout
    Dim strDisplayLicense


    '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******
    Const strRTEversion = "4.05"
    blnAbout = rteAbout()
    If Request.QueryString("about") Then Call rteInfo()
    '***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******
    'The following enables and disables functions of the Rich Text Editor
    'Enable and dsiable basic functions of the editor change the following to true of false
    '************************************************* **************************
    Const blnNew = true
    Const blnBold = true
    Const blnUnderline = true
    Const blnItalic = true
    Const blnFontStyle = true
    Const blnFontType = true
    Const blnFontSize = true
    Const blnTextColour = true
    Const blnTextBackgroundColour = true
    Const blnCut = true
    Const blnCopy = true
    Const blnPaste = true
    Const blnWordPaste = true
    Const blnUndo = true
    Const blnRedo = true
    Const blnLeftJustify = true
    Const blnCentre = true
    Const blnRightJustify = true
    Const blnFullJustify = true
    Const blnOrderList = true
    Const blnUnOrderList = true
    Const blnOutdent = true
    Const blnIndent = true
    Const blnAddHyperlink = true
    Const blnAddImage = true
    Const blnInsertTable = true
    Const blnEmoticonPopUp = true
    Const blnSpecialCharacters = true
    Const blnPrint = true
    Const blnStrikeThrough = true
    Const blnSubscript = true
    Const blnSuperscript = true
    Const blnHorizontalRule = true
    Const blnPreview = true
    '************************************************* **************************
    'Advanced controls
    '************************************************* **************************
    Const blnAdvAdddHyperlink = true 'Advanced hyperlink control
    Const blnAdvAddImage = true 'Advanced image control requires File System Object (FSO)
    Const blnHTMLView = true 'Allows the user to view the HTML code, you may need to dsiable this for extra security
    Const blnSpellCheck = true 'Requires IEspell for Ineternet Explorer or SpellBound for Mozilla
    Const blnUseCSS = true 'Enable CSS (Cascading Style Sheets) in Mozilla
    Const blnNoIEdblLine = true 'Prevent IE's standard double line spacing when the 'ENTER' key is pressed
    '************************************************* **************************


    'Open and save configuration
    '************************************************* **************************
    'For security reasons you shouldn't allow users to open/save server side scripting files with .asp, .php, etc. extensions as these could be used to execute malicious code on the server
    'Saved files, for security, are only saved in the root folder you set below and not sub folders


    Const blnOpenFile = true 'Open server file in editor (ie. open and HTML page in editor), requires File System Object (FSO)


    Const strOpenFileFolderPath = "\public\my_documents"


    Const strOpenFileTypes = "htm;html" 'Separate file types with ;


    Const blnSave = true 'Save editor contents to server, requires File System Object (FSO)


    Const strSaveFileFolderPath = "\public\my_documents\my_files"


    Const strSaveFileTypes = "htm;html" 'Separate file types with ;
    Const blnOverWriteFiles = false 'Set this to true only if you wish the user to overwrite saved files
    '************************************************* **************************
    'Upload component (uncomment the upload component you require)
    '************************************************* **************************
    'Select an upload component from the list below if you wish to use image upload and file attachement features
    'The upoload component you select MUST be installed on the web server
    Const strUploadComponent = "AspUpload" 'Persits AspUpload 3.x or above (includes progess bar) - http://www.aspupload.com
    'Const strUploadComponent = "AspUpload2" 'Persits AspUpload - http://www.aspupload.com
    'Const strUploadComponent = "Dundas" 'Dundas Upload - http://www.dundas.com
    'Const strUploadComponent = "fileUp" 'SA FileUp - http://www.softartisans.com
    'Const strUploadComponent = "aspSmart" 'aspSmartUpload - http://www.aspsmart.com
    'Const strUploadComponent = "AspSimple" 'AspSimpleUpload - http://www.asphelp.com
    '************************************************* **************************
    'Upload component configuration
    '************************************************* **************************
    'For security reasons you shouldn't allow users to upload files that could be used to execute malicious code on the server
    'Uploaded files and images, for security, are only saved in the root folder you set below and not sub folders
    'File Attachments
    Const blnAttachments = true 'Attach files to the editor contents
    Const strFileUploadPath = "\public\my_documents\my_files"
    Const strFileTypes = "zip;rar;doc;pdf;txt;rtf;htm;html;gif;jpg;jpeg;png ;pptx;pps;ppt;mpg" 'Separate file types with ;
    Const intMaxFileSize = 20360 'Use AspUpload 3.x or above for uploads over 4500KB (size in KB)
    'Image uploads
    Const blnImageUpload = true 'Upload images to the editor
    'blnAdvAddImage (advanced image insert popup), also needs to be enabled to upload images as it uses the same pop up window
    Const strImageUploadPath = "\public\Gestione_generale_Img"
    Const strImageTypes = "jpeg;jpg;gif;png;bmp" 'Separate file types with ;
    Const intMaxImageSize = 20360 'Use AspUpload 3.x or above for uploads over 4500KB (size in KB)
    Const intPixelsImage = 640 'Larghezza massima della foto caricata. Valore in Pixels
    '************************************************* **************************
    'Using full URL path for images and links
    '************************************************* **************************
    'If you are submitting the RTE content to a file outside of the RTE folder you may find that some of the relative
    'paths for things like images stored on the server are incorrect (ie. href="my_documents/myPicture.jpg")
    'The following can be used to change those relative server paths to full URL's so that if the submitted content is
    'displayed on a page out side of the RTE files the paths to images etc. still work
    Const blnUseFullURLpath = false
    Const strFullURLpathToRTEfiles = "/" 'Type in the full URL to the RTE folder eg. "/"


    '************************************************* **************************
    'Basic image and CSS file location
    '************************************************* **************************
    'Path to default images
    Const strRTEImagePath = "images-Editor/"
    Const strRTECSSfile = "css_styles"
    '************************************************* **************************
    %>



  2. #2
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,133
    Ciao Alex, vedo che vuoi procedere comunque in asp (dopo i nostro lunghi colloqui) volendo filtrare i singoli utenti ottimo ti auguro di risolvere.

    Cavicchi Andrea
    Problemi con javascript, jquery, ajax clicca qui

  3. #3

    Re:Andrea

    Quote Originariamente inviata da cavicchiandrea Visualizza il messaggio
    Ciao Alex, vedo che vuoi procedere comunque in asp (dopo i nostro lunghi colloqui) volendo filtrare i singoli utenti ottimo ti auguro di risolvere.

    Ciao Andrea, si è l'ultima cosa da risolvere, per le connessioni cmq ho seguito il tuo consiglio trasformandole in OLEDB ed ottimizzando il tutto, ora il problema è trovare la soluzione per ciò che ho postato, a presto comunque.

  4. #4

    Web_Wiz_RTE_v4.12 - Soluzione trovata se può servire a qualcun'altro

    1) aprite il file - RTE_popup_adv_image.asp

    2) utilizzate il motore di ricerca dell'editor in uso per cercare > > in rosso

    <iframe src="RTE_file_browser.asp?look=img" id="fileWindow" width="98%" height="180px" style="border: #A5ACB2 1px solid;backgroundColor: #FFFFFF;"></iframe>

    3) Modificate come in > > blu e aggiungete la vostra session preceduta da &sub=\ in verde

    <iframe id="fileWindow" height="150" src="RTE_file_browser.asp?look=img&sub=\ID.<%=session("User_azienda")%>" style="border: #A5ACB2 1px solid;backgroundColor: #FFFFFF; width: 400px;"></iframe>

    Spero sia utile a qualcuno ciao a tutti by Alex!!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.