<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Risolto] N Nuovi messaggi ....codice asp!! HELP]]></title><description><![CDATA[<p dir="auto">Non potendo modificare il mio ultimo post aperto sono costretto ad aprirne un altro!<br />
Quindi prego i mod di cancellare il mio ultimo post quello dove chiedo di vedere il codice sorg di una pagina asp!<br />
Ora passo alla domanda...<br />
ho una porzione di codice eccolo :</p>
<hr />
<p dir="auto">&lt;%</p>
<pre><code>'If the user has logged in then the Logged In User ID number will not be 0 and not 2 for the guest account
If lngLoggedInUserID &lt;&gt; 0 AND lngLoggedInUserID &lt;&gt; 2 Then
		
	'Link to user cp
	Response.Write(vbCrLf &amp; "   &lt;div style=""float:left;""&gt;")
	If blnBanned = False Then Response.Write ("&lt;img src=""" &amp; strImagePath &amp; "member_control_panel." &amp; strForumImageType &amp; """ title=""" &amp; strTxtMemberCPMenu &amp; """ alt=""" &amp; strTxtMemberCPMenu &amp; """ style=""vertical-align: text-bottom"" /&gt;&amp;nbsp;&lt;a href=""member_control_panel.asp" &amp; strQsSID1 &amp; """&gt;" &amp; strTxtMemberCPMenu &amp; "&lt;/a&gt;")
	Response.Write ("&amp;nbsp;&amp;nbsp;&lt;img src=""" &amp; strImagePath &amp; "messenger." &amp; strForumImageType &amp; """ alt=""" &amp; strTxtNewMessages &amp; """ title=""" &amp; strTxtNewMessages &amp; """ style=""vertical-align: text-bottom"" /&gt; &lt;a href=""pm_welcome.asp" &amp; strQsSID1 &amp; """&gt;" &amp; strTxtNewMessages &amp; "&lt;/a&gt;")%&gt;
	&lt;!-- #include file="pm_check_inc.asp" --&gt;&lt;%
	Response.Write("&lt;/div&gt;")
End If
</code></pre>
<p dir="auto">%&gt;</p>
<hr />
<p dir="auto">questa porzione codice sopra, appartiene ad una pagina asp chiamata status_bar_header_inc.asp<br />
praticamente il codice in questione mi crea accanto alla scritta control Panel una scritta sui PM relativi all'utente loggato!<br />
Ora ho un problema...non riesco a far visualizzare il numero dei PM nuovi che ha ricevuto l'utente...difatti mi lascia come testo Nuovi Messaggi...io clicco li e mi apre il mio spazio dei miei messaggi privati!!<br />
come si fa a far spuntare il numero di MP nuovi ricevuti???<br />
Come potete notare c'è un INCLUDE di una pagina che si chiama pm_check con questo codice :</p>
<hr />
<p dir="auto">Dim intNotifiedNoOfPMs<br />
Dim intNumOfNewPM</p>
<p dir="auto">'If the user is logged in and there account is active display if they have private messages<br />
If intGroupID &lt;&gt; 2 AND blnActiveMember AND blnPrivateMessages AND blnACode = False Then</p>
<pre><code>'Display the number of new pm's
If intNoOfPms &gt; 0 Then
	Response.Write("&amp;nbsp;&amp;nbsp;&lt;img src=""" &amp; strImagePath &amp; "new_private_message." &amp; strForumImageType &amp; """ title=""" &amp; intNoOfPms &amp; " " &amp; strTxtNewMessages &amp; """ alt=""" &amp; intNoOfPms &amp; " " &amp; strTxtNewMessages &amp; """ /&gt; &lt;a href=""pm_welcome.asp" &amp; strQsSID1 &amp; """&gt;&lt;strong&gt;" &amp; intNoOfPms &amp; "&lt;/strong&gt; " &amp; strTxtNewMessages &amp; "&lt;/a&gt;")
Else
	Response.Write("&amp;nbsp;&amp;nbsp;&lt;img src=""" &amp; strImagePath &amp; "private_message." &amp; strForumImageType &amp; """ title=""0 " &amp; strTxtNewMessages &amp; """ alt=""0 " &amp; strTxtNewMessages &amp; """ /&gt; &lt;a href=""pm_welcome.asp" &amp; strQsSID1 &amp; """&gt;0 " &amp; strTxtNewMessages &amp; "&lt;/a&gt;")
End If

'Get the number of PM's the user has been notified of from cookie
If isNumeric(getSessionItem("notifiedPMs")) Then intNotifiedNoOfPMs = CLng(getSessionItem("notifiedPMs")) Else intNotifiedNoOfPMs = 0
		

'If the number of un-read PM's is higher then the user has been notified of, they have a new PM so tell them
If intNoOfPms &gt; intNotifiedNoOfPMs Then
		
	Call saveSessionItem("notifiedPMs", intNoOfPms)
		
	'Display the alert
	Response.Write("&lt;script language=""JavaScript""&gt;&lt;!-- " &amp; _
	vbCrLf &amp; vbCrLf &amp; "//Display pop for new private message" &amp; _
	vbCrLf &amp; "checkPrivateMsg = confirm('" &amp; strTxtYouHave &amp; " " &amp; intNoOfPms &amp; " " &amp; strTxtNewPMsClickToGoNowToPM &amp; "')" &amp; _
	vbCrLf &amp; "if (checkPrivateMsg == true) {" &amp; _
	vbCrLf &amp; "	window.location='pm_inbox.asp" &amp; strQsSID1 &amp; "'" &amp; _
	vbCrLf &amp; "}" &amp; _
	vbCrLf &amp; "// --&gt;&lt;/script&gt;")
End If
</code></pre>
<p dir="auto">End If<br />
%&gt;</p>
<hr />
<p dir="auto">non credo c'entri molto con quello che devo andare a modificare....oppure si??<br />
attendo vostro aiuto</p>
]]></description><link>https://dev.connect.gt/topic/56111/risolto-n-nuovi-messaggi-codice-asp-help</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 09:02:55 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/56111.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Dec 2007 15:59:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Risolto] N Nuovi messaggi ....codice asp!! HELP on Thu, 06 Dec 2007 11:45:58 GMT]]></title><description><![CDATA[<p dir="auto">Niente Ragazzi ci sono riuscito da solo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /> grazie lo stesso!</p>
]]></description><link>https://dev.connect.gt/post/649742</link><guid isPermaLink="true">https://dev.connect.gt/post/649742</guid><dc:creator><![CDATA[la.maglia.rosanero]]></dc:creator><pubDate>Thu, 06 Dec 2007 11:45:58 GMT</pubDate></item></channel></rss>