Unwanted code to show #posts - Postet den (1472 Views)
Junior Member
i011877
Innlegg: 169
169
Hmm I got this small piece of code that I can't quite figure out.
Code:
Response.Write	"              <tr>" & vbNewLine & _
" <td bgcolor=""" & CColor & """ valign=""top"" width=""" & strTopicWidthLeft & """"
if lcase(strTopicNoWrapLeft) = "1" then Response.Write(" nowrap")
Response.Write ">" & vbNewLine & _
" <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b><span class=""spnMessageText"">" & profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) & "</span></b></font><br />" & vbNewLine

if strShowRank = 1 or strShowRank = 3 then
Response.Write " <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & ChkString(getMember_Level(Reply_MemberTitle, Reply_MemberLevel, Reply_MemberPosts),"display") & "</small></font><br />" & vbNewLine
end if
if strShowRank = 2 or strShowRank = 3 then
Response.Write " " & getStar_Level(Reply_MemberID, Reply_MemberLevel, Reply_MemberPosts) & vbNewLine
end if
Watch the 2 red 'Reply_MemberPosts' that does not really belong there, as i show the #posts under the sig in the bottom.
When removing them i get an error, but in my small-brain-logic i could just remove them! Why not? -and how should the code look to make it work?
Example of how it looks now: http://www.myforum.dk/topic.asp?TOPIC_ID=2623
As you can see, I do not have the need to have the postcount show in the left row. Further down I got this:
Code:
Response.Write	"                    <tr>" & vbNewLine & _
" <td colspan=""2"" valign=""bottom"" align=""left"" height=""20""><hr size=""1"" color=""#555555""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """></td></tr><td width=""100%"" nowrap>" & vbNewLine & _
" <nobr><img alt=""" & Reply_MemberCountry & """ src=""" & strImageURL & "flags/" & Reply_MemberCountry & ".gif"" width=""21"" height=""14"" border=""0"" align=""absbottom"">" & vbNewLine & _
" <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small> | Indlæg: " & Reply_MemberPosts & "</small></font></td>" & vbNewLine & _
" <td valign=""top"" align=""right"" width=""1""><a href=""#top"">" & getCurrentIcon(strIconGoUp,"Go to Top of Page","align=""right""") & "</a></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine
intI = intI + 1
if intI = 2 then
intI = 0
end if
next
end if
To have the number of posts show in the bottom.
Please advice<
   
 Sidestørrelse 
Postet den
Forum Admin
HuwR
Innlegg: 20611
20611
your example does not show the number of posts, so why are you trying to remove anything ?
the variables Reply_MemberPosts which you highlighted in red are being passed to functions so that it can work out 1) what your Title is and 2) how many stars you should get, they are not actually displaying the number of posts at all<
Postet den
Junior Member
i011877
Innlegg: 169
169
Well as said, that was my logic bigsmile
Thanks for sorting that aout HuwR.<
 
Du må legge inn en melding