Page 1 of 1

[dev]Extra topic field

Posted: 04 Sep 2010, 12:15
by Steve
Author: SteveĀ©
Modification name: Extra topic field
Version: 1.0.0

Requirements: phpBB3 3.0.7-PL
Description:
Adds an extra topic field below the topic subject input field in whilst posting and is displayed in viewtopic and viewforum.

Styles supported: prosilver and subsilver2 styles *could easily adapted for other styles.
Support: This topic.

Features:
  • Modx:Yes.
    Image
  • Automod:Yes.
    Image
  • install database changes,permissions settings using the umil installer.
  • Group permissions to use extra topic field.
Planned features:
  • Enable/disable in different forums.
  • Use a different extra text field title eg style,mod,snippet ....
  • Possible to use more than one extra topic field ,ability to create your own.
  • If enabled the extra topic field is required on submitting a new post.
Please dont post "when will these planned features be included" because i dont know as of yet.

Screenshots:
[float=right]
sub.png
subt.png
subp.png
[/float]
prop.png
prot.png
pro.png
Download:
extra_topic_field1.0.0.zip
FAQ,s and Tips.

To set your users group permissions to use the extra topic field goto
ACP >> permissions tab >> groups permissions >> select a group to set permissins >> Advanced permsiions >> misc >> Can use extra topic field *yes *no *never >> submit

1. Naming your extra topic field.

Open language/en/common.php
find:

Code: Select all

    'EXTRA_TOPIC_FIELD'                   => 'Price  ',
adjust 'Price' to suit your needs
example:

Code: Select all

    'EXTRA_TOPIC_FIELD'                   => 'phpBB3 style ',
2. Setting up what forum to use extra topic field.

Open styles/prosilver/template/posting_editor.html
Open styles/prosilver/template/posting_body.html
find:

Code: Select all

<!-- IF FORUM_ID eq 2 && U_EXTRA_TOPIC_FIELD -->
Adjust the forum id number 2 to what suits your needs.
if you want 2 forums to
use this:

Code: Select all

<!-- IF FORUM_ID eq 2 or 3 && U_EXTRA_TOPIC_FIELD -->
If you want no restrictions for which forum it will be used in.
use this:

Code: Select all

<!-- IF U_EXTRA_TOPIC_FIELD -->
Remember to refresh the template,s for prosilver and subsilver2 after making any changes.

Re: [dev]Extra topic field

Posted: 04 Sep 2010, 13:32
by Stoker
Great work Steve :thumb:
So when will the planned features be included?

Re: [dev]Extra topic field

Posted: 04 Sep 2010, 17:14
by heredia21
Thanks Steve!

Re: [dev]Extra topic field

Posted: 06 Sep 2010, 13:46
by Ephemeraboy
doesn't this like a topic decription...??

Re: [dev]Extra topic field

Posted: 06 Sep 2010, 13:49
by Steve
was requested here : viewtopic.php?f=19&t=1115
and can be used in any way you like read the faqs ;)