Highlight Unread Posts
I understand that this forum uses some sort of cookie system to detect which threads have been read by users. I am trying to accomplish the same thing. My thought is to have a cookie with two keys: one with the last activity of the user, and the other with the posts that have been read.
Now, the only problem, is that I more than likely will need to update these reads threads based on a date/timeframe criteria, correct? Has anyone wrote one of these? In my threads table, I have a column named 'forumLastPostID' for each thread.
View Replies
ADVERTISEMENT
I'm working on the ASP forum and have a little problem. I don't know how to check if topics and forums are read or unread. I have an idea. In table topics i add column with name IDS that stores ID numbers of users that read the topic. So when somebody writes a post in the topic, the IDS empties.
When you open the topic your ID is stored in IDS. There is no problem with topics but i don't know how to do that with forums, because there could be more unread topics in one forum. how you guys do this. So how do you check if there are some unread topics in forum and if the topic is unread. With cookies? sessions?
View Replies
View Related
I have noticed that there are nearly 100x the number of posts here in the PHP forum, as opposed to the ASP forum, and my curiosity was aroused by this vast difference.
Does this mean that PHP is more popular than ASP?
Or that PHP is harder to learn than ASP, thus more people turn to the forums?
Or has the PHP forum been around longer?
Or is there another reason?
View Replies
View Related
I have a database-driven site and it is possible for users to leave comments, which get written to the database. How do I make it so large comments can be added?I am getting this error message:
Microsoft JET Database Engine error'80040e21'
The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.
/wall2.asp, line 37
I have set the default field type in the database to be 'memo'and set the default text field size to 255 (the maximum allowed)
View Replies
View Related
I have a simple address-script (its actually a guestbookscript that I changed a bit). Part of the code looks like this:
Code: ....
View Replies
View Related
I have a database I built with Access with a Users_Table holding User_ID, User_Name, etc. A Posts_Table, with Post_Content, Post_ID, Post_DateandTime, Thread_ID (pointing to whichever thread the post is in from the Threads_Table), User_ID (pointing to the user who made the post in the Users_Table). Also a Threads_Table, with Thread_ID, and Thread_Title, etc.
I want to pull the Posts content, Post DateandTime, User who posted it, and thread title from the database (the page simply knows the ThreadID and the idea is to select all posts with that ThreadID). Could anyone help me create the SQL I need for this. I understand Inner Joins, and this would be the perfect place for them I would have thought, but I cannot get an inner join to work here. perhaps because this is an access created database,.
View Replies
View Related
let's say that I want to highlight some words or even a square of a table in yellow...how would i go about doing that? What code would work to do what I need?
View Replies
View Related
currently doing a wep application that contain of search engine. i did browse through some web applciation's search engine, notice that they can highlighted the keywork for searching when they display the search result.
example,
when i enter keyword 'test' in my search engine and preform search, let say i found a file called testing.asp, i want the word test to be highlighted. may i know how can it be done?
View Replies
View Related
I can't figure this out. I need to make an array and highlight strFind: Code:
View Replies
View Related
There is something wrong in this. I couldn't figure it out.
I have three: Keyword, Keywordb, Keywordc
I had inserted: strSearchFor, two, three (same function)
Code:
View Replies
View Related
Is there a way using VbScript or Javascript to have an imagemap highlight on a mouse over event? Doesn't matter if it highlights the entire imagemap area or just outlines it, but I need a way to indicate that the user is over a spot other than just a cursor change.
View Replies
View Related
wondering if its possible to have some kind of searched word highlight! IE. every thing it throws up in return of search it will highlight why it has brought it up! so if search "a" all "a" in return results would be highlighted.
View Replies
View Related
All the HTML contained within the <BODY> tags is contained within a DB I have for a CMS. I have 2 pages... CURRENT_LIVE and LAST_UPDATED... I want to compare the content of both and highlight the changes... is this possible? if so, how?
View Replies
View Related
I currently have a working search w/highlighted results page. My problem is that there is HTML stored in the text that is being searched and whenever the searched keyword is within HTML, it throws off the rest of the page.
I would happily throw away my code and use another if I could get it to check for things like <> and avoid breaking them. Ideally what I tried to do was display approximatly 10 words on either side of the highlighted keyword, just to give it some context, but I have thus far failed to get this to work properly.
View Replies
View Related
how to highlight the search text on the asp page when its displayed after being fetched from database[using LIKE]
any vbscript technique?
View Replies
View Related
This code highlights words entirely. I look for the word nation it highlights words like abomination. So I only want the function to highlight whatever I'm looking for. Code:
View Replies
View Related
Im doing a text search, and i need to highlight the word which is being searched for in the results page. How do i do that?
View Replies
View Related
I'd like to add to my search function of my asp site the possibility to highlight in the result pages all the words searched.
View Replies
View Related
I have a database with multiple records which are often updated. I am trying to display the latest entry in a certain way (with css div styles) and then list the rest of the entries another, less elaborate way.
Is there a good / preferred way to do this? Right now I have it so that it SELECTS TOP 1, displays that in a certain DIV, and then SELECTS * - however what is wrong with this is that it displays the first record twice.
View Replies
View Related
I have a project on making a UI of a Web page that allows users to:
1. select any text by highlighting it, and
2. do some action on it by right-clicking on the highlighted text and choose an action among those options presented by the context menu items that appears.
3. send the chosen action along with the text and its attributes to the server as the user clicks on the desired menu item.
Interestingly, the next stage is to make the menu items customised by the type of the selected text, e.g. a link or an ordinary body text. Does anyone know if all these can be done fully using ASP.Net at the server side?
View Replies
View Related
I am new in asp. I have two html files. I like to write
code to compare those two files. I like to show the
difference as highlighted area.
Example: File 1 contains:
<html><body> Compare Test</body></html>
File 2 contains:
<html><body> Compare Test modyfied</body></html>
I like to make either the word "modyfied" highlighted or
the whole line highlighted on File2.
View Replies
View Related
I have a little function to highlight text if it exists.
Function Highlight(vFind, vSearch)
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = vFind
RegEx.IgnoreCase = True
Highlight = RegEx.Replace(vSearch, "<span class=""Highlight"">" & vFind &
"</span>")
Set RegEx = Nothing
End Function
The only problem is, that if I search for "something", "something" appears
highlighted when the string being searched actually contained "Something".
This is not about case sensitive searching, this is about showing the actual
match rather than what was being searched for. Code:
View Replies
View Related
How do I highlight a split function text?
code ....
View Replies
View Related
I have an ASP search function which, after typing the search term, searches HTML pages and creates a list of links.
The problem is that I do not know how to code so the search term is highlighted in red after the user clicks on the link to view the HTML page.
View Replies
View Related
I have created an ASP.NET page that allows the user to page through a result
set. I need to expand on this. On that same page I a filed where the user can
type in a search string. When they click a button ALL the results will be
returned and the closest match to the search string will be highlighted. The
approach I am taking to page the data is to put the keys/indexes into an
array then create another data reader based on those results to display the
actual data. There may be a better way, if there are any suggestions.
Bottom line I need to find what page the search string is on so I can
highlight it. I guess I would have to calculate what page that record is on,
but I can’t wrap my head around it. Here is some code that I use for the
paging: Code:
View Replies
View Related