Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Proeder's File Attachment Progress Bar
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

leatherlips
Senior Member

USA
1838 Posts

Posted - 14 August 2009 :  11:20:15  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Try this:

Look for:

Response.Write   "      <form action=""UploadEngine.asp"" enctype=""multipart/form-data"" method=""post"" id=""fileup"" name=""fileup"">" & vbNewLine & _


ABOVE that add:

Response.Write "<script language=""javascript"" src=""uploadprogressbar.js""></script>"


Look for:

<input class=""bouton"" name=""Upload"" type=""SUBMIT"" value=' " & fLang("strLangAttachment00180") & " '>


CHANGE it to:

<input class=""bouton"" name=""Upload"" type=""SUBMIT"" value=' " & fLang("strLangAttachment00180") & " ' onclick=""javascript:bar1.showBar()"">


Look for:

"      </form>" & vbNewLine


CHANGE it to:

"      </form>" & vbNewLine & _
"  <script type=""text/javascript"">var bar1= createBar(300,15,'white',1,'black','blue',85,7,3,"""");bar1.hideBar();</script>" & vbNewLine

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 14 August 2009 11:21:14
Go to Top of Page

Giumer
Junior Member

Italy
163 Posts

Posted - 14 August 2009 :  12:02:24  Show Profile  Send Giumer an ICQ Message  Reply with Quote
Nice !! thx mate !


ok and as you can see, I wanted a second information and you can increase the size of file upload? with the other mod share can send up to 8 MB! This can only 3,5 mb

=======================
http://www.Giumer.it/forum

=======================
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 14 August 2009 :  12:04:07  Show Profile  Visit leatherlips's Homepage  Reply with Quote
The progress bar mod has nothing to do with upload size. I can't help you with that.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Giumer
Junior Member

Italy
163 Posts

Posted - 14 August 2009 :  12:29:12  Show Profile  Send Giumer an ICQ Message  Reply with Quote
thank you very much!

=======================
http://www.Giumer.it/forum

=======================
Go to Top of Page

Giumer
Junior Member

Italy
163 Posts

Posted - 18 August 2009 :  12:13:44  Show Profile  Send Giumer an ICQ Message  Reply with Quote
I wanted to ask if anyone can help me to modify this mod (share) and I wanted to know if can change so that when inserted the file does not do as image, but I want it to do so through links



and send file or attakament link is this original :

[file]_Rhianna_feat._Jay-Z_-_Umbrella.mp3,1,,[/file]

me need this link

[mp3]http://www.giumer.it/public/sharedfiles/1/_Rhianna_feat._Jay-Z_-_Umbrella.mp3[/mp3]


and me file inc_func_common querry is this :

%><!--#INCLUDE FILE="inc_UploadConfig.asp" --><%
   function downloadFilePost(fString)
      if instr(fString,"[file]")<>0 and instr(fString,"[/file]")<>0 then
         Dim fileTag1, fileTag2, begStr, endStr
         Dim leftPart, rightPart, midPart
         Dim arrFileInfo, fileName, fileNameExt, memberFldrID, cSF, forumID
         fileTag1 = countSubstrInStr(fString,"[file]")
         fileTag2 = countSubstrInStr(fString,"[/file]")
         for i=1 to fileTag1

            begStr = instr(fString,"[file]")+6
            endStr = instr(fString,"[/file]")
            leftPart=Left(fString,begStr-7)	
            rightPart=right(fString,len(fString)-endStr -6)
            arrfileInfo=Mid(fString,begStr,endStr-begStr)
            arrFileInfo=Split(arrfileInfo,",")
            fileName=arrFileInfo(0)
            fileNameExt = UCase(Mid(fileName,InStrRev(fileName,".")))
            memberFldrID=arrFileInfo(1)
            cSF=arrFileInfo(2)
            forumID=arrFileInfo(3)
            midPart=""

            midPart=midPart & "    <table " & TableBorderColor1 & " border=""0"" " & Cellspacing & " cellpadding=""4"" align=""center"">" & vbNewline
            midPart=midPart & "      <tr>" & vbNewline
            midPart=midPart & "        <td " & ForumCellColor & " colspan=""2"">" & vbNewline
            midPart=midPart & "        <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ " & ForumFontColor & ">" & vbNewline
            if disableAllFileSharing=false and disableDownload=false then
               if forumID<>"" and sharedFilesMode = 2 then
                  physicalUploadFolder = physicalUploadFolder & "\" & forumID
                  physicalUploadTextFolder = physicalUploadTextFolder & "\" & forumID
               end if 
               if cSF="" then
                  currentFile = physicalUploadFolder& "\" & memberFldrID & "\" & fileName
                  currentTextFile = physicalUploadTextFolder& "\" & memberFldrID & "\" & fileName &".txt"
               else
                  currentFile = physicalUploadFolder& "\" & memberFldrID & "\" & cSF & "\" & fileName
                  currentTextFile = physicalUploadTextFolder& "\" & memberFldrID & "\" & cSF & "\" & fileName &".txt"
               end if
               Set theFSO=Server.CreateObject("Scripting.FileSystemObject") 			
               if theFSO.FileExists(currentFile) then
                  Set thisFile=theFSO.GetFile(currentFile)
                  fileSize=convertSize(thisFile.size)
                  fileDate=DateAdd("h", strTimeAdjust , thisFile.DateLastModified) 
                  if theFSO.FileExists(currentTextFile) then
                     currentFileInfo=readFileInfoText(currentTextFile)
                     fileDesc = currentFileInfo(0)
                     downloadNo = currentFileInfo(1)
                     fileCat = currentFileInfo(2)
                     membersAccess = cLng(currentFileInfo(3))
                     guestsAccess = cLng(currentFileInfo(4))
                  else
                     fileDesc= ""
                     downloadNo = 0
                     fileCat=0
                     membersAccess = 2
                     guestsAccess = 0
                     writeFileInfoText currentTextFile,fileDesc,downloadNo,fileCat,membersAccess,guestsAccess
                     fileDesc= fLang("strLangI_UploadFunc00010") & vbNewLine
                  end if
                  Set thisFile = nothing
                  Set theFSO = nothing
                  fString=currentTextFile				
                  select case fileNameExt
                     case ".JPG", ".JPEG", ".GIF", ".PNG"
                        midPart=midPart & "<b>" & fLang("strLangI_F_Common00700") & "</b> "
                        midPart=midPart & fileName
                        midPart=midPart & " (" & fileSize & ")"
                        midPart=midPart & "<br />" & fLang("strLangI_UploadFunc00050") & " " & fileDate
                        midPart=midPart & "<br />" & fLangN("strLangI_F_Common00710",downloadNo)
                        if fileCatMode = true then
                           midPart=midPart & "<br /><b>" & fLang("strLangPost00360") & "</b> " & fileCatList(4)
                        end if
                        midPart=midPart & "<br /><b>" & fLang("strLangFile_Library00350") & ":</b><br />" & fileDesc & "<br />"
                        midPart=midPart & "<br /><img name='img' src=""download.asp?forumID="&forumID&"&fileName="&fileName&"&memberFldrID="&memberFldrID&"&cSF="&cSF&""" style='cursor:default' onClick='doimage(this,event)'>"
                     case ".SWF"
                        Dim width, height
                        width=arrFileInfo(4)
                        height=arrFileInfo(5)
                        width=replace(width,"width=","")
                        height=replace(height,"height=","")
                        midPart=midPart & "<b>" & fLang("strLangI_F_Common00720") & "</b> "
                        midPart=midPart & fileName
                        midPart=midPart & " (" & fileSize & ")"
                        midPart=midPart & "<br />" & fLang("strLangI_UploadFunc00050") & " " & fileDate
                        midPart=midPart & "<br />" & fLangN("strLangI_F_Common00710",downloadNo)
                        if fileCatMode = true then
                           midPart=midPart & "<br /><b>" & fLang("strLangPost00360") & "</b> " & fileCatList(2)
                        end if
                        midPart=midPart&"<br /><b>" & fLang("strLangFile_Library00350") & ":</b><br />" & fileDesc & "<br />"
                        midPart=midPart&"<br /><embed src=""download.asp?forumID="&forumID&"&fileName="&fileName&"&memberFldrID="&memberFldrID&"&cSF="&cSF&""" quality=""high"" pluginspage=""http://www.macromedia.com/go/getflashplayer"" type=""application/x-shockwave-flash"" width="""& width &""" height="""& height &"""></embed></object>"
                     case else
                        midPart=midPart & "<br /><b>" & fLang("strLangI_F_Common00730") & "</b> "
                        midPart=midPart & " <a href=""download.asp?forumID="&forumID&"&fileName="&fileName&"&memberFldrID="&memberFldrID&"&cSF="&cSF&""">"
                        midPart=midPart & fileName
                        midPart=midPart & "</a>"
                        midPart=midPart & " (" & fileSize & ")"
                        midPart=midPart & "<br />" & fLang("strLangI_UploadFunc00050") & " " & fileDate
                        midPart=midPart & "<br />" & fLangN("strLangI_UploadFunc00060",downloadNo)
                        if fileCatMode = true then
                           midPart=midPart & "<br /><b>" & fLang("strLangPost00360") & "</b> " & fileCatList(5)
                        end if
                        midPart=midPart & "<br /><b>" & fLang("strLangFile_Library00350") & ":</b><br />" & fileDesc & "<br />"
                  end select
               else			
                  midPart=midPart & "<b>" & fLang("strLangI_F_Common00740") & "</b> "
                  midPart=midPart & fileName
               end if
            elseif disableAllFileSharing = true or disableDownload = true then
               midPart=midPart & "<font color="""&strHiLiteFontColor&"""><b>" & fLang("strLangI_F_Common00750") & "</b></font> " & fileName
            end if
            midPart=midPart & "        </font></td></tr>"
            midPart=midPart & "    </table>"
            fString = leftPart & midPart & rightPart
         next
      end if
      downloadFilePost=fString
   end function

=======================
http://www.Giumer.it/forum

=======================
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07