Favorite Post Plugin

Favorite Post Plugin
Gavin Sunday 4th June 2023, 13:33:01Favorite Post
A 1/5 of the request from @Drisspy@7aaba692 - this plugin will display a star to the most popular post, based on views.
* 1.0.0 - Released
* 1.0.1 - Fixed bugs, Users can have multiple favorites and no longer messes with the bootstrap scripts. Now has a UI to add/remove topics
Download here
Last modified by Gavin on Monday 5th June 2023, 16:50:00
A Web developer and web security programmer
Replies 10

Thank you SurveyBuilder-Admin, I installed the plugin here but I don't understand how to add topics...
- Before ask a question, read the documentation.
- 🎉 Featured as #1 product of the day on Product Hunt
- Please like in alternativeto.net 👍🏻
- ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
- <TextField>, my new CMS project designed by a passionate developer, for developers!
- My last project Fast⚡︎CMS, a Flat-File cms.
- I am currently busy 😫.


Bug: In favposts.plg.php, on line 69, in "data-original-title=Edit", "Edit" needs to be replaced with $lang['edit'] in order to be used in other otherwise it can only work if it is in English.
Also, it may be necessary to add "document.querySelectorAll("[title=$lang['edit']") to ensure usability (due to an as-yet-unidentified bug on my end that causes bootstrap not to handle tooltip so there are no elements with the "data-original-title" attribute, only elements with the "title" attribute)
Also, it may be necessary to add "document.querySelectorAll("[title=$lang['edit']") to ensure usability (due to an as-yet-unidentified bug on my end that causes bootstrap not to handle tooltip so there are no elements with the "data-original-title" attribute, only elements with the "title" attribute)
Last modified by Tillreetree@fc7e1f5a on Monday 5th June 2023, 07:03:00



Suggestion: use the favposts_manageTopic() function to add "favorite" button to the topic page (list and detail) (use the different colour of the button to distinguish whether the post has been favorited or not, instead of inserting a badge directly into the post title (you can see the corresponding html when you edit the topic); at the same time;also the "favorite" page can be used as a place for users to browse (and remove) their favorite topics ( displayed as list), instead of having a confusing interface with some drop-down boxes, textboxes and buttons.


I think were thinking of something different. The idea of this, is supposed to have a personal favorite of topics, that is why the "favorite topics" is ment to be your favorite, I guess I can set that idea "hot topics" plugin on the next project I can.
Last modified by Gavin on Wednesday 7th June 2023, 16:21:00
A Web developer and web security programmer
Suggested Topics

Gavin
started plugin Announcer plugin is finally released!
Resources

nifoctn@c18c9a94
started Does this work for uploading files?
General Questions

455db0d1
started Image/ File Uploads?
General Questions

hmmy 🐝
started Infitite Scroll + Timeline Slider
Feature Requests