We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I wanted to create a seo plugin, but whenever I try to do something, I get a 500 server error, why?
Here is just some code for the demonstration (PluginSeo.php)
<?php /** * Seo Plugin * This plugin auto-generates meta tags for SEO * Author: JMcrafter26 */ class PluginSeo { static $version = '1.0.0'; static function run( $wiki ) { $wiki->event('view_after', NULL, function($wiki) { // replace all <a> tags with rel="nofollow" $wiki->html = preg_replace('/<a(.*?)>/i', '<a$1 rel="nofollow">', $wiki->html); return $wiki; }); } }
What am I doing wrong? I just copied this from another plugin.
Please respond
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I wanted to create a seo plugin, but whenever I try to do something, I get a 500 server error, why?
Here is just some code for the demonstration (PluginSeo.php)
What am I doing wrong? I just copied this from another plugin.
Please respond
The text was updated successfully, but these errors were encountered: