Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Unwanted code to show #posts

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
i011877 Posted - 05 August 2006 : 19:47:40
Hmm I got this small piece of code that I can't quite figure out.
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:
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<
2   L A T E S T    R E P L I E S    (Newest First)
i011877 Posted - 06 August 2006 : 03:34:04
Well as said, that was my logic

Thanks for sorting that aout HuwR.<
HuwR Posted - 05 August 2006 : 20:09:25
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<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.07