Since existing review plugin is awful and people who create posts (contributors) for some really dumb reason can’t have access to review and other newspaper settings to create post, we decided to leave it as it is. No point to modiify and change it better. So we started looking around some better review plugins and found out that most of them does not want work properly with newspaper theme (will not add star rating to posts, will not show up) or does not work at all.
Example: Cubell Review System
Is there a way to make these plugins to work with Newspaper theme?
Most properly executed review plugins will “append” the ratings to the normal end up post meta hook. I use a related posts plugin (more efficient than the one in theme since it does micro caching of queries and is text-only). Also, some may need to load a custom font to work for stars, and might duplicate the slim font-awesome already loaded. Further, some may need to load custom CSS on the page, and might break due to any plugin or CDN being used.
Still, lots to test — https://wordpress.org/plugins/tags/rating/
Some also allow use of shortcodes to drop the content in middle of post, but obviously you need to test that.
-
This reply was modified 8 years by
simchris.
yeah done these things already. These 2-3 free plugins what you can find from wordpress plugins section are kind of horrible and none of these will hook up with newspaper theme. Only ones which are acceptable and offer some freedom to change and have better acceptable desing are the ones you need to buy. Example: Cubell Review system, codetipi review plugin, etc. Not tried codetipi review plugin yet (it looks exactly same as cubell review system), I am waiting answer from them does will it work with other themes like newspaper theme or not.
Also considered first to modify exisiting one to design it more acceptable form, or make (or order) new one from the scratch for newspaper theme. <- So many people are searching today proper nice review plugins, so it may be a good idea to make one and later even start selling it for 5-15 euros to everybody who likes simple but better looking and easily editable review plugin. It’s kind of strange that nobody has done it yet.
-
This reply was modified 8 years by
Edragon.
Hi,
That is how the modules display posts that have reviews. The author name and date will be replaced by the review stars. If you want to make modifications to this functionality, you will have to edit the theme files
– https://www.screencast.com/t/hKWnG07RBOkI
If you were to make modifications like this
– https://www.screencast.com/t/hdDMSXma
The review stars will not be displayed anymore on modules.
Thanks
Hi,
Maybe I am misunderstanding this, sorry if I am. When a post has a review, the theme modules used on blocks and grids display the stars instead of the author name and date. I believe that is for design purposes.
I thought you wanted to remove the stars in this case, and display the author name and date. That is what the modification from above will do, for all the modules at once.
If this is not what you wanted to know, please state what exactly is it you want to do with the review stars so we can avoid further misunderstandings.
Thanks
Since default review system design and UX is like it is and contributors can’t access it, we changed review system. The new review system is codetipi Let’s Review and it does not add stars on post topic like default review system. So now I am looking how and where to change code the way it would be less messy (less changes now and after future newspaper updates).
So instead of removing stars. I want to add stars back. đ
Hi,
That would be difficult to achieve. The system will only work with the theme reviews. There are multiple functions and processes before the stars can be displayed on modules. I believe it would take a considerable amount of work and testing to display external reviews created with a plugin, inside the theme modules. Unfortunately I cannot provide a solution in this case.
Thanks
Why? You guys are using WP Review plugin, so all that work is already done. And all I need now should be just a simple fix to change it. But if you actually do it in every module itself not in one place, then yeah I understand that it would be difficult to replace it after every update. At the moment I have API function to call out, all I needed to know where is exactly that function are what you are calling out at the moment in theme so I can replace it with other.
if ( class_exists( 'Lets_Review_API' ) ) {
$my_score_box = Lets_Review_API::lets_review_get_score_box( $post->id );
echo $my_score_box;
}
Hi,
All the modules display the date and author fields, like this
– https://www.screencast.com/t/ZePVYHS1F3
A check is then made in the main module file, if the post has a review the date and also the author field will be replaced by the review stars
– https://www.screencast.com/t/A94OvAulCNWB
Thanks
If that helps, here’s what I did for the same plugin.
As it seemed to be a pain in the neck to replace the tagdiv stars, I decided to place the scorebox over the featured image.
For this, I just added these lines in td_module.php: http://prntscr.com/ihnft3
The rest is just a matter of CSS, module by module
