Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 - 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Article module - How can I only use basic form
by chardiar on 2008/6/14 16:17:23

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.
Re: Article module - customize submit screen
by patagon on 2007/6/2 0:16:17

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
Re: Article module - customize submit screen
by Dona_Brasil on 2007/6/1 19:10:59

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;

Re: Article module - customize submit screen
by patagon on 2007/6/1 16:08:31

anyone? I really need this...
Re: Article module - customize submit screen
by patagon on 2007/6/1 7:23:44

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.

Who's Online

216 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits