1
patagon
Article module - customize submit screen
  • 2007/6/1 3:28

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Hi,

I'm using article (by phpbb). When I go to 'submit article' I see 3 options on top on a field named 'form mode': basic, advanced and custom. I want to get rid of the custom one and change the name of basic and advanced (to something else). I found a workaround for this, see my other posts below

2
patagon
Re: Article module - customize submit screen
  • 2007/6/1 7:03

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


I'll try to simplify my questions:

1- what I'd need is the 'basic' form (when submitting I see the option of basic, advanced and custom, I'd like to delete the last two from that page, since so many option will confuse my users).

2- in that basic form I'd like to include two fields that are in the advanced mode: the 'Source' and the 'Article spotlight image' (so that uses can upload images).

3 - at last, and this is not that important, i'd like to also delete from 'basic' mode the 'Text options' (enable html, smiley, etc).

Is this possible? I can maybe find my way with a little guidance..

thanks again

3
patagon
Re: Article module - customize submit screen
  • 2007/6/1 7:23

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


and the icing on the cake: on advanced mode I see that I have a few options for the main text area (koivi, dhtml form, plain text, etc). I'd love to make 'plain text' the default (withouth the ability to choose the others, is this posible?). Since users will only see the 'basic' mode, without the ability to choose advanced or custom, this should be the default for all 3 (or just basic).

At last, I'm using articles for a non profit organization where users submit issues or problems they have, so I'd need them to be able to 'tag' their problem/article, by selection from a dropdown (similar to how you can label a post on CBB). when the article is initially posted, the status would be 'open', and then users can change that (by editing the article) to 'in process' and 'solved', is this possible?

guess thats too many questins, but any help or guidelines will be appreciated.

4
patagon
Re: Article module - customize submit screen
  • 2007/6/1 16:08

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


anyone? I really need this...

5
Dona_Brasil
Re: Article module - customize submit screen

There is a small file modules/article/readme.editmode.txt :

Quote:

Guide for setting customized article edit mode

The module allows you to set your prefered edit mode: which mode of edit form can used by users, which fields are allowed for users in a custom or basic mode.

Note: the application requires very basic PHP skill.

Guide #1 - Set form modes
1 In file module/article(or cloned module)/include/form.article.config.php, set the modes of "basic", "custom"; "full" mode can also be configured by modifying
$form_art_elements["full"] = !empty($form_element["active"]) ? array_keys($form_element["active"]) :
2 A full list of all available fields is listed for each mode, a field can be hidden by comment out; or be displayed by removing the comment mark; the sorting order is active for user interface


Guide #2 - Set user permission
1 In file module/article(or cloned module)/include/plugin.php, set the preference for $customConfig["form_mode"]
2 Available values for the "form_mode":
"fix" - force to use "custom", custom mode;
"basic" - default as basic mode "basic", can be switched by user;
"full" - default as advanced mode "full", can be switched by user;
"custom" - default as custom mode "custom", can be switched by user;


6
patagon
Re: Article module - customize submit screen
  • 2007/6/2 0:16

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Thanks Dona! I was about to loose this project but I managed to solve most of my problems with your advice. BTW, not that I make any money on this, but I put a lot of work that I didnt want to see fade away (besides believing in the cause, and my personal opinion that a website could help).

anyway, my remaining issue is that I would need to be able to 'tag' each article with 'open', 'pending' or 'solved' (or something similiar). Whenever someone posts an 'article' the status would be 'open' and then they can edit the post and change that to 'pending' or 'solved'. Since I dont use all the fields in the article submit I figured one of them (say 'source') could hold this, but I'd need to make sure users can only input one of these 3 options (for example a dropdown) and then do an if on the article page (if the option selected in the dropdown equals 'open', show an image saying open). Maybe there is another way, or something I'm overlooking, since I'm not a programmer...

hope this is clear, and maybe someone can give me an idea on how to do this. thanks

7
chardiar
Re: Article module - How can I only use basic form
  • 2008/6/14 16:17

  • chardiar

  • Just popping in

  • Posts: 91

  • Since: 2004/8/16


Hi friends,

I want only use "basic form" to registered members.
I did this for the 3 forms but equal I see the form full:

$form_art_elements["full"] = !empty($form_element["active"]) ? array_keys($form_element["active"]) :
array(
"form_mode", // Form mode
"art_title", // Article title
//"uid", // User ID for submitter
"art_summary", // Article summary
//"subtitle", // Subtitle for a page
//"editor", // Editor selection box
"text", // Article body
"text_options", // Options for article body display
//"page", // Multipage manipulation
//"writer_id", // Original author
//"art_source", // Original source
"art_keywords", // Keywords or tags for the article
//"attachment", // Attachments, not used yet
//"art_image", // Article spot image
//"art_template", // Article template
"cat_id", // Basic category
//"category", // Extra categories to register to
//"topic", // Topics to register to
//"art_forum", // Newbb forum board for discussing the article
//"art_elinks", // External relevant links
//"trackbacks", // URL to send trackback
"notify", // Notification for approval of the article
"approved", // Approve the article, admin only
//"update_time", // Update publish time, admin only
);

$form_art_elements["basic"] =
// Comment out any of the fields to be hidden
// Elements will be sorted according to the order here
array(
"form_mode", // Form mode
"art_title", // Article title
//"uid", // User ID for submitter
"art_summary", // Article summary
//"subtitle", // Subtitle for a page
//"editor", // Editor selection box
"text", // Article body
"text_options", // Options for article body display
//"page", // Multipage manipulation
//"writer_id", // Original author
//"art_source", // Original source
"art_keywords", // Keywords or tags for the article
//"attachment", // Attachments, not used yet
//"art_image", // Article spot image
//"art_template", // Article template
"cat_id", // Basic category
//"category", // Extra categories to register to
//"topic", // Topics to register to
//"art_forum", // Newbb forum board for discussing the article
//"art_elinks", // External relevant links
//"trackbacks", // URL to send trackback
"notify", // Notification for approval of the article
"approved", // Approve the article, admin only
//"update_time", // Update publish time, admin only
);


$form_art_elements["custom"] =
// Comment out any of the fields to be hidden
// Elements will be sorted according to the order here
array(
"form_mode", // Form mode
"art_title", // Article title
//"uid", // User ID for submitter
"art_summary", // Article summary
//"subtitle", // Subtitle for a page
//"editor", // Editor selection box
"text", // Article body
"text_options", // Options for article body display
//"page", // Multipage manipulation
//"writer_id", // Original author
//"art_source", // Original source
"art_keywords", // Keywords or tags for the article
//"attachment", // Attachments, not used yet
//"art_image", // Article spot image
//"art_template", // Article template
"cat_id", // Basic category
//"category", // Extra categories to register to
//"topic", // Topics to register to
//"art_forum", // Newbb forum board for discussing the article
//"art_elinks", // External relevant links
//"trackbacks", // URL to send trackback
"notify", // Notification for approval of the article
"approved", // Approve the article, admin only
"update_time", // Update publish time, admin only
);

?>


what´s wrong?

Thanks in advance.

Login

Who's Online

345 user(s) are online (222 user(s) are browsing Support Forums)


Members: 0


Guests: 345


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits