Page 1 of 1

SocialBookmarks and News Module

Posted: Mon Mar 17, 2008 1:09 pm
by Zappa
Hi. I'm running CMS Made Simple 1.2.3 with socialBookmarks 1.0.

I've added the social bookmarks plugin into the news module detailed page hoping that a user can submit the news article to the different social networking websites (Digg, NewsVine etc)

I'm using the tag

Code: Select all

{socialBookmarks target="_blank" submitto="all"}
When I click on one of the icons to submit it to the social networking websites the code only misses out the news article url and just inputs the news url.

Code: Select all

http://del.icio.us/url=http%3A%2F%2Fwww.mysite.com%2Fnews%2F 
(/news/)

but it should be...

Code: Select all

http://del.icio.us/url=http%3A%2F%2Fwww.mysite.com%2Fnews%2F20%2F54%2F
(/news/20/54/)

Is there a way how to modify the plugin so it can include the news article url extension?

Thanks

Re: SocialBookmarks and News Module

Posted: Wed Nov 19, 2008 2:07 pm
by rhamej
Little late, but just came across this.
Find:

Code: Select all

$url = urlencode($curcontent->GetURL()); // url of current page
Replace it with

Code: Select all

$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; // url of current page