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/O Code)
 Upload mod ; check if file exists
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

Todd
New Member

USA
63 Posts

Posted - 05 May 2010 :  21:49:33  Show Profile  Visit Todd's Homepage  Reply with Quote
Thanks, I'll use the timestamp method. I didn't see that before it was posted today.


Admin for the Tyco Collector's Forum

Go to Top of Page

Todd
New Member

USA
63 Posts

Posted - 06 May 2010 :  23:29:52  Show Profile  Visit Todd's Homepage  Reply with Quote
I used the timestamp alternative by editing the clsupload.inc file. I wasn't looking to mess with the avatar uploads, only the images that get uploaded and placed in the posts.

In the following section of that file;

'--- Get the file name ---
lngPosFilename= InstrB(lngPosBoundary, strBinRequest, _
UnicodeToBinary("filename="))
if (lngPosFileName <> 0) And _
(lngPosFileName < InstrB(lngPosEnd, strBinRequest, strBinBoundary)) Then
lngPosBeg = lngPosFileName + 10
lngPosEnd = InstrB(lngPosBeg, strBinRequest, UnicodeToBinary(Chr(34)))
strFileName = BinaryToUnicode(MidB(strBinRequest, lngPosBeg,
_ lngPosEnd - lngPosBeg))


I added the following line directly after to adjust the filename;

strFileName = DateToStr(DateAdd("h", dtDateTime, strForumTimeAdjust)) & "_" & strFileName

Worked fine for me. Didn't affect the avatar upload. I'll see how things go, works great so far.


Admin for the Tyco Collector's Forum


Edited by - Todd on 06 May 2010 23:31:20
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 07 May 2010 :  06:24:56  Show Profile  Reply with Quote
Glad it is working for you Todd.

Cheers,

David Greening
Go to Top of Page

Todd
New Member

USA
63 Posts

Posted - 07 May 2010 :  21:56:45  Show Profile  Visit Todd's Homepage  Reply with Quote
quote:
Originally posted by Classicmotorcycling

Glad it is working for you Todd.



Thanks, me too. Makes my life easier.


Admin for the Tyco Collector's Forum

Go to Top of Page
Page: of 3 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.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07