<% 'Just add a link to the inc_top.asp page probably near the search links and stuff: 'your bookmarks 'Now add a link to the topic.asp page somewhere near the top: '">Bookmark This Topic 'Then create a file called ... yes you can guess it ... bookmark.asp and put all this code in it: %> <% response.buffer = true nRefreshTime = Request.Cookies(strCookieURL & "Reload") if Request.form("cookie") = "1" then if strSetCookieToForum = 1 then Response.Cookies(strCookieURL & "Reload").Path = strCookieURL end if Response.Cookies(strCookieURL & "Reload") = Request.Form("RefreshTime") Response.Cookies(strCookieURL & "Reload").expires = strForumTimeAdjust + 365 nRefreshTime = Request.Form("RefreshTime") end if if nRefreshTime = "" then nRefreshTime = 0 end if ActiveSince = Request.Cookies(strCookieURL & "ActiveSince") '## Do Cookie stuffs with show last date if Request.form("cookie") = "2" then ActiveSince = Request.Form("ShowSinceDateTime") if strSetCookieToForum = 1 then Response.Cookies(strCookieURL & "ActiveSince").Path = strCookieURL end if Response.Cookies(strCookieURL & "ActiveSince") = ActiveSince end if Select Case ActiveSince Case "LastVisit" lastDate = "" Case "LastHour" lastDate = DateToStr(DateAdd("h",-1,strForumTimeAdjust)) Case "LastDay" lastDate = DateToStr(DateAdd("d",-1,strForumTimeAdjust)) Case "LastWeek" lastDate = DateToStr(DateAdd("w",-7,strForumTimeAdjust)) Case "LastMonth" lastDate = DateToStr(DateAdd("m",-1,strForumTimeAdjust)) Case "Registration" lastDate = "All" Case Else lastDate = "" End Select %> <% if IsEmpty(Session(strCookieURL & "last_here_date")) then Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTUserName) end if if lastDate = "" then lastDate = Session(strCookieURL & "last_here_date") end if if Request.Form("AllRead") = "Y" then Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTUserName) Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTUserName) lastDate = Session(strCookieURL & "last_here_date") end if bkMarkPageSize = strPageSize set rs = server.CreateObject("ADODB.RecordSet") set rsUser = server.CreateObject("ADODB.RecordSet") If trim(strDBNTUserName)="" Then ' No user/password so ask user response.write "

Devi essere loggato per creare o leggere un Segnalibro

Puoi registrarti cliccando QUI." response.write "

" Response.End End If ' Got password details so do it Select Case Request.QueryString("mode") Case "add" strTopic = Request.QueryString("id") testSql ="SELECT * FROM "& strTablePrefix & "BOOKMARKS WHERE B_MEMBERID=" & getmemberID(strDBNTUserName) & " and B_TOPICID=" & strTopic rs.Open testSql, my_Conn If rs.BOF or rs.EOF Then ' Bookmark doesn't already exist so add it insSql = "INSERT INTO "& strTablePrefix & "BOOKMARKS (B_MEMBERID, B_TOPICID) VALUES (" insSql = insSql & getmemberID(strDBNTUserName) & ", " insSql = insSql & strTopic & ")" my_conn.Execute (insSql) End If Response.Write "
" & vbNewLine & _ "" & vbNewLine & _ "
" & vbNewLine & _ "

Segnalibro Aggiunto!

" & vbNewLine & _ "

Potete leggere i vostri SegnaLibri in qualsiasi momento
selezionando l'icona Segnalibro, in alto nel forum. Questa vi porterą alle discussioni da voi inserite in:
Aggiungi al tuo Segnalibro
Per vedere questo SegnaLibro clicca QUI." & vbNewLine & _ "

" & vbNewLine & _ "
Torna al Forum" & vbNewLine & _ "
" & vbNewLine & _ "

 

 

" & vbNewLine Case "delete" delBookmark = split(Request.Form("delBookmark"), ",") for i = 0 to ubound(delBookmark) ' Delete selected topic bookmarks delSQL = "Delete From "& strTablePrefix & "BOOKMARKS where BOOKMARK_ID = " & cint(delBookmark(i)) my_conn.Execute delSQL next response.write "

Segnalibro Selezionati Cancellati!
" response.write "
Torna al Forum
" &_ "" Case "deleteAll" delBookmark = split(Request.Form("delBookmark"), ",") delSQL = "Delete From "& strTablePrefix & "BOOKMARKS where B_MEMBERID = " & getmemberID(strDBNTUserName) my_conn.Execute delSQL response.write "
Tutti i segnalibri cancellati!
" response.write "Torna al Forum
" Case default If trim(strDBNTUserName)="" Then Response.Write "

UserName o Password non validi

" & vbNewLine & _ "

Torna indietro

" & vbNewLine Response.end end if if strDBType = "mysql" then strSql="SELECT B.BOOKMARK_ID, C.CAT_NAME, F.F_SUBJECT, T.TOPIC_ID, T.T_SUBJECT, T.T_REPLIES, T.T_DATE, T.T_LAST_POST, M.M_NAME, T.FORUM_ID, T.CAT_ID, T.T_LAST_POST_AUTHOR, B.B_TOPICID, B.B_MEMBERID, M.MEMBER_ID, T.T_AUTHOR, F.FORUM_ID, C.CAT_ID, F.CAT_ID" strsql2=" FROM " & strTablePrefix & "FORUM AS F INNER JOIN " & strTablePrefix & "TOPICS AS T ON F.FORUM_ID = T.FORUM_ID INNER JOIN " & strMemberTablePrefix & "MEMBERS AS M ON M.MEMBER_ID = T.T_AUTHOR INNER JOIN " & strTablePrefix & "BOOKMARKS AS B ON B.B_TOPICID = T.TOPIC_ID INNER JOIN " & strTablePrefix & "CATEGORY AS C ON C.CAT_ID = F.CAT_ID WHERE B.B_MEMBERID = " & getmemberID(strDBNTUserName) if lastDate <> "All" then strsql3 = " AND T.T_LAST_POST > '" & lastDate & "'" else strsql3 = "" end if else strSql = "SELECT B.Bookmark_ID, C.Cat_Name, F.F_SUBJECT, T.Topic_ID, T.T_subject, T.T_Replies, T.T_date, T.T_Last_Post, M.M_NAME,T.FORUM_ID, T.CAT_ID, T.T_LAST_POST_AUTHOR FROM ("& strTablePrefix & "Category C INNER JOIN "& strTablePrefix & "Forum F ON C.Cat_ID = F.CAT_ID) INNER JOIN ("& strMemberTablePrefix & "Members M INNER JOIN ("& strTablePrefix & "Bookmarks B INNER JOIN "& strTablePrefix & "Topics T ON B.B_TopicID = T.Topic_ID) ON M.Member_id = T.T_AUTHOR) ON F.Forum_ID = T.Forum_id WHERE (B.B_MemberID=" & getmemberID(strDBNTUserName) & ")" if lastDate <> "All" then strsql = strsql & " AND T.T_LAST_POST > '" & lastDate & "'" end if iPage = CLng(request("iPage")) if strDBType = "mysql" then 'MySql specific code mypage=iPage if mypage > 1 then OffSet = cLng((mypage - 1) * bkMarkPageSize) strSql5 = " LIMIT " & OffSet & ", " & bkMarkPageSize & " " end if '## Forum_SQL - Get the total pagecount strSql1 = "SELECT COUNT(MEMBER_ID) AS PAGECOUNT " set rsCount = my_Conn.Execute(strSql1 & strSql2 & strsql3) iPageTotal = rsCount(0).value rsCount.close set rsCount = nothing if iPageTotal > 0 then maxpages = (iPageTotal \ bkMarkPageSize ) if iPageTotal mod bkMarkPageSize <> 0 then maxpages = maxpages + 1 end if if iPageTotal < (bkMarkPageSize + 1) then intGetRows = iPageTotal elseif (mypage * bkMarkPageSize) > iPageTotal then intGetRows = bkMarkPageSize - ((mypage * bkMarkPageSize) - iPageTotal) else intGetRows = bkMarkPageSize end if else iPageTotal = 0 maxpages = 0 end if rs.open strSql & strSql2 & strSql3 & strsql5, my_Conn, 3 iPage=mypage iPageCount=maxpages Else rs.Open strSQL, my_Conn, 3 rs.PageSize = bkMarkPageSize iPageCount = cInt(rs.PageCount) End if if iPage < 1 then iPage = 1 end if if iPageCount < 1 then iPageCount = 1 end if Response.Write "" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine & _ "
" & vbNewLine & _ "" & getCurrentIcon(strIconFolderOpen,"","align=""absmiddle""") & " Tutti i Forum
" & vbNewLine & _ "" & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBar,"","align=""absmiddle""") & getCurrentIcon(strIconFolderOpenTopic,"","align=""absmiddle""") & " Segnalibri attivi
" & vbNewLine & _ "
" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine & _ "
" & vbNewLine & _ "
" & vbNewLine & _ "
" & vbNewLine & _ "

" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine & _ "
" & vbNewLine & _ "
" & vbNewLine & _ "
" & vbNewLine & _ "
" & vbNewLine & _ "
" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine If rs.Eof OR rs.Bof Then Response.Write "" boolNoBookmarks = TRUE Else if Not strDBType = "mysql" then rs.AbsolutePage = iPage End If boolNoBookmarks = FALSE ' List bookmarks Dim i, CCsolor i=0 rec = 1 do until rs.eof or rec = (bkMarkPageSize +1) if i = 0 then CColor = strAltForumCellColor else CColor = strForumCellColor End if Response.Write "" Response.Write "" rec = rec + 1 rs.MoveNext i = i + 1 if i = 2 then i = 0 loop End If Response.Write "" & vbNewLine & _ "
" & vbNewLine & _ "Discussione" & vbNewLine if iPage > 1 then response.write "   [Prima pag.]   " response.write "" response.write "« Indietro | " else response.write "« Indietro | " end if if iPage < iPageCount then response.write "" response.write "Avanti »" response.write "   [Ultima pag.]" else response.write "Avanti »" end if response.write "   [Pagina:" & iPage & "/" & iPageCount & "]" Response.Write "Cancella tutti
Nessun Segnalibro
" & rs("Cat_Name") & " " & rs("F_SUBJECT") & " Forum: " Response.Write "
" & FormatStr(left(rs("T_Subject"), 50)) & "
" If rs("T_Replies") > strPageSize Then ' More than X replies on the page and therefore must be more than one page Response.Write "  -  Jump to page: " Dim strRef, nCounter, nPages nPages = fix(rs("T_Replies") / strPageSize) If ( ( nPages * strPageSize ) <> rs("T_Replies") ) Then nPages = nPages + 1 End If For nCounter = 1 to nPages strRef="" & nCounter & "" Response.Write strRef & " " Next End If Create_Date = rs("T_Date") Last_Post = rs("T_LAST_POST") Response.Write "
   Inviato da " & rs("M_Name") & " il " & ChkDate(Create_Date, " " ,true) Response.Write "   Ultima risposta " & ChkDate(Last_Post, " " ,true) & " di " & getMemberName(rs("T_LAST_POST_AUTHOR")) & "
" & vbNewLine & _ "

" & vbNewLine & _ "" & vbNewLine & _ "" & vbNewLine & _ "

" & vbNewLine & _ "

" & vbNewLine & _ "

Torna Indietro" & vbNewLine & _ "
" & vbNewLine & _ "" & vbNewLine End Select set rs = nothing set rsUser = nothing %>