Author |
Topic  |
|
adonix
Starting Member
46 Posts |
Posted - 24 February 2005 : 19:50:33
|
File sharing Mod is working greatly, the only problem that I have is that it is not displaying the correct number of files uploaded for the user in the member's profile. It always says zero. Does anybody know how to fix this. Here's the code that the author has to implement this feature in the member's profile:
'files uploaded Response.Write " <tr>" & vbNewLine & _ " <td align=""center"" bgcolor=""" & strCategoryCellColor & """ colspan=""2""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strCategoryFontColor & """>Shared Files</font></b></td>" & vbNewLine & _ " </tr>" & vbNewLine memberFileNo=GetFileNo(CStr(rs("MEMBER_ID")),true,mlev) memberSubFolderNo = GetSubFolderNo(physicalUploadFolder & "\" & CStr(rs("MEMBER_ID"))) memberFileSize = convertSize(GetFileSize(CStr(rs("MEMBER_ID")),true,mlev)) if memberFileNo="" then memberFileNo=0 if memberSubFolderNo="" then memberSubFolderNo=0 Response.Write " <tr>" & vbNewLine & _ " <td bgColor=""" & strAltForumCellColor & """ align=""right"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Files Uploaded:</font></b></td>" & vbNewLine & _ " <td bgColor=""" & strAltForumCellColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine if memberFileNo<>0 then Response.Write " <a href=""membersFiles.asp?memberFldrID="&rs("MEMBER_ID")&""">Browse</a>" & vbNewLine else response.write memberFileNo & "<BR>" Response.Write " No Files uploaded" & vbNewLine end if Response.Write " </font></td>"& vbNewLine&_ " </tr>" & vbNewLine Response.Write " <tr>" & vbNewLine & _ " <td bgColor=""" & strAltForumCellColor & """ align=""right"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Total File(s): </font></b></td>" & vbNewLine & _ " <td bgColor=""" & strAltForumCellColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>"&memberFileNo&"</font></td>" & vbNewLine & _ " </tr>" & vbNewLine Response.Write " <tr>" & vbNewLine & _ " <td bgColor=""" & strAltForumCellColor & """ align=""right"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Subfolder(s): </font></b></td>" & vbNewLine & _ " <td bgColor=""" & strAltForumCellColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>"&memberSubFolderNo&"</font></td>" & vbNewLine & _ " </tr>" & vbNewLine Response.Write " <tr>" & vbNewLine & _ " <td bgColor=""" & strAltForumCellColor & """ align=""right"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Total Size: </font></b></td>" & vbNewLine & _ " <td bgColor=""" & strAltForumCellColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>"&memberFileSize&"</font></td>" & vbNewLine & _ " </tr>" & vbNewLine 'files uploaded
The physicalUploadFolder variable is correct that I added in the inc_uploadConfig.asp file, but I'm not sure why it can't display the correct amount of files uploaded. |
|
adonix
Starting Member
46 Posts |
Posted - 24 February 2005 : 20:01:33
|
OK, here's the funny thing. If I login as a regular user, I'm able to see in the member's profile section how many files the user has uploaded with the correct amount, however, if I login as admin I am not able to see this same info at all and it always display zero, no files uploaded, etc. How can I quickly fix this? Please help. |
Edited by - adonix on 24 February 2005 20:03:32 |
 |
|
adonix
Starting Member
46 Posts |
Posted - 28 February 2005 : 13:15:41
|
so can anybody out there help? |
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 02 September 2005 : 06:39:39
|
Did you solve this?
I have the same problem I think, but NO sums are displayed, zero's everywhere..
|
/Tribaliztic - www.gotlandrace.se -
|
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 19 October 2005 : 07:03:42
|
Anyone? =)
|
/Tribaliztic - www.gotlandrace.se -
|
 |
|
StephenD
Senior Member
   
Australia
1044 Posts |
Posted - 19 October 2005 : 07:24:09
|
I quickly fixed it by removing the mod from the member profile pages. From memory I spent a lot of time on it and gave up. |
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 19 October 2005 : 07:51:48
|
Well, that's not an option =) I'm working on extending the member profiles with info like this. I can't understand why the info is populated on membersfiles.asp and not pop_profile.asp...
|
/Tribaliztic - www.gotlandrace.se -
|
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 19 October 2005 : 10:44:23
|
OMG! I got it working in my pop_profile.asp now! =) Here's the chopped down membersfiles.asp I include in pop_profile.asp: http://www.gotlandrace.com/tabort/membersfiles.txt There is some < / t r > or something missing because it screw up the footer, but that's quite easy to find. |
/Tribaliztic - www.gotlandrace.se -
|
 |
|
|
Topic  |
|