Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 2
Goto page 1, 2  Next
 
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 
TuningBEB2008Send private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

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




____________
Official translator of Icy Phoenix to Dutch
 
brandsrusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BBcodes In Quick Reply 
 
I've tested in local.Ok.
 



 
odelotSend private messageVisit poster's website  
Back to topPage bottom
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

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
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...  
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BBcodes In Quick Reply 
 
AJaX ? This depend if you want to charge server or client
 



 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BBcodes In Quick Reply 
 
Server would be charged anyway, but using AJAX you will decrease server charge.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
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"
 



 
InformproSend private message  
Back to topPage bottom
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
 



 
CostaSend private message  
Back to topPage bottom
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.
 



 
YrosSend private messageVisit poster's website  
Back to topPage bottom
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 !!
 



 
CostaSend private message  
Back to topPage bottom
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.
 



 
YrosSend private messageVisit poster's website  
Back to topPage bottom
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!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BBcodes In Quick Reply 
 
Ah ... yep ^^

For do that, replace every BBCB_MG by BBCB_MG_SMALL
 



 
YrosSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron