Author |
Topic  |
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 10 December 2000 : 20:32:52
|
I am posting these files here, for a few reasons, firstly I have completely updated bookmark.asp, and made a new Mod, myactive.asp.
Both files work like Gor's new active.asp, except bookmark.asp allows you to watch the topics you have bookmarked, and myactive.asp allows you to watch any topics in which you have posted.
Here are the two files bookmark.asp
myactive.asp
'Resistance is futile' |
|
Da_Stimulator
DEV Team Forum Moderator
    
USA
3373 Posts |
Posted - 10 December 2000 : 21:29:40
|
As Gor told me once, its a good idea to limit the amount of response.writes in one continuous line... like you have in bookmark.txt
It would be better as <pre id=code><font face=courier size=2 id=code> <font color=red>Line 116</font id=red> response.write(""" name=""userdetails"">" <font color=green>&_</font id=green> "< font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><center><b>You need to login to create a bookmark.</b><br><br>If you have not registered then you can <a href=""register.asp"">do so</a > for free." <font color=green>&_</font id=green> "<P><center>" <font color=green>&_</font id=green> "<TABLE bgcolor=""" & strForumCellColor & """ border=0 cellPadding=4 cellSpacing=0 width=""75%""><TR>" <font color=green>&_</font id=green> "<TD width=""50%"" align=""right""><font face=""" & DefaultFontFace & """ size=""" & strDefaultFontSize & """>User Name</td>" <font color=green>&_</font id=green> "< TD width=""50%""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>< INPUT name=""name"" size=""30"" value=""""></td></TR >" <font color=green>&_</font id=green> "<TR><TD align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Password</td>" <font color=green>&_</font id=green> "<TD><font face=""" & strDefaultFontFace & """ size=3><INPUT name=""password"" type=password size=""30""></td></TR>" <font color=green>&_</font id=green> "<TR><TD align=center colspan=2><input type=submit value=Submit></td></TR></table>" <font color=green>&_</font id=green> "<input type=""hidden"" name=""mode"" value=""add"">" <font color=green>&_</font id=green> "<input type=""hidden"" name=""id"" value=""" & Request.QueryString("id") & """>" <font color=green>&_</font id=green> "</center></form>") </font id=code></pre id=code>
<font color=red>Da_Stimulator</font id=red> <font color=red>http://aokingdom.com</font id=red> <font color=blue>response.write("I know what you coded last summer!")</font id=blue> http://www.tek-tips.com - The community where computer proffesionals meet and talk.
Edited by - Huwr on 09 January 2001 20:13:54 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 10 December 2000 : 21:43:03
|
Actually it should really be written <pre id=code><font face=courier size=2 id=code> Response.Write "< TR>< TD>" & Request.Form("FirstName") <font color=green>_</font id=green> <font color=green>&</font id=green> "</TD ><TD >" & Request.Form("LastName") & "</TD ></TR >"
</font id=code></pre id=code>
MS Says <BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Intersperse script commands and HTML when you just need to return output once or when it is more convenient to add statements to existing HTML text. Use Response.Write when you do not want to break up a statement with delimiters or when you want to build the string that is returned to the browser. For example, you could construct a string of text that builds a table row with values sent by an HTML form: <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
In terms of processing, I can't see that it would make a significant difference either way.
<font color=blue>'Resistance is futile'</font id=blue>
Edited by - Huwr on 09 January 2001 20:00:23 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 10 December 2000 : 22:00:19
|
From IIS 5.0 documentation
<pre id=code><font face=courier size=2 id=code> If ASP buffering has been disabled for your Web application, performance may be improved if you minimize the number of separate calls to Response.Write by combining separate output strings into one larger string. However, if you must perform extensive string manipulations to accomplish this, the gain in performance is probably offset by the time spent processing the strings. </font id=code></pre id=code>
<font color=blue>'Resistance is futile'</font id=blue> |
 |
|
infinity
New Member

New Zealand
90 Posts |
Posted - 10 December 2000 : 23:39:35
|
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> I am posting these files here, for a few reasons, firstly I have completely updated bookmark.asp, and made a new Mod, myactive.asp.
Both files work like Gor's new active.asp, except bookmark.asp allows you to watch the topics you have bookmarked, and myactive.asp allows you to watch any topics in which you have posted.
Here are the two files bookmark.asp
myactive.asp
<font color=blue>'Resistance is futile'</font id=blue> <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Hi HawR
If I already have the other bookmark mod in place, do I need to run the db setup script that you have at the top of one of these files? Will it try creating fields that the other mod already created? I am about to give it a go,,, so I guess in the mean time I am going to find out anyway... [:-)]
Infinity
Life is but a dream... and that dream is Here and Now. Therefore, Be here Now. |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 December 2000 : 05:00:59
|
NO, you don't, just overwrite the bookmark.asp, no changes to the db were done
<font color=blue>'Resistance is futile'</font id=blue> |
 |
|
infinity
New Member

New Zealand
90 Posts |
Posted - 11 December 2000 : 05:56:49
|
Thanks HawR,
Since asking that question (and getting your answer) I have implimented this new version of the book mark mod. Its a nice addition.... thanks for the work you did on it.
Regards,
Infinity
Life is but a dream... and that dream is Here and Now. Therefore, Be here Now. |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 December 2000 : 08:01:21
|
Ok, major change.
All three pages are now combined into one active.asp Just select from All, My, and if you have the bookmark Mod Bookmarked.
You can preview it here and You can download the single file here
<font color=blue>'Resistance is futile'</font id=blue> |
 |
|
tilttek
Junior Member
 
Canada
333 Posts |
Posted - 11 December 2000 : 09:29:50
|
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Ok, major change.
All three pages are now combined into one active.asp Just select from All, My, and if you have the bookmark Mod Bookmarked.
You can preview it here and You can download the single file here
<font color=blue>'Resistance is futile'</font id=blue> <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Did try your preview site... But I had: <pre id=code><font face=courier size=2 id=code> ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/mushroomgrove/inc_functions.asp, line 622 </font id=code></pre id=code>
I'm not login, and did ask for My Active, same message with Bookmark.
Philippe Gamache http://www.tilttek.com http://www.lapageamelkor.com |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 December 2000 : 09:37:15
|
Should be Ok now, if you are not logged in, you can not select My or Bookmarked.
<font color=blue>'Resistance is futile'</font id=blue> |
 |
|
tteal
Junior Member
 
USA
438 Posts |
Posted - 11 December 2000 : 11:11:31
|
This mod is incredible and one of the best I've see yet! Thank you very very much!
Cheers, Tim
http://www.free-guestbook.com |
 |
|
infinity
New Member

New Zealand
90 Posts |
Posted - 11 December 2000 : 19:16:10
|
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Ok, major change.
All three pages are now combined into one active.asp Just select from All, My, and if you have the bookmark Mod Bookmarked.
You can preview it here and You can download the single file here
Ho ho ho... HawR's getting us early Christmas treats!! Great work. Thanks pal,, appreciated.
Infinity
<font color=blue>'Resistance is futile'</font id=blue> <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Life is but a dream... and that dream is Here and Now. Therefore, Be here Now. |
 |
|
infinity
New Member

New Zealand
90 Posts |
Posted - 11 December 2000 : 19:27:35
|
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Ok, major change.
All three pages are now combined into one active.asp Just select from All, My, and if you have the bookmark Mod Bookmarked.
You can preview it here and You can download the single file here
<font color=blue>'Resistance is futile'</font id=blue> <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Tell me... what is the difference between MY and BOOKMARKED? I was not clear on this.
Thanks Infinity
Life is but a dream... and that dream is Here and Now. Therefore, Be here Now. |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 December 2000 : 19:30:40
|
My - means any topic in which you have posted. Bookmarked - means any topics you have flagged using the bookmark MOD
<font color=blue>'Resistance is futile'</font id=blue> |
 |
|
JohnO
Starting Member
United Kingdom
21 Posts |
Posted - 12 December 2000 : 04:08:29
|
Sorry - a bit of brain cell overload here but...
To implement this mod for the first time I need to only have active.asp?
Presumably there are database changes. Where are these detailed?
Many thanks,
John
|
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 12 December 2000 : 04:24:10
|
The only part of this that you would need database changes for is the <b>bookmark</b> part. If you don't have the <b>bookmark mod</b> then those features are hidden from view.
|
 |
|
Topic  |
|