Featured Topics on home page
I am interested in finding out if there is any addon that can replace the home page (All Discusions) with a custom page that displays topics that admins find interesting and have decided to feature them. Admins will be go through all new/previous threads and if there is a need to highlight them then they will be marked as "featured posts" which will automatically take them to the home page.
Best Answers
-
hgtonight MVP
I have an error in my sample code.
Line 19, which is:
$Wheres['d.Score'] = '>= 20';
Should be:
$Wheres['d.Score >='] = 20;
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
5 -
hgtonight MVP
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
7
Answers
if the yaga application best of doesn't cut it for you. you could probably easily clone aspects of it to fit your purposes or write an additional rule if necessary. and route/default controller change.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I will look that up and post my feedback. The feature I am trying to mimick is located on the homepage at www.nairaland.com. This is a very popular style amongst Nigerian Forums as it happens to be the most succesful forum in Nigeria. One of its major feature is the ability to display certain threads as "Featured Topics" on the Home page which happens to be a potential for monetisation
not much potential here.
suggestions and advice is free.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
PS: I am not looking for this feature for money's sake. I am looking for this feature as that is what most of my target niche expect to find in a forum when they visitis its home page.
I believe the hosted vanilla has a best of available to clients - you could try that as well.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
It would be trivial to create a new view of the discussions controller called "Featured" and make that your home page.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I might add it is pretty much everything is trivial if you have the step by step instructions or the know how.
vanilla hosting would be the least trivial. they do all the work.
otherwise for newbie users without clear instructions would not find it trivial.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Sorry. I made the mistake of assuming people were as used to the codebase as I am. Here are some steps and some sample code.
At this point, create an action in Yaga called Featured, give it to admins only, and give it 20 points. Anything you want to feature, click the Featured reaction and it will show up on your featured page.
Or create a new column called feature and sort on that instead.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight I will get back to you on this "hack" you have provided. It seems to be closer to the solution I am looking for
Unfortunately, I am unable to do this without some step by step guide. My knowledge of programming is not that vast. I am able to follow a step-by-step instruction if you are willing toi help me
the hard part is laid out for you, perhaps a bit of effort, sweat and tears, on your part will get you up to speed.
see documentation link at top of page.
spend a week or two studying documentation will help you vastly.
you also have the option of using vanillaforums.com hosting.
if you have trouble along the way after a week of study, you could ask questions, but if you don't prove you are making an effort, some people may not assist.
Generally, people who get the most help on the forum, make the most effort in learning the simpler things.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
To be clear, you can do this without Yaga. I was using it as an example because I use the codebase a lot.
You can also create your own method that modifies a discussion's score (or any other field). Then you create an easy to find link and you are done.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I have actually done the steps 1 - 4 outlined above. The link for "Featured" is visible. I have also created a discussion with a non-admin user and then logged in as admin to flag the post as featured. However when I click on the "Featured" link, I get the message "No discussions were found"
make sure your rule is working.
check the discussion table and see if 20 points are added in score field.
alternatively you might want to manually add a score of 20 to a few discussions in discussion table.
to test.
I am running interference best to let hgtonight take over.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
How do I verify that the rule is working?
I have accessed the gdn_discussion table and the initial thread i had marked as a feature thread had a score of 20. I manually assigned another thread 20 and checked the teh "Featured" page with the same "error" message.
I have an error in my sample code.
Line 19, which is:
$Wheres['d.Score'] = '>= 20';
Should be:
$Wheres['d.Score >='] = 20;
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Yep! That's it. Works Now!!! Thanks a lot for the time and patience.
How can I make this Feature page my default page for guests and logged in guests
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
what are you using to create the animated gifs? does it work on linux.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
It is a little tool my friend is writing. I was helping him get it working. It uses .net which is windows only, I believe.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.