[1]

emmi
Subscriber
July 4th, 2008 at 1:40 am

Is it possible to make a form for writing excerpts? Do you think you could give me some ideas on how (or if) it could be done?
Perhaps I could make that by using the Form hacker? I am not very good at programming so guess I couldn’t handle anything to advanced but still I would be really happy for any kind of suggestions…

Permalink | Quote

[2]

admin
Administrator
July 4th, 2008 at 8:21 am

Hi emmi,

You could use the text and the-append-to-content widgets to do some funky processing on it, but the best solution would be to create a widget to allow users to add an excerpt. I’ll have a look at it because it shouldn’t be hard to do.

BTW Why do you want to do this?

Permalink | Quote

[3]

Fazcue
Subscriber
July 5th, 2008 at 6:08 am

Hi there! Great plugin :)

I also need this excerpt widget. I use excerpts to show just a part of a post in cat pages, tags pages, etc…

I you can made it, it will be great!

Thanks a lot!

Permalink | Quote

[4]

admin
Administrator
July 5th, 2008 at 12:56 pm

I’ll look into it, however I’m going to be going on holidays soon so it might not be avaliable for a while. I do hope you’re all patient! :)

Permalink | Quote

[5]

emmi
Subscriber
July 6th, 2008 at 10:16 am

Hi Mark, thank you!

Its really nice that you’re prepared to spend a little time helping out with this and I also think that making an excerpt widget would be the best thing.

I’m looking forward to see what you might come up with,
will try to be patient though… ;)

So why do I want that anyway?
I’m making sort of a very simple “advertisement board” for a LETS group. For that I need two textareas: one (that is the content-field) for optional material, pictures or whatever and then a smaller extra textarea for a short version of the advertisement that is used in category-pages and occationally is being printed out on paper, for something like a “members newspaper”. Also, all members of this group has to be given capabilities to use the main editing-space for some basic deleting and editing (but not posting) so that extra field must show up like a separate textarea there to and it has to be very easy to find and very “simple” looking. So, if using excerpts it already is by default and the only thing I really need to do is some minor changes in the stylesheets like moving things around and hiding things…

Permalink | Quote

[6]

admin
Administrator
July 6th, 2008 at 12:01 pm

Ah, okay. Hopefully I’ll have something this week… if not it won’t be until after my holidays. :|

Permalink | Quote

[7]

emmi
Subscriber
August 25th, 2008 at 7:34 pm

Hi again Mark, do you think that you could perhaps take a look and see if it’s possible to make this excerpt-plugin?
…or if you just don’t have the time, or at least not for a while then please tell me because then I really have to see if I can manage to figure out something by my self.

(I would love if you’ll help me but I also totally understand if you have to much to do and this isn’t one of your top-priorities)

Permalink | Quote

[8]

Cmedia
Subscriber
September 1st, 2008 at 5:00 am

I also am wanting an excerpt field box(preferablybasedon the advance except. Ideally it should be located between the post-tile and the content as opposed to a box below.

Also how do I alter the width of the content text box?

Thanks in advance

Cmedia

Permalink | Quote

[9]

admin
Administrator
September 2nd, 2008 at 9:20 am

Cmedia said:
I also am wanting an excerpt field box(preferablybasedon the advance except. Ideally it should be located between the post-tile and the content as opposed to a box below.

If you do an Excerpt widget, then with the ordering of the widgets plus Form Hacker, you can put the box anywhere you like.

Also how do I alter the width of the content text box?

Depends on what you’re comfortable with, are you strongest with HTML, PHP or CSS?

Permalink | Quote

[10]

Cmedia
Subscriber
September 7th, 2008 at 2:13 pm

Sorry BEEP The content widget has teh titleand content fixed. Ideally I would like to have the placed just after the title and before the content..

Permalink | Quote

[11]

Silverstar
Subscriber
September 26th, 2008 at 2:42 am

Hello

First congratulations for your plugin !

i also look for excerpts, for categories pages it is really important and smarter

did you have the time to look after it ?

thank you very much

Tom

Permalink | Quote

[12]

admin
Administrator
September 26th, 2008 at 8:37 am

I’m afraid it won’t be in the next release, but I am currently working on it.

Permalink | Quote

[13]

admin
Administrator
October 8th, 2008 at 1:55 pm

FYI: I’m implemented the excerpt widget and it seems to work fine. I’ll be in the next release, but if you need it sooner you can grab it from the dev branch.

Permalink | Quote

[14]

Silverstar
Subscriber
October 19th, 2008 at 2:34 pm

Hello

Thank you very much for your help, it works perfectly ;)

my members use tdo mini form to publish news on my website

i want theirs articles to be published in two categories

i know we can select one default category for one form, is it possible to select two default categories ?

which lines should i modify for this ?

thank you very much for your help

Silverstar

Permalink | Quote

[15]

admin
Administrator
October 20th, 2008 at 10:02 am

I’d recommend using an “Append to Post Content” widget to set more than one default category rather than hack TDOMF because you won’t be able to use the latest versions of TDOMF that will contain bug fixes and new features.

If you want to hack tdomf, go to include/tdomf-form.php line 291.

Permalink | Quote

[16]

Silverstar
Subscriber
October 22nd, 2008 at 7:01 pm

hello tdo master ;)

actually what i would like is that all articles posted with every form (in the defined default categories) would also be posted in a general category

to be clearer, let’s say i have 3 forms

form1 > category 1 + general category
form2 > category 2 + general category
form3 > category 3 + general category

i hope i am clear, is it possible to do that ?

Thank you very much

Silverstar

Permalink | Quote

[17]

admin
Administrator
October 23rd, 2008 at 3:42 pm

Well set each form to use the specific category as default then use the general category in Append to Post Content.

So add an Append to Post Content widget to the end of your form and set the text to this:

<?php 

# Grab existing categories
$postdata = wp_get_single_post($post_id, ARRAY_A);
$postcats = $post['post_category'];

# Change this to the id of the general category
$postcats[] = '3'; 

# Update post
$postdata = array(
   "ID" => $post_id,
   "post_category" => $postcats );
sanitize_post($postdata,"db");
wp_update_post($postdata);
?>

I haven't test this code, but it should work.

Permalink | Quote

[18]

Silverstar
Subscriber
October 23rd, 2008 at 9:13 pm

hello

Thank you for your code

but it doesnt work, it doesnt post anything at all…

would it be a syntax error in the code? …

Thank you

Silverstar

Permalink | Quote

[19]

new
Subscriber
October 24th, 2008 at 3:06 am

Does TDO forms work correctly in IE6?
I can’t submit posts via IE6 as a guest. and it doesn’t show any error like in FF or opera

Permalink | Quote

[20]

admin
Administrator
October 24th, 2008 at 8:55 am

It should. I don’t know of any reason why you couldn’t post with IE6. Are you using AJAX? I assume you can submit with FF and Opera?

Permalink | Quote

[21]

admin
Administrator
October 24th, 2008 at 10:54 am

Silverstar said:
would it be a syntax error in the code? …

Yes it was. This code does work. Just remember to change ’13′ to the id of the additional category you want it to be appended to it and make sure it’s the last widget on the form.

<?php
  # Grab existing categories
  $postdata = wp_get_single_post($post_id, ARRAY_A);
  $postcats = $postdata['post_category'];

  # Change '13' to the id of the extra category
  $postcats[] = '13'; 

  # Update post
  $postdata = array(
    "ID" => $post_id,
    "post_category" => $postcats );
  sanitize_post($postdata,"db");
  wp_update_post($postdata);
?>

Permalink | Quote

[22]

Silverstar
Subscriber
October 24th, 2008 at 5:12 pm

hello

You’re a genius ! :D

Thank you very much ;)

Silverstar

Permalink | Quote

[23]

burns
Subscriber
December 5th, 2008 at 4:54 am

doesn’t work for some reason in IE..

Permalink | Quote

[24]

Mark Cunningham
Administrator
December 10th, 2008 at 3:56 pm

burns said:
doesn’t work for some reason in IE..

What doesn’t work exactly?

Permalink | Quote

Advertisments

Join the Discussion