Announcement

Collapse
No announcement yet.

How To Create Trending Topics Sub NavTab

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

  • Wayne Luke
    commented on 's reply
    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."

  • adamu
    commented on 's reply
    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
    replied
    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.

    Leave a comment:


  • adamu
    replied
    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.

    Leave a comment:


  • Mark.B
    replied
    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.

    Leave a comment:


  • adamu
    replied
    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".

    Leave a comment:


  • Wayne Luke
    replied
    There is no way to remove the post timestamp as far as I am aware.

    Leave a comment:


  • adamu
    replied
    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?

    Leave a comment:


  • Wayne Luke
    replied
    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.

    Leave a comment:


  • adamu
    commented on 's reply
    the problem is simply that i cant delete the /trending page

  • adamu
    commented on 's reply
    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.

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

    Leave a comment:


  • adamu
    replied
    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.

    Leave a comment:


  • Wayne Luke
    replied
    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.

    Leave a comment:


  • adamu
    replied
    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

    Leave a comment:

Related Topics

Collapse

Working...
X