Announcement

Collapse
No announcement yet.

Album photo

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Album photo

    Adding the string
    Code:
    ?tab=media-tab
    at the end url of the forum rooms you get the photos in that room.
    It's possible create a new page and show all the photos of the rooms as in an album using this function or something like that?

    #2
    You can use a PHP module to fetch all the photos in a forum by calling the vB5 API. Obviously, this require PHP coding skills.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Do you know any script or code I can use to create an album for vb5?

      Comment


        #4
        Originally posted by myto2018 View Post
        Do you know any script or code I can use to create an album for vb5?
        Is this what you're looking for: https://www.adminammo.com/articles/v...to-vbulletin-5

        You can visit the gallery in his menu.

        Comment


          #5
          Originally posted by William View Post

          Is this what you're looking for: https://www.adminammo.com/articles/v...to-vbulletin-5

          You can visit the gallery in his menu.
          Hi William i have see this, but if i add a photo using this system the forum generates a topic visible in unread messages and everyone can reply. it's not a great solution. Also with this system are shown only the photos of that room and not the whole forum

          Comment


            #6
            Hi Friends
            Nobody knows how to proceed?

            Comment


              #7
              Originally posted by myto2018 View Post
              if i add a photo using this system the forum generates a topic visible in unread messages and everyone can reply.
              You can exclude the forum in the search results by adding "exclude" criteria in the Search JSON

              Code:
              {"exclude":[1,2,3,4]}
              or:

              Code:
              {"exclude":"24"}
              Change the node ID(s) accordingly.

              For more information on how to use Search JSON, see this article from vbulletin.

              Using the advanced editor you can create powerful search modules. Following you find possible filters / parameters for using within these modules: The search JSON parameter has the following format: {
              Helpful? Donate. Thanks!
              Buy me a coffeePayPal QR Code
              Fast VPS Host for vBulletin:
              A2 Hosting & IONOS

              Comment


                #8
                Tomorrow I'll try your solution!
                Thank you

                Comment


                  #9
                  Originally posted by glennrocksvb View Post
                  You can exclude the forum in the search results by adding "exclude" criteria in the Search JSON
                  In the string
                  Code:
                  search?searchJSON=%7B%22view%22%3A%22topic%22%2C%22unread_only%22%3A1%2C%22sort%22%3A%7B%22lastcontent%22%3A%22desc%22%7D%2C%22exclude_type%22%3A%5B%22vBForum_PrivateMessage%22%5D%7D}
                  At the end i have add:
                  Code:
                  %{"exclude_type:"1813061"
                  1813061 it's the id of my album

                  Code:
                  search?searchJSON=%7B%22view%22%3A%22topic%22%2C%22unread_only%22%3A1%2C%22sort%22%3A%7B%22lastcontent%22%3A%22desc%22%7D%2C%22exclude_type%22%3A%5B%22vBForum_PrivateMessage%22%5D%7D%{"exclude_type:"1813061"}
                  .

                  But if i click in the link "new messages" the search not works.

                  There are no results that meet this criterion

                  I wrong the code?


                  Comment


                    #10
                    When you use Search JSON in the URL, it needs to be URL-decoded. And you can't just add new criteria like that.

                    Use this online tool to decode and encode URL querystrings.



                    1. Decode the Unread posts search JSON. Decode only the text after ?searchJSON=. Remove the text on the left.
                    2. Add the new criteria in the decoded search JSON. In the last } insert a comma and then add the new criteria. For example,
                    Code:
                    ,"exclude_type:"1813061"
                    3. Decode the new search JSON.
                    4. Replace the old encoded JSON with the new one.
                    Helpful? Donate. Thanks!
                    Buy me a coffeePayPal QR Code
                    Fast VPS Host for vBulletin:
                    A2 Hosting & IONOS

                    Comment


                      #11
                      Originally posted by glennrocksvb View Post
                      Decode the Unread posts search JSON. Decode only the text after ?searchJSON=. Remove the text on the left.
                      Sorry. The default string of vb5 "Unread topics is:
                      Code:
                      search?searchJSON=%7B%22view%22%3A%22topic%22%2C%22unread_only%22%3A1%2C%22sort%22%3A%7B%22lastcontent%22%3A%22desc%22%7D%2C%22exclude_type%22%3A%5B%22vBForum_PrivateMessage%22%5D%7D
                      decode
                      Code:
                      search?searchJSON={"view":"topic","unread_only":1,"sort":{"lastcontent":"desc"},"exclude_type":["vBForum_PrivateMessage"]}
                      i add
                      Code:
                      search?searchJSON={"view":"topic","unread_only":1,"sort":{"lastcontent":"desc"},"exclude_type":["vBForum_PrivateMessage"],"exclude_type":[" 
                       1813061"][FONT=Helvetica]}[/FONT][FONT=Helvetica][/FONT]
                      Encode
                      Code:
                      %7B%22view%22%3A%22topic%22%2C%22unread_only%22%3A1%2C%22sort%22%3A%7B%22lastcontent%22%3A%22desc%22%7D%2C%22exclude_type%22%3A%5B%22vBForum_PrivateMessage%22%5D%2C%22exclude_type%22%3A%5B%221813061%22%5D%7D
                      New string:
                      Code:
                      search?searchJSON=%7B%22view%22%3A%22topic%22%2C%22unread_only%22%3A1%2C%22sort%22%3A%7B%22lastcontent%22%3A%22desc%22%7D%2C%22exclude_type%22%3A%5B%22vBForum_PrivateMessage%22%5D%2C%22exclude_type%22%3A%5B%221813061%22%5D%7D
                      But not work! where am I wrong?

                      Comment


                        #12
                        It's "exclude" not "exclude_type". Re-read my previous posts.
                        Helpful? Donate. Thanks!
                        Buy me a coffeePayPal QR Code
                        Fast VPS Host for vBulletin:
                        A2 Hosting & IONOS

                        Comment


                          #13
                          Yes! Now works!
                          Add this code
                          Code:
                          "exclude":["1813061"]
                          , 1813061 it's the name of my forum called Gallery.

                          Original string to be decoded:
                          Code:
                          {"last":{"from":"lastDay"},"view":"topic","starter_only": 1,"sort":{"lastcontent":"desc"},"exclude_type":["vBForum_PrivateMessage"],"exclude":["1813061"]}
                          Thanks for the help!

                          Comment


                            #14
                            Glad to help
                            Helpful? Donate. Thanks!
                            Buy me a coffeePayPal QR Code
                            Fast VPS Host for vBulletin:
                            A2 Hosting & IONOS

                            Comment


                              #15
                              In my test for the Photo gallery we have solved the problem to not show the topic in the link " New topic" and "Topic Today" but the topic are yet visibles in the widget " Trending and Last post. :-(

                              It's possible remove them from here too?

                              Comment

                              Users Viewing This Page

                              Collapse

                              There is 1 user viewing this forum topic.

                              • Guest Guest

                              Latest Posts

                              Collapse

                              Working...
                              X
                              Searching...Please wait.
                              An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                              Please push the back button and reload the previous window.'
                              An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                              Please push the back button and reload the previous window.'
                              An internal error has occurred and the module cannot be displayed.
                              There are no results that meet this criteria.
                              Search Result for "|||"