Loading


Advertisement:

Author Topic: Comments displayed without being logged in but can't comment  (Read 653 times)

bajatrader

  • Newbie
  • *
  • Posts: 2
I wanted a way to show comments without having to be registered or logged in.
  • If you are not logged in the comment is displayed but you may not edit or enter a comment.
  • If you are logged in the page behaves normal displaying comments and allowing you to make or edit your comment.
I am using:
  • OSClass version 3.6.1
  • Modern theme version 5.1.0
There is 1 line that has to be modified and 2 lines that have to be added in the file "/public_html/yoursite/oc-content/themes/modern/item.php":
  • On line 130 remove "&& osc_is_web_user_logged_in()" so it reads "<?php if( osc_reg_user_post_comments () || !osc_reg_user_post_comments() ) { ?>"
  • On line 153 insert "<?php if( osc_is_web_user_logged_in() ) { ?>"
  • On line 172 (be sure you have already inserted the line at 153) insert "<;?php } ?>"

I have posted the code for the complete section starting at line 129 to line 173.


Enjoy  :)