Announcement

Collapse
No announcement yet.

auto dismiss notifications

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • auto dismiss notifications

    Hi,

    I can't believe this was never asked before but i did not find it using the search.

    Is there a way to automatically dismiss new posts notification when :
    - The user click on the notification link
    - The user reads all posts of the topic.

    Thanks in advance.
    Matt

  • #2
    They should automatically dismiss under both of those circumstances in vBulletin 5.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #3
      OK so it looks like i have an issue, the only way it auto dismiss on my site is when you reply to the discussion...

      Yet, that explains why i am the only one to ask.

      Comment


      • #4
        So when you go to perform the following steps:
        1. Visit notifications page.
        2. Click on the link to take you to the post that you're being notified about.
        3. Return/Reload to the notifications page.

        That specific notification is still listed?
        Last edited by Wayne Luke; Mon 9th Oct '17, 9:48am.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API - Full / Mobile
        Vote for your favorite feature requests and the bugs you want to see fixed.

        Comment


        • #5
          yes the notification does not go away...

          It goes away if i reply on the topic though.

          Comment


          • #6
            This works fine on a default installation.

            Please test using a brand new, default style and see if the same problem occurs.

            MARK.B | vBULLETIN SUPPORT

            TalkNewsUK - My vBulletin 5.5.6 Demo
            AdminAmmo - My Cloud Demo

            Comment


            • #7
              i am facing kind of a major charset issue (upgrade from a 3.0 installation in latin1, on a utf8 default DB, with the $config['Mysqli']['charset'] to latin1, i don't even know what is the real charset of the DB...) on my instance and my guess is it may be a result of it.

              I will open a new thread if the problem keeps ocurring once this issue is solved (if it is some day, i am loosing hope )

              Comment


              • #8
                You can see the character set of your database tables in the ADMINCP under Maintenance -> Diagnostics -> System Information. Choose MySQL Variables from the drop-down menu. You will be looking for character_set_connection and character_set_database. They should match. The collation_database and collation_connection variables should be complementary to your chosen character set.

                If the character set that you're using is a variety of UTF-8 then you should use a UTF-8 locale in the AdminCP under Language settings.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API - Full / Mobile
                Vote for your favorite feature requests and the bugs you want to see fixed.

                Comment


                • #9
                  This is very helpful.
                  What about the $config['Mysqli']['charset'] setting ? it is still very unclear to me what it does.

                  My issue is the old DB was latin1, but it was imported in a UTF8 default new DB and then upgraded to 5.3.1, in the end old tables are latin1 and new ones created during the upgrade ar latin1...
                  Every time i try to convert everything it ends up a mess.

                  I am thinking about dumping the DB, doing a brand new clean install in order to recreate them, and then reimporting the content. Or would you have the SQL creation statement of a new install ?

                  Comment


                  • #10
                    The "easiest" way to convert a database to UTF-8 is a SQL dump. Easiest is in quotes because there is still a bit of work involved. Once you have the SQL dump, you need to remove all character set commands from it. They look like this:

                    Code:
                    /*!40101 SET @saved_cs_client     = @@character_set_client */;
                    /*!40101 SET character_set_client = utf8 */;
                    Code:
                    /*!40101 SET character_set_client = @saved_cs_client */;
                    Code:
                    CHARSET=utf8 COLLATE=utf8_unicode_ci;
                    They are repeated for each table. So you will need an editor that can handle large files and allow the use of find and replace. UltraEdit and EmEditor are two that I know of on Windows. I currently recommend and use EmEditor. Though I used UltraEdit in the late 90s to edit 100 gigabyte Sybase backup files.


                    Then create a new database with an appropriate collation. I recommend using utf8mb4 as your character set and an utf8mb4 collation. This is what new installs of vBulletin use when the install script creates the database. Finally, import the modified SQL file using the mysql command line or the source command within a mysql command prompt.
                    Last edited by Wayne Luke; Wed 11th Oct '17, 9:36am.
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud demonstration site.
                    vBulletin 5 API - Full / Mobile
                    Vote for your favorite feature requests and the bugs you want to see fixed.

                    Comment


                    • #11
                      Well i already tried it and ran into several issues, i think i will make a copy of my DB so i can "play" and still keep the old one without doing a restore.

                      I still would like to create the DB structure from scratch so i am sure it is OK. can i find the SQL statements somewhere ou should i just do a clean new install of Vbulletin ?

                      Comment


                      • #12
                        The table CREATE statements are in /core/install/mysql-schema.php. The table structure by itself isn't worth much. A lot of default data is added during the install. Without, it the software will not work. The easiest way to create a default database is to run the installation script.

                        However, you cannot import data from one vBulletin 5 database into another one without overwriting the target data.
                        Translations provided by Google.

                        Wayne Luke
                        The Rabid Badger - a vBulletin Cloud demonstration site.
                        vBulletin 5 API - Full / Mobile
                        Vote for your favorite feature requests and the bugs you want to see fixed.

                        Comment


                        • #13
                          My idea is to recreate the structure from scratch and import the old data in the new structure.
                          I asked someone from vbulletin.net for some help a he might have a solution so hopefully i won't have to do it myself.

                          Comment


                          • #14
                            OK I finally managed to migrate my forum to utf8 but i still don't have the expected behaviour : notifications only get dismissed if you dismiss them manually or if you reply on the post it refers to.

                            Any idea ?

                            Comment


                            • #15
                              I did mention this quite early on but I don't think it was tested.

                              Can you please test using a brand new, default style and see if the same problem occurs?

                              The only time I've ever seen this behaviour was in custom styles which had in some way broken the functionality.
                              MARK.B | vBULLETIN SUPPORT

                              TalkNewsUK - My vBulletin 5.5.6 Demo
                              AdminAmmo - My Cloud Demo

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X