GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   [possible longshot] Is there a way to do this with WP if using a social plugin? (https://gfy.com/showthread.php?t=916348)

Si 07-16-2009 06:10 PM

[possible longshot] Is there a way to do this with WP if using a social plugin?
 
i'm thinking of setting up a community type site using buddypress or something similar.

would it be possible to block certain content from being displayed by using some kind of plugin?

For example,

to block spam, urls and email addresses would get block or scrambled.

like: member types in http://www.somefuckingtypeofwebsite.com and the plugin sees this and changes the output to something like http://sijjoijwjeijjisjfidijfijisfjiajojfoaijfoi

to prevent any spamming.

Is this possible?

If not i'll just set it all to nofollow.

harvey 07-16-2009 08:25 PM

of course it's possible, depending on the script you can use something like

Code:

if (!preg_match("/^(http?:\/\/+[\w\-]+\.[\w\-]+)/i", $some_value))
{
    $some_value = '';
}


that will leave $some_value (ie any URL) empty. Of course you may change to something else, but it will look better this way.


you'd also use preg_replace() or ereg() and play with regex if you want to asign some specific value, there are many ways to do it.

This being said, you're supposed to use NOFOLLOW anyway

Simon_Spicecash 07-16-2009 10:14 PM

Oh neat, I'd never heard of buddypress...definately going to look into that! Have a few blogs that have a great returning reader base, and putting some kind of community to them would be great

thanks for that!


All times are GMT -7. The time now is 02:03 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123