I'm trying to build an chrome app/extension for my website which is mostly a mybb forum. I am wondering if anybody knows how would I check to see if a user has new Pm's or maybe new posts on his thread? Maybe by JS, AJAX, or PHP
mybb - how to check for new private messages
372 views Asked by nowayyy At
2
There are 2 answers
0

- Learn JQuery. It is a very friendly javascript framework and you will be up and running in no time. Coding in JQuery is fun!
- Do periodic AJAX request.
- inject data into DOM or maybe if you are creating a Google Chrome Extension like your tag is telling use the awesome Desktop Notifications System.
Related Questions in PHP
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Oracle stored procedure wrapping compile error with inline comments
- Insert Into SP in Oracle Sql Developer
- Abstracting out a query to a stored procedure makes it run very slowly
- why it doesnt accept a concated string as parameter in SP?
- SQL Server Index recreate Stored Procedure Slow
- How to access a Row Type within an Array Type in DB2 SQL PL
- Return all Ids generated by Insert statement
- Most effective way to bind data models in WebForms without stored procedures?
- How to get result set from Oracle Stored Procedure?
Related Questions in JAVASCRIPT
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Oracle stored procedure wrapping compile error with inline comments
- Insert Into SP in Oracle Sql Developer
- Abstracting out a query to a stored procedure makes it run very slowly
- why it doesnt accept a concated string as parameter in SP?
- SQL Server Index recreate Stored Procedure Slow
- How to access a Row Type within an Array Type in DB2 SQL PL
- Return all Ids generated by Insert statement
- Most effective way to bind data models in WebForms without stored procedures?
- How to get result set from Oracle Stored Procedure?
Related Questions in AJAX
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Oracle stored procedure wrapping compile error with inline comments
- Insert Into SP in Oracle Sql Developer
- Abstracting out a query to a stored procedure makes it run very slowly
- why it doesnt accept a concated string as parameter in SP?
- SQL Server Index recreate Stored Procedure Slow
- How to access a Row Type within an Array Type in DB2 SQL PL
- Return all Ids generated by Insert statement
- Most effective way to bind data models in WebForms without stored procedures?
- How to get result set from Oracle Stored Procedure?
Related Questions in GOOGLE-CHROME-EXTENSION
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Oracle stored procedure wrapping compile error with inline comments
- Insert Into SP in Oracle Sql Developer
- Abstracting out a query to a stored procedure makes it run very slowly
- why it doesnt accept a concated string as parameter in SP?
- SQL Server Index recreate Stored Procedure Slow
- How to access a Row Type within an Array Type in DB2 SQL PL
- Return all Ids generated by Insert statement
- Most effective way to bind data models in WebForms without stored procedures?
- How to get result set from Oracle Stored Procedure?
Related Questions in MYBB
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Oracle stored procedure wrapping compile error with inline comments
- Insert Into SP in Oracle Sql Developer
- Abstracting out a query to a stored procedure makes it run very slowly
- why it doesnt accept a concated string as parameter in SP?
- SQL Server Index recreate Stored Procedure Slow
- How to access a Row Type within an Array Type in DB2 SQL PL
- Return all Ids generated by Insert statement
- Most effective way to bind data models in WebForms without stored procedures?
- How to get result set from Oracle Stored Procedure?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
As far as events go, generally for PM's there is a field in the database called 'read', which is false if they haven't opened it, and true if they have. On a page load, check to see if there are any messages to the user that are 'unread', and if so, load them, and use JQuery to make a pop up saying a short description of them. You could also have a small AJAX script periodically check for this.
As far as new posts go, the traditional way that I've seen it done (but by no means the best way) is to keep a timestamp of when a user last visited the site. On page load, get every new post/topic that was created after that timestamp, then serialize this data and store it in the database, or in a cookie (if this serialized data already exists, unserialize it, merge the two and reserialize it). If a user visits a topic, get all data from the serialized entry that matches (IE, in the same topic, or the post number) and remove it from the serialized data. Then again on page load or by using an AJAX script, check periodically if they have an 'unread' post on a topic that belong to them (IE, created after their last timestamp value), and use a bit of JQuery to notify them.