| View previous topic :: View next topic |
| Author |
Message |
Catweazle Newbie


Joined: Aug 07, 2010 Posts: 5
 
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
Catweazle Newbie


Joined: Aug 07, 2010 Posts: 5
 
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
Catweazle Newbie


Joined: Aug 07, 2010 Posts: 5
 
|
Posted: Sun Aug 08, 2010 11:43 am Post subject: |
|
|
Thanks alot mate!
That did the trick, sb-links are all good now
--
Regards,
Catweazle |
|
| Back to top |
|
 |
Catweazle Newbie


Joined: Aug 07, 2010 Posts: 5
 
|
Posted: Sun Aug 08, 2010 12:57 pm Post subject: |
|
|
| |
|
| Back to top |
|
 |
kguske Blingaholic


Joined: May 19, 2009 Posts: 24
   votes: 1
|
Posted: Sun Sep 12, 2010 2:02 pm Post subject: |
|
|
Stripping the tags from the title doesn't fully address this issue. There are extra characters and a nbsp space that still get passed with the bookmark's title.
You could do some more fancy stripping in includes/nukeSEO_SB.php, but you shouldn't need to waste the extra processing if the correct (i.e. raw) title is passed to the bookmark function (in fact, you won't need the changes above at all).
Look at the fix this section of my (indent-enhanced) modules/News/index.php (testing comments are left for your reference so you can follow it easier): Code:...
# die($title); // The title is still raw at this point
$articletitle = $title; // inserted here to pass the raw title to nukeSEO SB
if ($linklocation=="top"){
$title .= $toplink;
# } else {
# $title .= ''; // this does nothing
}
# Tricked Out News
if ($linklocation=='bottom'){
$morelink = $bottomlink .'<br>';
} else {
$morelink = '<br>';
}
# Tricked Out News
if ($bookmark=='1'){
# nukeSEO Social Bookmarking Tricked Out News
require_once('includes/nukeSEO_SB.php');
global $nukeurl;
$articleurl = $nukeurl."/article.html$sid";
# $articletitle = $title; // save the raw title above
$socialbookmarkHTML = getBookmarkHTML($articleurl, $articletitle, " ", "small");
$morelink .= ''.$socialbookmarkHTML.'';
# nukeSEO Social Bookmarking
}
# elseif ($bookmark=='0') echo ''; // this does nothing
# Control column mod Tricked Out News
...
|
_________________ nukeSEO(tm) |
|
| Back to top |
|
 |
kguske Blingaholic


Joined: May 19, 2009 Posts: 24
   votes: 1
|
|
| Back to top |
|
 |
Catweazle Newbie


Joined: Aug 07, 2010 Posts: 5
 
|
Posted: Sat Sep 18, 2010 6:04 am Post subject: |
|
|
I tried to comment out the two urlencode() lines,
Code:$mynukeurl = str_replace('&', '&', $mynukeurl);
// $mynukeurl = htmlentities(urlencode($mynukeurl));
$mynuketitle = str_replace('&', '&', $mynuketitle);
// $mynuketitle = urlencode($mynuketitle);
|
.. and the produced link is now ok.
Somewhere along the road I have lost the article title at the end of the produced link,
Code:http://www.stumbleupon.com/submit?url=http://mysite.com/article5.html?title=
|
.. but this is probably my own fault? - been fiddling around to much to get this right
NB: The exact url for my article are striped and changed by your board! See the "/article5.html?title=" part of the link...
Last edited by Catweazle on Sat Sep 18, 2010 7:25 am; edited 1 time in total |
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
|
|