Changeset 1209824
- Timestamp:
- 07/30/2015 04:39:13 PM (11 years ago)
- Location:
- buddypress-sticker/trunk
- Files:
-
- 74 added
- 74 deleted
- 3 edited
-
bp-sticker.php (modified) (3 diffs)
-
css/bp-sticker.css (modified) (1 diff)
-
images/sticon.png (added)
-
images/sticons/(V).png (added)
-
images/sticons/A.png (added)
-
images/sticons/AA.png (added)
-
images/sticons/AB.png (added)
-
images/sticons/AC.png (added)
-
images/sticons/AD.png (added)
-
images/sticons/AF.png (added)
-
images/sticons/AG.png (added)
-
images/sticons/AH.png (added)
-
images/sticons/AI.png (added)
-
images/sticons/AJ.png (added)
-
images/sticons/AK.png (added)
-
images/sticons/AL.png (added)
-
images/sticons/AM.png (added)
-
images/sticons/AN.png (added)
-
images/sticons/AO.png (added)
-
images/sticons/AP.png (added)
-
images/sticons/AQ.png (added)
-
images/sticons/B.png (added)
-
images/sticons/C.png (added)
-
images/sticons/CLAP.png (added)
-
images/sticons/Cut-the-Rope1.png (deleted)
-
images/sticons/Cut-the-Rope10.png (deleted)
-
images/sticons/Cut-the-Rope11.png (deleted)
-
images/sticons/Cut-the-Rope12.png (deleted)
-
images/sticons/Cut-the-Rope13.png (deleted)
-
images/sticons/Cut-the-Rope14.png (deleted)
-
images/sticons/Cut-the-Rope15.png (deleted)
-
images/sticons/Cut-the-Rope16.png (deleted)
-
images/sticons/Cut-the-Rope17.png (deleted)
-
images/sticons/Cut-the-Rope18.png (deleted)
-
images/sticons/Cut-the-Rope19.png (deleted)
-
images/sticons/Cut-the-Rope2.png (deleted)
-
images/sticons/Cut-the-Rope20.png (deleted)
-
images/sticons/Cut-the-Rope21.png (deleted)
-
images/sticons/Cut-the-Rope22.png (deleted)
-
images/sticons/Cut-the-Rope23.png (deleted)
-
images/sticons/Cut-the-Rope24.png (deleted)
-
images/sticons/Cut-the-Rope3.png (deleted)
-
images/sticons/Cut-the-Rope4.png (deleted)
-
images/sticons/Cut-the-Rope5.png (deleted)
-
images/sticons/Cut-the-Rope6.png (deleted)
-
images/sticons/Cut-the-Rope7.png (deleted)
-
images/sticons/Cut-the-Rope8.png (deleted)
-
images/sticons/Cut-the-Rope9.png (deleted)
-
images/sticons/Cut1.png (added)
-
images/sticons/Cut10.png (added)
-
images/sticons/Cut11.png (added)
-
images/sticons/Cut12.png (added)
-
images/sticons/Cut13.png (added)
-
images/sticons/Cut14.png (added)
-
images/sticons/Cut15.png (added)
-
images/sticons/Cut16.png (added)
-
images/sticons/Cut17.png (added)
-
images/sticons/Cut18.png (added)
-
images/sticons/Cut19.png (added)
-
images/sticons/Cut2.png (added)
-
images/sticons/Cut20.png (added)
-
images/sticons/Cut21.png (added)
-
images/sticons/Cut22.png (added)
-
images/sticons/Cut23.png (added)
-
images/sticons/Cut24.png (added)
-
images/sticons/Cut3.png (added)
-
images/sticons/Cut4.png (added)
-
images/sticons/Cut5.png (added)
-
images/sticons/Cut6.png (added)
-
images/sticons/Cut7.png (added)
-
images/sticons/Cut8.png (added)
-
images/sticons/Cut9.png (added)
-
images/sticons/D.png (added)
-
images/sticons/EX.png (added)
-
images/sticons/F.png (added)
-
images/sticons/G.png (added)
-
images/sticons/H.png (added)
-
images/sticons/I.png (added)
-
images/sticons/J.png (added)
-
images/sticons/K.png (added)
-
images/sticons/L.png (added)
-
images/sticons/LIKE.png (added)
-
images/sticons/M.png (added)
-
images/sticons/N.png (added)
-
images/sticons/O.png (added)
-
images/sticons/P.png (added)
-
images/sticons/POO.png (added)
-
images/sticons/Q.png (added)
-
images/sticons/QE.png (added)
-
images/sticons/R.png (added)
-
images/sticons/S.png (added)
-
images/sticons/T.png (added)
-
images/sticons/U.png (added)
-
images/sticons/UNLIKE.png (added)
-
images/sticons/V.png (added)
-
images/sticons/W.png (added)
-
images/sticons/X.png (added)
-
images/sticons/Y.png (added)
-
images/sticons/Z.png (added)
-
images/sticons/ZZZ.png (added)
-
images/sticons/st_1.png (deleted)
-
images/sticons/st_10.png (deleted)
-
images/sticons/st_11.png (deleted)
-
images/sticons/st_12.png (deleted)
-
images/sticons/st_13.png (deleted)
-
images/sticons/st_14.png (deleted)
-
images/sticons/st_15.png (deleted)
-
images/sticons/st_16.png (deleted)
-
images/sticons/st_17.png (deleted)
-
images/sticons/st_18.png (deleted)
-
images/sticons/st_19.png (deleted)
-
images/sticons/st_2.png (deleted)
-
images/sticons/st_20.png (deleted)
-
images/sticons/st_21.png (deleted)
-
images/sticons/st_22.png (deleted)
-
images/sticons/st_23.png (deleted)
-
images/sticons/st_24.png (deleted)
-
images/sticons/st_25.png (deleted)
-
images/sticons/st_26.png (deleted)
-
images/sticons/st_27.png (deleted)
-
images/sticons/st_28.png (deleted)
-
images/sticons/st_29.png (deleted)
-
images/sticons/st_3.png (deleted)
-
images/sticons/st_30.png (deleted)
-
images/sticons/st_31.png (deleted)
-
images/sticons/st_32.png (deleted)
-
images/sticons/st_33.png (deleted)
-
images/sticons/st_34.png (deleted)
-
images/sticons/st_35.png (deleted)
-
images/sticons/st_36.png (deleted)
-
images/sticons/st_37.png (deleted)
-
images/sticons/st_38.png (deleted)
-
images/sticons/st_39.png (deleted)
-
images/sticons/st_4.png (deleted)
-
images/sticons/st_40.png (deleted)
-
images/sticons/st_41.png (deleted)
-
images/sticons/st_42.png (deleted)
-
images/sticons/st_43.png (deleted)
-
images/sticons/st_44.png (deleted)
-
images/sticons/st_45.png (deleted)
-
images/sticons/st_46.png (deleted)
-
images/sticons/st_47.png (deleted)
-
images/sticons/st_48.png (deleted)
-
images/sticons/st_49.png (deleted)
-
images/sticons/st_5.png (deleted)
-
images/sticons/st_6.png (deleted)
-
images/sticons/st_7.png (deleted)
-
images/sticons/st_8.png (deleted)
-
images/sticons/st_9.png (deleted)
-
images/tm_icon_like.png (deleted)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-sticker/trunk/bp-sticker.php
r1175909 r1209824 3 3 /* 4 4 * Plugin Name: Bp Stickers 5 * Version: 1. 05 * Version: 1.1 6 6 * Author: asghar hatampoor 7 7 * Author URI: http://webcaffe.ir … … 12 12 13 13 if ( !defined( 'BPST_PLUGIN_VERSION' ) ) 14 define( 'BPST_PLUGIN_VERSION', '1. 0.0' );14 define( 'BPST_PLUGIN_VERSION', '1.1.0' ); 15 15 16 16 if ( !defined( 'BPST_PLUGIN_DIRNAME' ) ) … … 67 67 <div class='smiley-buttons'style='display: none;'>"; 68 68 69 foreach (self::replace_with_st() as $codes => $imgs) { 69 70 foreach (self::replace_with_st() as $codes => $imgs) { 71 $filename = preg_replace('/.[^.]*$/', '', $codes); 70 72 $icon = BPST_PLUGIN_URL. 'images/sticons/'. $imgs.''; 71 $html.="<img src='$icon' data-code='$codes' class='smiley' /> "; 72 } 73 73 $html.="<img src='$icon' data-code=':$filename:' class='smiley' /> "; 74 } 74 75 $html .="</div>"; 75 76 echo apply_filters( 'list_stickers',$html); 76 77 } 78 79 function replace_with_st(){ 80 $dir = BPST_PLUGIN_DIR."images/sticons/"; 81 if ($opendir = opendir($dir)) { 82 $images=array(); 83 while (($file = readdir($opendir)) !==FALSE) { 84 if($file != "." && $file != "..") { 85 $images["$file"]=$file; 86 } 87 } 88 } 77 89 78 function replace_with_st(){ 79 if ( !isset( $icons ) ) { 80 $icons = array( 81 ':A:' => "st_1.png", 82 ':B:' => "st_2.png", 83 ':C:' => "st_3.png", 84 ':D:' => "st_4.png", 85 ':F:' => "st_5.png", 86 ':G:' => "st_6.png", 87 ':H:' => "st_7.png", 88 ':I:' => "st_8.png", 89 ':J:' => "st_9.png", 90 ':K:' => "st_10.png", 91 ':L:' => "st_11.png", 92 ':M:' => "st_12.png", 93 ':N:' => "st_13.png", 94 ':O:' => "st_14.png", 95 ':P:' => "st_15.png", 96 ':Q:' => "st_16.png", 97 ':R:' => "st_17.png", 98 ':S:' => "st_18.png", 99 ':T:' => "st_19.png", 100 ':U:' => "st_20.png", 101 ':V:' => "st_21.png", 102 ':W:' => "st_22.png", 103 ':X:' => "st_23.png", 104 ':Y:' => "st_24.png", 105 ':Z:' => "st_25.png", 106 ':AA:' => "st_26.png", 107 ':AB:' => "st_27.png", 108 ':AC:' => "st_28.png", 109 ':AD:' => "st_29.png", 110 ':AF:' => "st_30.png", 111 ':AG:' => "st_31.png", 112 ':AH:' => "st_32.png", 113 ':AI:' => "st_33.png", 114 ':AJ:' => "st_34.png", 115 ':AK:' => "st_35.png", 116 ':AL:' => "st_36.png", 117 ':AM:' => "st_37.png", 118 ':AN:' => "st_38.png", 119 ':AO:' => "st_39.png", 120 ':AP:' => "st_40.png", 121 ':AQ:' => "st_41.png", 122 ':CLAP:' => "st_42.png", 123 ':LIKE:' => "st_43.png", 124 ':UNLIKE:' => "st_44.png", 125 ':(V):' => "st_45.png", 126 ':QE:' => "st_46.png", 127 ':EX:' => "st_47.png", 128 ':ZZZ:' => "st_48.png", 129 ':POO:' => "st_49.png", 130 ':Cut1:' => "Cut-the-Rope1.png", 131 ':Cut2:' => "Cut-the-Rope2.png", 132 ':Cut3:' => "Cut-the-Rope3.png", 133 ':Cut4:' => "Cut-the-Rope4.png", 134 ':Cut5:' => "Cut-the-Rope5.png", 135 ':Cut6:' => "Cut-the-Rope6.png", 136 ':Cut7:' => "Cut-the-Rope7.png", 137 ':Cut8:' => "Cut-the-Rope8.png", 138 ':Cut9:' => "Cut-the-Rope9.png", 139 ':Cut10:' => "Cut-the-Rope10.png", 140 ':Cut11:' => "Cut-the-Rope11.png", 141 ':Cut12:' => "Cut-the-Rope12.png", 142 ':Cut13:' => "Cut-the-Rope13.png", 143 ':Cut14:' => "Cut-the-Rope14.png", 144 ':Cut15:' => "Cut-the-Rope15.png", 145 ':Cut16:' => "Cut-the-Rope16.png", 146 ':Cut17:' => "Cut-the-Rope17.png", 147 ':Cut18:' => "Cut-the-Rope18.png", 148 ':Cut19:' => "Cut-the-Rope19.png", 149 ':Cut20:' => "Cut-the-Rope20.png", 150 ':Cut21:' => "Cut-the-Rope21.png", 151 ':Cut22:' => "Cut-the-Rope22.png", 152 ':Cut23:' => "Cut-the-Rope23.png", 153 ':Cut24:' => "Cut-the-Rope24.png", 154 155 156 ); 157 } 158 return $icons; 90 return $images; 159 91 } 160 161 92 162 93 function bp_st_translate_sticker( $content) { 163 94 global $bp; 164 95 foreach( self::replace_with_st() as $codes => $imgs) { 96 $filename = preg_replace('/.[^.]*$/', '', $codes); 165 97 $icon = BPST_PLUGIN_URL. 'images/sticons/'. $imgs.''; 166 $code[] = $codes;98 $code[] =":$filename:"; 167 99 $img[] = "<img src='$icon' class='smiley' /> "; 168 100 } -
buddypress-sticker/trunk/css/bp-sticker.css
r1175909 r1209824 12 12 .bp-smiley-button .buddypress-smiley-button{ 13 13 padding: 15px; 14 background: url('../images/ tm_icon_like.png') no-repeat ;14 background: url('../images/sticon.png') no-repeat ; 15 15 float: right; 16 16 margin-top: 5px; -
buddypress-sticker/trunk/readme.txt
r1175909 r1209824 4 4 Requires at least: 3.8 5 5 Tested up to: 4.2 6 Stable tag: 1. 0.06 Stable tag: 1.1.0 7 7 8 8 BuddyPress stickers Allow Users to add stickers in activity posts and message by clicking on icons … … 11 11 12 12 BuddyPress stickers Allow Users to add stickers in activity posts and message by clicking on icons 13 13 14 14 15 == Installation == … … 25 26 = What other configurations do I need = 26 27 No. This plugin needs no configuration. 28 if need more sticker, you can go to cpanel and upload custom sticker in bp-sticker/images/sticons. 29 30 27 31 28 32 == Screenshots == … … 32 36 == Changelog == 33 37 38 = 1.1.0 = 39 - Adedd admin can upload custom stickers in folder plugin(images/sticon). 34 40 35 41 = 1.0.0 =
Note: See TracChangeset
for help on using the changeset viewer.