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

Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

I’ve trying this module (1.3), but now CP Module tab can’t load (I see only blank page). I’am trying this module first time… Any help?

Edit: sorry, that was my error in localized language file.

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

Hey Gabriel,

There is one issue that I spotted if your on a linux machine. It was an issue with the image paths in the css.

All paths to the image files should be lowercase

background-image:url(../../../../themes/cp_global_images/Lg_social_bookmarks_module/backgrounds/btn-active.png);

should be

background-image:url(../../../../themes/cp_global_images/lg_social_bookmarks_module/backgrounds/btn-active.png);

I have updated the download so you can get the replacement or just changed the css yourself.

If you create a localisation feel free to send it through and I’ll add it to the package.

Cheers

       
Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

Thanks. Anyway, I fond little error in you docs.

5. Copy the themes/cp_global_images/social_bookmarks directory to your /system/themes/cp_global_images directory.

Path should be: themes/cp_global_images/lg_social_bookmarks_module

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Thanks. Anyway, I fond little error in you docs. 5. Copy the themes/cp_global_images/social_bookmarks directory to your /system/themes/cp_global_images directory. Path should be: themes/cp_global_images/lg_social_bookmarks_module

Thanks Gabriel, all fixed.

       
Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

Great work Leevi. Amazing pieces of code 😉

       
PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

Hmmmm…this isn’t working…

Module-CP…As you can see in the attached screen grab, the favicons are ok but the background images aren’t coming in. I’m presuming it’s a javascript problem. The JS is in the “lib” subdirectiory of the lg_social_bookmarks directory.

Copied the sample code from the doc, changed the permalink but left everything else as is and get syntax error (please correct your syntax in the template). Probably related to the Javascript thing?

In the docs, this is somewhat confusing…In the sample code the permalink is like this…

{exp:social_bookmarks title="{title}" permalink="{url_title_path="template_group/comments"}"}

But in the instructions it states “The permalink to your weblog entry which must contain the full url.” and shows this…

permalink="http://leevigraham.dev/{template_group/template/}
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey PXLated..

Im super sorry but I missed a couple of updates in the documentation. I have corrected them now and as you can see on the documentation the module is working fine.

{exp:social_bookmarks} sould be {exp:lg_social_bookmarks}

tp://leevigraham.com/cms-customisation/expression-engine/addon/lg-social-bookmarks/#lg-social-bookmarks-tag

Regarding the backgrounds not showing this was a path issue that has been fixed… just grab the download again, no need to re-activate.

Sorry for the confusion

       
PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

Thanks Leevi…Works like a champ now.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Thanks Leevi…Works like a champ now.

No problem… If you find any other social bookmarking sites that you want added for the future just sent them through

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
17 years ago
Sean C. Smith's avatar Sean C. Smith

Just wondering why it was renamed? I now have two social bookmarking modules installed. One has a prefix of LG and the other does not. Is there an easy way to upgrade over the old module so I don’t have to change my code?

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

@ The Linguist:

I renamed the module so it would be more secure in the future.

It should be fairly easy to change your code, just change {exp:social_bookmarks} to {exp:lg_social_bookmarks} that should do the job.

I really should have added an upgrade method to change the table names etc. My Bad

Cheers

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
17 years ago
Sean C. Smith's avatar Sean C. Smith

good enough. Got everything working except the facebook favicon.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
good enough. Got everything working except the facebook favicon.

Is this in the icon in the admin or is it the link when the icon is clicked on the public side.

The facebook link is the only one which uses javascript at the moment. There may be an issue with quotes. In the example I use double quotes around the attributes which works fine.

{exp:weblog:entries weblog="news"}
  {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}
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

If it is just the icon try downloading the one from here: http://ellislab.com/forums/viewthread/55701/P36/#280429

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
17 years ago
Sean C. Smith's avatar Sean C. Smith

Leevi, it was my mistake, I uploaded the favicon to the wrong directory. Everything is sorted out now.

       
First 2 3 4 5 6 Last

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.