SocialBookmarks and News Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Zappa
Forum Members
Forum Members
Posts: 53
Joined: Thu Jan 04, 2007 9:44 pm

SocialBookmarks and News Module

Post 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
rhamej
Forum Members
Forum Members
Posts: 33
Joined: Wed Jul 16, 2008 8:48 pm

Re: SocialBookmarks and News Module

Post 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
Post Reply

Return to “Modules/Add-Ons”