Posting template

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
xxxopenxxx
Registered User
Posts: 34
Joined: Thu Jan 10, 2008 11:07 pm

Re: Posting template

Post by xxxopenxxx »

How would I modify this to also include a preset title?

In posting.php

Code: Select all

//-- mod : Posting Template ------------------------------------------------------------
//-- add
if ($mode == 'post' && !empty($post_data['forum_post_tpl']))
{
	$post_data['post_text'] = $post_data['forum_post_tpl'];
}
//-- fin mod : Posting Template --------------------------------------------------------
What would I change $post_data['post_text'] = $post_data['forum_post_tpl']; to? (I hope that is what I need to change)
bernard1980
Registered User
Posts: 3
Joined: Tue Jan 01, 2008 8:01 pm

Re: Posting template

Post by bernard1980 »

hi, i finally succeeded to install this :-)
for some reason i landed in a wrong topic and started to follow wrong procedures
:lol:

I like this mod alot but have 2questions :
1) could it be possible to create a topic TITLE predefined template like xxxopenxxx asked
just add another box where we can edit the default title ...

2) for some reason i can not use html in the teplate i create...
when i open a new topic there is

Code: Select all

<b>name : </b>
instead of name :
I also tested it with [ ] but result is the same...
Kutagh
Registered User
Posts: 49
Joined: Fri Jan 11, 2008 1:14 pm

Re: Posting template

Post by Kutagh »

You can use BBcode (that is with [ ] ). However, the BBcode is only parsed AFTER hitting submit when filling in the form.

Make sure that "Disable BBCode" is unchecked when posting it though otherwise it won't parse the BBCode.
User avatar
Ahri89
Registered User
Posts: 524
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain
Contact:

Re: Posting template

Post by Ahri89 »

Wow, thanks for this useful mod :D

My Spanish Translation:


Open: language/es/acp/forums.php

Find

Code: Select all

?>

Add before

Code: Select all

//-- mod : Posting Template ------------------------------------------------------------
//-- add
$lang = array_merge($lang, array(
	'FORUM_POST_TPL'					=> 'Plantilla de publicación',
	'FORUM_POST_TPL_EXPLAIN'			=> 'La plantilla de publicación es el texto que aparece en el área de texto cuando inicia un nuevo tema en este foro. Si usted no desea utilizarla, basta con dejarlo en blanco.',
));
//-- fin mod : Posting Template --------------------------------------------------------
Last edited by Ahri89 on Fri Jan 15, 2010 5:21 am, edited 1 time in total.
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD
User avatar
Diet Ebola Cola
Registered User
Posts: 132
Joined: Fri Oct 03, 2008 3:57 am
Location: USA

Re: Posting template

Post by Diet Ebola Cola »

Any way to get it to kick the template straight over to post preview so that the user sees the bbcode parsed at top?
Diet Ebola Cola
coony
Registered User
Posts: 13
Joined: Thu Oct 30, 2008 6:44 pm

sql error

Post by coony »

I'm new at this and tried to install the Posting Template mod but I dont understand the sql part. Can someone please explain What do I do once I get here?
Attachments
server.jpg
server.jpg (213.77 KiB) Viewed 584 times
Kutagh
Registered User
Posts: 49
Joined: Fri Jan 11, 2008 1:14 pm

Re: Posting template

Post by Kutagh »

On that screen, click on the SQL tab and enter the SQL code in the modx file. Then press submit (or whatever is there) and you're done.
coony
Registered User
Posts: 13
Joined: Thu Oct 30, 2008 6:44 pm

Thanks

Post by coony »

That's the ticket :P
Deathly Hallow
Registered User
Posts: 277
Joined: Mon Apr 21, 2008 11:58 am
Location: Netherlands

Re: Posting template

Post by Deathly Hallow »

Does anyone know if this is compitable with phpBB 3.0.3
updown
Registered User
Posts: 542
Joined: Sat Jan 05, 2008 6:53 am

Re: Posting template

Post by updown »

Haven't checked the instructions, but the mod itself works proper after automatic update to 3.0.3
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: Posting template

Post by platinum_2007 »

Thanks evil <3 --- <333
awmyth
Registered User
Posts: 27
Joined: Fri Nov 24, 2006 12:17 am
Location: UK
Contact:

Re: Posting template

Post by awmyth »

Brilliant mod. 10/10 -

Image
Image - cricket without boundaries
awmyth
Registered User
Posts: 27
Joined: Fri Nov 24, 2006 12:17 am
Location: UK
Contact:

Re: Posting template

Post by awmyth »

It would be unfair if I do not give special thanks to
tazmanian for the modification of the code - http://www.phpbb.com/community/viewtopi ... 5#p5461995 - that makes it perfect.
Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

Re: Posting template

Post by Richazey »

Hi the posting template on works on a new topic but not if you reply how do you set so its for e very reply?

Silly me its only for new topics :oops: ,so my question is now hoe do i edit it so works for every reply on the forum (its so I can set an entry form for prediction league)
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Posting template

Post by igorw »

I believe I posted instructions for how to do that somewhere in the topic.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
Locked

Return to “[3.0.x] MOD Database Releases”