Title: Create plugin&#8230;
Last modified: August 19, 2016

---

# Create plugin…

 *  Resolved [icyville](https://wordpress.org/support/users/icyville/)
 * (@icyville)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/create-plugin/)
 * I’d like to create a plugin that is similar to the digg it plugin but is for 
   my site. I have the js code that will make the image appear and grab the url 
   and such but i don’t no how to code a wordpress plugin so that it’ll add the 
   script after every post. can anyone help by giving me a tutorial or some old 
   plugin i can just change around (all i need is a plugin to input text at the 
   end of each post).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Just Thomas Misund](https://wordpress.org/support/users/dnusim/)
 * (@dnusim)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/create-plugin/#post-700681)
 * [Here you go](http://wordpress.org/extend/plugins/social-bookmarking-reloaded/).
 * Well, it does more than add text, but I’m sure you can strip it down to what 
   you need. I hope?
 *  Thread Starter [icyville](https://wordpress.org/support/users/icyville/)
 * (@icyville)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/create-plugin/#post-700684)
 * 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);
   
       ?>
       ```
   
 *  [Just Thomas Misund](https://wordpress.org/support/users/dnusim/)
 * (@dnusim)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/create-plugin/#post-700685)
 * 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?
 *  Thread Starter [icyville](https://wordpress.org/support/users/icyville/)
 * (@icyville)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/create-plugin/#post-700688)
 * “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??
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/create-plugin/#post-700694)
 * 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](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).
 *  Thread Starter [icyville](https://wordpress.org/support/users/icyville/)
 * (@icyville)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/create-plugin/#post-700797)
 * everything works, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Create plugin…’ is closed to new replies.

## Tags

 * [new](https://wordpress.org/support/topic-tag/new/)

 * 6 replies
 * 3 participants
 * Last reply from: [icyville](https://wordpress.org/support/users/icyville/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/create-plugin/#post-700797)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
