One step closer to premium content
Updated Profile PageThe profile page has been updated to show a table containing containing more useful information rather than some poorly formatted info. Now, the main section of the page shows the user’s name, username, email, date joined, subscription status, amount of likes, and amount of comments in a table next to their user name. Below this section is a list of all of the posts that the user has liked. This changes the like function to not only boost a post in the trending section, but also save a post to a user’s account. Only the first 8 liked posts show on the profile page until the user clicks show more at the bottom. In between these two sections will be where the user will be able to purchase a subscription with a pay per month or pay per year option.
Getting ready for subscription contentFunctions have been put in place to check a user’s subscription expiration date every time they navigate the site. When a user starts their subscription, an expiration date will be put into the database and this will be checked with these functions every time they login and try to access subscription content. If they have purchased a subscription, their account’s “access” parameter will be updated from “user” to “subscriber.” Once it expires, it will automatically be downgraded back to “user.” Users that have “admin” or “contributor” access have a perpetual subscription. Once this system is in full effect, user’s will be alerted when their subscription is running out.
Auto Featuring PostIt has been realized that it is very easy to forget to feature a post. Now once a new post is successfully submitted the user will be prompted with a an option to feature the post rather than having to navigate to the all posts dashboard and featuring it there. There was also an issue with having more than 5 featured posts. Since the homepage filters featured posts out of the recent posts feeds and only shows the top five featured posts, and extra featured posts that were above the 5th featured post did not show up on the home page at all. Also, the order of the featured posts was getting messed up when a featured post was removed from the list and added to the list.
CJ Watchlist Tickers on the Home Page
New CJ Watchlist tickers have been inserted at the bottom of the home page. These are experimental due to their size and rapid update speeds. Also, as the CJ Watchlist expands, these will takes up too much space. Tradingview offers many different widgets like these and they are being implemented around the site to take advantage of their real time data. These large tickers might be removed in a later update.
Other Fixes- Fixed the pagination on the search page. It was overflowing once past 12 pages.
- Added a results counter to the search page.
- Added pagination to the manage users dashboard.
- Fixed the auto link generation on the new/edit post page to prevent inputting special characters in the link.
- Fixed the chart watch article links.
- Fixed the profile table in the database to show the right number of likes and comments per user.