[BETA] Ready posting templates

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

[BETA] Ready posting templates

Post by jalaln »

MOD Title: Ready posting templates
MOD Description: This MOD allows you to add in your message box ready templates while posting.
MOD Version: BETA 0.0.2

MOD Download:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/posting_buttons.html

#
#-----[ FIND ]------------------------------------------
#

<div id="format-buttons">

#
#----[ AFTER, ADD ]------------------------------------------
#

<select name="templates" onchange="bbfontstyle(this.form.templates.options[this.form.templates.selectedIndex].value + '', '');this.form.templates.selectedIndex = 0;" title="[+] Add">
  <option value="Ready templates to add" selected="selected">Ready templates to add</option>
  <option value="-" disabled="disabled">---------------------------</option>
  <option value="Thank you very much. :)">Thank you very much. :)</option>
  <option value="You are welcome!">You are welcome!</option>
  <option value="I don't mind at all!">I don't mind at all!</option>
  <option value="O.K.!">O.K.!</option>
  <option value="Please.">Please.</option>
  <option value="Bye!">Bye!</option>
  <option value="Don't worry.">Don't worry.</option>
  <option value="See you soon!">See you soon!</option>
  <option value="See you! Take care.">See you! Take care.</option>
  <option value="Don't forget to do it.">Don't forget to do it.</option>
  <option value="It's not a problem.">It's not a problem.</option>
  <option value="Topic Locked!">Topic Locked!</option>
  <option value="[i]Topic Locked![/i]">[i]Topic Locked![/i]</option>
  <option value="Stop double-posting!">Stop double-posting!</option>
  <option value="Say Hi to your sister!">Say Hi to your sister!</option>
</select>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Screenshots:
Click to enlarge

Image

Image

History:
Update from BETA 0.0.1 to BETA 0.0.2

Features:
"Ready templates to add" can't be added.
The template will be added at the cursor position.

To-do list:
1. Remove all hard-coded by allowing admins to add/edit/remove templates through ACP...
2. Allow moderators/global moderators/admins to have their own templates (not visible to other users).
3. Optional: Add the drop down box under the message box.
Last edited by jalaln on Tue Mar 18, 2008 6:18 pm, edited 2 times in total.
No more spambots for phpBB2 and phpBB3.
barbarella2001
Registered User
Posts: 10
Joined: Sat Sep 22, 2007 3:45 pm

Re: [BETA] Ready posting templates

Post by barbarella2001 »

Great! 8-)

It would be really handy if the templates to choose from would depend on the rank of the poster. For example, administrators and moderators could choose "edit by..." or "topic moved from/to..." etc.
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] Ready posting templates

Post by jalaln »

barbarella2001 wrote:Great! 8-)

It would be really handy if the templates to choose from would depend on the rank of the poster. For example, administrators and moderators could choose "edit by..." or "topic moved from/to..." etc.
Thanks barbarella2001. Yes, that's on my to-do list. :)
No more spambots for phpBB2 and phpBB3.
comuter
Registered User
Posts: 158
Joined: Mon Jan 16, 2006 2:08 pm

Re: [BETA] Ready posting templates

Post by comuter »

Cant wait to get the download link :D
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] Ready posting templates

Post by jalaln »

comuter wrote:Cant wait to get the download link :D
It's posted in the first post under MOD Download.
No more spambots for phpBB2 and phpBB3.
annepenullar
Registered User
Posts: 137
Joined: Sun Oct 21, 2007 7:01 am

Re: [BETA] Ready posting templates

Post by annepenullar »

Can this also be extended towards PM templates, but group-based, just like your to-do list ^^?
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] Ready posting templates

Post by jalaln »

annepenullar wrote:Can this also be extended towards PM templates, but group-based, just like your to-do list ^^?
The templates are displayed in both message boxes (forum and PM).
No more spambots for phpBB2 and phpBB3.
annepenullar
Registered User
Posts: 137
Joined: Sun Oct 21, 2007 7:01 am

Re: [BETA] Ready posting templates

Post by annepenullar »

Awesome! I'll install it as soon as I get coding. Thank you. I look forward to more of your features. :oops:
Patriz
Registered User
Posts: 43
Joined: Sun May 29, 2005 8:27 am

Re: [BETA] Ready posting templates

Post by Patriz »

Hi!

This MOD was nearly the solution where I'm looking for weeks!

Based on your idea I find a way to insert a predefined text by clicking a button. Feel free to use it as a example for creating text with a button.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/posting_buttons.html

#
#-----[ FIND ]------------------------------------------
#

var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
',
'
  • ','
','
  • ','
','[img]','[/img]','','','[flash=]', '[/flash]','[size=]',
'[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);

#
#-----[ IN LINE FIND]---------------------------------------
#
'[/size]'

#
#----[ IN LINE AFTER, ADD ]------------------------------------------
#

,'Your Text Part1','Your text Part two\nYour Text Line 2 \nyour text Line 3, etc....'

#
#-----[ FIND ]------------------------------------------
#

<div id="format-buttons">

#
#----[ AFTER, ADD ]------------------------------------------
#

<input type="button" class="button2" accesskey="b" name="Namexyz" value="Displayed name on the button" onclick="bbstyle(22)" title="Helptext" />

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
[/code]
User avatar
Elias
Registered User
Posts: 5152
Joined: Sat Feb 25, 2006 4:31 pm
Name: Elias

Re: [BETA] Ready posting templates

Post by Elias »

That is actualy a great MOD you got there.
If you need testers for this please PM and i will test it out for you 8-)
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] Ready posting templates

Post by jalaln »

BETA 0.0.2 has been released.
See first post for the new download code.

What's new: Added a separator between "Ready templates to add" and the templates.

[+] Update from BETA 0.0.1 to BETA 0.0.2

Code: Select all

------Find------

<option value="Ready templates to add" selected="selected">Ready templates to add</option>

------After, add------

<option value="-" disabled="disabled">---------------------------</option>
No more spambots for phpBB2 and phpBB3.
Locked

Return to “[3.0.x] MODs in Development”