Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Wed Jun 06, 2012 4:57 pm Reply with quote

hey guys!

i have updated the SocialSprites with fresh logopics and i have added the gplus share link.

1. Download this file: [ Only registered users can see links on this board! Get registered or login! ]

2. Rename it in: service_icons.gif

3. Overwrite it in: modules/News/css/service_icons.gif

I found the sprite newsvine twice. To 1st in line 116 and to 2nd in line 212. I think it was a mistake. But i for me perfect. Smile I have replaced the sprite in line 212 with gplus.

4. open modules/News/css/socialicons.css:

found in line 212:
Code:
.newsvine {

background-position:0 -1040px;
}

replac it with:
Code:
.gplus {

background-position:0 -1040px;
}

complete file:
Code:
.sbicon {

background:transparent url(images/service_icons.gif) no-repeat scroll 0 0;width: 16px;height: 16px;border: none;margin-top:6px;margin-left:2px;
}
/*remove arrows from links in ravenice*/
.article .links a {
padding-left: 4px;
padding-bottom: 4px;
background-image: none;
}
/* more space in ravenice for social icons*/
.article .article_bot div {
   height:40px;
}
.donkeytopic {
background-image: none;
}
.aim {
background-position:0 0;
}
.amazon {
background-position:0 -16px;
}
.bebo {
background-position:0 -32px;
}
.brightkite {
background-position:0 -48px;
}
.delicious {
background-position:0 -64px;
}
.digg {
background-position:0 -80px;
}
.digg-this {
background-position:0 -96px;
}
.dopplr {
background-position:0 -112px;
}
.ebay {
background-position:0 -128px;
}
.email {
background-position:0 -144px;
}
.ember {
background-position:0 -160px;
}
.facebook {
background-position:0 -176px;
}
.feed {
background-position:0 -192px;
}
.ffffound {
background-position:0 -208px;
}
.fireeagle {
background-position:0 -224px;
}
.fireeagle-mascot {
background-position:0 -240px;
}
.flickr {
background-position:0 -256px;
}
.geotag {
background-position:0 -272px;
}
.goodreads {
background-position:0 -288px;
}
.google {
background-position:0 -304px;
}
.google-talk {
background-position:0 -320px;
}
.huffduffer {
background-position:0 -336px;
}
.ilike {
background-position:0 -352px;
}
.imdb {
background-position:0 -368px;
}
.imeem {
background-position:0 -384px;
}
.itunes {
background-position:0 -400px;
}
.justgiving {
background-position:0 -416px;
}
.lastfm {
background-position:0 -432px;
}
.linkedin {
background-position:0 -448px;
}
.messenger {
background-position:0 -464px;
}
.mixx {
background-position:0 -480px;
}
.myspace {
background-position:0 -496px;
}
.netvibes {
background-position:0 -512px;
}
.newsvine {
background-position:0 -528px;
}
.nikeplus {
background-position:0 -544px;
}
.ning {
background-position:0 -560px;
}
.openid {
background-position:0 -576px;
}
.opml {
background-position:0 -592px;
}
.orkut {
background-position:0 -608px;
}
.picasa {
background-position:0 -624px;
}
.posterous {
background-position:0 -640px;
}
.readernaut {
background-position:0 -656px;
}
.reddit {
background-position:0 -672px;
}
.sharethis {
background-position:0 -688px;
}
.skype {
background-position:0 -704px;
}
.stumbleupon {
background-position:0 -720px;
}
.technorati {
background-position:0 -736px;
}
.tumblr {
background-position:0 -752px;
}
.twitter {
background-position:0 -768px;
}
.upcoming {
background-position:0 -784px;
}
.vcard {
background-position:0 -800px;
}
.vimeo {
background-position:0 -816px;
}
.virb {
background-position:0 -832px;
}
.website {
background-position:0 -848px;
}
.wikipedia {
background-position:0 -864px;
}
.yahoo {
background-position:0 -880px;
}
.yahoo-buzz {
background-position:0 -896px;
}
.yahoo-messenger {
background-position:0 -912px;
}
.yelp {
background-position:0 -928px;
}
.youtube {
background-position:0 -944px;
}
.windowslive {
background-position:0 -960px;
}
.ask {
background-position:0 -976px;
}
.squidoo {
background-position:0 -992px;
}
.slashdot {
background-position:0 -1008px;
}
.fark {
background-position:0 -1024px;
}
.gplus {
background-position:0 -1040px;
}
.blinklist {
background-position:0 -1056px;
}
.dzone {
background-position:0 -1072px;
}
.magnolia {
background-position:0 -1088px;
}
.swik {
background-position:0 -1104px;
}
.shoutwire {
background-position:0 -1120px;
}
.faves {
background-position:0 -1136px;
}
.simpy {
background-position:0 -1152px;
}
.blogmarks {
background-position:0 -1168px;
}
.blinkbits {
background-position:0 -1184px;
}
.spurl {
background-position:0 -1200px;
}
.diigo {
background-position:0 -1216px;
}


5. open includes/nukeSEO_SB.php:

found:
Code:
$bookmarks = array ();

after add:
Code:
$bookmarks["gplus"] = array (

               "siteurl"   => "https://plus.google.com/share?url={MYNUKEURL}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Google+] body=[Bookmark and share this link with your friends at Google+]",
               "imgclass"   => "gplus"
            );

complete file:
Code:
<?php

###############################################################################
# nukeSEO Social Bookmarking Copyright (c) 2006 Kevin Guske  http://nukeSEO.com
###############################################################################
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
###############################################################################

if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) {
   header('Location: index.php');
   exit('Access Denied');
}

function getBookmarkHTML($mynukeurl, $mynuketitle, $separator = "&nbsp;", $imgsize = "small")
{
###############################################################################
# Comment out, add and / or resort the $bookmarks array as desired.  Bookmark
# sites will be displayed in the order they appear in the $bookmarks array and
# all bookmarking sites in the array will be displayed.
###############################################################################
$bookmarks = array ();
$bookmarks["gplus"] = array (
               "siteurl"   => "https://plus.google.com/share?url={MYNUKEURL}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Google+] body=[Bookmark and share this link with your friends at Google+]",
               "imgclass"   => "gplus"
            );
$bookmarks["google"] = array (
               "siteurl"   => "http://www.google.com/bookmarks/mark?op=edit&amp;bkmk={MYNUKEURL}&amp;title={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Google Bookmarks] body=[Bookmark and share this link with Google Bookmarks]",
               "imgclass"   => "google"
            );
$bookmarks["yahoo"] = array (
               "siteurl"   => "http://myweb2.search.yahoo.com/myresults/bookmarklet?u={MYNUKEURL}&amp;t={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Yahoo! My Web] body=[Bookmark and share this link with Yahoo! My Web]",
               "imgclass"   => "yahoo"
            );
$bookmarks["del.icio.us"] = array (
               "siteurl"   => "http://del.icio.us/post?url={MYNUKEURL}&amp;title={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[del.icio.us] body=[Bookmark and share this link with Delicious.com]",
               "imgclass"   => "delicious"
            );
$bookmarks["digg"] = array (
               "siteurl"   => "http://digg.com/submit?phase=2&amp;url={MYNUKEURL}&amp;title={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Digg] body=[Bookmark and share this link with Digg]",
               "imgclass"   => "digg"
            );
$bookmarks["stumbleupon"] = array (
               "siteurl"   => "http://www.stumbleupon.com/submit?url={MYNUKEURL}&amp;title={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Stumbleupon] body=[Share this link with your friends at Stumbleupon]",
               "imgclass"   => "stumbleupon"
            );
$bookmarks["myspace"] = array (
               "siteurl"   => "http://www.myspace.com/Modules/PostTo/Pages/?u=check+this+out:+{MYNUKEURL}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Myspace] body=[Share this link with your friends on Myspace]",
               "imgclass"   => "myspace"
            );
$bookmarks["reddit"] = array (
               "siteurl"   => "http://reddit.com/submit?url={MYNUKEURL}&amp;title={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Reddit] body=[Bookmark and share this link with Reddit]",
               "imgclass"   => "reddit"
            );
$bookmarks["technorati"] = array (
               "siteurl"   => "http://technorati.com/cosmos/search.html?url={MYNUKEURL}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Technorati] body=[Search this link with Technorati]",
               "imgclass"   => "technorati"
            );
$bookmarks["facebook"] = array(
               "siteurl"   => "http://www.facebook.com/sharer.php?u={MYNUKEURL}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Facebook] body=[Share this link with your friends on Facebook]",
               "imgclass"   => "facebook"
            );
$bookmarks["twitter"] = array(
               "siteurl"   => "http://twitter.com/home?status=check+this+out:+{MYNUKEURL}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Twitter] body=[Share this link with your friends on Twitter]",
               "imgclass"   => "twitter"
            );
$bookmarks["windowslive"] = array(
               "siteurl"   => "https://favorites.live.com/quickadd.aspx?url={MYNUKEURL}&amp;title={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Windows Live] body=[Share this link with your friends on Windows Live]",
               "imgclass"   => "windowslive"
            );
$bookmarks["squidoo"] = array(
               "siteurl"   => "http://www.squidoo.com/lensmaster/bookmark?{MYNUKEURL}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Squidoo] body=[Someone, somewhere, wants to know what you think, Squidoo!]",
               "imgclass"   => "squidoo"
            );
$bookmarks["blinklist"] = array(
               "siteurl"   => "http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Url={MYNUKEURL}&amp;Title={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Blinklist] body=[Help others Discover and Learn, Share on Blinklist]",
               "imgclass"   => "blinklist"
            );
$bookmarks["newsvine"] = array(
               "siteurl"   => "http://www.newsvine.com/_wine/save?u={MYNUKEURL}&amp;h={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Newsvine] body=[Help others Get Smarter, share this story on Newsvine]",
               "imgclass"   => "newsvine"
            );
$bookmarks["fark"] = array(
               "siteurl"   => "http://cgi.fark.com/cgi/fark/submit.pl?new_url={MYNUKEURL}&amp;new_comment={MYNUKETITLE}&amp;linktype=cool",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Fark] body=[It's not News, it's Fark!]",
               "imgclass"   => "fark"
            );
$bookmarks["diigo"] = array(
               "siteurl"   => "http://www.diigo.com/post?url={MYNUKEURL}&amp;title={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Diigo] body=[Research, Share, Collaborate this story on Diigo]",
               "imgclass"   => "diigo"
            );
$bookmarks["swik"] = array(
               "siteurl"   => "http://stories.swik.net/?submitUrl&amp;url={MYNUKEURL}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[SWiK] body=[Share on SWiK - a community driven resource for open source software]",
               "imgclass"   => "swik"
            );
$bookmarks["faves"] = array(
               "siteurl"   => "http://faves.com/Authoring.aspx?u={MYNUKEURL}&amp;t={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Faves] body=[Share on Faves - sites you love from people like you]",
               "imgclass"   => "faves"
            );
$bookmarks["blogmarks"] = array(
               "siteurl"   => "http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url={MYNUKEURL}&amp;title={MYNUKETITLE}",
               "imgalt"   => "cssheader=[tonheaderclass2] cssbody=[tonbodyclass2] header=[Blogmarks] body=[Share this story on Blogmarks, and join the social bookmarking revolution]",
               "imgclass"   => "blogmarks"
            );
###############################################################################
# You do not need to modify anything below this line
###############################################################################
   $bookmarkHTML = '';
   $mynukeurl = str_replace('&amp;', '&', $mynukeurl);
   $mynukeurl = htmlentities(urlencode($mynukeurl));
   $mynuketitle = str_replace('&amp;', '&', $mynuketitle);
   $mynuketitle = urlencode($mynuketitle);
   $numBookmarks = count($bookmarks);
   $numkey = 0;
   foreach ($bookmarks as $sitename => $sitedetails)
   {
      $siteurl = $sitedetails['siteurl'];
      $siteurl = str_replace("{MYNUKEURL}", $mynukeurl, $siteurl);
      $siteurl = str_replace("{MYNUKETITLE}", $mynuketitle, $siteurl);
      $imgalt = $sitedetails['imgalt'];
      $imgclass = $sitedetails['imgclass'];
      $bookmarkHTML .= "<a href=\"$siteurl\" title=\"$imgalt\" target=\"_blank\" class=\"donkeytopic\">";
      $siteimg = 'modules/News/css/images/transparent.gif';
      if ($imgsize == "text") {
         $bookmarkHTML .= "$sitename";
      } else {
         # XHTML fix courtesy of Guardian - http://code-authors.com
         $bookmarkHTML .= "<img alt=\"\" border=\"0\" class=\"sbicon $imgclass\" src=\"$siteimg\" style=\"opacity:0.4;filter:alpha(opacity=40)\" onmouseover=\"this.style.opacity=1;this.filters.alpha.opacity=100\" onmouseout=\"this.style.opacity=0.4;this.filters.alpha.opacity=40\" />";
      }
      $bookmarkHTML .= "</a>";
      $numkey = $numkey + 1;
      //if ($numkey < $numBookmarks) $bookmarkHTML .= "$separator";
   }
   return $bookmarkHTML;
}
?>


save all files and have fun with fresh sprites Smile

update sprites:

- aim
- amazon
- bebo
- delicious
- digg
- dopplr
- ebay
- email
- ember
- facebook
- feed
- ffffound
- flikr
- google
- google-talk
- itunes
- lastfm
- linkedin
- mixx
- messenger
- myspace
- netvibes
- newsvine
- picasa
- posterous
- reddit
- sharethis
- skype
- stumbleupon
- technorati
- tumblr
- twitter
- vimeo
- virb
- wikipedia
- yahoo
- yahoo-buzz
- yelp
- youtube
- windowslive
- squidoo
- slashdot
- fark

Resources: [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ]

Smile
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©