Author |
Topic |
|
jalbani
Starting Member
14 Posts |
Posted - 20 May 2001 : 21:12:14
|
Is there an 'easy' way to insert a link in the navigation area for Private Messages? I am using the pm package found in HUWR download.
Edited by - jalbani on 21 May 2001 09:41:32 |
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 21 May 2001 : 01:07:52
|
There is a number of ways to do it (code to add it is in RED);
Place this in the inc_top.asp just after the last item that an unregistered user sees :-
<% if (mlev > 01) or (lcase(strNoCookies) = "1") then %> | <a href="privatemess.asp"><acronym title="Private Messages...">Private Messages</acronym></a> <% end if %>
or you can put this in the default.asp where I have mine just before this piece of code
<tr> <td align=center bgcolor="<% =strHeadCellColor %>" nowrap valign="top"><b> </td> <td align=center bgcolor="<% =strHeadCellColor %>" nowrap valign="top"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">Forums</font></b></td> <td align=center bgcolor="<% =strHeadCellColor %>" nowrap valign="top"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">Topics</font></b></td> <td align=center bgcolor="<% =strHeadCellColor %>" nowrap valign="top"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">Posts</font></b></td> <td align=center bgcolor="<% =strHeadCellColor %>" nowrap valign="top"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">Last Post</font></b></td> <% if (strShowModerators = "1") or (mlev = 4 or mlev = 3) then %> <td align=center bgcolor="<% =strHeadCellColor %>" nowrap valign="top"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">Moderator(s)</font></b></td>).
<% if (mlev > 0) or (lcase(strNoCookies) = "1") then %> <!--#include file="privatemess.asp"--> <% end if %>
This is how I have done it. I have included extra code as this way it doesn't show until the user is logged in. Just makes it look nicer.
I hope this helps.
Regards,
Webmaster @ Classic Motor Cycling Classic Motor Cycling
Edited by - Classicmotorcycling on 21 May 2001 01:14:43 |
|
|
[LooS3r] Cedric
Starting Member
Australia
22 Posts |
Posted - 21 May 2001 : 04:04:14
|
do you need the latest version of the forums to have this pm hack?
|
|
|
big9erfan
Average Member
540 Posts |
Posted - 21 May 2001 : 09:35:55
|
You need to have PMs installed. As long as you have the latest PMs installed this hack will work.
http://www.ugfl.net/forums |
|
|
bjv
Starting Member
21 Posts |
Posted - 21 May 2001 : 13:22:48
|
I saw ur forum and you have the PM placed between the forums and the statistics.. somehow I can't do that do u know how?
Woke up quick at about noone // just thought that I had to be in compton soon // Trynna get drunk before the day beginz // b4 my momma starts ***ing about my friendz //
Jump on fools with tha quickness and tehy got no cure for this sicknezz |
|
|
big9erfan
Average Member
540 Posts |
Posted - 21 May 2001 : 14:07:37
|
This is how mine looks around line 420 or so
<!--#include file="privatemess.asp"--> <!--#include file="active_users2.asp"--> <%if strShowStatistics = "1" then WriteStatistics end if %>
http://www.ugfl.net/forums |
|
|
bjv
Starting Member
21 Posts |
Posted - 21 May 2001 : 14:18:49
|
Aiight thanks, I see the active users thing 2, I can't find the add on anywhere I thought I had it once but I lost it... where is it at?
Woke up quick at about noone // just thought that I had to be in compton soon // Trynna get drunk before the day beginz // b4 my momma starts ***ing about my friendz //
Jump on fools with tha quickness and tehy got no cure for this sicknezz |
|
|
[LooS3r] Cedric
Starting Member
Australia
22 Posts |
Posted - 22 May 2001 : 03:53:57
|
i am getting this error:
Microsoft VBScript compilation error '800a0400'
Expected statement
/forums/default.asp, line 150
<!--#include file="privatemess.asp"--> ^
what does it mean and how do i fix it
btw, i am using big9erfan's way.
|
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 22 May 2001 : 05:48:22
|
Thats easy, you have placed your code in the wrong spot. Look for this code; else Response.Write(" ") end if %> </td> </tr> <% end if %> <tr> <td bgcolor="<% =strTableBorderColor %>"> <table border=0 width="100%" cellspacing=1 cellpadding=4>
and place your include (<!--#include file="privatemess.asp"-->) statement after this code. Hope that helps.
quote:
i am getting this error:
Microsoft VBScript compilation error '800a0400'
Expected statement
/forums/default.asp, line 150
<!--#include file="privatemess.asp"--> ^
what does it mean and how do i fix it
btw, i am using big9erfan's way.
Regards,
Webmaster @ Classic Motor Cycling Classic Motor Cycling
Edited by - Classicmotorcycling on 22 May 2001 05:52:36 |
|
|
[LooS3r] Cedric
Starting Member
Australia
22 Posts |
Posted - 22 May 2001 : 07:04:40
|
ok, thanx. but i can't find where that is
how far is it down?
|
|
|
big9erfan
Average Member
540 Posts |
Posted - 22 May 2001 : 09:26:40
|
Cedric,
Are you trying to place the Private Messages link in the nave bar or are you trying to add the Private Messages Link down under the forums and above the statistics?
http://www.ugfl.net/forums |
|
|
[LooS3r] Cedric
Starting Member
Australia
22 Posts |
Posted - 23 May 2001 : 04:14:20
|
quote: Cedric,
Are you trying to place the Private Messages link in the nave bar or are you trying to add the Private Messages Link down under the forums and above the statistics?
http://www.ugfl.net/forums
i'm trying to add the Private Messages Link down under the forums and above the statistics.
|
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 23 May 2001 : 04:34:44
|
[LooS3r] Cedric,
Look for the green colored code and place the red colored code at the place I have put it. This should help you put. I do not know what line number it is, but it is towards the bottom of default.asp.
ActiveTopicCount = -1 if not IsNull(Session(strCookieURL & "last_here_date")) then if not blnHiddenForums then '## Forum_SQL - Get ActiveTopicCount from DB strSql = "SELECT COUNT(" & strTablePrefix & "TOPICS.T_LAST_POST) AS NUM_ACTIVE " strSql = strSql & "FROM " & strTablePrefix & "TOPICS " strSql = strSql & "WHERE (((" & strTablePrefix & "TOPICS.T_LAST_POST)>'"& Session(strCookieURL & "last_here_date") & "'))"
set rs = my_Conn.Execute(strSql) if not rs.EOF then ActiveTopicCount = rs("NUM_ACTIVE") else ActiveTopicCount = 0 end if end if end if
rs.close set rs = nothing ShowLastHere = (cint(ChkUser2(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"))) > 0) %>
<% if (mlev > 0) or (lcase(strNoCookies) = "1") then %> <!--#include file="privatemess.asp"--> <% end if %>
Let me know how you go... This places the code just above the statistics.
quote:
quote: Cedric,
Are you trying to place the Private Messages link in the nave bar or are you trying to add the Private Messages Link down under the forums and above the statistics?
http://www.ugfl.net/forums
i'm trying to add the Private Messages Link down under the forums and above the statistics.
Regards,
Webmaster @ Classic Motor Cycling Classic Motor Cycling |
|
|
|
Topic |
|