Author |
Topic |
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 14 January 2002 : 13:49:10
|
Please Note
The dbs file in the zip sets the photo upload path to 'uploaded' not photo, although it will only ever display photo in the admin_fileattachment unless you use the fixed one I posted.
|
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 14 January 2002 : 13:53:50
|
bb8636
You had missed a couple of lines in your pop_profle.asp
I would attach the fix, but can't upload here.
Double check the source pop_profile.asp and search for
Photo mod
You will see you have 2 entries missing.
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
bb8636
New Member
68 Posts |
Posted - 14 January 2002 : 21:30:58
|
I already set the permission to the folders "photo" and "uploaded" full control for everyone, but still got below error...
Error Type: Microsoft VBScript runtime (0x800A0005) Invalid procedure call or argument /forum/include/clsFile.inc, line 89
Browser Type: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Page: POST 10367 bytes to /forum/UploadEngine.asp
POST Data: error '80020009' Exception occurred.
/iisHelp/common/500-100.asp, line 192
|
|
|
abyssknight
Starting Member
9 Posts |
Posted - 14 January 2002 : 21:47:10
|
IS there anyway I could modify this mod to make it for moderators only?
Just another addition to my non-forum snitz dynamic web system...
Thanks.
AK
|
|
|
bb8636
New Member
68 Posts |
Posted - 14 January 2002 : 22:30:43
|
I got the another error...
Error Type: Microsoft VBScript runtime (0x800A01C9) This key is already associated with an element of this collection /forum/UploadEngine.asp, line 71
|
|
|
bb8636
New Member
68 Posts |
Posted - 14 January 2002 : 22:39:43
|
Azaniah,
Thanks, the pop_profile.asp file is work now. And how about the UploadEngine.asp? Do you got any idea to fix it?
Thanks lot!
John
|
|
|
miamivipclub
Starting Member
29 Posts |
Posted - 15 January 2002 : 00:15:37
|
Just noticed include/inc_memberspot.asp is not looking at the gallery photo. Has anyone modified a inc_memberspot.asp yet?
|
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 15 January 2002 : 01:25:40
|
quote:
I got the another error...
Error Type: Microsoft VBScript runtime (0x800A01C9) This key is already associated with an element of this collection /forum/UploadEngine.asp, line 71
Check your db for double entries in the MODS Table
Test Site: EastPasco Huw's Code 3.3.10 SQL 2000 Snitz Mod Resource Email |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 15 January 2002 : 04:25:04
|
miamivipclub,
I haven't but I don't think it will be that hard. Let me have a look today.
abyssknight,
Do you want Moderators and Admin's only to be allowed to attach photos?
I'm not sure what you want to do there. - Let me know.
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
bb8636
New Member
68 Posts |
Posted - 15 January 2002 : 09:57:52
|
How can I set the permissions under Win2K Pro? I can't see the security tab when I right click or choose properties from the upload folder....
Thanks,
John
|
|
|
abyssknight
Starting Member
9 Posts |
Posted - 15 January 2002 : 16:27:54
|
quote:
Do you want Moderators and Admin's only to be allowed to attach photos?
I'm not sure what you want to do there. - Let me know.
You hit it on the nail! That's exactly what I want to do.
I tried setting the upload mod to moderators only, but for some reason when I open a test account allow uploads is still checked, this is without the photo mod, just a random question...
BUT, yes I would like to do that with the photo mod. That'd be sweet!
|
|
|
Fury
New Member
USA
62 Posts |
Posted - 16 January 2002 : 00:02:26
|
Very nice Az! Thanks for the code. I was having a problem with it saying I did not have enough space to fit the file but just replaced my UploadEngine.asp and my pop_photo.asp with yours. I didn't see any obvious differences anyway and it worked.
I did have a little trouble finding where you put the link. For anyone else having that problem ... After everything is installed go to the members screen and into your profile. On the bottom left are the links to view your gallery or to edit it (which is where you can upload). Once you have added a photo to your gallery, on the members screen you will now see a camera link where others can view your gallery.
What code would I need to add the the my.asp to get the View and Edit links on that page?
|
|
|
Fury
New Member
USA
62 Posts |
Posted - 16 January 2002 : 01:17:57
|
I figured out how to get the links on the my.asp page but I kind of forced it with some sloppy code. Here's what I put. If anyone wants to clean it up please feel free and I'll remove this.
All in the my.asp file: First I added:
quote: & strMemberTablePrefix & "MEMBERS.MEMBER_ID,
to the end of the strSQL line that has MEMBERS.M_NAME in it (around line 290 in my file) then since I couldn't get the rs("M_NAME") and memberid to work I added two variables after the set rs = my_Conn... command.
quote:
strMName = rs("M_NAME") strMID = rs("MEMBER_ID")
Then down around line 415 I added this code (right after the ending /tr after the inc_jump_to.asp
quote:
<!--#INCLUDE file="inc_jump_to.asp" --> </td> </tr>
<tr><td> <tr><td colspan=3 align=""left""> <% Response.Write "<img src=""" & strImageURL & "photo.gif"" border=0 >" %> <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><b>Your Photo Gallery</b></font><br> <% pathSql = "SELECT " & strTablePrefix & "MODS.M_VALUE" pathSql = pathSql & " FROM " & strTablePrefix & "MODS" pathSql = pathSql & " WHERE M_CODE = 'photo'" set rsPath = my_Conn.Execute(pathSql) strPath = rsPath("M_VALUE") rsPath.Close Response.Write " <a href=""javascript:openWindowGal('pop_photo_gallery.asp?PATH=" & strPath & "&M_NAME=" & strMName & "&MEMBER_ID=" & strMID & " ') "">" Response.Write "<b>View Gallery:</b>" Response.Write "</a><br>" response.Write " <a href=pop_photo_gallery_edit.asp?PATH=" & strPath & "&M_NAME=" & strMName & "&MEMBER_ID=" & strMID & "><b>Edit Gallery:</b>" Response.Write "</a><p></td></tr>"
%> </td><tr> </td></tr>
It's a mess but it works. Someone please show me the right way. Thanks
Edited by - Fury on 16 January 2002 01:19:11 |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 16 January 2002 : 04:40:20
|
Fury,
Okies I'll have a look at this for you too..
Abyssknight,
I'm still a bit confused. You want the photo's to go into users XXX's gallery, but you only want moderators or Admins to be able to put it there? Kind of like moderating which photo's are allowed?
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
ROB
Junior Member
USA
347 Posts |
Posted - 16 January 2002 : 13:07:47
|
Is there anywhere that I can see a demo of this MOD?
Jeff Hester http://www.bigblueball.com Absolutely everything about Instant Messaging & Chat |
|
|
Topic |
|