Wordpress Plugin: Default Post Content

heute kam mir der gedanke, dass es sehr praktisch wäre, wenn man bei der erstellung eines neuen posts einen default text vorgeben könnte; in diesem blog kann ich das zwar nicht benötigen, aber in einer firmeninternen wordpress installation sehr wohl.

zum glück geht das sehr einfach, daher hab ich gleich ein plugin erstellt: wp default post content

Related posts:

  1. wp default post content v1.1
  2. wordpress plugin: get internetexplorer
  3. wordpress plugin: wp javascript
  4. wordpress plugin: wp head
  5. do you trust all wordpress plugins?

Make a Comment

Make A Comment: ( 25 so far )

blockquote and a tags work here.

25 Responses to “Wordpress Plugin: Default Post Content”

RSS Feed for konfabulieren Comments RSS Feed

great plug-in exactly what I was looking for but my problem is that I usually paste HTML code and it doesn’t get translated correctly. by this I mean:
——–START ——–

height=”70%” width=”70%” alt=”" />

——- END ——–

gets translated to:

height=\”70%\” width=\”70%\” alt=\”\” />

is there any way to fix this? thanks

steven maroulis UNITED STATES Windows XP Mozilla Firefox 1.5 wrote on November 16, 2005 @ 23:10 (in other words: 1 week, 4 days after the fact)

steven maroulis

ok, i see. i’ll have a look on that

hipslu AUSTRIA Windows XP Internet Explorer 6.0 wrote on November 17, 2005 @ 20:59 (in other words: 1 week, 5 days after the fact)

hipslu

hipslu AUSTRIA Windows XP Internet Explorer 6.0 wrote on November 18, 2005 @ 16:12 (in other words: 1 week, 5 days after the fact)

hipslu

[…] Jammen det er jo genialt! Default Post Content plugin virker efter hensigten. Nu kan jeg fÃ¥ en “linkbar” som nedenstÃ¥ende automatisk indsat i hvert eneste indlæg… SÃ¥ skal jeg bare huske at udskifte de relevante links […]

M-ALO’s Monologer (Testblog) » Blog Archive » Plugin test: Default Post Content DENMARK WordPress 2.0 wrote on January 2, 2006 @ 17:14 (in other words: 1 month, 3 weeks after the fact)

M-ALO’s Monologer (Testblog) » Blog Archive » Plugin test: Default Post Content

I wrote my default content like this:
[code]
   

[/code]
And I recive:
[code]

[/code]

Fanatyk POLAND Windows XP Mozilla Firefox 1.5 wrote on February 2, 2006 @ 17:00 (in other words: 2 months, 4 weeks after the fact)

Fanatyk

looks like it’s working - or did i miss something? :mrgreen:

hipslu AUSTRIA Windows XP Internet Explorer 6.0 wrote on February 7, 2006 @ 21:48 (in other words: 3 months after the fact)

hipslu

I thought that if wrote & n b s p I’ll see it in post editor :)

Fanatyk POLAND Windows XP Mozilla Firefox 1.5 wrote on February 7, 2006 @ 21:54 (in other words: 3 months after the fact)

Fanatyk

ah, i see. well, that will not work since the wysiwyg editor will make use of the html code in the default post content. in fact, i think this is the way i should work

hipslu AUSTRIA Windows XP Internet Explorer 7.0 wrote on February 12, 2006 @ 22:17 (in other words: 3 months, 1 week after the fact)

hipslu

I do not use WISIWYG

Fanatyk POLAND Windows XP Mozilla Firefox 1.5 wrote on February 12, 2006 @ 22:25 (in other words: 3 months, 1 week after the fact)

Fanatyk

ok, please open the file, search for “stripslashes” (should be twice, line 59 and 97) and replace it with “htmlspecialchars”.

be sure to enable “Strip Slashes?” on the options page. it should work now (tested with 2.0.1). please provide feedback so that i can add this option. thanks

hipslu AUSTRIA Windows XP Internet Explorer 7.0 wrote on February 12, 2006 @ 22:48 (in other words: 3 months, 1 week after the fact)

hipslu

works!

THX! :)

Fanatyk POLAND Windows XP Mozilla Firefox 1.5 wrote on February 12, 2006 @ 22:57 (in other words: 3 months, 1 week after the fact)

Fanatyk

Does not seem to work with wordpress 1.5.2. Just a blank white page. No space before or after php either. Any ideas?

Will UNITED STATES Windows XP Mozilla Firefox 1.6a1 wrote on March 7, 2006 @ 06:46 (in other words: 4 months after the fact)

Will

what did you enter as your default content?

hipslu AUSTRIA Windows XP Internet Explorer 7.0 wrote on March 8, 2006 @ 22:14 (in other words: 4 months after the fact)

hipslu

Hey,

I am not even able to get that far.

Going to you know via the options and default content tab, that is:

/wp-admin/options-general.php?page=hipslu_wp-default-post-content.php

Results in simply a blank white page. :(

Thanks,

Will

Also leaving a comment here is really screwed up, cant believe the last one made it trhough:

Warning: main(): Unable to access ../../../wp-config.php in /home/hipfinger/www.konfabulieren.com/wp-content/plugins/sk2_second_chance.php on line 3
Warning: main(../../../wp-config.php): failed to open stream: No such file or directory in /home/hipfinger/www.konfabulieren.com/wp-content/plugins/sk2_second_chance.php on line 3
Fatal error: main(): Failed opening required ‘../../../wp-config.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /home/hipfinger/www.konfabulieren.com/wp-content/plugins/sk2_second_chance.php on line 3

Will UNITED STATES Windows XP Mozilla Firefox 1.6a1 wrote on March 10, 2006 @ 09:59 (in other words: 4 months after the fact)

Will

how did you upload the plugin to your webspace? hopefully ascii; please check this.

then, please open the url /wp-admin/options.php and find “active_plugins”. there should be “hipslu_wp-default-post-content.php” only once. if not, change it.

ps: i think your browser has javascript disabled; enable it, and you should be able to post a comment without a problem ;-)

hipslu AUSTRIA Windows XP Internet Explorer 7.0 wrote on March 20, 2006 @ 17:52 (in other words: 4 months, 2 weeks after the fact)

hipslu

i finally found some time to have a look at the annoying “redeclare” bug some of you are running into. well, in fact i do not understand why this happens, but i promise: it is fixed now. please download the new version asap (http://www.konfabulieren.com/wordpress-plugins/) and give me some feedback. thanks.

and: added the option requested by fanatyk some time ago - no source code search / replace needed anymore

hipslu AUSTRIA Windows XP Internet Explorer 7.0 wrote on August 8, 2006 @ 22:10 (in other words: 9 months after the fact)

hipslu

Hey, that is the thing i was looking for, but it does not work with the newest WordPress 2.0.2

When i want to open the Default Post Content configuration Tab i get the following:

———

Fatal error: Cannot redeclare hipslu_dpc_options_page() in /home/httpd/vhosts/blitz-art.com/httpdocs/blog/wp-content/plugins/hipslu_wp-default-post-content.php on line 25

———

Please help.

Byru POLAND Windows XP Mozilla Firefox 1.5.0.7 wrote on October 11, 2006 @ 19:38 (in other words: 11 months, 1 week after the fact)

Byru

The same as comment by Byru, doesn’t work with WP 2.0.4. Love to use this plugin (also the javascript Plugin) so could you please fix the bug or help me?
Thanx in advance.

Natti GERMANY Windows XP Mozilla Firefox 2.0 wrote on November 23, 2006 @ 10:12 (in other words: 1 year after the fact)

Natti

I’ve been useing it with 2.0.4 and now I’m useing it with 2.0.5 and have no problem :>

Polski Blogger POLAND Windows XP Mozilla Firefox 2.0 wrote on November 23, 2006 @ 11:02 (in other words: 1 year after the fact)

Polski Blogger

Can the liberties of a nation be thought secure,
when we have removed their only firm basis,
a conviction in the minds of the people that they
are a gift of God? Indeed, I tremble for my countrymen,
when I reflect that God is just, that His justice
cannot sleep forever.

search engine ranking UNITED STATES Windows XP Mozilla Firefox 1.5.0.8 wrote on November 28, 2006 @ 13:01 (in other words: 1 year after the fact)

search engine ranking

I’m using WP 2.05 and I’m also getting the “redeclare”-error like Byru and Natti.

Fatal error: Cannot redeclare hipslu_dpc_options_page() (previously declared in …/wp-content/plugins/hipslu_wp-default-post-content.php:25) in …/wp-content/plugins/hipslu_wp-default-post-content.php on line 23

Any help on this would be appreciated.

m-alo DENMARK Windows XP Mozilla Firefox 2.0 wrote on December 8, 2006 @ 10:20 (in other words: 1 year, 1 month after the fact)

m-alo

I am using WP 2.1 and I get the same error as above. I do not know what would be the problem with the declaration. Could you help me, please?

Javi Vicente SPAIN Windows XP Mozilla Firefox 2.0.0.2 wrote on March 8, 2007 @ 08:46 (in other words: 1 year, 4 months after the fact)

Javi Vicente

If you add a “default content per category” option, I will be able to eat it. It’s still delicious this way but the option I mentioned would be awesome.

Baris Unver TURKEY Windows XP Mozilla Firefox 2.0.0.3 wrote on April 13, 2007 @ 19:12 (in other words: 1 year, 5 months after the fact)

Baris Unver

i do not think that this is possible (with my php skills :mrgreen: ) - the default content is set while the page is loading, but the category is defined for sure much later, so the page would have to reload or the content has to be set via javascript. what should happen to content the user has already entered? what should happen if there is more than one category checked? so i think this would not be that easy to implement.

but i’ve added a option to define the default excerpt and the default title of a post; well, that would not help you, but it should be said i think :grin:

hipslu AUSTRIA Windows XP Internet Explorer 7.0 wrote on April 14, 2007 @ 11:44 (in other words: 1 year, 5 months after the fact)

hipslu

I’m using Wordpress 2.3.2, and v1.3 of the plugin. The strip slashes function of the plugin works great on the post section, but slashes still show up in the title section. Is this something I’m doing wrong?

Solomon Broad UNITED KINGDOM Windows XP Mozilla Firefox 2.0.0.11 wrote on January 28, 2008 @ 11:28 (in other words: 2 years, 2 months after the fact)

Solomon Broad

Where's The Comment Form?

Liked it here?
klick here to open a random post - or have a look at this: