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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 PM
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

xuanlu
Starting Member

41 Posts

Posted - 20 March 2002 :  05:34:50  Show Profile  Visit xuanlu's Homepage
anyway you can put a message before the forum saying if you have new message in ur inbox? instead of at the bottom?

milki
Junior Member

Israel
320 Posts

Posted - 20 March 2002 :  08:05:55  Show Profile  Visit milki's Homepage  Send milki an ICQ Message
you need to change some line in default.sap

and change the plase this

I know site that use waht you srch for but is in hebrow ...
anyway http://www.israel-forum.co.il

i think you need to change this

<!--#include file="privatemess.asp"-->

cut it and move it to under this

Response.Write " <a href=""default.asp""><img src=""icon_folder.gif"" height=15 width=15 border=0 hspace=0 alt=""all forums""></a>"
else
Response.Write "  "
end if
Response.Write " </b></font></td>" & vbNewline & _

its shuld look like that

Response.Write " <a href=""default.asp""><img src=""icon_folder.gif"" height=15 width=15 border=0 hspace=0 alt=""all forums""></a>"
else
Response.Write "  "
end if
Response.Write " </b></font></td>" & vbNewline & _
<!--#include file="privatemess.asp"-->

if its don't work im sory ...

Go to Top of Page

xuanlu
Starting Member

41 Posts

Posted - 20 March 2002 :  08:16:28  Show Profile  Visit xuanlu's Homepage
no it didnt work. thanks anyway

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 20 March 2002 :  08:24:47  Show Profile  Visit Gremlin's Homepage
Try moving that line right up to the top of your default.asp, insert around line 102

would look like this then from 102 onwards


Response.Write "<table border=0 width=""100%"" cellspacing=0 cellpadding=0 align=center>" & vbNewline & _
%>
<!--#include file="privatemess.asp"-->
<%
Response.Write
" <tr>" & vbNewline & _
" <td>" & vbNewline
' If Whole Board Subscription is allowed, check for a subscription by this user.


Delete the bits in red and insert the bit in green

www.daoc-halo.com


Edited by - Gremlin on 20 March 2002 08:34:08
Go to Top of Page

xuanlu
Starting Member

41 Posts

Posted - 20 March 2002 :  08:34:40  Show Profile  Visit xuanlu's Homepage
worked! but.... the whole board below the PM set itselfs width to 100%, which looks odd

Go to Top of Page

kjartis
New Member

Norway
94 Posts

Posted - 20 March 2002 :  13:50:10  Show Profile  Visit kjartis's Homepage
I use this code:
<%
if strDBNTUserName <> "" then
' Get Private Message count for display on Default.asp
if strDBType = "access" then
strSqL = "SELECT count(M_TO) as [pmcount] "
else
strSqL = "SELECT count(M_TO) as pmcount "
end if
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS , " & strTablePrefix & "PM "
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'"
strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "PM.M_TO "
strSql = strSql & " AND " & strTablePrefix & "PM.M_READ = 0 "

Set rsPM = my_Conn.Execute(strSql)
pmcount = rsPM("pmcount")

rsPM.close
set rsPM = nothing

if strDBNTUserName = "" then
Response.Write ""
else
if pmcount = 0 then
Response.Write ""
end if
if pmcount >= 1 then
Response.Write "<table width=""97%"" border=""0"" cellspacing=""0"" cellpadding=""0"" align=""center"">"
Response.Write "<tr>"
Response.Write "<td><a href=""pm_view.asp""><img src=""icon_pm_new_big.gif"" alt=""You got a new Private Message!"" border=""0""></a></td>"
Response.Write "</tr>"
Response.Write "</table>"
end if
end if
end if
%>

This code makes a image apare when a new PM is in the inbox. Place the code in inc_top.asp, perhaps below the forumlogo. When it is placed in inc_top.asp the image will apare on every page in the forums.
You must make or find a image simular to this one

This code can be found in the includefile that you use on default.asp (privatemess2.asp), I have just done some adjustments to it.

If you dont like the table that the image is inside, it should not be a problem removeing the Response.Write "<tab... lines in the code.



Edited by - Kjartis on 20 March 2002 14:10:56
Go to Top of Page

xuanlu
Starting Member

41 Posts

Posted - 21 March 2002 :  04:21:39  Show Profile  Visit xuanlu's Homepage
the cannot be displayed after i put that code in

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 21 March 2002 :  05:02:36  Show Profile  Visit Gremlin's Homepage
quote:

worked! but.... the whole board below the PM set itselfs width to 100%, which looks odd



Thats odd, try changing the width="100%" on the first line of the code I showed you to something smaller say 60% then.

www.daoc-halo.com
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 21 March 2002 :  05:32:34  Show Profile
I use this code in inc_top:

demo: http://www.webbhost.net/

<center>
<%
if pmcount > 0 then %>
<table width=85% height=25><tr><td height=100% valign=middle background="redstripe.gif">
<font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<center><marquee><A HREF="pm_view.asp"><% =strDBNTUserName %> you have <% =pmcount %> private message(s) in your inbox...</a></marquee></center>
</font>
</td></tr></table>
<% end if %>
</center>
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.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07