Hi Optiroot,
That’s already in our to-do list, we add options for all existing features. Anything should be customizable in wpDiscuz, the image url to image conversion as well.
Hi, perfect! That’s great.
I would that my website must be really clean.
You know, people can publish really everything.
For now, there is a way so I can disable the automatic conversion into images of links? Even deleting a line of code or something similiar?
Anyway if it’s possible, could you insert an option to moderate just comments with images?
This’d be the greatest thing of ever!
Thank you in any case!
(I know for this feature you could take a bit, so I’m not expecting, if you accept, that this feature comes out with the next version!).
Thank you again!
Hi Optiroot,
You know, people can publish really everything.
For now, there is a way so I can disable the automatic conversion into images of links? Even deleting a line of code or something similiar?
Please open /wpdiscuz/includes/wc-helper.php
Find this code:
$ret = preg_replace('#[^\"|\'](https?:\/\/[^\s]+(\.jpe?g|\.png|\.gif|\.bmp))#i', '<a href="$1"><img src="$1" /></a>', $ret);
Change it to this:
$ret = preg_replace('#[^\"|\'](https?:\/\/[^\s]+(\.jpe?g|\.png|\.gif|\.bmp))#i', '<a href="$1">$1</a>', $ret);
Anyway if it’s possible, could you insert an option to moderate just comments with images?
Yes, that’s possible, but it’s out of our to-do list by now, we’ll think about to add it once we finished with already planned things.
Okay, thank you so much.
I tried the modification of the code and it works.
So, I’ll wait for the introduction of this feature, it’ll be great!
Thank you again.