Author |
Topic |
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 29 April 2003 : 16:48:25
|
Easy one
Look at the pic of CMS Configuration in your earlier post: 'Items Displayed in left nav' and 'Items Displayed in right nav' should be numbers, put 5 in both for instance.
My fault, should've had some error handling there, i'll make a note of it |
The UK MkIVs Forum |
|
|
anotherwin95
Junior Member
USA
140 Posts |
Posted - 29 April 2003 : 17:05:30
|
David,
WooHoo! It is working now! This is going to be an awesome add on for my site - thank you very much for your patience and assistance over the last few days!
Everyone can now check me out at http://www.anotherwin95.com/forum/portal.asp
Thanks! |
Richard Hay Webmaster/Forum Admin http://AnotherWin95.com
|
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 29 April 2003 : 17:23:35
|
No probs
If you are using the portal as your homepage you may also want to do the following:-
go to 'Main Forum Configuration' in admin options set 'Home URL' to 'portal.asp'
This will result in the link 'Home' in the navigation going to portal.asp rather than default.asp |
The UK MkIVs Forum |
|
|
anotherwin95
Junior Member
USA
140 Posts |
Posted - 29 April 2003 : 17:35:47
|
David,
Just did that as you suggestd - that changes the "Home" link on the upper right hand menu. Works out great!
I look forward to more on this mod. I may have a few suggestions that you are already thinking of but will jot them down and send your way for youer perusal.
Thanks again!
|
Richard Hay Webmaster/Forum Admin http://AnotherWin95.com
|
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 29 April 2003 : 17:55:29
|
zip updated:
2 changes portal.asp - error trapping admin_config_cms.asp - form validation
Not bugs as such but if you have already implemented this you may aswell replace the above files, will avoid confusion if I use line numbers for additions to the mod |
The UK MkIVs Forum |
|
|
Chris Yew
Junior Member
134 Posts |
Posted - 07 May 2003 : 01:35:19
|
Hi David, Your Portal mod works well for me and I'm looking forward to the next release from you.
BTW, if I wish to include the Member Spotlight mod on the right side just above the Search Function, may I know how to include that in at the portal.asp?
Where and how should I insert this; <!--#INCLUDE FILE="member_spotlight.asp" -->
Sorry, I really know nothing about asp and hope you can help. Thank you very much.
Chris Yew http://www.bettaclub.org.sg/forum/portal.asp |
Edited by - Chris Yew on 07 May 2003 01:35:51 |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 07 May 2003 : 05:25:41
|
try this Chris find line 118
call DisplayCategories(0, strCMSRightNavWidth)
Response.Write " </td>"
INBETWEEN those 2 line place
%><!--#INCLUDE FILE="member_spotlight.asp" --><% |
The UK MkIVs Forum |
|
|
Chris Yew
Junior Member
134 Posts |
Posted - 07 May 2003 : 09:09:24
|
HI David, I've tried but it shows; HTTP 500 - Internal server error
Chris Yew
|
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 07 May 2003 : 09:27:41
|
turn off 'Show Friendly HTTP Error Messages' in Tools > Internet Options > Advanced You will then see the proper error |
The UK MkIVs Forum |
|
|
Chris Yew
Junior Member
134 Posts |
Posted - 07 May 2003 : 09:47:49
|
Hi David, done that and now it shows; Microsoft VBScript compilation error '800a03ea'
Syntax error
/forum/member_spotlight.asp, line 24
function MemInSpot
And this is line 24 in member_spotlight.asp (Red);
<% Response.write "<table width=""150"" border=""0"" cellspacing=""0"" cellpadding=""0"" bgcolor=" & strHeadCellColor & ">" & vbCrLf & _ " <tr>" & vbCrLf & _ " <td align=""left"" valign=""top"">" & vbCrLf & _ " <table BORDER=""0"" bordercolor=""" & strHeadCellColor & """ cellspacing=""1"" cellpadding=""0"" width=""100%"">" & vbCrLf & _ " <tr>" & vbCrLf & _ " <td valign=""top"">" & vbCrLf & _ " <table border=""0"" cellspacing=""0"" cellpadding=""0"" width=""100%"">" & vbCrLf & _ " <tr>" & vbCrLf & _ " <td align=""center"" bgcolor=" & strHeadCellColor & ">" & vbCrLf & _ " <table width=""100%"" cellpadding=""2"">" & vbCrLf & _ " <tr>" & vbCrLf & _ " <td valign=""top"" align=""center""><font face=""" & strDefaultFontFace & """ color=""" & strHeadFontColor & """ size=""" & strHeaderFontSize & """>Betta Spotlight</font></td>" & vbCrLf & _ " </tr>" & vbCrLf & _ " </table>" & vbCrLf & _ " </td>" & vbCrLf & _ " </tr>" & vbCrLf & _ " <tr>" & vbCrLf & _ " <td bgcolor=""" & strForumCellColor & """>" & vbCrLf & _ " <table border=""0"" width=""100%"" cellspacing=""0"" cellpadding=""2"">"
'START MEMBER IN SPOTLITE SCRIPT function MemInSpot set rsMemInSpot = Server.CreateObject("ADODB.Recordset") strSql = "SELECT " & strTablePrefix & "MEMBERS.MEMBER_ID, " & strTablePrefix & "MEMBERS.M_LINK2, " & strTablePrefix & "MEMBERS.M_NAME, " strSql = strSql & strTablePrefix & "MEMBERS.M_FIRSTNAME, " & strTablePrefix & "MEMBERS.M_LASTNAME, " & strTablePrefix & "MEMBERS.M_AGE" strSql = strSql & " FROM " & strTablePrefix & "MEMBERS" strSql = strSql & " WHERE FORUM_MEMBERS.M_LINK2 <> ''" strSql = strSql & " AND FORUM_MEMBERS.M_STATUS = " & 1 rsMemInSpot.Open strSql, my_Conn,3,,adCmdText Dim intRnd Randomize Timer intRnd = (Int(RND * rsMemInSpot.RecordCount)) rsMemInSpot.Move intRnd strMemInSpot = rsMemInSpot("M_LINK2")
I don't have this error in my forum; http://www.bettaclub.org.sg/forum |
Edited by - Chris Yew on 07 May 2003 09:58:17 |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 07 May 2003 : 12:35:26
|
OK, the reason why it won't work is that the include is defining a function within a function To fix this in member_spotlight.asp remove the following lines line 12: function MemInSpot line 43: end function line 46: call MemInSpot
they are not needed anyway |
The UK MkIVs Forum |
|
|
Chris Yew
Junior Member
134 Posts |
Posted - 07 May 2003 : 21:02:45
|
Hi David, Thanks a lot - it works extremely well!
Chris Yew
|
|
|
anarres
Starting Member
25 Posts |
Posted - 11 June 2003 : 09:21:11
|
This looks great, it's exactly what I need. |
|
|
anarres
Starting Member
25 Posts |
Posted - 12 June 2003 : 09:18:36
|
I implemented the mod in less than 15 minutes! That's got to be painless by anyones standards...
This mod looks really nice, it is perfect for me. I will link my site when it looks a little more professional. |
|
|
schef
Junior Member
USA
164 Posts |
Posted - 12 June 2003 : 14:32:11
|
First off let me thank David for coming up with this mod. It has given my site a whole new dimension (now if I could only come up with a better color scheme :/ ). But now for my question, I am currently posting reviews and going to post articles on the main page with this mod. I am looking for a way that visitors could rate these articles while using this same mod. It may help to actually take a look at what I mean. www.atvoutdoors.net is the site I am talking about and the review (only one up so far) can be seen at the right of the page. Any ideas on how to add a rating system would be appreciated. Thanks. |
ATV Outdoors |
|
|
Topic |
|