We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Social Bookmarks

Development and Programming

Todd Moffett's avatar
Todd Moffett
57 posts
17 years ago
Todd Moffett's avatar Todd Moffett

I cant seem to get the url to append to the bookmark. Here is what I have in my template.

{exp:lg_social_bookmarks title="{title}" permalink="{url_title_path="{template_group}/article"}"}
   <span class="Bookmarks">Bookmarks:
     {social_sites}
        <a href="http://{social_site_url}" title="Bookmark on: {social_site_name}">_        /themes/cp_global_images/lg_social_bookmarks_module/favicons/{social_site_img_url}_        </a>
     {/social_sites}
   </span>
{/exp:lg_social_bookmarks}

Then I get this in the url.

http://{url_title_path=
       
Todd Moffett's avatar
Todd Moffett
57 posts
17 years ago
Todd Moffett's avatar Todd Moffett

This wont work either. Also this has an extra closed bracket.

Try this:
{exp:lg_social_bookmarks title="{title}" permalink="{url_title_path='{template_group}/article}'}"}
You need to balance your quotes and close your variables 😊
       
Todd Moffett's avatar
Todd Moffett
57 posts
17 years ago
Todd Moffett's avatar Todd Moffett

Maybe someone can help here. When you click on a bookmark link the url is wrong.

http://www.malibumag.com

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
This wont work either. Also this has an extra closed bracket.
Try this:
{exp:lg_social_bookmarks title="{title}" permalink="{url_title_path='{template_group}/article}'}"}
You need to balance your quotes and close your variables 😊

Hey Todd,

Lets take this back a step…

Does:

{exp:lg_social_bookmarks title="{title}" permalink="{url_title_path='template_name/article}'}"}

Work… Notice I replaced the {template_group} variable with the actual template name

Can you also try

{exp:lg_social_bookmarks title="{title}” permalink=”{url_title_path=' {template_group}/article ‘}”}

Cheers

       
Todd Moffett's avatar
Todd Moffett
57 posts
17 years ago
Todd Moffett's avatar Todd Moffett
Hey Todd, Lets take this back a step… Does:
{exp:lg_social_bookmarks title="{title}" permalink="{url_title_path='template_name/article}'}"}
Work… Notice I replaced the {template_group} variable with the actual template name Can you also try {exp:lg_social_bookmarks title="{title}” permalink=”{url_title_path=' {template_group}/article ‘}”} Cheers

Still nothing. This is what shows up when I try to bookmark to my delicious account.

http://{url_title_path=� site/article �}

I tried the first one as well. But I think you have the syntax wrong. I don’t think you need the first closed bracket after the template. Regardless it didnt work either.

       
seajay's avatar
seajay
109 posts
17 years ago
seajay's avatar seajay

I am seeing the following in every one of the bookmark links, with or without the fetch_current_uri plug-in installed.

{exp:lg_social_bookmarks title="{title}" permalink="{exp:fetch_current_uri}"}
http://del.icio.us/post?url={exp:fetch_current_uri}&title=Anthony….

Edit: By the way, this correctly includes TEST within the final rendered links.

{exp:lg_social_bookmarks title="{title}" permalink="TEST"}
http://del.icio.us/post?url=TEST&title=Anthony….
       
Jim Wyse's avatar
Jim Wyse
213 posts
17 years ago
Jim Wyse's avatar Jim Wyse

Kewl Module. I work for a major University, having the social bookmarks is a very nice thing to have. We are using EE for a grant funded project on the History of London.

Everything seems to work, except that I’m getting this error on: http://omega.www.umb.edu/~londonweb/index.php/west_end/covent_garden/

Notice: Trying to get property of non-object in /home2/londonweb/html/system/modules/lg_social_bookmarks/mod.lg_social_bookmarks.php on line 77

I don’t get the nice icon driven cp, just a list of check boxes? It works, but doesn’t look as cool as your screen shot.

Here’s my code block:

{exp:weblog:entries weblog="westend"}
  <h2>{title}</h2>
  {body}
  {exp:lg_social_bookmarks     title="{title}"permalink="http://omega.www.umb.edu/~londonweb/index.php/site/west_end/"}
    Enjoy this post? Share it with others.
    <ul>
      {social_sites}
        <li>
          <a href="http://{social_site_url}" title="Bookmark on: {social_site_name}">_            {site_url}themes/cp_global_images/lg_social_bookmarks_module/favicons/{social_site_img_url}_            <span>Bookmark on {social_site_name}</span>_          </a>
        </li>
        {/social_sites}
    </ul>
  {/exp:lg_social_bookmarks}
{/exp:weblog:entries}

See anything funky?

fyi I just tried including the sites=”Digg|del.icio.us”, and the error went away.

EE v1.6.3

Thanks, James

       
sambo's avatar
sambo
80 posts
17 years ago
sambo's avatar sambo

Hi,

great plugin 😉

I am having some minor problems though and was hoping you could point out my mistake. This is my code:

{exp:lg_social_bookmarks title="{title}" permalink="{exp:fetch_current_uri}"}
...html code...
{/exp:lg_social_bookmarks}

But there are two problems:

  • {exp:fetch_current_uri} is not parsed. It just shows up like it is. I have tried to use PHP to fetch the uri and it works but the / are all meshed up.

  • The titles are also meshed up. Most likely because the have special characters. i guess it is an encoding issue.

Any suggestions?

Best, Sammi

       
Paul B's avatar
Paul B
241 posts
17 years ago
Paul B's avatar Paul B

Evening Leevi,

I’ve installed Lg Social Bookmarks on two different sites. One installation works perfectly, the other is showing odd behavior.

The only difference is that the second install is on an MSM set up.

Two issues: 1. the CP list shows up as a vertical list with zero styling. See attachment.

  1. When clicking on any of the bookmark icons from the main site blog, the link that is captured is identical for every bookmarking site - always captures the home page regardless of the Blog page - in other words, the {title} of the article never gets captured in the URL. Example here

Any thoughts? Is MSM an issue?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

No not really a MSM isue pobably more of a hard coded paths issue. You might need to break open the code and see where the jaascript and styles are being added to the page.

I don’t really have much time to fix Social Bookmarks at the moment so a hack job is your best bet.

       
tbritton's avatar
tbritton
714 posts
17 years ago
tbritton's avatar tbritton

Leevi,

I’m trying to get a client to use your social bookmarks module on their site, but what inspired them was a Wordpress plugin called bookmarkify, which features a “view more bookmark options” pop-up window that shows all the possible icons.

I’m wondering if this could be incorporated into a template or separate pop-up. The issue, of course, is how to pass the url to the second template, but will probably use a segment variable testing segment_4 as my first attempt to make it work.

Have you thought about that kind of utility for your module, and if so, have you discovered anything that should be mentioned to discourage me from wasting my precious time??? 😉

Thanks for the module - I’ll be telling others about it - I love it!

Terry

       
Danny T.'s avatar
Danny T.
426 posts
17 years ago
Danny T.'s avatar Danny T.

Terry,

I recall there was a module out there that determined that URL of the current page. I can’t put the name together on top of my head but I know it exists. I’ll look into a bit more to see if I can find it, but I’m sure you can use that module to pass the URL to an embedded template to do what you want.

UPDATE: I think this what be might be what you’re looking for: Fetch Current URI Plugin by Mark Bowen, the walking hard drive of EE.

Danny

       
MaxDulux's avatar
MaxDulux
22 posts
about 17 years ago
MaxDulux's avatar MaxDulux

Hi Leevi,

I don’t know why this is happening, but when and where ever I insert your code on a page the out put in the browser keeps repeating and the unordered list seems to keep nesting the li items.

Why? What obvious this am I missing here?

I have searched (read all of the posts on this thread) and no one seems to expereience the same issue.

here is my code;

{exp:weblog:entries weblog="mynss"}
  {exp:lg_social_bookmarks title="{title}" permalink="{url_title_path="template_group/comments"}"}
    Enjoy this post? Share it with others.
    <ul>
      {social_sites}
        <li>
          <a href="http://{social_site_url}" title="Bookmark on: {social_site_name}">_            /themes/cp_global_images/lg_social_bookmarks_module/favicons/{social_site_img_url}_            <span>Bookmark on {social_site_name}</span>_          </a>
        </li>
        {/social_sites}
    </ul>
  {/exp:lg_social_bookmarks}
{/exp:weblog:entries}

screen shot of what this kicks to the browser is attached. weird huh? Any ideas? I am fairly sure that I did the installation of the module correctly.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Hey Guys,

I have decided to rebuilf LG Social Bookmarks over the next couple of days adding everything I have learnt since this module was first built. Hopefully the issues addressed in this thread will be resolved.

So I’m throwing it out there now.

Which social bookmarking sites would you like to see in the module by default? Any other features you would like to see?

Cheers Leevi

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith
Which social bookmarking sites would you like to see in the module by default?

Facebook, Delicious (those are the only ones I use) - I’m sure there are a ton of others that will be requested though.

       
First 5 6 7 8

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.