Author |
Topic |
burthold
Junior Member
USA
426 Posts |
Posted - 15 October 2002 : 18:18:16
|
DavidRhodes: Correct, a little typo! woops! I'll correct it and put up new files.
bbd786: Delete the album tables and run the admin_album.asp and it should walk you through the setup. Also, if you pulled the on error resume next out of the files I would download the album again and upload the files again to make sure your changes haven't stopped some aspect from working properly.
Cheers, Wes |
|
|
schef
Junior Member
USA
164 Posts |
Posted - 15 October 2002 : 22:33:52
|
quote: Originally posted by burthold
I don't currently store the number of photos actually uploaded. I have a query on the user admin page to generate that. The reason I didn't include it on the front page is it can be a burden on large sites. I am intergating photo count in the next version. So, to answer your question there is no variable that stores the number of photos a user has uploaded to the system.
Cheers, Wes
I didnt take that into account, but a querry to find each users count could get a little out of hand. I just wanted an alternative to having all users listed when only a few have albums... i know i can just delete the ones that dont have pix, but the users on my site arent too much up to speed with comps, and they just wouldnt post their images if they had to have me setup their account first. But I will keep my eyes open for later mods... keep it up |
ATV Outdoors |
Edited by - schef on 15 October 2002 22:36:38 |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 15 October 2002 : 22:42:23
|
So, you are saying if they don't have any photots in the album at all their name isn't listed right? |
|
|
bbd786
Starting Member
24 Posts |
Posted - 16 October 2002 : 01:39:22
|
thanks for reply bro but i really dont know how to deal with asp pages so can u plz explain me how do i delete tables and what to do next i will appretiate thanks alot ... |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 16 October 2002 : 05:49:23
|
Also, line 174, photo_album_detail.asp should m_name be trim(UserName) |
The UK MkIVs Forum |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 16 October 2002 : 09:30:17
|
I'll check it out today. I fixed the last error. Thanks a ton David for going over my code its nice to have another set of eyes looking at it.
Wes |
|
|
bbd786
Starting Member
24 Posts |
Posted - 16 October 2002 : 13:50:56
|
hi bro finally i can see photo album admin page but now im confused what shud b my upload file directories path .. can u explain how it works when u upload file where it goes .. http://home.1asphost.com/bbd786/images this is my directories exact path i wan files to get upload in images folder on my free hosting . "bbd786" is my user name there so meaning my root directory is " http://home.1asphost.com/bbd786" this and "images" is the folder now can u explain what path shud i give in photo admin options to upload my files.. |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 16 October 2002 : 19:11:59
|
it is relative to root so, if your base website would be http://home1asphost.com/bbd786/basepagename then /images would be the image directory off the root. if the image directory was in your forums directory it would look like /forums/images just like your forums looks like http://home1.asphost.com/bbd786/forums. Sounds like it would be /images make sure that the images directory is read/write for the account that is executed by the web server. i.e. if the web server used the microsoft default user isam_ whatever that user has to have permissions to write to the /images directory.
Cheers, Wes |
|
|
bbd786
Starting Member
24 Posts |
Posted - 17 October 2002 : 01:19:53
|
its not working i have made one folder named "uploads" on my root directory and in admin album option i give this folder like this " /uploads" but still when i try upload pics it only show my box with X in and when i click it , it shows me another small box wrighten path in there like this \uploads\_BBD_WESTY\westy.JPG i know "uploads" is my album directory "_BBD_WESTY" is my user name on forum and "westy.JPG" is pic name but when i see in my directory uploads i dont see anything there its empty...problem here i see is i dont have right to upload files from out side my free hosting..can u explain what is going on this is my free hosting web site address http://www.1asphost.com/ this is the link of my forum photo album.. http://home.1asphost.com/bbd786/forum/photo_album_view.asp?cname=Main+Album&mid=1&cid=5&page=1&pic=westy.JPG |
|
|
burthold
Junior Member
USA
426 Posts |
|
bbd786
Starting Member
24 Posts |
Posted - 17 October 2002 : 14:10:29
|
Exactly sir i know url of pic shud b this but can u click on link i gave u to my forum in above post u will see it is showing my user id to in url like \uploads\_BBD_WESTY\westy.jpg . but it supposed to show me like this http://.1asphost.com/bbd786/uploads/wetsy.jpg and can u tell me if i have right to uploads pics from photo album to this "uploads" folder instead of my free hosting file manager.. |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 17 October 2002 : 16:57:30
|
it may be that outside users don't have permission to view from that directory. The album won't upload files or create thumbnails if the file isn't there or it can't write to the file system. I would hazzard to guess that the album can write to the uploads directory but we don't have rights to view the file. Have you gone through the troubleshooter and tried to upload and view a file from there?
Wes |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 18 October 2002 : 04:37:25
|
Made a little mod so users can preview the image prior to uploading, shows the image under the submit button on the upload page. Code is below if anyone wants it.
Used on photo_album_upload.asp around line 221, need to replace similar section of code with
'############################################# '### Mod to preview image - 17/10/02 '### Added JS to check browser '### Added onPropertyChange method to file box '### Added image below submit button '############################################# Response.Write("<SCRIPT LANGUAGE=""JavaScript"">" &vbCrLf &_ "<!-- Begin script" &vbCrLf &_ "function CheckNav(Netscape, Explorer) {" &vbCrLf &_ " if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||" &vbCrLf &_ " (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))" &vbCrLf &_ " return true;" &vbCrLf &_ " else return false;" &vbCrLf &_ "}" &vbCrLf &_ "// End script " &vbCrLf &_ "-->" &vbCrLf &_ "</SCRIPT>" &vbCrLf) '############################################# response.write "<INPUT type=""File"" name=""File1"" size = ""40"" onPropertyChange=""if (CheckNav(3.0,4.0)) {imgLocalFilePath.src=this.value}""><BR>"& vbNewLine & _ " <textarea cols=""40"" rows=""5"" name=""Description"">Type your description here</textarea><BR>"& vbNewLine response.write " </font></td>"& vbNewLine & _ " </tr>"& vbNewLine & _ " <tr >"& vbNewLine & _ " <td bgColor="""& strPopUpTableColor &""" align=""right""><font face="""& strDefaultFontFace &""" size="""& strDefaultFontSize &"""><b>Category to upload to:</b> </font></td>"& vbNewLine & _ " <td bgColor="""& strPopUpTableColor &"""><font face="""& strDefaultFontFace &""" size="""& strDefaultFontSize &""">"& vbNewLine & _ " <select name=""photo_cat"">"& cat_sel & vbNewLine & _ " </select>"& vbNewLine & _ " </font></td>"& vbNewLine & _ " </tr>"& vbNewLine & _ " <tr >"& vbNewLine & _ " <td colspan = ""2"" bgColor="""& strPopUpTableColor &""" align=""center""><font face="""& strDefaultFontFace &""" size="""& strDefaultFontSize &""">"& vbNewLine & _ " <INPUT type=""Submit"" value=""Upload"">"& vbNewLine & _ " </font><br><img name=""imgLocalFilePath"" src="""& strImageUrl &"clear.gif""></td>"& vbNewLine & _ " </tr>"& vbNewLine '############################################# '### End Mod '#############################################
|
The UK MkIVs Forum |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 18 October 2002 : 04:41:14
|
burthold, great mod btw, works and looks brilliant! |
The UK MkIVs Forum |
|
|
bbd786
Starting Member
24 Posts |
Posted - 18 October 2002 : 14:20:51
|
hi brother im confused now anyway when i try to upload from troublshoter it gives me this message exact path to file: /uploads Write to file failed.No Errors detected, If you are still haveing problems please send me an email to Wesley Brown File has been saved in file system.
View this file:
squirrel-beer.jpg
but when i click on file to view i got message page cannot diplayed and address in address bar is this http://home.1asphost.com/uploads%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/squirrel-beer.jpg y all these 20% and one more thing do u really think so i can upload pics from my hard drive to my free hosting site folder "uploads" through ur photo album ..coz i have to sighn in to my free hosting site to see my folders and upload files into them..thanks for reply.. |
|
|
Topic |
|