Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 File sharing Mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

adonix
Starting Member

46 Posts

Posted - 24 February 2005 :  19:50:33  Show Profile
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  Show Profile
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
Go to Top of Page

adonix
Starting Member

46 Posts

Posted - 28 February 2005 :  13:15:41  Show Profile
so can anybody out there help?
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 02 September 2005 :  06:39:39  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Did you solve this?

I have the same problem I think, but NO sums are displayed, zero's everywhere..

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 19 October 2005 :  07:03:42  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Anyone? =)

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 19 October 2005 :  07:24:09  Show Profile  Send StephenD a Yahoo! Message
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.
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 19 October 2005 :  07:51:48  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
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 -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 19 October 2005 :  10:44:23  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
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 -
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07