http://www.icyphoenix.com/viewtopic.php?f=28&t=6612
-----------------------------------
TuningBEB2008
Sat 24 Oct, 2009 23:20

BBcodes In Quick Reply
-----------------------------------
[color=darkmaroon][size=16][b]BBcode in quick reply for IPv1.3.0.*[/b][/size][/color]

#--------[ BEGIN MODIFICATION ]-------#

FILES TO EDIT (2):
viewtopic.php
templates/default/xs_topic.tpl

[hr]

OPEN: viewtopic.php

SEARCH:

[code linenumbers=false]// Force Topic Read - END[/code]

AFTER ADD:

[code linenumbers=false]// BBCBMG - BEGIN
include_once(IP_ROOT_PATH . 'language/lang_' . $board_config['default_lang'] . '/lang_bbcb_mg.' . PHP_EXT);
include(IP_ROOT_PATH . 'includes/bbcb_mg.' . PHP_EXT);
$template->assign_var_from_handle('BBCB_MG', 'bbcb_mg');
// BBCBMG - END[/code]

[hr]

OPEN: templates/default/xs_topic.tpl

SEARCH:

[code linenumbers=false]	<td class="row1" width="200" valign="top" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Message_body']; ?>:<br /><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="200" height="1" alt="" /></b></span></td>
	<td class="row2" width="100%"><div class="message-box"><textarea name="message" rows="15" cols="35" tabindex="3"></textarea></div></td>[/code]

REPLACE WITH:

[code linenumbers=false]	<td class="row1" width="200" valign="top" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Message_body']; ?>:<br /><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="200" height="1" alt="" /></b></span></td>
	<td class="row2" width="100%"><div class="message-box">{BBCB_MG}<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:98%" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea></div></td>[/code]

[b][color=red]Before adding this MOD to your Icy Phoenix, you should Backup all files related to this MOD.[/color][/b]

Demo:
[img]http://img691.imageshack.us/img691/548/bbcodequickreply.png[/img]

#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM  :mrgreen:


-----------------------------------
brandsrus
Sat 24 Oct, 2009 23:48

Re: BBcodes In Quick Reply
-----------------------------------
Nicely done, I have not tested it but thanks for this MOD! :mryellow:


-----------------------------------
odelot
Sun 25 Oct, 2009 08:32

Re: BBcodes In Quick Reply
-----------------------------------
I've tested in local.Ok.


-----------------------------------
DWho
Thu 05 Nov, 2009 23:19

Re: BBcodes In Quick Reply
-----------------------------------
I saw this code on your site... thought it is a brilliant addon... saves a lot of page refresh etc...

nicely done will be adding to my sites

 :mrgreen:  :mrgreen:


-----------------------------------
Mighty Gorgon
Sat 07 Nov, 2009 11:37

Re: BBcodes In Quick Reply
-----------------------------------
[quote user="DWho" post="45728"]I saw this code on your site... thought it is a brilliant addon... saves a lot of page refresh etc...[/quote]
On the other side charges every viewtopic... :roll:

Maybe it would be really useful if coded using AJAX.


-----------------------------------
DWho
Sat 07 Nov, 2009 12:54

Re: BBcodes In Quick Reply
-----------------------------------
[quote user="Mighty Gorgon" post="45780"]
On the other side charges every viewtopic... :roll:

Maybe it would be really useful if coded using AJAX.[/quote]

lol well I didnt know that...  :lol:


-----------------------------------
Informpro
Sat 07 Nov, 2009 15:17

Re: BBcodes In Quick Reply
-----------------------------------
AJaX ? This depend if you want to charge server or client :roll:


-----------------------------------
Mighty Gorgon
Mon 09 Nov, 2009 12:27

Re: BBcodes In Quick Reply
-----------------------------------
Server would be charged anyway, but using AJAX you will decrease server charge.


-----------------------------------
Informpro
Mon 09 Nov, 2009 13:18

Re: BBcodes In Quick Reply
-----------------------------------
Well, if you have already created a page for have _just_ options for post, I'm okay. It's not secure, but it's possible with AJaX.
You will not charge more with just options generation than a refresh ... But it could be nice to have options in profil "Show full options in quick reply"


-----------------------------------
Costa
Mon 09 Nov, 2009 23:57

Re: BBcodes In Quick Reply
-----------------------------------
I think it will better if keep only the essential buttons from bbcode and not all (to be a Quick Reply)
A first idea is something like this

[img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/left.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/center.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/right.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/justify.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/bold.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/googlevideo.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/youtube.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/quote.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/post_icy_image.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/image_link.gif[/img][img]http://www.icyphoenix.com/images/bbcb_mg/images/gif/spoiler.gif[/img]
with the basic Font colors and basic Smileys


-----------------------------------
Yros
Tue 10 Nov, 2009 00:09

Re: BBcodes In Quick Reply
-----------------------------------
It would add many more modifications because all the bbcodes are displayed only with {BBCB_MG} and if you want to select only some of them you would need to create a new var' with selected bbcodes, etc ... It would be really much more longer and the work / time passed for installing such mod wouldn't be a good deal.
If you think the quick reply become too long with this mod, you can take a look to my mod ( sliding options ) and use it with your quick reply too.


-----------------------------------
Costa
Tue 10 Nov, 2009 01:03

Re: BBcodes In Quick Reply
-----------------------------------
[quote user="Yros" post="45859"]... It would be really much more longer .....[/quote]
you're right for this. 
Just with all the buttons are not [b]very[/b] Quick Reply
but [b]little[/b] Quick Reply
I just think so I am not so sure !!


-----------------------------------
Yros
Tue 10 Nov, 2009 01:18

Re: BBcodes In Quick Reply
-----------------------------------
As I said, if your quick reply seems long, you can very easily adapt my mod ( Sliding Options ) to quick reply =)

If you want to do a " quick reply bbcode box " I suppose you would have to create a new file based on BBCB_MG with less bbcodes and modify the code where you need >.>" I can't help you further I did not really look attentively the code for bbcodes & co.


-----------------------------------
Mighty Gorgon
Fri 13 Nov, 2009 18:10

Re: BBcodes In Quick Reply
-----------------------------------
I have already created a smaller BBCode Box for AJAX Chat... you can include that one:

http://www.icyphoenix.com/ajax_chat.php

It's easy... have a try! :wink:


-----------------------------------
Yros
Fri 13 Nov, 2009 18:19

Re: BBcodes In Quick Reply
-----------------------------------
Ah ... yep ^^

For do that, replace every BBCB_MG by BBCB_MG_SMALL


-----------------------------------
Mighty Gorgon
Fri 13 Nov, 2009 18:22

Re: BBcodes In Quick Reply
-----------------------------------
You have been quicker than quick reply... :P


-----------------------------------
Yros
Fri 13 Nov, 2009 18:25

Re: BBcodes In Quick Reply
-----------------------------------
*héhé* Thanks =P
But after all it's your idea x)


-----------------------------------
bobmorton
Wed 20 Oct, 2010 10:37

Re: BBcodes In Quick Reply
-----------------------------------
Oh I haven't try this one. Look so interesting. Anyway thanks for sharing this.  :lol: 


[b]Bob[/b]


