Recent Topics

1 Jun 07, 2008 20:38    

Can anyone help me figure out how to modify this code:

<script type="text/javascript">submit_url = 'http://yoursite.com/linkedpost.html';</script>
<script type="text/javascript" src="http://cyclecluster.com/evb/button.php"></script>

So that it will be able to have the correct links (permalink) to each individual posts, similar to what we have for the other buttons for the BAE Social Bookmark? I'm super stumped by this.

This button is from this website in case you want to see it for reference: http://cyclecluster.com/vote_button.html

Any help would be appreciated. Thanks!

2 Jun 09, 2008 02:54

Something like:

<script type="text/javascript">submit_url = '<?php echo $Item->permanent_link(); ?>';</script>
<script type="text/javascript" src="http://cyclecluster.com/evb/button.php"></script>

Good luck

3 Jun 09, 2008 18:33

it was close..but the url of the post didn't get included in the click. if you don't have any more suggestions, i think i can try to work with what you've started. thank you.

4 Jun 09, 2008 19:31

<script type="text/javascript">submit_url = "<?php echo $Item->get_permanent_url(); ?>";</script> 

¥

5 Jun 10, 2008 04:07

Thanks for the reply. Your code ended up the same way so i played around a bit more and also decided to host a new button on my own that matches the rest of the social bookmarks to get this:

<a title="Add to cyclecluster" target="_blank" href="http://cyclecluster.com/submit.php?url=$permanent_url$&title=$title$"><img border=0 src="/plugins/socialbookmarks_plugin/cyclecluster.gif" width="16" height="16" border="0" /></a> 

Thanks for directing me in the right direction!


Form is loading...