Ankündigung

Einklappen
Keine Ankündigung bisher.

Anzahl ungelesener Beiträge in der Navigation

Einklappen
X
Einklappen
Momentan aktive Benutzer in diesem Thema: 1 (0 Benutzer und 1 Gäste)
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    [Add-on] Anzahl ungelesener Beiträge in der Navigation

    Möchtest Du wie hier im Forum die ungelesenen Beiträge in der Navigation bei "Neue Themen" anzeigen, solltest Du dir dieses Add-on installieren.
    Es sind keine Templateanpassungen erforderlich und nach der Installation wird sofort jedem Benutzer die Anzahl der ungelesenen Beiträge angezeigt.

    Version: 1.0
    Installationshinweise: Einfache Installation im AdminCP (xml-Datei hochladen).
    Templateanzahl: 1
    Phrasenanzahl: 0
    Hookanzahl: 1
    Ab vB-Version: 5.3.3
    Typ: Hosted-Server Kann nur auf gehosteten Servern installiert werden. Nicht Cloud-fähig, könnte aber sein das dies zu lösen ist!

    unreadpostcount

    Falls der Link von Dir neu erstellt wurde, solltest Du die Klasse in dem Template "unreadpostcount" .navbar_newtopics zu deiner Klasse (z.B.: .navbar_neue_themen).

    Viel Spaß mit dem kleinen Add-on!
    It`s nice to be important but it`s more important to be nice!

    #2
    Das ist cool! Danke

    Kommentar


      #3
      Look nice danke

      Kommentar


        #4

        Thank you very much for sharing your work

        Kommentar


          #5
          Hi have installed this mod but not work.

          In the attribution link i do I have to add something?

          Angehängte Dateien

          Kommentar


          • delicjous
            delicjous kommentierte
            Kommentar bearbeiten
            If you create a new nav-item you have to replace "navbar_newtopics" in Template "unreadpostcount" with your item-class.

          • mygra
            mygra kommentierte
            Kommentar bearbeiten
            Hi delicjous
            In the object url i have:

            search?searchJSON=%7B%22view%22%3A%22topic%22%2C%2 2unread_only%22%3A1%2C%22sort%22%3A%7B%22lastconte nt%22%3A%22desc%22%7D%2C%22exc_typelude_type%22%3A %5B%22vBForum_PrivateMessage%22%5D%2C%22exclude%22 %3A%5B%221813061%2C1813746%22%5D%7D
            ***********DECODED***********
            {"view":"topic","unread_only":1,"sort":{"lastconte nt":"desc"},"exc_typelude_type":["vBForum_PrivateMessage"],"exclude":["1813061,1813746"]}

            In your file .xml how should i change?

          • delicjous
            delicjous kommentierte
            Kommentar bearbeiten
            Go to AdminCP-> Styles -> Search in Templates, activate templatenames and type in unreadpostcount. You have to replace navbar_newtopics in this template with your navbarclass (in most cases it is navbar_yournavbariconname). I use navbar_newtopics. This have nothiing to do with your searchstring.

          #6
          Hi delicjous

          In my Options>Styles>Searchin templates>Search in the models
          i have write the key "unreadpostcount"

          At line 33 i have this: $('.navbar_newtopic').append('<span class="unreadCount">{vb:raw $nodes.totalRecords}</span>');
          Which part should I modify?


          if i click on "Messages to read" with the right mouse button and click on inspect in my google chrome appears this:

          <a href="search?searchJSON=%7B%22view%22%3A%22topic%2 2%2C%22unread_only%22%3A1%2C%22sort%22%3A%7B%22las tcontent%22%3A%22desc%22%7D%2C%22exc_typelude_type %22%3A%5B%22vBForum_PrivateMessage%22%5D%2C%22excl ude%22%3A%5B%221813061%2C1813746%22%5D%7D" class="navbar_nuovi_topic">Messaggi da leggere</a>

          My forum: https://www.migratoria.it/forum/index.php

          :-(
          Zuletzt geändert von mygra; 06.12.2018, 15:32.

          Kommentar


          • delicjous
            delicjous kommentierte
            Kommentar bearbeiten
            You have to install the addon, then search for template and replace navbar_newtopics with your class if necessary.

          #7
          Hi delicjous

          In my Options>Styles>Searchin templates>Search in the models
          i have write the key "unreadpostcount"

          At line 33 i have this: $('.navbar_newtopic').append('<span class="unreadCount">{vb:raw $nodes.totalRecords}</span>');
          Which part should I modify?


          if i click on "Messages to read" with the right mouse button and click on inspect in my google chrome appears this:

          <a href="search?searchJSON=%7B%22view%22%3A%22topic%2 2%2C%22unread_only%22%3A1%2C%22sort%22%3A%7B%22las tcontent%22%3A%22desc%22%7D%2C%22exc_typelude_type %22%3A%5B%22vBForum_PrivateMessage%22%5D%2C%22excl ude%22%3A%5B%221813061%2C1813746%22%5D%7D" class="navbar_nuovi_topic">Messaggi da leggere</a>

          My forum: https://www.migratoria.it/forum/index.php

          :-( I have editet the previous message forgive me. I rewrite it

          Kommentar


            #8
            where can I see the class?

            It's this? "navbar_nuovi_topic"

            Kommentar


              #9
              Solved i have modified the line 33
              Code:
              <script>
              $('.navbar_nuovi_topic').append('<span class="unreadCount">{vb:raw $nodes.totalRecords}</span>');
              </script>
              Now i see the number but remains attached to the name and is not highlighted

              Do I have to correct anything else?


              Angehängte Dateien

              Kommentar


                #10
                Solved it's present an error in the script

                unreadCount

                Code:
                 $('.navbar_nuovi_topic').append('<span class="unreadCount">{vb:raw $nodes.totalRecords}</span>');
                I have modified this line:

                Code:
                $('.navbar_nuovi_topic').append('<span class="NeuePostsCount">  {vb:raw $nodes.totalRecords}</span>');
                Now works!

                Kommentar


                • delicjous
                  delicjous kommentierte
                  Kommentar bearbeiten
                  Nice you could solve it. It's not an error in the script. You should uninstall and install again to make your changes undone. Than begin from scratch ;-)
                  Look in post 7, you changed that part instead of the navbar_newtopic.
              Lädt...
              X