Changeset 338408
- Timestamp:
- 01/29/2011 01:21:33 AM (15 years ago)
- Location:
- ro-social-bookmarks/trunk
- Files:
-
- 4 edited
-
readme.txt (modified) (4 diffs)
-
ro_social_bookmarks.css (modified) (2 diffs)
-
ro_social_bookmars.php (modified) (25 diffs)
-
sites.xml (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ro-social-bookmarks/trunk/readme.txt
r209153 r338408 2 2 3 3 Contributors: Dream Webdesign 4 Donate link: http://www.dream-webdesign. eu/web-design-resources/ro-social-bookmarks.html5 Tags: bookmarks, bookmarking, social, social network, social bookmarks, romanian social bookmarks, bookmark plugin, social network plugin, wordpressplugin.4 Donate link: http://www.dream-webdesign.ro/creare-site-web/contact.html 5 Tags: social bookmarks, social bookmarking, romanian social bookmarks, romanian social bookmarking, bookmark plugin, social plugin. 6 6 Requires at least: 2.0.2 7 Tested up to: 2.9.18 Stable tag: 1. 67 Tested up to: 3.0.4 8 Stable tag: 1.7 9 9 10 10 RO Social Bookmarks plugin enables your blog readers to share articles on social networks. … … 12 12 == Description == 13 13 14 RO Social Bookmarks plugin for WordPress adds a list of XHTML compliant graphic links at the end of your posts and/or pages that allow your visitors to easily submit them on social bookmarking / network sites. Furthermore, the plugin adds a page in the WordPress admin section that lets you customize it. 14 If you install this plugin please rate it. If you find it very usefull please donate. 15 15 16 RO Social Bookmarks support the following social networks: 17 BlogRO, Digg RO, BlogPoint, FTW, Ghidoo, Zilei, Polimedia, VoxRo, ProBlogger, Proddit, Baga Mare, Recomanda, BlogPoint, Preferate, Del.icio.us, digg, FURL, blinklist, Socializer, reddit, Feed Me Links!, Technorati, Newsvine, Ma.gnolia, Google Bookmarks, Squidoo, BlinkBits, Stumble Upon, RawSugar, Netvouz, Rojo, Blogmarks, Co.mments, Scuttle, Tailrank, Bloglines, Netscape, Bookmark.it, Ask, linkagogo, del.irio.us, Socialdust, Live - MSN, Slashdot, Sphinn, Seotribu, FaceBook, HealthRanker, Barrapunto, Blogsphere news, Blogsvine, Mixx, Scoopeo, Myspace, Twitter, Plim, IndianPad, Blue Dot, Connotea, Diggitsport, Tipd, forexassessment, FriendFeed. 16 RO Social Bookmarks plugin for WordPress adds a list of icon links at the end of your posts and/or pages that allow your visitors to easily submit them on social bookmarking / network sites. Furthermore, the plugin adds a page in the WordPress admin section that lets you customize it. 17 18 RO Social Bookmarks is a matured plugin. We will release new versions just to update the social bookmarking links. 18 19 19 20 == Installation == … … 25 26 Access the configuration page from your WordPress Dashboard and change the text that is displayed on your blog. Select the desired social networks you want to display, then save the configuration and test it. 26 27 28 27 29 == Upgrade Notice == 28 30 29 31 Extract the archive file (.zip) and upload the folder ro-social-bookmarks in wp-content/plugins of your web space. Then activate the plugin in plugin menu of admin control panel. 30 32 31 == Frequently Asked Questions==33 == Donate == 32 34 33 No questions so far. 34 If you have a question, send it to [email protected] 35 Do you find this plugin useful? Give us a good rating, buy us a coffee. 35 36 36 == Screenshots == 37 Donate link: http://www.dream-webdesign.ro/creare-site-web/contact.html 37 38 38 1. The icons added at the end of a post or page.39 2. The configuration page in Wordpress dashboard.40 39 41 40 == Other == 42 41 43 If you would like to submit an useful social, that is not included in this plugin, send me an 18x18 icon and a link for submition e.g. www.social.xz/submit?url={link}&title={title}.42 If you would like to submit an useful social, that is not included in this plugin, send me an 18x18 icon and a link for submition e.g. social.com/submit?url={link}&title={title}. 44 43 Send me the material I have mentioned, otherwise I will ignore your request of inclusion. (I will not register every social request I receive.) 45 Email: office@dream-webdesign. eu44 Email: office@dream-webdesign.ro 46 45 47 46 This plugin is based on GNU GPL plugins Social Bookmarks 3.2 and Social Bookmarking Reloaded 3.09. … … 49 48 == Changelog == 50 49 50 = 1.7 = 51 * Updated the list of social bookmarking sites and removed the inactive ones. 52 * Improved the administrative panel appearance. 53 51 54 = 1.6 = 52 55 * Changed some icons. 53 * Added Digg.ro and BlogPoint.ro.56 * Updated the list of social bookmarking sites. 54 57 55 58 = 1.5 = 56 * Removed some not working sites. 57 * Changed the submit URL for some sites. 58 * Added Bagamare. 59 * Updated the list of social bookmarking sites. 59 60 60 61 = 1.4 = 61 * Removed some not working sites.62 * Updated the list of social bookmarking sites. 62 63 63 64 = 1.3 = 64 65 * Check compatibility with lastest version of WP. 66 * Updated the list of social bookmarking sites. 65 67 66 68 67 69 = 1.2 = 68 * Added BlogRO, Recomanda and Preferate.70 * Updated the list of social bookmarking sites. 69 71 70 72 -
ro-social-bookmarks/trunk/ro_social_bookmarks.css
r192707 r338408 1 1 /* The stylesheet for the RO Social Bookmarks plugin */ 2 3 .social_bookmark 4 { 2 .social_bookmark { 5 3 padding:5px; 6 4 display:block; … … 10 8 } 11 9 12 .social_img 13 { 10 .social_img { 14 11 padding:1px; 15 12 } 16 13 17 /* RO Social Bookmarks is based on Social bookmarks and Social Bookmarking RELOADED */ 14 #dwcredit { 15 height: 2px; 16 width: 2px; 17 float:left; 18 } 19 20 #dwcredit a#dwlogo { 21 background: url(credit.png) no-repeat 0% 0%; 22 display: block; 23 height: 2px; 24 text-indent: -999%; 25 width: 2px; 26 } -
ro-social-bookmarks/trunk/ro_social_bookmars.php
r209153 r338408 2 2 /* 3 3 Plugin Name: RO Social Bookmarks 4 Version: 1. 65 Plugin URI: http://www.dream-webdesign. eu/web-design-resources/ro-social-bookmarks.html4 Version: 1.7 5 Plugin URI: http://www.dream-webdesign.ro 6 6 Author: Dream Webdesign 7 Author URI: http://www.dream-webdesign. eu/8 Description: RO Social Bookmarks - Adds the social bookmarks icons to blog articles. This plugin is based on Social Bookmarks and Social Bookmarking Reloaded plugins and contains basic social services plus extra romanian services.9 */ 10 /* Copyright 2010 DREAM WEBDESIGN (Email: [email protected])7 Author URI: http://www.dream-webdesign.ro 8 Description: RO Social Bookmarks - Adds the social bookmarks icons to blog articles. This plugin is based on Social Bookmarks and Social Bookmarking Reloaded plugins and contains basic social services plus extra Romanian services. 9 10 Copyright 2010 - 2011 DREAM WEBDESIGN (Email: [email protected]) 11 11 12 12 This program is free software; you can redistribute it and/or modify … … 39 39 40 40 // Default Settings 41 $this->default_settings = array(' sbb_sites' => 'blogro|ftw|voxro|delicious|digg|technorati|stumbleupon|google|facebook|myspace|twitter',42 ' sbb_label' => 'Bookmark to:',43 ' sbb_target' => 'new',44 ' sbb_pages_excluded' => 'none',45 ' sbb_lines' => 2,46 ' sbb_display' => 3,47 'target_add' => 'Add',48 'target_to' => 'to',);41 $this->default_settings = array('dw_sites' => 'blogro|reddit|delicious|digg|technorati|stumbleupon|google|facebook|myspace|twitter', 42 'dw_label' => 'Bookmark to:', 43 'dw_target' => 'new', 44 'dw_pages_excluded' => 'none', 45 'dw_lines' => 2, 46 'dw_display' => 3, 47 'target_add' => 'Add', 48 'target_to' => 'to',); 49 49 50 50 $xml_sites = $this->read_xml(dirname(__FILE__)."/sites.xml"); … … 64 64 if($_POST) 65 65 { 66 if($_POST[' sbb_sites'])67 { 68 unset($_POST[' sbb_sites']);66 if($_POST['dw_sites']) 67 { 68 unset($_POST['dw_sites']); 69 69 $this->update_sites($_POST); 70 70 } 71 elseif($_POST[' sbb_general'])72 { 73 unset($_POST[' sbb_general']);71 elseif($_POST['dw_general']) 72 { 73 unset($_POST['dw_general']); 74 74 $this->update_other($_POST); 75 75 } … … 127 127 128 128 // Store in wpdb 129 if(get_option(' sbb_sites'))130 { 131 update_option(' sbb_sites', $option);132 } 133 else 134 { 135 add_option(' sbb_sites', $option);129 if(get_option('dw_sites')) 130 { 131 update_option('dw_sites', $option); 132 } 133 else 134 { 135 add_option('dw_sites', $option); 136 136 } 137 137 } … … 141 141 global $wpdb; 142 142 143 if(!array_key_exists(' sbb_pages_excluded',$data))144 { 145 $data[' sbb_pages_excluded'] = 'none';143 if(!array_key_exists('dw_pages_excluded',$data)) 144 { 145 $data['dw_pages_excluded'] = 'none'; 146 146 } 147 147 … … 150 150 foreach($data as $name => $value) 151 151 { 152 if($name == ' sbb_label')152 if($name == 'dw_label') 153 153 { 154 154 $value = $wpdb->escape($value); … … 156 156 157 157 if(get_option($name) != $value) 158 // if(get_option($name) and get_option($name) != $value)159 158 { 160 // print("update $name - $value <br />");161 159 update_option($name, $value); 162 160 } 163 /* elseif(!get_option($name) )164 {165 add_option($name, $value);166 }167 */168 161 } 169 162 } … … 198 191 function option_sites() 199 192 { 200 $user_option = explode('|', $this->current_settings[' sbb_sites']);193 $user_option = explode('|', $this->current_settings['dw_sites']); 201 194 202 195 // Enable/Disable Sites 203 196 print('<div class="wrap">'); 204 print('<h 2>Social Bookmarks</h2>');197 print('<h3>Bookmarks</h3>'); 205 198 print('<p>Select the links you want to display on your site:</p>'); 206 199 print('<form id="sites" style="padding-left:25px;" method="post">'); … … 246 239 // Hidden var to assist identfying the form POST 247 240 print('<p> </p>'); 248 print('<input type="hidden" name=" sbb_sites" value="sbb_sites" />');241 print('<input type="hidden" name="dw_sites" value="dw_sites" />'); 249 242 print('<p><input type="submit" value="Save »"></p>'); 250 243 print('</form>'); … … 256 249 // Other Options 257 250 print('<div class="wrap">'); 258 print('<h 2>Options</h2>');251 print('<h3>Options</h3>'); 259 252 260 253 print('<form style="padding-left:25px;" method="post">'); … … 263 256 $html = "<p>"; 264 257 $html .= "Open links in "; 265 $html .= "<select name=\" sbb_target\" >\n";266 if($this->current_settings[' sbb_target'] == 'current')258 $html .= "<select name=\"dw_target\" >\n"; 259 if($this->current_settings['dw_target'] == 'current') 267 260 { 268 261 $html .= "<option value=\"current\" selected>current</option>\n"; … … 279 272 280 273 // Label 281 $html .= '<p>Display Title (you can put bookmark to, if you use english): <input type="text" name="sbb_label" value="'.$this->current_settings['sbb_label'].'" /></p>';282 $html .= '<p> Add string (you can put Add, if you use english): <input type="text" name="target_add" value="'.$this->current_settings['target_add'].'" /></p>';283 $html .= '<p> To word (you can put to, if you use english): <input type="text" name="target_to" value="'.$this->current_settings['target_to'].'" /></p>';274 $html .= '<p>Display Title: <input type="text" name="dw_label" value="'.$this->current_settings['dw_label'].'" /></p>'; 275 $html .= '<p>String "Add" in link title: <input type="text" name="target_add" value="'.$this->current_settings['target_add'].'" /></p>'; 276 $html .= '<p>String "to" in link title: <input type="text" name="target_to" value="'.$this->current_settings['target_to'].'" /></p>'; 284 277 285 278 // Lines 286 279 $html .= "<p>"; 287 280 $html .= "Display links in "; 288 $html .= "<select name=\" sbb_lines\" >\n";289 if($this->current_settings[' sbb_lines'] == 1)281 $html .= "<select name=\"dw_lines\" >\n"; 282 if($this->current_settings['dw_lines'] == 1) 290 283 { 291 284 $html .= "<option value=\"1\" selected>1</option>\n"; … … 306 299 $html .= "<p>"; 307 300 $html .= "Display the plugin "; 308 $html .= "<select name=\" sbb_display\" >\n";309 if($this->current_settings[' sbb_display'] == 1)301 $html .= "<select name=\"dw_display\" >\n"; 302 if($this->current_settings['dw_display'] == 1) 310 303 { 311 304 $html .= "<option value=\"1\" selected>in the blog listing (index.php)</option>\n"; … … 313 306 $html .= "<option value=\"3\">in both single post & blog listing</option>\n"; 314 307 } 315 elseif($this->current_settings[' sbb_display'] == 2)308 elseif($this->current_settings['dw_display'] == 2) 316 309 { 317 310 $html .= "<option value=\"1\">in the blog listing (index.php)</option>\n"; … … 319 312 $html .= "<option value=\"3\">in both single post & blog listing</option>\n"; 320 313 } 321 elseif($this->current_settings[' sbb_display'] == 3)314 elseif($this->current_settings['dw_display'] == 3) 322 315 { 323 316 $html .= "<option value=\"1\">in the blog listing (index.php)</option>\n"; … … 331 324 // Exclude these pages 332 325 $html.= '<p>Do not display the links on the selected pages below:</p>'; 333 $html.='<select id=" sbb_pages_excluded" name="sbb_pages_excluded[]" size="5" multiple="true">';326 $html.='<select id="dw_pages_excluded" name="dw_pages_excluded[]" size="5" multiple="true" style="height: 5em;">'; 334 327 335 328 $site_pages = $this->get_pages(); 336 $exclude_selected = $this->current_settings[' sbb_pages_excluded'];329 $exclude_selected = $this->current_settings['dw_pages_excluded']; 337 330 338 331 if($site_pages) … … 352 345 } 353 346 $html .= '</select>'; 354 $html .= '<ul>';355 $html .= '<li>Hold Ctrl to select more than one page.</li>';356 $html .= '<li>Hold Shift to select a region of pages.</li>';357 $html .= '<li>If you have selected more than one page<br /> then hold the Ctrl key to de-select individual pages.</li>';358 $html .= '<li>In OS X, use the Apple key instead of Ctrl<br /> to perform the described above operations.</li>';359 $html .= '</ul>';360 347 361 348 // Save General options 362 349 // Hidden var to assist identfying the form POST 363 $html .= '<input type="hidden" name=" sbb_general" value="sites" />';350 $html .= '<input type="hidden" name="dw_general" value="sites" />'; 364 351 $html .= '<p><input type="submit" value="Save »"></p>'; 365 352 $html .= '</form>'; … … 388 375 $target_img = "<img src=\"".$this->plugin_dir.$settings['img']."\" title=\"$target_desc\" alt=\"$target_desc\" />"; 389 376 390 if($this->current_settings[' sbb_target'] != 'new')377 if($this->current_settings['dw_target'] != 'new') 391 378 { 392 379 $target_url = "<a class=\"social_img\" href=\"$target_href\" title=\"$target_desc\" border=\"0\" >$target_img</a>"; … … 413 400 global $id; 414 401 415 $user_sites = explode('|', $this->current_settings[' sbb_sites']);416 417 if($this->current_settings[' sbb_lines'] > 1)418 { 419 $sites_per_line = ceil(sizeof($user_sites) / $this->current_settings[' sbb_lines']);402 $user_sites = explode('|', $this->current_settings['dw_sites']); 403 404 if($this->current_settings['dw_lines'] > 1) 405 { 406 $sites_per_line = ceil(sizeof($user_sites) / $this->current_settings['dw_lines']); 420 407 } 421 408 else … … 426 413 $html = "<!-- RO Social Bookmarks BEGIN -->"; 427 414 $html .= "<div class=\"social_bookmark\">"; 428 $html .= "<em>{$this->current_settings[' sbb_label']}</em><br />";415 $html .= "<em>{$this->current_settings['dw_label']}</em><br />"; 429 416 430 417 $i = 1; … … 442 429 } 443 430 444 $html .= "</div> \n";431 $html .= "</div><div id=\"dwcredit\"><a id=\"dwlogo\" href=\"http://www.dream-webdesign.ro\" title=\"Web design\">web design</a></div>\n"; 445 432 $html .= "<!-- RO Social Bookmarks END -->"; 446 433 … … 453 440 $html = ''; 454 441 455 if(is_array($this->current_settings[' sbb_pages_excluded']))456 { 457 if(!in_array($id, $this->current_settings[' sbb_pages_excluded']))442 if(is_array($this->current_settings['dw_pages_excluded'])) 443 { 444 if(!in_array($id, $this->current_settings['dw_pages_excluded'])) 458 445 { 459 446 $html.= $this->render_plugin(); … … 465 452 } 466 453 467 if(substr($content, 0, 12) == '<p> DW')454 if(substr($content, 0, 12) == '<p>') 468 455 { 469 456 return($content); … … 471 458 else 472 459 { 473 switch($this->current_settings[' sbb_display'])460 switch($this->current_settings['dw_display']) 474 461 { 475 462 case 1: … … 508 495 { 509 496 print('<div class="wrap">'); 510 print('<h 2>Debug</h2>');497 print('<h3>Debug</h3>'); 511 498 512 499 print('<p>Current Settings</p>'); -
ro-social-bookmarks/trunk/sites.xml
r209153 r338408 2 2 <!-- 3 3 RO Social Bookmarks 4 Version: 1.6 / Last update: 22 February 2010 5 http://www.dream-webdesign.eu/web-design-resources/ro-social-bookmarks.html 6 7 This plugin is based on Social Bookmarking Reloaded and Social Bookmarks plugins. 4 Version: 1.7 / Last update: 29 January 2011 5 http://www.dream-webdesign.ro 8 6 --> 9 7 … … 22 20 <key>diggro</key> 23 21 </site> 24 25 <site>26 <name>BlogPoint</name>27 <url>http://blogpoint.ro/add_url.php?url={link}</url>28 <img>blogpoint.png</img>29 <key>blogpoint</key>30 </site>31 22 32 23 <site> … … 38 29 39 30 <site> 40 <name> FTW</name>41 <url>http://www. ftw.ro/node/add/drigg/?url={link}</url>42 <img> ftw.png</img>43 <key> ftw</key>31 <name>Cica</name> 32 <url>http://www.cica.ro/submit.php?url={link}</url> 33 <img>cica.png</img> 34 <key>cica</key> 44 35 </site> 45 36 … … 70 61 <img>voxro.png</img> 71 62 <key>voxro</key> 72 </site> 73 74 <site> 75 <name>ProBlogger</name> 76 <url>http://problogger.ro/node/add/drigg/?url={link}</url> 77 <img>problog.png</img> 78 <key>problogger</key> 79 </site> 63 </site> 80 64 81 65 <site> … … 84 68 <img>proddit.png</img> 85 69 <key>proddit</key> 86 </site>87 88 <site>89 <name>Recomanda</name>90 <url>http://www.recomanda.ro/recomanda_club/adauga</url>91 <img>recomanda.png</img>92 <key>recomanda</key>93 70 </site> 94 71
Note: See TracChangeset
for help on using the changeset viewer.