http://clkuk.tradedoubler.com/click?p=4286&a=390051&g=63955
Main Menu
Latest Articles
Popular Articles

Browsing this Thread:   1 Anonymous Users





Removing description from Submit form
Just popping in
Joined:
2006/2/11 16:48
Group:
Registered Users
Posts: 4
Level : 1; EXP : 21
HP : 0 / 5
MP : 1 / 290
Offline
I just LOVE Articles!! It's been easy to use and haven't had any problems. Great Job!

That being said, I would like to remove the description from the submit form. For what I am using it for, I do not need the description box, and I don't want to confuse my users.

How do I go about disabling/removing the description field? I tried commenting out some areas of the submit.php, but all I get are errors.

Thanks in advance for your help!

Posted on: 2006/2/11 16:53
Transfer the post to other applications Transfer


Re: Removing description from Submit form
Webmaster
Joined:
2003/11/7 20:56
Group:
Webmasters
Registered Users
Posts: 137
Level : 10; EXP : 75
HP : 0 / 243
MP : 45 / 14615
Offline
Quote:
I just LOVE Articles!! It's been easy to use and haven't had any problems. Great Job!


Thanks

In this case, you may want to comment out the following in templates/article_submit.html

<p><{$intro_text}></p>

You may have to go into the module admin and update articles for the changes to be applied.

You can also change the intro text in language/english/main.php, line 72:

define("_MD_ART_SUBINTRO", "You can use the [...]");

Don't remove the whole line as it will cause problems, but you can either change or remove the text between the second set of quotes.

TTFN

Posted on: 2006/2/11 17:42
_________________
Andy Mills
E-mail: Open in new window
Transfer the post to other applications Transfer


Re: Removing description from Submit form
Just popping in
Joined:
2006/2/11 16:48
Group:
Registered Users
Posts: 4
Level : 1; EXP : 21
HP : 0 / 5
MP : 1 / 290
Offline
hmmm, I think I didn't explain enough...here's what I want:

When a user is on the Submit Article page, you have Title, Category, Description, Article. I want to get rid of the Description input section, so it goes Title, Category, Article.

Sorry if I wasn't clear in the first post.

Thanks,
Dana

Posted on: 2006/2/11 20:48
Transfer the post to other applications Transfer


Re: Removing description from Submit form
Webmaster
Joined:
2003/11/7 20:56
Group:
Webmasters
Registered Users
Posts: 137
Level : 10; EXP : 75
HP : 0 / 243
MP : 45 / 14615
Offline
Ah, I see...

if you comment out line 94:

$submitform->addElement($editordesc);


That should do it.

Posted on: 2006/2/14 19:41
_________________
Andy Mills
E-mail: Open in new window
Transfer the post to other applications Transfer


Re: Removing description from Submit form
Just popping in
Joined:
2006/2/11 16:48
Group:
Registered Users
Posts: 4
Level : 1; EXP : 21
HP : 0 / 5
MP : 1 / 290
Offline
Thanks! That seemed to do the trick!

Keep up the good work!

Posted on: 2006/2/16 15:10
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
Donate!
Please consider donating to help continued development of my XOOPs modules. Read more here.

Search
Advertisements
Copyright © 2001-2009 sirium.net