[CDB] Posting Template

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!
Scam Warning
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
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [RC] Posting Template

Post by PayBas »

Cool stuff :)
User avatar
KhurramMunawar
Registered User
Posts: 534
Joined: Tue Mar 25, 2014 2:20 am
Location: Islamabad, Pakistan
Name: Khurram Munawar

Re: [RC] Posting Template

Post by KhurramMunawar »

extension installed successfully but i did not find any settings in acp.
please help
Get Free Traffic To Your Website
Trafficonic.com - Free Traffic To Your Website
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11148
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo

Re: [RC] Posting Template

Post by Raul [ThE KuKa] »

ACP - Forums - Edit forum, and add posting template.
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
KhurramMunawar
Registered User
Posts: 534
Joined: Tue Mar 25, 2014 2:20 am
Location: Islamabad, Pakistan
Name: Khurram Munawar

Re: [RC] Posting Template

Post by KhurramMunawar »

Thanks Raul
Get Free Traffic To Your Website
Trafficonic.com - Free Traffic To Your Website
User avatar
Dskod1
Registered User
Posts: 44
Joined: Tue Jan 21, 2014 8:47 pm
Location: Australia
Name: Dylan Skoda

Re: [RC] Posting Template

Post by Dskod1 »

Hey,

Great job on this extension. It is very handy.

Can we get some more options at all? Some I can think of are as follows:

Group effected: Select which group(s) are effected by the template, unaffected groups will not get the posting template.

Effect Sub forums?: Select yes to effect all sub forums of the forum or select no to only effect topics directly in the forum.

That's all I can think of that would seem rather handy. Thank you so much for this extension, great work

Thanks,
Dylan
User avatar
martti
Registered User
Posts: 915
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Posting Template

Post by martti »

Dskod1 wrote:Hey,

Great job on this extension. It is very handy.

Can we get some more options at all? Some I can think of are as follows:

Group effected: Select which group(s) are effected by the template, unaffected groups will not get the posting template.

Effect Sub forums?: Select yes to effect all sub forums of the forum or select no to only effect topics directly in the forum.

That's all I can think of that would seem rather handy. Thank you so much for this extension, great work

Thanks,
Dylan
I would like to keep it very simple. Also in terms of on how to use.
User avatar
PMVanDomelen
Registered User
Posts: 72
Joined: Mon Mar 30, 2015 7:46 pm
Location: Gresham, Oregon
Name: Patrick VanDomelen

Re: [RC] Posting Template

Post by PMVanDomelen »

Does anyone know of a similar extension (or MOD) that would apply to "replies" instead of just "new topics"?

My forum is being used for Data Entry at my workplace, so a brief "Information Template" for specific locations would be helpful.

Each topic is it's own location, so a template that is strictly for new topics isn't ideal for my application. If it were to be able to be applied to the replies (which are daily log entries), that would be extremely helpful in aligning data between work shifts.

Thank you in advance for your time and consideration.

-Patrick V.
Don't Learn Safety By Accident
As soon as you see a mistake and don't fix it, it becomes your mistake.
User avatar
PMVanDomelen
Registered User
Posts: 72
Joined: Mon Mar 30, 2015 7:46 pm
Location: Gresham, Oregon
Name: Patrick VanDomelen

Re: [RC] Posting Template

Post by PMVanDomelen »

Whoops! double post. You can ignore this.
Don't Learn Safety By Accident
As soon as you see a mistake and don't fix it, it becomes your mistake.
User avatar
RMcGirr83
Former Team Member
Posts: 22107
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [RC] Posting Template

Post by RMcGirr83 »

PMVanDomelen wrote:Does anyone know of a similar extension (or MOD) that would apply to "replies" instead of just "new topics"?
You can make this extension do that. When installed if you edit the event\listener.php file and find this

Code: Select all

if ($mode == 'post'
            && !$submit && !$preview && !$load && !$save && !$refresh
            && empty($post_data['post_text']) && empty($post_data['post_subject'])
            && $this->config_text->get('marttiphpbb_postingtemplate_forum[' . $forum_id . ']'))
and replace it with this

Code: Select all

if (($mode == 'post' || $mode == 'reply')
            && !$submit && !$preview && !$load && !$save && !$refresh
            && empty($post_data['post_text']) && $this->config_text->get('marttiphpbb_postingtemplate_forum[' . $forum_id . ']'))
then replies will also have the posting template stuff as set for the forum specified for new posts as well as for replies.
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
PMVanDomelen
Registered User
Posts: 72
Joined: Mon Mar 30, 2015 7:46 pm
Location: Gresham, Oregon
Name: Patrick VanDomelen

Re: [RC] Posting Template

Post by PMVanDomelen »

Excellent! Thank you, Sir!! :D
Don't Learn Safety By Accident
As soon as you see a mistake and don't fix it, it becomes your mistake.
allen62
Registered User
Posts: 24
Joined: Wed Oct 15, 2014 8:29 am
Name: Allen 62

Re: [RC] Posting Template

Post by allen62 »

i have some issue with this extension . while try to create new forums it will give me error details are here viewtopic.php?f=466&t=2310056
Holger
Registered User
Posts: 1904
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [RC] Posting Template

Post by Holger »

PR for Swedish translation sent
User avatar
martti
Registered User
Posts: 915
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Posting Template

Post by martti »

allen62 wrote:i have some issue with this extension . while try to create new forums it will give me error details are here viewtopic.php?f=466&t=2310056
This extension has no column in the forums table. A quick Google search reveals the column forum_post_tpl is from the MOD Posting Template.
User avatar
Nikola
Registered User
Posts: 284
Joined: Fri Jun 12, 2015 11:47 am
Name: Nikola

Re: [RC] Posting Template

Post by Nikola »

Would be nice to to have an option to apply this on the subforums of a forum where template is being done so that every new reply to certain topic starts with template. Same goes for auto removal of a text when clicked in the field for writing as option. Thanks.
"What would happen if the autism gene was eliminated from the genetic pool?

You would have a bunch of people standing around in a cave, chatting and socializing and not getting anything done."

- Dr. Temple Grandin, A Personal Look at Autism and Asperger's Syndrome.
John45
Registered User
Posts: 199
Joined: Sat Jun 08, 2013 2:54 am

Re: [RC] Posting Template

Post by John45 »

Why not make the posting template like a forum your input text into fields like filling out an application. :)

Return to “Extensions in Development”