Icy Phoenix

     
 

BBcodes In Quick Reply

BBcodes In Quick Reply

Article
Reply with quote    Download Post  
Post 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  



 
Last edited by TuningBEB2008 on Thu 05 Nov, 2009 06:14; edited 1 time in total 
TuningBEB2008 - View user's profile Send private message  
TuningBEB2008 [ Sat 24 Oct, 2009 23:20 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


BBcodes In Quick Reply

Comments
Reply with quote    Download Post  
Post Re: BBcodes In Quick Reply 
 
Nicely done, I have not tested it but thanks for this MOD!



 
brandsrus - View user's profile Send private message  
brandsrus [ Sat 24 Oct, 2009 23:48 ]
Reply with quote    Download Post  
Post Re: BBcodes In Quick Reply 
 
I've tested in local.Ok.



 
odelot - View user's profile Send private message  
odelot [ Sun 25 Oct, 2009 08:32 ]
Reply with quote    Download Post  
Post 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

   



 
DWho - View user's profile Send private message  
DWho [ Thu 05 Nov, 2009 23:19 ]
Reply with quote    Download Post  
Post 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.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Sat 07 Nov, 2009 11:37 ]
Reply with quote    Download Post  
Post 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...  



 
DWho - View user's profile Send private message  
DWho [ Sat 07 Nov, 2009 12:54 ]
Reply with quote    Download Post  
Post Re: BBcodes In Quick Reply 
 
AJaX ? This depend if you want to charge server or client



 
Informpro - View user's profile Send private message  
Informpro [ Sat 07 Nov, 2009 15:17 ]
Reply with quote    Download Post  
Post Re: BBcodes In Quick Reply 
 
Server would be charged anyway, but using AJAX you will decrease server charge.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Mon 09 Nov, 2009 12:27 ]
Reply with quote    Download Post  
Post 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"



 
Informpro - View user's profile Send private message  
Informpro [ Mon 09 Nov, 2009 13:18 ]
Reply with quote    Download Post  
Post 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



 
Costa - View user's profile Send private message  
Costa [ Mon 09 Nov, 2009 23:57 ]
Reply with quote    Download Post  
Post 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.



 
Yros - View user's profile Send private message  
Yros [ Tue 10 Nov, 2009 00:09 ]
Reply with quote    Download Post  
Post 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 !!



 
Costa - View user's profile Send private message  
Costa [ Tue 10 Nov, 2009 01:03 ]
Reply with quote    Download Post  
Post 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.



 
Yros - View user's profile Send private message  
Yros [ Tue 10 Nov, 2009 01:18 ]
Reply with quote    Download Post  
Post 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!



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Fri 13 Nov, 2009 18:10 ]
Reply with quote    Download Post  
Post Re: BBcodes In Quick Reply 
 
Ah ... yep ^^

For do that, replace every BBCB_MG by BBCB_MG_SMALL



 
Yros - View user's profile Send private message  
Yros [ Fri 13 Nov, 2009 18:19 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next
 




 


 

  cron