Changeset 1702 in ExiteCMS


Ignore:
Timestamp:
08/26/08 21:17:44 (3 years ago)
Author:
hverton
Message:

Merged trunk revisions 1691:1701 into the PLi-Fusion branch

Location:
branches/PLi-Fusion
Files:
24 deleted
5 edited
23 copied

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion/forum/viewthread.php

    r1691 r1702  
    302302                if (is_array($groups)) { 
    303303                    // check for group matching as well, start with the opposite of the 'bail out' value 
    304                     $ranking_match = $data2['rank_groups_and']; 
     304                    $ranking_match = $data2['rank_groups_and'] ? false : true; 
    305305                    foreach($groups as $group) { 
    306                         if ($data2['rank_groups_and']) { 
     306                        if ($data2['rank_groups_and'] == 0) { 
    307307                            // all should match 
    308308                            if (!checkusergroup($data['post_author'], $group)) { 
  • branches/PLi-Fusion/includes/core_functions.php

    r1691 r1702  
    213213 
    214214// check for upgrades in progress. 
    215 if (!eregi("upgrade.php", $_SERVER['PHP_SELF'])) { 
     215// when a form has been posted, skip this and finish the POST! 
     216if (count($_POST)==0 && !eregi("upgrade.php", $_SERVER['PHP_SELF'])) { 
    216217 
    217218    include PATH_ADMIN."upgrade.php"; 
     
    636637    $text = preg_replace('#\r\n\[\*\]#si', '<li>', $text); 
    637638 
     639    // bbcode tables 
     640    $text = preg_replace('#\[table\]#si', '<table align="left" valign="top" class="tbl-border">', $text); 
     641    $text = preg_replace('#\[\/table\]#si', '</table>', $text); 
     642    $text = preg_replace('#\[td\]#si', '<td class="tbl1">', $text); 
     643    $text = preg_replace('#\[\/td\]#si', '</td>', $text); 
     644    $text = preg_replace('#\[tr\]#si', '<tr>', $text); 
     645    $text = preg_replace('#\[\/tr\]#si', '</tr>', $text); 
     646 
    638647    //get rid of line breaks after a list item, for better formatting 
    639648    $text=str_replace("</li><br />","</li>",$text); 
     
    693702    } 
    694703 
    695     // quote    & code blocks 
     704    // quote & code blocks 
    696705    $text = preg_replace('#\[quote=([\r\n]*)(.*?)\]#si', '<b>\2 '.$locale['199'].':</b><br />[quote]', $text); 
    697706    $qcount = substr_count(strtolower($text), "[quote]"); $ccount = substr_count(strtolower($text), "[code]"); 
  • branches/PLi-Fusion/includes/templates/main.edit_profile.tpl

    r1666 r1702  
    267267            </td> 
    268268            <td class='tbl'> 
    269                 <textarea name='user_sig' rows='5' cols='80' class='textbox' style='width:295px'>{$this_userdata.user_sig}</textarea><br /> 
    270                 <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onclick="addText('user_sig', '[b]', '[/b]');" /> 
    271                 <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onclick="addText('user_sig', '[i]', '[/i]');" /> 
    272                 <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onclick="addText('user_sig', '[u]', '[/u]');" /> 
    273                 <input type='button' value='url' class='button' style='width:30px;' onclick="addText('user_sig', '[url]', '[/url]');" /> 
    274                 <input type='button' value='mail' class='button' style='width:35px;' onclick="addText('user_sig', '[mail]', '[/mail]');" /> 
    275                 <input type='button' value='img' class='button' style='width:30px;' onclick="addText('user_sig', '[img]', '[/img]');" /> 
    276                 <input type='button' value='center' class='button' style='width:45px;' onclick="addText('user_sig', '[center]', '[/center]');" /> 
    277                 <input type='button' value='small' class='button' style='width:40px;' onclick="addText('user_sig', '[small]', '[/small]');" /> 
     269                {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 
     270                    <textarea name='user_sig' rows='5' cols='80' class='textbox' style='width:295px'>{$this_userdata.user_sig}</textarea><br /> 
     271                    <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onclick="addText('user_sig', '[b]', '[/b]');" /> 
     272                    <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onclick="addText('user_sig', '[i]', '[/i]');" /> 
     273                    <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onclick="addText('user_sig', '[u]', '[/u]');" /> 
     274                    <input type='button' value='url' class='button' style='width:30px;' onclick="addText('user_sig', '[url]', '[/url]');" /> 
     275                    <input type='button' value='mail' class='button' style='width:35px;' onclick="addText('user_sig', '[mail]', '[/mail]');" /> 
     276                    <input type='button' value='img' class='button' style='width:30px;' onclick="addText('user_sig', '[img]', '[/img]');" /> 
     277                    <input type='button' value='center' class='button' style='width:45px;' onclick="addText('user_sig', '[center]', '[/center]');" /> 
     278                    <input type='button' value='small' class='button' style='width:40px;' onclick="addText('user_sig', '[small]', '[/small]');" /> 
     279                {else} 
     280                    <style type='text/css'>@import url({$smarty.const.THEME}hoteditor/style.css);</style> 
     281                    <input type='hidden' id='user_sig' name='user_sig' value='{$this_userdata.user_sig}' /> 
     282                    <script language="javascript" type="text/javascript"> 
     283                        var hoteditor_path = "{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/"; 
     284                        var hoteditor_theme_path = "{$smarty.const.THEME}hoteditor"; 
     285                        var hoteditor_reply_to = ""; 
     286                    </script> 
     287                    <script language="javascript" type="text/javascript" src="{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/editor__0001.js?version=4.2"></script>              
     288                    {literal} 
     289                    <script language="javascript" type="text/javascript"> 
     290                        // non-standard toolbars for this editor instance 
     291                        toolbar1 ="SPACE,btFont_Name,btFont_Size,btFont_Color,btHighlight"; 
     292                        toolbar2 ="SPACE,btRemove_Format,SPACE,btBold,btItalic,btUnderline,SPACE,btAlign_Left,btCenter,btAlign_Right,SPACE,btStrikethrough,btSubscript,btSuperscript,btHorizontal"; 
     293                        toolbar3 ="SPACE,btHyperlink,btHyperlink_Email,btInsert_Image,btEmotions"; 
     294 
     295                        textarea_toolbar1 ="SPACE,btFont_Name,btFont_Size,btFont_Color,btHighlight"; 
     296                        textarea_toolbar2 ="SPACE,btRemove_Format,SPACE,btBold,btItalic,btUnderline,SPACE,btAlign_Left,btCenter,btAlign_Right,SPACE,btStrikethrough,btSubscript,btSuperscript,btHorizontal"; 
     297                        textarea_toolbar3 ="SPACE,btHyperlink,btHyperlink_Email,btInsert_Image,btEmotions"; 
     298 
     299                        var getdata = document.getElementById("user_sig").value; 
     300                        Instantiate("max","editor", getdata , "250px", "200px"); 
     301                         
     302                        //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard 
     303                        if(enable_vietnamese_keyboard==1){ 
     304                            document.write("<script language=\"JavaScript\" type=\"text/javascript\" src={/literal}{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/avim.js{literal}><\/script>"); 
     305                            var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";} 
     306                            document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>"); 
     307                        } 
     308 
     309                        if(enable_vietnamese_keyboard==1){ 
     310                            var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked;var him_telex_checked;var him_vni_checked;var him_viqr_checked;var him_viqr2_checked;var him_off_checked;if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";} 
     311                            document.write("<script language=\"JavaScript\" type=\"text/javascript\" src={/literal}{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/avim.js{literal}><\/script><div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off</div>"); 
     312                        } 
     313                        function get_hoteditor_data(){ 
     314                            setCodeOutput(); 
     315                            var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode 
     316                            document.getElementById("user_sig").value = bbcode_output; 
     317                        }                    
     318                    </script> 
     319                    {/literal} 
     320                {/if} 
    278321            </td> 
    279322        </tr> 
     
    291334                {/if} 
    292335                <input type='hidden' name='user_hash' value='{$this_userdata.user_password}' /> 
    293                 <input type='submit' name='update_profile' value='{$locale.460}' class='button' /> 
     336                {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 
     337                    <input type='submit' name='update_profile' value='{$locale.460}' class='button' /> 
     338                {else} 
     339                    <input type='submit' name='update_profile' value='{$locale.460}' class='button' onclick='javascript:get_hoteditor_data();' /> 
     340                {/if} 
    294341            </td> 
    295342        </tr> 
  • branches/PLi-Fusion/includes/templates/main.pm.post.tpl

    r1666 r1702  
    3333                {$locale.421}: 
    3434            </td> 
    35             <td class='tbl1' valign='top' style='white-space:nowrap'> 
     35            <td class='tbl1' valign='top'> 
    3636                <div style='display:none'> 
    3737                <select multiple="multiple" size='5' name='recipients[]' id='recipients' class='textbox' style='width:200px'> 
     
    6868                    {section name=id loop=$user_list} 
    6969                        {if $smarty.section.id.first} 
    70                         <select id='user_ids' name='user_ids' class='textbox'> 
    71                         {/if} 
    72                         <option value='{$user_list[id].user_id}'>{$user_list[id].user_name}</option> 
    73                         {if $smarty.section.id.last} 
    74                         </select> 
    75                         <input type='submit' name='select_user' value='{$locale.468}' class='button' onclick="AddUser();return false;" /> 
    76                         {if $allow_sendtoall}&nbsp; - &nbsp;{/if} 
     70                            <div id='user_dropdown' style='display:inline;'> 
     71                                <select id='user_ids' name='user_ids' class='textbox'> 
     72                                {/if} 
     73                                <option value='{$user_list[id].user_id}'>{$user_list[id].user_name}</option> 
     74                                {if $smarty.section.id.last} 
     75                                </select> 
     76                                <input type='submit' name='select_user' value='{$locale.468}' class='button' onclick="AddUser();return false;" /> 
     77                            </div> 
    7778                        {/if} 
    7879                    {/section} 
     
    8081                        {section name=id loop=$user_groups} 
    8182                            {if $smarty.section.id.first} 
    82                             <select id='group_ids' name='group_ids' class='textbox'> 
    83                             {/if} 
    84                             <option value='{$user_groups[id].0}'>{$user_groups[id].1}</option> 
    85                             {if $smarty.section.id.last} 
    86                             </select> 
    87                             <input type='submit' name='select_group' value='{$locale.469}' class='button' onclick="AddGroup();return false;" /> 
     83                            &nbsp; - &nbsp; 
     84                            <div id='group_dropdown' style='display:inline;'> 
     85                                <select id='group_ids' name='group_ids' class='textbox'> 
     86                                {/if} 
     87                                <option value='{$user_groups[id].0}'>{$user_groups[id].1}</option> 
     88                                {if $smarty.section.id.last} 
     89                                </select> 
     90                                <input type='submit' name='select_group' value='{$locale.469}' class='button' onclick="AddGroup();return false;" /> 
     91                            </div> 
    8892                            {/if} 
    8993                        {/section} 
     
    106110            </td> 
    107111            <td class='tbl1'> 
    108                 <div id='org_message' style='display:none'>{$reply_message}<br /></div> 
     112                <div id='org_message' class='textbox' style='display:none'>{$org_message|stripinput|nl2br}<br /></div> 
    109113            </td> 
    110114        </tr> 
     
    121125            </td> 
    122126            <td class='tbl1'> 
    123                 <textarea name='message' cols='80' rows='15' class='textbox' style='width:100%; height:{math equation='x/4' x=$smarty.const.BROWSER_HEIGHT format='%u'}px;'>{$message}</textarea> 
    124             </td> 
    125         </tr> 
     127                {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 
     128                    <textarea name='message' cols='80' rows='15' class='textbox' style='width:100%; height:{math equation="x/4" x=$smarty.const.BROWSER_HEIGHT format="%u"}px;'>{$message}</textarea> 
     129                {else} 
     130                    <style type='text/css'>@import url({$smarty.const.THEME}hoteditor/style.css);</style> 
     131                    <input type='hidden' id='message' name='message' value='{$message}' /> 
     132                    <script language="javascript" type="text/javascript"> 
     133                        var hoteditor_path = "{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/"; 
     134                        var hoteditor_theme_path = "{$smarty.const.THEME}hoteditor"; 
     135                        var hoteditor_reply_to = "{$orgauthor|default:""}"; 
     136                    </script> 
     137                    <script language="javascript" type="text/javascript" src="{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/editor__0001.js?version=4.2"></script>              
     138                    {literal} 
     139                    <script language="javascript" type="text/javascript"> 
     140                        var getdata = document.getElementById("message").value; 
     141                        Instantiate("max","editor", getdata , "100%", "250px"); 
     142                         
     143                        //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard 
     144                        if(enable_vietnamese_keyboard==1){ 
     145                            document.write("<script language=\"JavaScript\" type=\"text/javascript\" src={/literal}{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/avim.js{literal}><\/script>"); 
     146                            var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";} 
     147                            document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>"); 
     148                        } 
     149 
     150                        if(enable_vietnamese_keyboard==1){ 
     151                            var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked;var him_telex_checked;var him_vni_checked;var him_viqr_checked;var him_viqr2_checked;var him_off_checked;if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";} 
     152                            document.write("<script language=\"JavaScript\" type=\"text/javascript\" src={/literal}{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/avim.js{literal}><\/script><div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off</div>"); 
     153                        } 
     154                        function get_hoteditor_data(){ 
     155                            setCodeOutput(); 
     156                            var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode 
     157                            document.getElementById("message").value = bbcode_output; 
     158                        }                    
     159                    </script> 
     160                    {/literal} 
     161                {/if} 
     162            </td> 
     163        </tr> 
     164        {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 
    126165        <tr> 
    127166            <td align='right' class='tbl2' valign='top'> 
     
    166205            </td> 
    167206        </tr> 
     207        {/if} 
    168208        {if $settings.attachments} 
    169209        <tr> 
     
    205245                <textarea name='attach_comment' cols='50' rows='2' class='textbox'>{$comments}</textarea> 
    206246                <br /> 
    207                 <input type='submit' name='upload' value='{$locale.473}' class='button' /> 
     247                {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 
     248                    <input type='submit' name='upload' value='{$locale.473}' class='button' /> 
     249                {else} 
     250                    <input type='submit' name='upload' value='{$locale.473}' class='button' onclick='javascript:get_hoteditor_data();' /> 
     251                {/if} 
    208252            </td> 
    209253        </tr> 
     
    220264                <input type='hidden' name='pmindex_to_id' value='{$pmindex_to_id}' /> 
    221265                <input type='submit' name='close' value='{$locale.435}' class='button' /> 
    222                 <input type='submit' name='send_preview' value='{$locale.429}' class='button' onclick="return ValidateForm()" /> 
    223                 <input type='submit' name='send_message' value='{$locale.430}' class='button' onclick="return ValidateForm()" /> 
     266                {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 
     267                    <input type='submit' name='send_preview' value='{$locale.429}' class='button' onclick="return ValidateForm()" /> 
     268                    <input type='submit' name='send_message' value='{$locale.430}' class='button' onclick="return ValidateForm()" /> 
     269                {else} 
     270                    <input type='submit' name='send_preview' value='{$locale.429}' class='button' onclick="javascript:get_hoteditor_data();return ValidateForm()" /> 
     271                    <input type='submit' name='send_message' value='{$locale.430}' class='button' onclick="javascript:get_hoteditor_data();return ValidateForm()" /> 
     272                {/if} 
    224273            </td> 
    225274        </tr> 
     
    247296        document.getElementById("recipients").options[listLength].selected = true; 
    248297        document.getElementById("user_ids").options[selItem] = null; 
     298        if (document.getElementById("user_ids").length == 0) {  
     299            document.getElementById("user_dropdown").style.display = 'none'; 
     300        } 
    249301 
    250302        UpdateDisplayedList(); 
     
    261313        document.getElementById("recipients").options[listLength].selected = true; 
    262314        document.getElementById("group_ids").options[selItem] = null; 
     315        if (document.getElementById("group_ids").length == 0) {  
     316            document.getElementById("group_dropdown").style.display = 'none'; 
     317        } 
    263318 
    264319        UpdateDisplayedList(); 
     
    297352        if (html == "") html = "-"; 
    298353        document.getElementById('to_list').innerHTML = html; 
     354 
     355        if (document.getElementById("group_ids").length > 0) {  
     356            document.getElementById("group_dropdown").style.display = 'inline'; 
     357        } 
     358        if (document.getElementById("user_ids").length > 0) {  
     359            document.getElementById("user_dropdown").style.display = 'inline'; 
     360        } 
    299361    } 
    300362//]]> 
  • branches/PLi-Fusion/pm.php

    r1538 r1702  
    882882                $variables['subject'] = (!strstr($data['pm_subject'], "RE: ") ? "RE: " : "").$data['pm_subject']; 
    883883                $variables['org_message'] = $data['pm_message']; 
    884                 if ($action != "reply") { 
     884                $variables['orgauthor'] = ""; 
     885                if ($action != "post") { 
    885886                    if ($data['pmindex_user_id'] == $data['pmindex_to_id'] || $data['pmindex_to_id'] == 0) 
    886887                        $result2 = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id = '".$data['pmindex_from_id']."'"); 
     
    889890                    if ($result2) { 
    890891                        $data2 = dbarray($result2); 
    891                         $variables['message'] = "[quote=".$data2['user_name']."]".$variables['org_message']."[/quote]"; 
     892                        if ($action == "quote") { 
     893                            $variables['message'] = "[quote=".$data2['user_name']."]".$variables['org_message']."[/quote]"; 
     894                        } else if ($action == "forward") { 
     895                            $variables['message'] = $variables['org_message']; 
     896                        } 
     897                        $variables['orgauthor'] = $data2['user_name']; 
    892898                    } else { 
    893                         $variables['message'] = "[quote]".$variables['org_message']."[/quote]"; 
     899                        if ($action == "quote") { 
     900                            $variables['message'] = "[quote]".$variables['org_message']."[/quote]"; 
     901                        } else if ($action == "forward") { 
     902                            $variables['message'] = $variables['org_message']; 
     903                        } 
    894904                    } 
    895905                } 
Note: See TracChangeset for help on using the changeset viewer.