Author |
Topic |
guessme
Banned User
393 Posts |
Posted - 17 September 2003 : 19:01:11
|
You may not want to use this as it seems to come with an atitude all it's own. |
|
|
|
dibley
New Member
United Kingdom
91 Posts |
Posted - 18 September 2003 : 06:04:04
|
I'm beginning to think that... I may have to find a stand alone photo album to "sit next" to the forum. It would just have been nice to have it integrated!! :D |
.:dib:.
www.nightsouls.co.uk - Uk clubber & music forum. www.animatronica.co.uk - Creators of themepark animatronics. |
|
|
dibley
New Member
United Kingdom
91 Posts |
Posted - 28 September 2003 : 06:58:21
|
I have now moved my whole forum to www.1asphost.com, and now I can't even set up the base directory correctly! Arrg! Can any one help, or suggest a free/ very cheap asp host where I can set the forum with photo album mod up without having to tear out my hair?!!!! |
.:dib:.
www.nightsouls.co.uk - Uk clubber & music forum. www.animatronica.co.uk - Creators of themepark animatronics. |
|
|
Jeff V
Starting Member
23 Posts |
Posted - 29 September 2003 : 21:43:25
|
I never did see a possible cause for this error.
There was an error [Microsoft][ODBC Microsoft Access Driver] Syntax error in CREATE TABLE statement.
Any ideas? I need to get past this to try and continue to get this mod working. I am using access 2000 database.
Thanks, Jeff
|
|
|
Knightmayre
Starting Member
37 Posts |
Posted - 12 October 2003 : 02:12:46
|
I have a slightly different problem. I run 2 forums from the same server on different ports. Both have 1.80 installed and one of them works fine. The other let me upload 4 photos, then has refused ever since. Trying to upload, the script times out. Increased asp app timeout on server to 3 mins: still timed out. Troubleshooter gives me "not an system administrator". Thing is I'm on my own server, running locally & logged in as Admin. Folder & Server permissions are identical for the 2 forums: I've triple checked them.
Running Windows Server 2003. Totally Baffled. |
|
|
thehardskinnedrhino
Starting Member
27 Posts |
Posted - 18 October 2003 : 20:12:39
|
Hi, first let me say thanks to you guys for all the mods you make. I am however having a little problem uploading pictures. I have used the test feature and the error message says everything was ok but upload failed. Which has left me scratching my head. My web site is www.rhinoshomepage.co.uk maybe you may have some ideas. Thankyou |
|
|
Jag24
Junior Member
182 Posts |
Posted - 19 October 2003 : 01:21:51
|
Seems to be very little support on this mod........I might suggest another. |
|
|
P3TER
Starting Member
32 Posts |
Posted - 22 October 2003 : 10:19:51
|
Is anyone using this MOD successfully, and has made any improvements to the filename and username validation ?
I just implemented it and it works (kinda!), but there are a lot of bugs relating to illegal characters in either the Username or the Uploaded Filename (hyphens, apostrophes, spaces etc all screw things up)
So, If anyone has already fixed these problems and is keeping the fixes to themselves, please let us know!
cheers!
|
|
|
Jag24
Junior Member
182 Posts |
Posted - 22 October 2003 : 12:25:42
|
quote: Seems to be very little support on this mod........I might suggest another.
See above |
|
|
P3TER
Starting Member
32 Posts |
Posted - 23 October 2003 : 11:56:44
|
Yeah I saw your comment Jag but you didn't actually suggest a better alternative... If you have a better Snitz Integrated Photo Album MOD, I'd be glad to hear about it.
For those that got it working, I notice that the Upload part that is causing many of the problems noted here ( '%20´' problems, thumbnails not showing etc. dDue to non-alphanumeric characters) is written by Lewis Moten http://upload.lewismoten.com/ and maintained as a seperate project (not linked to Snitz). - anyone fancy taking a look at Lewis's "upload without COM" code and seeing if they can integrate the latest improvements with this MOD?
I would do it myself, but I'm only an incompetent cut'n'paste MODder...
|
|
|
Jag24
Junior Member
182 Posts |
|
P3TER
Starting Member
32 Posts |
Posted - 25 October 2003 : 08:23:57
|
Well, I have played around with this code, and have created a function that fixes the specific problem I was experiencing. My users were attempting to upload files with non alpha-numeric characters in the filename (spaces, parentheses, hyphens etc) which in every case caused the thumbnailing function to fail, and in many cases caused the image display function to fail. another side effect was that a copied shortcut embedded in a forum posting within (img)(/img) tags would fail since it sometimes contained characters that are treated as risky and therefore stripped by the forum post functions..
I must warn you that I DO NOT consider myself to be a programmer, therefore I would be happy for anyone to tell me that my code sucks, as long as their response contains the source code to how it should be done!
Adding the code Insert just above the last line "%>" at around Line 354 of inc_photo_album_functions.asp quote: function purify_filename( FileName ) '********************************************************** '* P3TER's filename purifier function '* ---------------------------------- '* Turns a filename into pure alpha numeric, removing all '* characters other than numbers, letters, and "." '********************************************************** For ParseFileName = 1 to len(FileName) ASCII = Asc(Mid(FileName,ParseFileName,1)) if ASCII <46 THEN Dirty = TRUE 'Flag these characters as dirty = !"#$%&'()*+,-
if ASCII >=58 AND ASCII <65 THEN Dirty = TRUE 'Flag these chars as dirty = :;<=>?@
if ASCII >=91 AND ASCII <97 THEN Dirty = TRUE 'Flag these chars as dirty = [\]^_`
if ASCII >=123 THEN Dirty = TRUE 'Flag these chars as dirty = {|}~ onwards
If Dirty = True then FileName = Replace (FileName,chr(ASCII),"/") End If Dirty=false next FileName = Replace (FileName,"/","") purify_filename = FileName end function
Then, add this entry to around line 294 of ToFileSystem.asp, immediately above the "' Compile path to save file to" comment line.quote: 'Call Filename purifier function strFileName = purify_filename (strFileName) 'End of Filename purifier function
Removing the effect of this function is simple - just comment out the middle of the 3 lines above, and resave ToFileSystem.asp
Using this function when uploading a file means that a file named "F [i-l_e#-n'a me%1.jpg" would upload a file named "Filename1.jpg"
I would like to hear any feedback from anyone who tries this code. - please post it here! |
|
|
P3TER
Starting Member
32 Posts |
Posted - 25 October 2003 : 11:17:45
|
Correcting Thumbnail Aspect Ratio: (So that thumbnails retain their correct proportions, instead of becoming 100 x 100 square)
in ToFileSystem.asp around line 316, replacequote: Jpeg.Height = 100
with...quote: Jpeg.Height = jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth
|
|
|
Jag24
Junior Member
182 Posts |
Posted - 25 October 2003 : 16:37:41
|
Well I tried your changes, I purposely uploaded pics with spaces & it seems to have taken care of that problem....All seems to work so far! Nice Job Now you got a fix for mac users not being able to upload ? LOL |
|
|
Philnguyen44
Junior Member
164 Posts |
Posted - 25 October 2003 : 17:49:02
|
When I try to upload somthing I get this error:
Error! File did not upload to system please contact the system administrator |
http://www.coasterfuel.com |
|
|
Topic |
|