Announcement

Collapse
No announcement yet.

How To Create Trending Topics Sub NavTab

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

  • #16
    Here's the link to the misbehaving homepage: https://f.com/trending
    When I set another page to homepage, it automatically redirects to https://f.com/trending and until reset https://f.com/trending to hompage, the other page will remain linked to https://f.com/trending.
    Last edited by adamu; Fri 5 Mar '21, 11:30pm. Reason: redacted websites

    Comment


    • #17
      The home page should always be accessed through /. Something is causing this to redirect to /trending and vBulletin wouldn't do that directly. Your home tab goes to a third page /home. Without access to the server and database, I don't know what would have been done to cause this. Changing page URLs does not change the Navigation Tabs. These need to be changed manually.

      Last edited by Wayne Luke; Fri 12 Mar '21, 9:55am.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment


      • adamu
        adamu commented
        Editing a comment
        the problem is simply that i cant delete the /trending page

    • #18
      Originally posted by Wayne Luke View Post
      The home page should always be accessed through /. Or on your site: https://f.com/. Something is causing this to redirect to /trending and vBulletin wouldn't do that directly. Your home tab goes to a third page /home. Without access to the server and database, I don't know what would have been done to cause this. Changing page URLs does not change the Navigation Tabs. These need to be changed manually.

      Your trending page is actually https://f.com/features.
      That is correct. I had set https://f.com/trending to homepage earlier on. Now I want to set it to https://f.com/features and delete https://f.com/trending but it doesn't work.
      Last edited by adamu; Fri 5 Mar '21, 11:31pm.

      Comment


      • adamu
        adamu commented
        Editing a comment
        What might a solution be? I think if I could delete the troublesome homepage I'm clear.
        Last edited by adamu; Fri 5 Mar '21, 11:32pm.

    • #19
      The font size and spacing works alright. But I still have to wrap the text for small screens.

      Comment


      • #20
        The ellipse is there to prevent the screen from being warped on small devices like phones. Putting the module in a wider column should allow more display on larger screens. I haven't looked into how to override this with CSS yet.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment


        • #21
          Originally posted by Wayne Luke View Post
          In the JSON string, replace "view":"", with "view":"compact",

          So the JSON becomes this:
          {"channel":["1"],"featured":"1","sort":{"created":"desc"},"view":"compact","exclude_type":["vBForum_PrivateMessage"]}
          I'm using this code. Please how do I remove post time stamp?

          Comment


          • #22
            There is no way to remove the post timestamp as far as I am aware.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment


            • #23
              Is there a way to sort the JSON by "featured time"?

              So featured posts currently appear on the page however old posts that are newly featured are lost around "published time".

              Comment


              • #24
                Originally posted by adamu View Post
                Is there a way to sort the JSON by "featured time"?

                So featured posts currently appear on the page however old posts that are newly featured are lost around "published time".
                Trending topics are nothing to do with featured topics.
                The point with trending topics is that they are sorting by the criteria used to identify them as trending, not by any date.
                MARK.B | vBULLETIN SUPPORT

                TalkNewsUK - My vBulletin 5.6.4 Demo
                AdminAmmo - My Cloud Demo

                Comment


                • #25
                  i guess you miss the point of the trending topic. Its just the title of the page where featured topics appear. The problem is that items on that the featured topics appear on this pags sorted by when the topic is posted rather than when it is featured.

                  Comment


                  • #26
                    Trending topics are a very specific type of search in vBulletin. They are algorithm driven and will be automatically generated every 24 hours based on the activity on each topic. This completely different from the concept of a "Featured Topic" in vBulletin. A featured topic is simply a topic that the site staff want to bring attention to through searches or the Content Slider module.

                    There is no record of the date when a topic is Featured. That simply isn't information that is stored anywhere. It is simply a true or false flag on the record.
                    Last edited by Wayne Luke; Wed 26 May '21, 8:59am.
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud demonstration site.
                    vBulletin 5 API

                    Comment


                    • adamu
                      adamu commented
                      Editing a comment
                      Our "trending page" as I described it has no relationship with vBulletin's "trending feature". It's more like a "featured page" where all topics that are marked as featured appear through a JSON query. It currently returns a list of featured topics sorted by the time they were created. However, its a show stopping requirement that these topics are sorted based of the time they were flagged as featured. I've combed through the database and I know its certain that this prerequisite (feature time) is not currently logged in the database. Are extentions such as these realistic in vBulletin? Kindly advice on next steps

                    • Wayne Luke
                      Wayne Luke commented
                      Editing a comment
                      If you know PHP and MySQL, you can probably add fields to the database and add code to retrieve them. I have never actually looked into what is required to extend the Node table. Doing so isn't without complication though. For instance, a database table can only have so many bytes in its record row. If the developers add fields in the future, this can cause problems with upgrades. This was seen with some customers in upgrading to 5.4.X and the User table. Plus the node table seems to be very large so modifications can take time to perform and must be thought out carefully.

                      Modifications of this type are outside the scope of technical support though. Doing modifications of this sort is "at your own risk."

                  Related Topics

                  Collapse

                  Working...
                  X