×

Notice

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

TOPIC: not striping slashes from mmsblog posts

not striping slashes from mmsblog posts 14 years 11 months ago #3842

  • Timothy Matthews
  • Timothy Matthews's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I have joomlacomment successfully integrated! Thank you!

One problem, on the front page I show the last five mmsblog posts, under those posts I show the last five comments. Joomlacomment isn't stripping the slashes.

example: that\'s
should be: that's

not striping slashes from mmsblog posts 14 years 11 months ago #3844

  • Timothy Matthews
  • Timothy Matthews's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I've noticed that it is displaying exactly what is in the database. In the database a smiley is : ) (without the extra space) and thats the way it's displayed when viewing multiple posts on one page. It is displayed correctly :) when viewing the individual posts. Any ideas?

www.hardrockslacker.com

not striping slashes from mmsblog posts 14 years 11 months ago #3847

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ahhhhh, I was all the time thinking of the module. I will check this later today.
thank you for the report!

not striping slashes from mmsblog posts 14 years 11 months ago #3849

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, here is what you have to do.
Go to components/com_comment/joscomment/comment.class.php

and find these lines:
if ($item['title'] != '') {
                	$title = $item['title'];
                } else { 
                	$title = $item['comment'];
                }
 
at around line 750.

Then change it to this one:
if ($item['title'] != '') {
                	$title = stripslashes($item['title']);
                } else { 
                	$title = stripslashes($item['comment']);
                }

not striping slashes from mmsblog posts 14 years 11 months ago #3856

  • Timothy Matthews
  • Timothy Matthews's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Thanks!! You Rock!!
  • Page:
  • 1
Time to create page: 0.119 seconds