Author |
Topic |
Rob Poretti
Junior Member
Canada
435 Posts |
Posted - 19 June 2001 : 13:56:56
|
Sorry to hear about your computer problems...
As soon as I'm done, I'll email it to you and post it... ran into some glitches...
Stay tuned...
Rob Poretti Sascom Marketing Group ~ Toronto vox.905.825.5373 fax.905.825.5960 |
|
|
jumpingflash
Starting Member
26 Posts |
Posted - 19 June 2001 : 19:57:28
|
Hi again to you all.... I was wondering : the contentDisplay options let you see posts sorted by date, n. of read, etc... But would it be possible to, say, display the last 10 posts by sate and then put a link for the second 10, then the 3rd 10... Or divide them by week... Maybe I am asking for something stupid but I was wondering how you could do that.
Thanx to whoever will answer !
Jumpingflash
|
|
|
Rob Poretti
Junior Member
Canada
435 Posts |
Posted - 20 June 2001 : 17:13:47
|
No, actually this is a good idea... what you want is something called "paging". A common mechanism to deal with large amounts of data. This would be a bit of work to implement. It would require a new parameter called something like "PageSize". So you can for example say you want ALL topics and display 10 at a time -- so the Page Size would be set t0 10.
Also the parameter TopicCount should be changed so that if "0" is entered it selects ALL Topics.
There would be a lot of changes. I can't see doing it real soon, (I'm still struggling with this new version!), but I like the idea in general... thanks!
Rob Poretti Sascom Marketing Group ~ Toronto vox.905.825.5373 fax.905.825.5960
Edited by - Rob Poretti on 20 June 2001 17:14:14 |
|
|
stupidity
Starting Member
United Kingdom
49 Posts |
Posted - 20 June 2001 : 18:53:19
|
quote:
Sorry to hear about your computer problems...
As soon as I'm done, I'll email it to you and post it... ran into some glitches...
Stay tuned...<snip>
Seems to me I opened a can of worms when I made my little request... Sorry to of put you through all this trouble Rob
As for the computer problems the new/old system has reminded me why I removed it in the first place after the 20th crash today I will be, tomorrow, replacing the Motherboard, yet again (I'm going to going to do a little bit of swapping and changing and pinch the wifes system )
|
|
|
Rob Poretti
Junior Member
Canada
435 Posts |
Posted - 20 June 2001 : 23:53:20
|
Oh, man... I feel for you... I had a problem where I had a problem "intermittent" motherboard and a drive that was failing. It took me forever to sort out. I certainly learned a lot about installing/repairing NT4 installations though! (like this is something I wanted to learn...ha,ha...)
Anyway... I'm getting close... however, I have question (more like a poll) to ask of the Display Content users. It revolves around how a message should be displayed when only part of it is displayed because of a truncation... (due to setting the MessageLength parameter shorter than the actual length of the message.)
If I strip all html and all forum code, a lot of formatting that we take for granted goes out the window... like carriage returns -- however... if I don't and the message gets truncated, you can have very undesireable display issues. Examples would be forum code tags being displayed.
Also, the issue of images is perplexing they can REALLY destructively affect the display -- once again, if this is the front page of a portal, this is a serious problem.
For some forums, you may have total control over the content so none of the issues will concern you -- you will want the formatting in the post -- even if it is just line breaks and paragraph spaces -- or perhaps images. For other forum's you may not have ANY control with what members post.
So... I'm considering adding a new parameter called SafeMode. (Sorry about this, I think I said I wouldn't add any more parameters. It could have maybe 3 or 4 different values:
- 0 = Return EXACTLY what is in the database with no processing whatsoever
- 1 = Use FormatStr function which is a little safer but keeps most of the formating.
- 2 = Use CheckStr function which is what is used in the post.asp file
- 3 = Use my new StripAll function which removes all forum code and html tags.
This mechanism will make it easy to provide future fucntions that are more selective with exactly what they are removing. (For example, one that only removes images.)
Next, the issue of private/hidden forums is a sticky one. You may inadvertantly display sensitive information on a home page with the current mod. This mod currently has no mechanism to filter out posts based on this criteria. I am sugegesting a new parameter called Private/Hidden. This would have the following possible paramaters:
- 0 = Displays any topic.
- 1 = Does not Display topics that are in Private Forums.
- 2 = Does not Display topics that are in Hidden Forums.
- 3 = Does not Display topics that are in Hidden or Private Forums.
There are some other psosibilities that could be included here as well...
One issue with the implementation of the Private/Hidden parameter is the fact that it requires the FORUM_FORUM table to be joined to the FORUM_TOPICS table. This means that at least Display Mode= 1 or 2 have to be changed so that those tables are linked. Quite frankly, with the message showing in the Acronym Title of Display Mode= 0, they should probably all have joined tables... I was trying to minimize the performance hit with the simpler display modes -- this will no longer be possible.
So, give me you thoughts and ideas... and let me know soon! I've been looking at this far too long now and I want to get the new version out right away...
Rob Poretti Sascom Marketing Group ~ Toronto vox.905.825.5373 fax.905.825.5960
Edited by - Rob Poretti on 20 June 2001 23:59:01 |
|
|
stupidity
Starting Member
United Kingdom
49 Posts |
Posted - 21 June 2001 : 06:43:40
|
On a personal front, I control most of what is displayed on the front page of the site.
The only thing I don’t control is topic titles in general forum areas.
General posts are listed as hyperlinks, news etc that I want displaying with pictures are admin only posts, so I control the picture positioning (if any)
Overall the MOD as it stands suits 90% of my needs (9% remaining for the slight upgrade you are doing)
The only items on my wish list are to loose the title hyperlink on Basic display, the more... link, is sufficient the title link is a waste of space but I can live with it (took my test site in my hands and managed to sort this myself and the systems still running, highly surprising with my recent run of luck) and perhaps displaying a trimmed version of the posters profile picture alongside the hyperlink for the topic in place of the message icon
As for the private/hidden forum display, I set out the forum in such a way that Private forums will be placed in there own category so the question/problem doesn't arise.
Bottom line is that it is a case of forward planning examine the capabilities of the MOD and use accordingly you cannot please all the people all the time (this doesn’t mean I don’t want that little upgrade Rob )
Overall I think the Mod is the best thing since sliced bread and those of you who have visited the site will have to agree it has been used extensively and the results look quite effective
Stupidity
The Gay Tour Site
Edited by - stupidity on 21 June 2001 08:49:42
Edited by - stupidity on 21 June 2001 10:55:32 |
|
|
jumpingflash
Starting Member
26 Posts |
Posted - 21 June 2001 : 07:04:39
|
Thanx Rob for the continuous upgrades to the MOD. I would really like to be of any help, if only I knew a bit of ASP and database. 'Course if you can drop some links in which I can throw myself and study a bit, I would be more than happy to give some little help. Just because this is really good job that you are doing, and I found it reaaallyy useful, and I feel it would be right to start doing something and not just using it !! And if you get to something like "paging" (like you said) tell me, it would make me happier that Donald Trump !
:DD
|
|
|
Rob Poretti
Junior Member
Canada
435 Posts |
Posted - 21 June 2001 : 11:28:49
|
Hi Stupidity,
Because of the changes I'm about to make, I decided I would give you your mod now... you'll have to edit the current mod. I'd strongly suggest you make a new version that inludes this since the new version is going to change many things:
First you need this display mode:
<% case 100 'Link Only: Displays Forum links that go to forum only counter = counter + 1 %> <tr> <td valign="top" align="left" colspan="1"> <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"> <% select case Ornament case 0, 1, 2, 3, 4 ' Plain, Bullet 1, Bullet 2, Graphic 1, Graphic 2, respectively Response.Write strOrnamentDisplay case 5 ' MsgIcon %> <b>Ornament Display Mode Parameter<br>Out-of-bounds</b><br> <% case 6 ' Numbered if counter < 10 then %> <%=counter & strCounterDelimiter %><img width="10" height="1" src="images/blank.gif"> <% else %> <%=counter & strCounterDelimiter %><img width="3" height="1" src="images/blank.gif"> <% end if %> <% case 7 ' Numbered Graphic %> <img width="<% =intNumberedGraphicWidth %>" height="<% =intNumberedGraphicHeight %>" src="<% =strGraphicsPath & counter & strNumberedGraphic %>"> <% case 8 ' Special - as Ornament %> <b>Ornament Display Mode Parameter<br>Out-of-bounds</b><br> <% case else %> <b>Ornament Display Mode Parameter<br>Out-of-bounds</b><br> <%' do nothing end select %> <% if SubjectLength = 0 then 'Checks if SubjectLength is set to zero and doesn't use LEFT function with SubjectLength, if it is... %> <b><a href="<%=strForumURL%>forum.asp?FORUM_ID=<% =rs("FORUM_ID") %>&CAT_ID=<% =rs("CAT_ID") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"urlpath")%>"><acronym title="Enter this forum..."><%= rs("F_SUBJECT") %></acronym></a></b> <% elseif len(trim(rs("F_SUBJECT"))) > cint(SubjectLength) then AdjustedSubjectLength = SubjectLength - 3 %> <b><a href="<%=strForumURL%>forum.asp?FORUM_ID=<% =rs("FORUM_ID") %>&CAT_ID=<% =rs("CAT_ID") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"urlpath")%>"><acronym title="Enter this forum..."><%= rs("F_SUBJECT") %>...</acronym></a></b> <% else %> <b><a href="<%=strForumURL%>forum.asp?FORUM_ID=<% =rs("FORUM_ID") %>&CAT_ID=<% =rs("CAT_ID") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"urlpath")%>"><acronym title="Enter this forum..."><%= rs("F_SUBJECT") %></acronym></a></b> <% end if %> </font> </td> <td valign="bottom" align="right"> <% if Special then %> <% ' do nothing %> <% end if %> </td> </tr>
Then you right before: Select Case ContentType, insert:
If DisplayMode < 100 then
Then right after the End Select of the Select Case DisplayOrder insert this:
end if
if DisplayMode = 100 then
select case ContentType case 0 strContentType = "FORUM.CAT_ID" case 1 strContentType = "FORUM.FORUM_ID" case else ' use Forum ... most likely used strContentType = "FORUM.FORUM_ID" end select
strSql = "SELECT TOP " & TopicCount strSql = strSql & " FORUM_ID, CAT_ID, F_SUBJECT, F_DESCRIPTION, F_COUNT " strSql = strSql & " FROM " & strTablePrefix & "FORUM " ' Then specify criteria to select topics if ContentID = 0 then strSql = strSql & " WHERE " & strTablePrefix & strContentType & " > " & ContentID else strSql = strSql & " WHERE " & strTablePrefix & strContentType & " = " & ContentID end if ' Change ASC to DESC if preferred... select case DisplayOrder case 0 ' By Cat ID strSql = strSql & " ORDER BY " & strTablePrefix & "FORUM.CAT_ID DESC " case 1 ' By Forum ID strSql = strSql & " ORDER BY " & strTablePrefix & "FORUM.FORUM_ID DESC " case 2 ' By most Forum Counts strSql = strSql & " ORDER BY " & strTablePrefix & "FORUM.F_COUNT DESC " case else ' Use the "default" - By Cat ID - DESC strSql = strSql & " ORDER BY " & strTablePrefix & "FORUM.CAT_ID DESC " end select end if
This should take to just before this code:
'Response.Write(strSQL) 'Response.End
set rs = Server.CreateObject("ADODB.Recordset") rs.cachesize=20
Now for setting the Parameters:
sub DisplayContent(ContentType, ContentID, TopicStatus, DisplayMode, DisplayOrder, TopicCount, MessageLength, SubjectLength, Ornament, Special)
ContentType can be 0 (Cat's) or 1 (FOrums's) only. If you enter anything higher then 1, it will be 1 anyway.
COntentID can be 0 for any ID greater than 0, or any integer for a specific ID -- just as before.
TopicStatus is not used.
DisplayMode must be 100.
DisplayOrder can be 0 (cat ID), 1 (Forum ID) or 2 (Forum COunts). Anything higher than 2 becomes 0.
TopicCount becomes ForumCount!
MessageLength does nothing.
SubjectLength sets the length of the Forum Title. As before, if it is 0 then it displays the complete Title.
Ornament can be 0,1,2,3,4,6,7 only.
Special is not used.
Hope this works for you...
Rob Poretti Sascom Marketing Group ~ Toronto vox.905.825.5373 fax.905.825.5960
Edited by - Rob Poretti on 21 June 2001 11:29:42 |
|
|
Rob Poretti
Junior Member
Canada
435 Posts |
Posted - 21 June 2001 : 11:39:13
|
WOW... I just went to your site...
Do you actually have a seperate forum set up for every one of those cities? (Birmingham, Blackpool, Bournemouth, Brighton, etc.)
Looks like a lot of work went into this site... not exactly my cup of tea, but an excellent job on the site!
Rob Poretti Sascom Marketing Group ~ Toronto vox.905.825.5373 fax.905.825.5960 |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 21 June 2001 : 14:24:43
|
Hi Rob,
I was wondering where you were on this mod. Is the update you mentioned a couple of posts earlier still in the works or is it already available?
Dave
The Writer Community
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
stupidity
Starting Member
United Kingdom
49 Posts |
Posted - 21 June 2001 : 14:26:00
|
quote:
WOW... I just went to your site...
Do you actually have a seperate forum set up for every one of those cities? (Birmingham, Blackpool, Bournemouth, Brighton, etc.)
Looks like a lot of work went into this site... not exactly my cup of tea, but an excellent job on the site! <snip>
Not exactly my cuppa either, the site started as a Group (back-up) Project for my University course and I got to be friends with the people wanting it and the “one thing led to another” bug bit deep,
The site is in its 4th incarnation (and hopefully last) and yes there are 3 forums per city 1 for the nightlife 1 for boys and 1 for girls. Once everything is in place each city will have a default page similar to the site main page or I may even set-up some sub-domains depends upon access and it’s ability to handle the load. Our hosts are quite reasonably priced @ £29 uk pounds for a years hosting with unlimited everything (except SQL).
But the bottom line is the site in it’s current and proposed state wouldn’t exist if it wasn’t for your MOD so WOW back
All we need now is an integrated chat system, other than ASP, (hate that dammed click) and a picture upload system for members profile perhaps a couple of modifications to the PM system (showing a buddylist instead of an Online List) and finally a script to allow other sites to display the content of a particular forum/category on their site.
If your interested in developing any of the above I’m really interested in using them
By the way you may of noticed that most of the forums are Members Only and that the forum menu was missing. The forum menu only becomes visible after someone logs in and it’s surprising how many people have signed up to look in an empty forum
Stupidity The Gay Tour Site
PS just been inundated by 63 Snitz Notification emails, my past has finally caught up with me
|
|
|
Rob Poretti
Junior Member
Canada
435 Posts |
Posted - 21 June 2001 : 15:14:50
|
quote:
Hi Rob,
I was wondering where you were on this mod. Is the update you mentioned a couple of posts earlier still in the works or is it already available?
Dave
The Writer Community
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson
Hi Work Mule...
Not yet, but it's getting there...
I'm also modularizing it so that each dipslay mode is calling different functions like "WriteOrnament" or "WriteSubject", etc. This way, if you want to make a change on how the Ornaments are displayed, you don't have to do it for each display mod!
I want to make sure that the SQL is aslo working for Access...
I'll notify you when it is done....
Rob Poretti Sascom Marketing Group ~ Toronto vox.905.825.5373 fax.905.825.5960 |
|
|
stupidity
Starting Member
United Kingdom
49 Posts |
Posted - 21 June 2001 : 15:18:44
|
Hi Rob
Code tried and tested and.........
Fantastic, Great, Brill, does exactly what I want couldn't ask for more (well I could but I'll leave it for a day or 2) should have it installed on the site by the time you come online tomorrow.
Many Thanks
Stupidity The Gay Tour Site
|
|
|
Rob Poretti
Junior Member
Canada
435 Posts |
Posted - 21 June 2001 : 15:26:47
|
Well, it looks like a great forum/portal project and serious potential to expand to wherever you want!
I'd like an integrated chat as well -- but I agree, ASP is not the approach. I also checked out a flash one -- poor performance and bad implementation. I've a buddy who set up a Yahoo chat for his forum and says that they are really happy with it... otherwise gotta get a java/js component...
I think there is a file upload mod somewhere on this site... have you done a search?
Ya...wassup with Snitz notifications!? All of a sudden, I got like 83 messages or something... sheesh! If everyone was getting volume like this, Snitz could easily be nailed for spamming. Someone (listening out there??) with Snitz should look into this. There are mechanisms starting to appear on the web that will look for spmamers and automatically blacklist them from servers/routers etc...
And good luck trying to get "un-blacklisted"...
Cheers!
Rob Poretti Sascom Marketing Group ~ Toronto vox.905.825.5373 fax.905.825.5960 |
|
|
jumpingflash
Starting Member
26 Posts |
Posted - 21 June 2001 : 16:09:41
|
Sorry Rob... tried to look at the code (did not install it) you posted a few lines up, but cannot figure out what exactly it does....
|
|
|
Topic |
|
|
|