Here you go.
Well, it does more than add text, but I’m sure you can strip it down to what you need. I hope?
what’s wrong with this code i created, it says i have a parse error on line 1
<?php
/*
Plugin Name: Dope-Submit
Plugin URI: http://www.thatssuperdope.com/dopeitwpplugin.html
Description: Give your readers a way to submit articles to Thats Super Dope.
Version: 1.0
Author: Bruce Ackerman
Author URI: http://www.icyville.com/
*/
function dope_submit($content) {
if ( !is_feed() && !is_page() )
$content .= '<script type="text/javascript" src="http://thatssuperdope.com/evb/check_url.js.php"></script>
';
return $content;
}
add_filter('the_content', 'dope_submit', 999);
?>
Try deleting the first newline, so that the first two lines will be
<?php
/*
Did you get what you needed from the plugin i linked you?
“Parse error: syntax error, unexpected T_STRING” Any suggestions?
That’s the error I still get. I actually modified a plugin called subscribe-remind because it was easy to do. I appreciate the link though.
I also get all this weird code for the dope-submit plugin when I look at my plugins section of wordpress. it’s like putting the php code in for the title, version and description, what the heck??
I see nothing wrong with the code from here (well… :).
Try downloading this copy of it and compare with yours:
http://guff.szub.net/download/dope-submit.php
Note that by ‘compare’ I don’t just mean look at the two files source in an editor. Also look at how you are saving your plugin file, and how you are uploading it (if testing is not being done locally).
everything works, thanks!