BBcodes In Quick Reply »  Show posts from    to     

Icy Phoenix


Old Customizations - BBcodes In Quick Reply



TuningBEB2008 [ Sat 24 Oct, 2009 23:20 ]
Post subject: BBcodes In Quick Reply
BBcode in quick reply for IPv1.3.0.*

#--------[ BEGIN MODIFICATION ]-------#

FILES TO EDIT (2):
viewtopic.php
templates/default/xs_topic.tpl




OPEN: viewtopic.php

SEARCH:

Code: [Hide] [Select]
// Force Topic Read - END


AFTER ADD:

Code: [Hide] [Select]
// 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





OPEN: templates/default/xs_topic.tpl

SEARCH:

Code: [Hide] [Select]
<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>


REPLACE WITH:

Code: [Hide] [Select]
<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>


Before adding this MOD to your Icy Phoenix, you should Backup all files related to this MOD.

Demo:
bbcodequickreply

#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM


brandsrus [ Sat 24 Oct, 2009 23:48 ]
Post subject: Re: BBcodes In Quick Reply
Nicely done, I have not tested it but thanks for this MOD!


odelot [ Sun 25 Oct, 2009 08:32 ]
Post subject: Re: BBcodes In Quick Reply
I've tested in local.Ok.


DWho [ Thu 05 Nov, 2009 23:19 ]
Post subject: 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



Mighty Gorgon [ Sat 07 Nov, 2009 11:37 ]
Post subject: Re: BBcodes In Quick Reply
DWho wrote: [View Post]
I saw this code on your site... thought it is a brilliant addon... saves a lot of page refresh etc...

On the other side charges every viewtopic...

Maybe it would be really useful if coded using AJAX.


DWho [ Sat 07 Nov, 2009 12:54 ]
Post subject: Re: BBcodes In Quick Reply
Mighty Gorgon wrote: [View Post]

On the other side charges every viewtopic...

Maybe it would be really useful if coded using AJAX.


lol well I didnt know that...


Informpro [ Sat 07 Nov, 2009 15:17 ]
Post subject: Re: BBcodes In Quick Reply
AJaX ? This depend if you want to charge server or client


Mighty Gorgon [ Mon 09 Nov, 2009 12:27 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: 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

leftcenterrightjustifyboldgooglevideoyoutubequotepost_icy_imageimage_linkspoiler
with the basic Font colors and basic Smileys


Yros [ Tue 10 Nov, 2009 00:09 ]
Post subject: 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 ]
Post subject: Re: BBcodes In Quick Reply
Yros wrote: [View Post]
... It would be really much more longer .....

you're right for this.
Just with all the buttons are not very Quick Reply
but little Quick Reply
I just think so I am not so sure !!


Yros [ Tue 10 Nov, 2009 01:18 ]
Post subject: 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 ]
Post subject: 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!


Yros [ Fri 13 Nov, 2009 18:19 ]
Post subject: 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 ]
Post subject: Re: BBcodes In Quick Reply
You have been quicker than quick reply...


Yros [ Fri 13 Nov, 2009 18:25 ]
Post subject: Re: BBcodes In Quick Reply
*héhé* Thanks =P
But after all it's your idea x)


bobmorton [ Wed 20 Oct, 2010 10:37 ]
Post subject: Re: BBcodes In Quick Reply
Oh I haven't try this one. Look so interesting. Anyway thanks for sharing this.


Bob




Powered by Icy Phoenix