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/Code)
 Topic Watching (bookmarks and Your posts)
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 10 December 2000 :  20:32:52  Show Profile  Visit HuwR's Homepage
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  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 10 December 2000 :  21:43:03  Show Profile  Visit HuwR's Homepage
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 10 December 2000 :  22:00:19  Show Profile  Visit HuwR's Homepage
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>
Go to Top of Page

infinity
New Member

New Zealand
90 Posts

Posted - 10 December 2000 :  23:39:35  Show Profile  Visit infinity's Homepage
<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.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 December 2000 :  05:00:59  Show Profile  Visit HuwR's Homepage
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>
Go to Top of Page

infinity
New Member

New Zealand
90 Posts

Posted - 11 December 2000 :  05:56:49  Show Profile  Visit infinity's Homepage
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.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 December 2000 :  08:01:21  Show Profile  Visit HuwR's Homepage
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>
Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 11 December 2000 :  09:29:50  Show Profile  Visit tilttek's Homepage
<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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 December 2000 :  09:37:15  Show Profile  Visit HuwR's Homepage
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>
Go to Top of Page

tteal
Junior Member

USA
438 Posts

Posted - 11 December 2000 :  11:11:31  Show Profile  Visit tteal's Homepage  Send tteal an AOL message  Send tteal an ICQ Message
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
Go to Top of Page

infinity
New Member

New Zealand
90 Posts

Posted - 11 December 2000 :  19:16:10  Show Profile  Visit infinity's Homepage
<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.
Go to Top of Page

infinity
New Member

New Zealand
90 Posts

Posted - 11 December 2000 :  19:27:35  Show Profile  Visit infinity's Homepage
<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.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 December 2000 :  19:30:40  Show Profile  Visit HuwR's Homepage
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>
Go to Top of Page

JohnO
Starting Member

United Kingdom
21 Posts

Posted - 12 December 2000 :  04:08:29  Show Profile
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

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 12 December 2000 :  04:24:10  Show Profile
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.

Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07