[CDB] Topic Description

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
watisnf.nl
Registered User
Posts: 607
Joined: Sat Mar 13, 2010 12:53 pm
Location: The Netherlands
Name: David

Re: [RC] Topic Description

Post by watisnf.nl »

Nice to see this extension here, I used it back in 3.0.x and I was waiting for the 3.1.x version. Thanks for porting this :D

Dutch Translation: https://github.com/dutch-translators/Topic-Description
Dutch Translator | Looking for, Dutch extensions translations
User avatar
frfzone
Registered User
Posts: 44
Joined: Fri May 22, 2015 12:53 pm
Name: FRF Admin

Re: [RC] Topic Description

Post by frfzone »

Thank you for porting this to 3.1.X! This will be a great extension to my forum where I could use/query the new field and use it for something :)
User avatar
RMcGirr83
Former Team Member
Posts: 22106
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re:

Post by RMcGirr83 »

Mauron wrote:Would you mind to request that template, please?
Template event has been asked for and githubbed.

https://github.com/phpbb/phpbb/pull/4351
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
Mauron
Registered User
Posts: 342
Joined: Wed Jul 16, 2014 11:25 am

Re: Re:

Post by Mauron »

Thank you!
User avatar
frfzone
Registered User
Posts: 44
Joined: Fri May 22, 2015 12:53 pm
Name: FRF Admin

Re: [RC] Topic Description

Post by frfzone »

Where can I edit and rename the "Topic Description" description to something else? TIA ;)
User avatar
JimA
Former Team Member
Posts: 7833
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn

Re: [RC] Topic Description

Post by JimA »

frfzone wrote:Where can I edit and rename the "Topic Description" description to something else? TIA ;)
I'm assuming you mean the text in front of the textfield? :)
In the ext/rmcgirr83/topicdescription/language/en/common.php file, edit the following:

Code: Select all

'TOPIC_DESC'                => 'Topic description',
Jim Mossing Holsteyn - Former Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
frfzone
Registered User
Posts: 44
Joined: Fri May 22, 2015 12:53 pm
Name: FRF Admin

Re: [RC] Topic Description

Post by frfzone »

JimA wrote:
frfzone wrote:Where can I edit and rename the "Topic Description" description to something else? TIA ;)
I'm assuming you mean the text in front of the textfield? :)
In the ext/rmcgirr83/topicdescription/language/en/common.php file, edit the following:

Code: Select all

'TOPIC_DESC'                => 'Topic description', 

Yes sir, thats what I meant.

Thank you very much.
User avatar
frfzone
Registered User
Posts: 44
Joined: Fri May 22, 2015 12:53 pm
Name: FRF Admin

Re: [RC] Topic Description

Post by frfzone »

JimA wrote:
frfzone wrote:Where can I edit and rename the "Topic Description" description to something else? TIA ;)
I'm assuming you mean the text in front of the textfield? :)
In the ext/rmcgirr83/topicdescription/language/en/common.php file, edit the following:

Code: Select all

'TOPIC_DESC'                => 'Topic description',

Yes sir, thats what I meant.

Thank you very much.
User avatar
frfzone
Registered User
Posts: 44
Joined: Fri May 22, 2015 12:53 pm
Name: FRF Admin

Re: [RC] Topic Description

Post by frfzone »

IF it is not a big mod, would it be possible to make it optional to display/not display the "Topic Description" when viewing the list of topics?

For example, I will utilize the new "Topic Description" field for my users to paste URL's and the URL's can be very very long. The new "topic_desc" field itself on the table is a varchar(255) so having an option to display/not display it on the list of topic view would be nice, please.

For the time being, is it possible to optionally NOT display the long topic description when viewing the forum topic list and unread posts? I hope i'm making sense. :|
User avatar
RMcGirr83
Former Team Member
Posts: 22106
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Re:

Post by RMcGirr83 »

Mauron wrote:Thank you!
Template event has been merged into 3.1.10.

frfzone, no it isn't possible to display or not the topic description. Just leave it blank if you don't want one to display.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
Mauron
Registered User
Posts: 342
Joined: Wed Jul 16, 2014 11:25 am

Re: [RC] Topic Description

Post by Mauron »

Again, thank you for your efforts!
User avatar
frfzone
Registered User
Posts: 44
Joined: Fri May 22, 2015 12:53 pm
Name: FRF Admin

Re: Re:

Post by frfzone »

RMcGirr83 wrote: frfzone, no it isn't possible to display or not the topic description. Just leave it blank if you don't want one to display.
Ok, thanks for checking ;)
elsa23
Registered User
Posts: 180
Joined: Sun Jul 25, 2010 3:36 am

Re: [RC] Topic Description

Post by elsa23 »

Hi Rich,

with ext Contact Admin
i have this error with "forum post" contact

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/ext/rmcgirr83/topicdescription/event/listener.php on line 132: Undefined index: topic_desc

Code: Select all

SQL ERROR [ mysql4 ]

Column 'topic_desc' cannot be null [1048]

SQL

INSERT INTO phpbb3_topics (topic_poster, topic_time, topic_last_view_time, forum_id, icon_id, topic_posts_approved, topic_posts_softdeleted, topic_posts_unapproved, topic_visibility, topic_delete_user, topic_title, topic_first_poster_name, topic_first_poster_colour, topic_type, topic_time_limit, topic_attachment, topic_status, topic_desc) VALUES (1521, 1466450095, 1466450095, 388, 0, 1, 0, 0, 1, 0, 'testtttdd', 'Elsa', 'FD1F1F', 0, 0, 0, 0, NULL)

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysql.php
LINE: 181
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysql->sql_query()

FILE: [ROOT]/includes/functions_posting.php
LINE: 1915
CALL: phpbb\db\driver\factory->sql_query()

FILE: [ROOT]/ext/rmcgirr83/contactadmin/controller/main_controller.php
LINE: 431
CALL: submit_post()

FILE: (not given by php)
LINE: (not given by php)
CALL: rmcgirr83\contactadmin\controller\main_controller->displayform()

FILE: [ROOT]/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
LINE: 109
CALL: call_user_func_array()

FILE: [ROOT]/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
LINE: 55
CALL: Symfony\Component\HttpKernel\HttpKernel->handleRaw()

FILE: [ROOT]/app.php
LINE: 33
CALL: Symfony\Component\HttpKernel\HttpKernel->handle()
sorry for my bad english
User avatar
RMcGirr83
Former Team Member
Posts: 22106
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [CDB] Topic Description

Post by RMcGirr83 »

Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺

Return to “Extensions in Development”