Changeset 1702 in ExiteCMS
- Timestamp:
- 08/26/08 21:17:44 (3 years ago)
- Location:
- branches/PLi-Fusion
- Files:
-
- 24 deleted
- 5 edited
- 23 copied
-
forum/viewthread.php (modified) (1 diff)
-
images/ranking/blue_ball.gif (copied) (copied from trunk/images/ranking/blue_ball.gif)
-
images/ranking/blue_ball.jpg (deleted)
-
images/ranking/blue_checkmark.gif (copied) (copied from trunk/images/ranking/blue_checkmark.gif)
-
images/ranking/blue_checkmark.jpg (deleted)
-
images/ranking/blue_exclamation_mark.gif (copied) (copied from trunk/images/ranking/blue_exclamation_mark.gif)
-
images/ranking/blue_exclamation_mark.jpg (deleted)
-
images/ranking/blue_star.gif (copied) (copied from trunk/images/ranking/blue_star.gif)
-
images/ranking/blue_star.jpg (deleted)
-
images/ranking/bullseye.gif (copied) (copied from trunk/images/ranking/bullseye.gif)
-
images/ranking/bullseye.jpg (deleted)
-
images/ranking/checkbox.gif (copied) (copied from trunk/images/ranking/checkbox.gif)
-
images/ranking/checkbox.jpg (deleted)
-
images/ranking/crown.gif (copied) (copied from trunk/images/ranking/crown.gif)
-
images/ranking/crown.jpg (deleted)
-
images/ranking/golden_star.gif (copied) (copied from trunk/images/ranking/golden_star.gif)
-
images/ranking/golden_star.jpg (deleted)
-
images/ranking/green_checkmark.gif (copied) (copied from trunk/images/ranking/green_checkmark.gif)
-
images/ranking/green_checkmark.jpg (deleted)
-
images/ranking/grey_star.gif (copied) (copied from trunk/images/ranking/grey_star.gif)
-
images/ranking/grey_star.jpg (deleted)
-
images/ranking/orange_star.gif (copied) (copied from trunk/images/ranking/orange_star.gif)
-
images/ranking/orange_star.jpg (deleted)
-
images/ranking/red_ball.gif (copied) (copied from trunk/images/ranking/red_ball.gif)
-
images/ranking/red_ball.jpg (deleted)
-
images/ranking/red_exclamation_mark.gif (copied) (copied from trunk/images/ranking/red_exclamation_mark.gif)
-
images/ranking/red_exclamation_mark.jpg (deleted)
-
images/ranking/red_flower.gif (copied) (copied from trunk/images/ranking/red_flower.gif)
-
images/ranking/red_flower.jpg (deleted)
-
images/ranking/red_star.gif (copied) (copied from trunk/images/ranking/red_star.gif)
-
images/ranking/red_star.jpg (deleted)
-
images/ranking/sliver_star.gif (copied) (copied from trunk/images/ranking/sliver_star.gif)
-
images/ranking/sliver_star.jpg (deleted)
-
images/ranking/small_star.gif (copied) (copied from trunk/images/ranking/small_star.gif)
-
images/ranking/small_star.jpg (deleted)
-
images/ranking/thumbs_up.gif (copied) (copied from trunk/images/ranking/thumbs_up.gif)
-
images/ranking/thumbs_up.jpg (deleted)
-
images/ranking/yellow_ball.gif (copied) (copied from trunk/images/ranking/yellow_ball.gif)
-
images/ranking/yellow_ball.jpg (deleted)
-
images/ranking/yellow_black_star.gif (copied) (copied from trunk/images/ranking/yellow_black_star.gif)
-
images/ranking/yellow_black_star.jpg (deleted)
-
images/ranking/yellow_flower.gif (copied) (copied from trunk/images/ranking/yellow_flower.gif)
-
images/ranking/yellow_flower.jpg (deleted)
-
images/ranking/yellow_star.gif (copied) (copied from trunk/images/ranking/yellow_star.gif)
-
images/ranking/yellow_star.jpg (deleted)
-
images/ranking/yellow_star2.gif (copied) (copied from trunk/images/ranking/yellow_star2.gif)
-
images/ranking/yellow_star2.jpg (deleted)
-
images/smiley/more_happy/17.gif (deleted)
-
includes/core_functions.php (modified) (3 diffs)
-
includes/templates/main.edit_profile.tpl (modified) (2 diffs)
-
includes/templates/main.pm.post.tpl (modified) (11 diffs)
-
pm.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/PLi-Fusion/forum/viewthread.php
r1691 r1702 302 302 if (is_array($groups)) { 303 303 // 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; 305 305 foreach($groups as $group) { 306 if ($data2['rank_groups_and'] ) {306 if ($data2['rank_groups_and'] == 0) { 307 307 // all should match 308 308 if (!checkusergroup($data['post_author'], $group)) { -
branches/PLi-Fusion/includes/core_functions.php
r1691 r1702 213 213 214 214 // 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! 216 if (count($_POST)==0 && !eregi("upgrade.php", $_SERVER['PHP_SELF'])) { 216 217 217 218 include PATH_ADMIN."upgrade.php"; … … 636 637 $text = preg_replace('#\r\n\[\*\]#si', '<li>', $text); 637 638 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 638 647 //get rid of line breaks after a list item, for better formatting 639 648 $text=str_replace("</li><br />","</li>",$text); … … 693 702 } 694 703 695 // quote & code blocks704 // quote & code blocks 696 705 $text = preg_replace('#\[quote=([\r\n]*)(.*?)\]#si', '<b>\2 '.$locale['199'].':</b><br />[quote]', $text); 697 706 $qcount = substr_count(strtolower($text), "[quote]"); $ccount = substr_count(strtolower($text), "[code]"); -
branches/PLi-Fusion/includes/templates/main.edit_profile.tpl
r1666 r1702 267 267 </td> 268 268 <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} 278 321 </td> 279 322 </tr> … … 291 334 {/if} 292 335 <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} 294 341 </td> 295 342 </tr> -
branches/PLi-Fusion/includes/templates/main.pm.post.tpl
r1666 r1702 33 33 {$locale.421}: 34 34 </td> 35 <td class='tbl1' valign='top' style='white-space:nowrap'>35 <td class='tbl1' valign='top'> 36 36 <div style='display:none'> 37 37 <select multiple="multiple" size='5' name='recipients[]' id='recipients' class='textbox' style='width:200px'> … … 68 68 {section name=id loop=$user_list} 69 69 {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} - {/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> 77 78 {/if} 78 79 {/section} … … 80 81 {section name=id loop=$user_groups} 81 82 {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 - 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> 88 92 {/if} 89 93 {/section} … … 106 110 </td> 107 111 <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> 109 113 </td> 110 114 </tr> … … 121 125 </td> 122 126 <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} 126 165 <tr> 127 166 <td align='right' class='tbl2' valign='top'> … … 166 205 </td> 167 206 </tr> 207 {/if} 168 208 {if $settings.attachments} 169 209 <tr> … … 205 245 <textarea name='attach_comment' cols='50' rows='2' class='textbox'>{$comments}</textarea> 206 246 <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} 208 252 </td> 209 253 </tr> … … 220 264 <input type='hidden' name='pmindex_to_id' value='{$pmindex_to_id}' /> 221 265 <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} 224 273 </td> 225 274 </tr> … … 247 296 document.getElementById("recipients").options[listLength].selected = true; 248 297 document.getElementById("user_ids").options[selItem] = null; 298 if (document.getElementById("user_ids").length == 0) { 299 document.getElementById("user_dropdown").style.display = 'none'; 300 } 249 301 250 302 UpdateDisplayedList(); … … 261 313 document.getElementById("recipients").options[listLength].selected = true; 262 314 document.getElementById("group_ids").options[selItem] = null; 315 if (document.getElementById("group_ids").length == 0) { 316 document.getElementById("group_dropdown").style.display = 'none'; 317 } 263 318 264 319 UpdateDisplayedList(); … … 297 352 if (html == "") html = "-"; 298 353 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 } 299 361 } 300 362 //]]> -
branches/PLi-Fusion/pm.php
r1538 r1702 882 882 $variables['subject'] = (!strstr($data['pm_subject'], "RE: ") ? "RE: " : "").$data['pm_subject']; 883 883 $variables['org_message'] = $data['pm_message']; 884 if ($action != "reply") { 884 $variables['orgauthor'] = ""; 885 if ($action != "post") { 885 886 if ($data['pmindex_user_id'] == $data['pmindex_to_id'] || $data['pmindex_to_id'] == 0) 886 887 $result2 = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id = '".$data['pmindex_from_id']."'"); … … 889 890 if ($result2) { 890 891 $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']; 892 898 } 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 } 894 904 } 895 905 }
Note: See TracChangeset
for help on using the changeset viewer.
