BBcodes In Quick Reply


Goto page 1, 2  Next

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: [Download] [Hide] [Select]
// Force Topic Read - END


AFTER ADD:

Code: [Download] [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: [Download] [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: [Download] [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 :mrgreen:

Last edited by TuningBEB2008 on Thu 05 Nov, 2009 06:14; edited 1 time in total
Subject: Re: BBcodes In Quick Reply
Nicely done, I have not tested it but thanks for this MOD! :mryellow:

Subject: Re: BBcodes In Quick Reply
I've tested in local.Ok.

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

:mrgreen: :mrgreen:

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... :roll:

Maybe it would be really useful if coded using AJAX.

Subject: Re: BBcodes In Quick Reply
Mighty Gorgon wrote: [View Post]

On the other side charges every viewtopic... :roll:

Maybe it would be really useful if coded using AJAX.


LOL well I didnt know that... :LOL:

Subject: Re: BBcodes In Quick Reply
AJaX ? This depend if you want to charge server or client :roll:

Profile PM  
Subject: Re: BBcodes In Quick Reply
Server would be charged anyway, but using AJAX you will decrease server charge.

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"

Profile PM  
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

Profile PM  
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.

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 !!

Profile PM  
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.

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! :wink:

Subject: Re: BBcodes In Quick Reply
Ah ... yep ^^

For do that, replace every BBCB_MG by BBCB_MG_SMALL

Goto page 1, 2  Next

Page 1 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.9682s (PHP: 2% SQL: 98%)
SQL queries: 16 - Debug Off - GZIP Enabled