Social Bookmarks Mod updated
Jan 30th, 2009 at 11:38 am
filed under: sNews CMS / Hacks & Mods
filed under: sNews CMS / Hacks & Mods
Just a quick update on the social bookmarks mod of mine, I recently noticed that when using it on a "page", it wasn't displaying the correct link url, so I have fixed fix this, if you were using my default social.php, this is a drop in replacement, if not, note the changes, first find;
//grabs the url to the article $social_url = urlencode(_SITE.$uri."/".$r['asef']);
and then change it to;
//grabs the url to the article
if (empty($currentPage)) {
$social_url = urlencode($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
} else {
$social_url = urlencode(_SITE.$uri."/".$r['asef']);
}
That's it! Updated INSTALL instructions are included in the zip file.
4 comments
Add a new comment »Categories
Recent Entries
Recent Comments
- Redbeard (I managed to get Vampire: The Masquerade - Bloodlines ...)
- Tina (Installed this today and working like a charm :) Thanks!)
- Tina (Thanks for this great mod :) Working on my site for quite a ...)
- konga (Hi Matt, if you plan to update it, please have a look into ...)
- David (Yo Matt, I have a problem, when I use this mod. ...)
- Dave (Have a Toshiba NB305. Win7 starter would not do screen ...)
- Daichisan (Howdy Matt, I dont really get it, whats ...)
- Matt (Mine is just customized further, that's all :) It just spits ...)
- Matt (David, Do you own or admin the server? Do you have exec ...)
Popular Entries
- Compact archives for sNews 1.7 (5/5)
- Light-weight related articles mod for sNews 1.7 (4.78/5)
- SEF / SEO search for your sNews website (4.75/5)
- 1024x600 netbook wallpapers of Evangeline Lilly (4.67/5)
- Gravatar mod for sNews 1.7 (4.67/5)
- An improved tag cloud for sNews 1.7 (4.67/5)
- Image / math hybrid captcha version 2, vastly improved (4.64/5)
- Related Articles mod for sNews CMS, public beta release (4.6/5)
- An easy mod to create custom break titles for your sNews articles (4.6/5)
Jan 25th, 2010 at 11:54 am
Another addition to this would be to add the Facebook sharing link and icon: Add this to your social.php in the lik section:
<a href="http://www.facebook.com/sharer.php?u=$social_url&title=$social_title"><img src="/images/social/facebook.png" alt="facebook" style="$img_style" />
And if you need a icon:
http://p-ahlqvist.com/images/social/facebook.png
Thanks, Matty.
Jan 25th, 2010 at 12:13 pm
no problem man :)
Mar 29th, 2010 at 12:07 pm
Howdy,
can anyone tell me how to add to this bookmarks...the next pages:
* Twitter
* myspace
* google
* Live
* newsvine
If anyone would so good to poste the code! Tnx for your help!
Mar 29th, 2010 at 12:24 pm
Hi Tatsu,
Give these a try...