Adding a link to node in extra voting forms?
I want to make it so that when you click the scorebg image it takes you to the scoop page (like when you click the digg button). I found where I need to add the link to the extra voting forms module but I have no idea how to call the link of the current node/scoop. Any ideas?
Starting around line 1382 in extra voting forms module:
$form .= '
sk_id.'">
'.$negative_karma_str.'
'.$karma_score_display.'
0?'_clicked':'_not_clicked').$clickable_string.'" for="u'.$o->sk_id.'">
sk_id.'" type="radio" name="karma_vote" value="'.$up_type_str.'"'.($default>0?' checked="checked"':'').'/>
Up
I have tried urlencode($url), $url, <?php print $node_url ?>, <?php print drigg_link($node) ?>, and everything else I could think of but nothing works. I am not a programmer at all and I can't seem to figure it out. Any suggestions or help would be greatly appreciated.
Thanks -
John
Think I fixed it
I used the '.$o->sk_id.' code to determine the node identifier and linked to < a href="node/'.$o->sk_id.'" >. This works well for the time being. The only problem is that it links to example.com/node/NODEID instead of the clean url alias. If anyone knows how to fix that let me know. Otherwise I will stick with this work around for now. Thanks.
Surround...
Hi,,
Surround the url with the call ulr(). That will translate it to the "good" URL. You REALLY don't want ANY links on your site to node/*** -- it's TERRIBLE for SEO.
Merc.
Thanks
Thanks so much Merc. For anyone else trying to do this I ended up using href="'.url('node/'. $o->sk_id, NULL, NULL, FALSE).'" and it works perfectly. I don't know if the NULL, NULL, FALSE part is necessary, but I used a snippet from somewhere else in the code to come up with what identifies the node. It works anyway.
Thanks again.
- john
That didn't display correctly, but...
hopefully someone will get the idea of what I am trying to do. If not I would be happy to try and clarify. Thanks.