Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Embedded FTP Browser

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Carefree Posted - 30 August 2010 : 03:45:05
Superskytten asked me to create an embedded FTP browser mod. This mod adds a new [FTP] tag. You can place it around an FTP URL and link logged in. Don't know how much use it will get, but here it is. Note: I would have put it on SnitzBitz but the site is slowwwwwwww tonight.



FTP MOD 1.0
  1. Upload the following file to your forum:

    1. ftp.js - included in code below (in your forum root folder)
    2. icon_editor_ftp.gif (in your forum images folder)

  2. Editing files:

    In "inc_header.asp", look for the following lines (appx 87-89):
    
    
    '## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
    Response.Write "<meta name=""copyright"" content=""This Forum code is Copyright (C) 2000-09 Michael Anderson, Pierre Gorissen, Huw Reddick and Richard Kinser, Non-Forum Related code is Copyright (C) " & strCopyright & """>" & vbNewline
    '## END   - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
    
    After those, add this:
    
    '##### FTP Below #####
    if right(request.servervariables("URL"),9) = "topic.asp" then
    	Response.Write "<script type=""text/javascript"" src=""ftp.js""></script>"
    end if
    '##### FTP Above #####
    
    In "inc_header_short.asp", look for the following lines (appx 62-65): '## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT Response.Write "<meta name=""copyright"" content=""This Forum code is Copyright (C) 2000-05 Michael Anderson, Pierre Gorissen, Huw Reddick and Richard Kinser, Non-Forum Related code is Copyright (C) " & strCopyright & """>" & vbNewline '## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT After those, add this: Response.Write "<script type=""text/javascript"" src=""ftp.js""></script>"
    In "inc_func_common.asp", look for the following line (appx 1555): Sub WriteFooter() %> Above it, insert this: '##### FTP Below ##### Function ReplaceFTPTags(fString) Dim oTag, cTag Dim roTag, rcTag Dim oTagPos, cTagPos Dim nTagPos Dim counter1, counter2 Dim strCodeText Dim Tagcount Dim strTempString, strResultString TagCount = 2 Dim CodeTags(2,2,2) Dim strArray, strArray2 CodeTags(1,1,1) = "[FTP]" CodeTags(1,2,1) = "[/FTP]" CodeTags(1,1,2) = "<div><script language=""javascript"">EmbedFTP(""" CodeTags(1,2,2) = """,625,475,false)</script></div>" CodeTags(2,1,1) = "[FTP]" CodeTags(2,2,1) = "[/FTP]" CodeTags(2,1,2) = CodeTags(1,1,2) CodeTags(2,2,2) = CodeTags(1,2,2) strResultString = "" strTempString = fString for counter1 = 1 to TagCount oTag = CodeTags(counter1,1,1) roTag = CodeTags(counter1,1,2) cTag = CodeTags(counter1,2,1) rcTag = CodeTags(counter1,2,2) oTagPos = InStr(1, strTempString, oTag, 1) cTagPos = InStr(1, strTempString, cTag, 1) if (oTagpos > 0) and (cTagPos > 0) then strArray = Split(strTempString, oTag, -1) for counter2 = 0 to Ubound(strArray) if (Instr(1, strArray(counter2), cTag) > 0) then strArray2 = split(strArray(counter2), cTag, -1) strCodeText = trim(strArray2(0)) if instr(strCodeText,",") > 0 or _ instr(strCodeText,")") >0 or _ instr(strCodeText,"(") >0 or _ instr(strCodeText,";") >0 or _ instr(strCodeText,"""") >0 or _ instr(strCodeText,"<") >0 or _ instr(strCodeText,">") >0 or _ instr(strCodeText,"[") >0 or _ instr(strCodeText," ]") >0 or _ '(Note: Remove space left of bracket) instr(strCodeText,",") >0 then strCodeText = "illegal" end if strResultString = strResultString & roTag & strCodeText & rcTag & strArray2(1) else strResultString = strResultString & strArray(counter2) end if next strTempString = strResultString strResultString = "" end if next ReplaceFTPTags = strTempString End Function '##### FTP Above ##### Next, look for the following line (appx 146): FormatStr = fString Above it, insert this: '##### FTP Below ##### fString = ReplaceFTPTags(fString) '##### FTP Above ##### Then, look for the following line (appx 64): (UCase(Right(strArray(Counter-1), 6)) <> """) and _ After that, add this: (UCase(Right(strArray(Counter-1), 6)) <> "[FTP]") and _
    In "inc_iconfiles.asp", look for the following line (appx 82): Const strIconFolderUnmoderated = "icon_folder_unmoderated.gif|15|15" After that, add this: Const strIconFTP = "icon_editor_ftp.gif|23|22"
    In "inc_code.js", add the following at the very end: function FTP() { var text = getText(); if (helpstat) { alert("FTP Tag Makes the enclosed linked file open in the FTP.\n\nUSE: [FTP]ftp://user:password@server.com:(port if not 21)[/FTP]"); } else if (basic) { AddTxt="[FTP]" + text + "[/FTP]"; AddText(AddTxt); } else { if (text) { txt=prompt("Link of the FTP adress.",text); } else { txt=prompt("Link of the FTP.","Insert Link Of FTP"); } if (txt!=null) { AddTxt="[FTP]"+txt+"[/FTP]"; AddText(AddTxt); } } }
    In "inc_post_buttons.asp", look for the following line (appx 54): "<a href=""Javascript:strike();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorStrike,"Strikethrough","align=""top""") & "</a>" & vbNewLine & _ After that, add this: "<a href=""Javascript:FTP();"" tabindex=""-1"">" & getCurrentIcon(strIconftp,"FTP","align=""top""") & "</a>" & vbNewLine & _
    Finally, save the following as "ftp.js" in your forum directory: function EmbedFTP(URL,autostart){ if(autostart != true && autostart != "true" && autostart != "1" && autostart != 1){ autostart = 0; //Replace with default. Default = 0 (false). }else{ autostart = 1; //Replace with 1, being zero. }//See if we can continue. if(URL == null || URL == "illegal"){ //Nope, we can't. document.writeln(" error: illegal use of FTP tag! "); }else{ //Add the code to the document. document.writeln('<iframe src='+ URL +' width="760" height="475" style="border: none;">'); document.writeln('</iframe>'); } }

7   L A T E S T    R E P L I E S    (Newest First)
Carefree Posted - 19 February 2013 : 12:14:12
Good enough
superskytten1 Posted - 19 February 2013 : 03:07:35
the server is there carefree

i think i make a mistake

i only put the ip adress like this between [FTP]100.100.110.0[/FTP]

but when i do it this way it work [FTP]ftp://100.100.110.0[/FTP]

SORRY


Carefree Posted - 19 February 2013 : 02:07:52
It isn't contingent upon your host, as long as the FTP server exists and you have the user name/password, etc.
superskytten1 Posted - 18 February 2013 : 05:18:42
after i have change host, this ftp mod dont work ???
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

maybee its because i have change too iss 7 ??

anyone have and idea.
Carefree Posted - 10 September 2010 : 20:59:23
Added this to SnitzBitz.
Carefree Posted - 01 September 2010 : 12:42:13
I'll put it online as a demo, Podge.

Here you go: http://verybusyserver.com/testsite

User: Tester
Pass: tester

Note: This demo does NOT allow upload/deletion/appending, download and browse only.

There are two different demonstrations, one with embedded user name and password, the other without. For the one without, use Test/Test.
Podge Posted - 01 September 2010 : 11:28:10
Is there a demo of this anywhere?

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000 Version 3.4.07