[Plugin: Social Media Widget] Custom Order for Plugin
-
Is there a way to set the order of the icons for the plugin? I
https://www.ads-software.com/extend/plugins/social-media-widget/
-
Not currently, but I am looking in to a solution for this. No timeframe for that as of yet.
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 }
Thanks James!
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.
+1 to add a “custom order” feature…
Don’t worry, this is in the works. ??
- The topic ‘[Plugin: Social Media Widget] Custom Order for Plugin’ is closed to new replies.