The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Share Button (Svejo)

Go down

Share Button (Svejo) Empty Share Button (Svejo)

Post by ~PSYDEX~ August 7th 2009, 9:20 pm

"Svejo" (Fresh) is a Bulgarian share network (like Digg for exaple)
I wan't to adapt the code so it can read the curent URL so when i put it as a widget in the portal after every news , the users can share it ?

Here's the code:

http://svejo.net/reception/button


Last edited by ~PSYDEX~ on September 15th 2009, 11:37 am; edited 1 time in total
~PSYDEX~
~PSYDEX~
Forumember

Male Posts : 322
Reputation : 0
Language : Bulgarian
Location : Bulgaria

http://www.mobers.org

Back to top Go down

Share Button (Svejo) Empty Re: Share Button (Svejo)

Post by ~PSYDEX~ August 12th 2009, 6:15 pm

Come on guys ! It's should looks something like this:
Code:
<script type="text/javascript">
    var path    = 'psydex.forums1.net/';
    var regexp    = new RegExp("^http://(www.)?" + path + "([^/]+)\\.html(\\?.+?)?(#.+?)?$");

    svejo_url    = 'http://www.' + path + location.href.match( regexp )[2] + '.html';
    svejo_bgcolor='FFFFFF';
    svejo_skin='compact';
    svejo_theme='standard';
</script>
<script src='http://svejo.net/javascripts/svejo_button.js' type='text/javascript'></script>
~PSYDEX~
~PSYDEX~
Forumember

Male Posts : 322
Reputation : 0
Language : Bulgarian
Location : Bulgaria

http://www.mobers.org

Back to top Go down

Share Button (Svejo) Empty Re: Share Button (Svejo)

Post by ~PSYDEX~ September 15th 2009, 11:35 am

Bump! beu
~PSYDEX~
~PSYDEX~
Forumember

Male Posts : 322
Reputation : 0
Language : Bulgarian
Location : Bulgaria

http://www.mobers.org

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum