Forums

Social Media Widget
Custom Order for Plugin (7 posts)

  1. behladesign
    Member
    Posted 7 months ago #

    Is there a way to set the order of the icons for the plugin? I

    http://wordpress.org/extend/plugins/social-media-widget/

  2. brianfreytag
    Member
    Posted 5 months ago #

    Not currently, but I am looking in to a solution for this. No timeframe for that as of yet.

  3. jamesparkin
    Member
    Posted 4 months ago #

    This is very easy to do, with all do respect to Brian and whoever developed this plugin all the author had to do was alphabetize the social links inside the php file.

    Copy and Paste Alphabetically what you use only and the plugin will automatically display them in alphabetical order

    Look for this and order it how you want

    // Facebook
    		if ( $facebook != '' && $facebook != ' ' && file_exists($smw_dir.'/facebook.png')) {
    			?><a href="<?php echo $facebook; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>px" height="<?php echo $icon_size; ?>px" src="<?php echo $smw_path; ?>/facebook.png" alt="<?php echo $imgcaption; ?> Facebook" title="<?php echo $imgcaption ?> Facebook" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
    		} else {
    			echo ''; //If no URL inputed
    		}

    this is how i order mine

    // Facebook
    		if ( $facebook != '' && $facebook != ' ' && file_exists($smw_dir.'/facebook.png')) {
    			?><a href="<?php echo $facebook; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>px" height="<?php echo $icon_size; ?>px" src="<?php echo $smw_path; ?>/facebook.png" alt="<?php echo $imgcaption; ?> Facebook" title="<?php echo $imgcaption ?> Facebook" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
    		} else {
    			echo ''; //If no URL inputed
    		}
    
    		// Custom Icon 1
    		if ( $custom1url != '' && $custom1name != '' && $custom1icon != '' ) {
    			?><a href="<?php echo $custom1url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>px" height="<?php echo $icon_size; ?>px" src="<?php echo $custom1icon; ?>" alt="<?php echo $imgcaption; ?> <?php echo $custom1name; ?>" title="<?php echo $imgcaption; ?> <?php echo $custom1name; ?>" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" /></a><?php
    		} else {
    			echo ''; //If no URL inputed
    		}
    
    		// Twitter
    		if ( $twitter != '' && $twitter != ' ' && file_exists($smw_dir.'/twitter.png')) {
    			?><a href="<?php echo $twitter; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>px" height="<?php echo $icon_size; ?>px" src="<?php echo $smw_path; ?>/twitter.png" alt="<?php echo $imgcaption; ?> Twitter" title="<?php echo $imgcaption; ?> Twitter" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
    		} else {
    			echo ''; //If no URL inputed
    		}
    
    		// Tumblr
    		if ( $tumblr != '' && $tumblr != ' ' && file_exists($smw_dir.'/tumblr.png')) {
    			?><a href="<?php echo $tumblr; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>px" height="<?php echo $icon_size; ?>px" src="<?php echo $smw_path; ?>/tumblr.png" alt="<?php echo $imgcaption; ?> Tumblr" title="<?php echo $imgcaption; ?> Tumblr" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
    		} else {
    			echo ''; //If no URL Inputed
    		}
    
    		// Pinterest
    		if ( $pinterest != '' && $pinterest != ' ' && file_exists($smw_dir.'/pinterest.png')) {
    			?><a href="<?php echo $pinterest; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>px" height="<?php echo $icon_size; ?>px" src="<?php echo $smw_path; ?>/pinterest.png" alt="<?php echo $imgcaption; ?> Pinterest" title="<?php echo $imgcaption; ?> Pinterest" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
    		} else {
    			echo ''; //If No URL Inputed
    		}
    
    		// YouTube
    		if ( $youtube != '' && $youtube != ' ' && file_exists($smw_dir.'/youtube.png')) {
    			?><a href="<?php echo $youtube; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>px" height="<?php echo $icon_size; ?>px" src="<?php echo $smw_path; ?>/youtube.png" alt="<?php echo $imgcaption; ?> YouTube" title="<?php echo $imgcaption; ?> YouTube" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
    		} else {
    			echo ''; //If No URL Inputed
    		}
  4. behladesign
    Member
    Posted 4 months ago #

    Thanks James!

  5. brianfreytag
    Member
    Posted 4 months ago #

    This is all well and good, however, these aren't random. They are in order by their popularity and the number of requests I receive for them.

  6. dave
    Member
    Posted 2 months ago #

    +1 to add a "custom order" feature...

  7. Blink Web Effects
    Member
    Plugin Author

    Posted 2 months ago #

    Don't worry, this is in the works. :)

Reply

You must log in to post.

About this Plugin

About this Topic