×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Module mod_comments not show comment of a specific user!

Module mod_comments not show comment of a specific user! 13 years 6 months ago #12246

  • Panagiota Karkalou
  • Panagiota Karkalou's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Hello! Can you help me with this?

I have a user with username 'megabox' and i want in the module mod_comments (tha i'm using to show the latest comments in my frontpage...) NOT SHOW comments from tha user!

what file i should change to do this??

thanks a lot!

Module mod_comments not show comment of a specific user! 13 years 6 months ago #12248

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hi,
is he a spammer or what?
Well if we are talking about com_content, then you could modify the file:
administrator/components/com_comment/plugin/com_content/josc_com_content.class.php and near the end of the file you have 2 functions that are used in the module - getmostcommented and getothersquery .

There you should modify the SQL to not include the userid.

Daniel

Module mod_comments not show comment of a specific user! 13 years 6 months ago #12249

  • Panagiota Karkalou
  • Panagiota Karkalou's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
ok thank alot!!!

done the job great!
  • Page:
  • 1
Time to create page: 0.091 seconds