1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[SchmitzIT] Social Block Widget

Discussion in 'Add-on Releases [Archive]' started by SchmitzIT, Feb 8, 2011.

  1. SchmitzIT

    SchmitzIT Well-Known Member

    This is a small add-on allowing you to create a social block for your sidebar. At the moment it supports Facebook, Twitter, YouTube and LinkedIn, but I'm planning on adding additional social networking site. Suggestions or requests are most welcome.

    Enclosed in the zip-file are a bunch of icons from KomodoMedia I found while googling for social media icons. Perhaps some of the local graphics people have, or are willing to design better icons to be used. The included icons are in png format, and are 16 by 16 pixels, but I think 24 by 24 might be best.

    Installation instructions:
    Upload the contents of the zip to your XF folder, and import the XML file. When that is done, click on Appearance -> Templates -> sidebar_online_users. Insert the following code where you want the Social Block to appear:

    Code:
    <xen:if is="{$xenOptions.si_social_block_on_off}">
         <xen:include template="si_social_block" />
    </xen:if>
    
    In the screenshot, I put it between the Online Staff and Online Users code.

    Alternatively, if you use the [bd] Widget FrameWork, instead of doing the above template edit, configure the widget through the Framework.

    Configuration instructions:
    In your AdminCP, click on Options and find the Option Group [SchmitzIT] Social Block. You can add the identity for your social sites there, turn the individual icons on or off, and select what text should be shown in the title-tag of the images.

    Disclaimer:
    The add-on is provided "as is", and any express or implied warranties are disclaimed. In no event shall I be liable for any direct, indirect, incidental or consequential damages. In other words, use at your own risk.

    Those attempting to hold me liable anyway will be locked in a room with Bob Brisco for three weeks.

    Changelog:
    1.01 - Added image title tag, and removed the {$xenOptions.boardTitle} from phrases due to that not working.
    1.02 - Fixed some minor sloppiness on my end.
    1.03 - Added a new admin option for setting the title of the widget.
    1.0.4 - Corrected some phrases that somehow ended up looking weird.
    Added Flickr and RSS support.
    Created seperate downloads for the widget and non-widget framework version.
     

    Attached Files:

    cmeinck, Rob Fritz, Shelley and 2 others like this.
  2. yavuz

    yavuz Well-Known Member

  3. SchmitzIT

    SchmitzIT Well-Known Member

    I'm working on a small update. I mixed up the alt and title tag, and will address that :)

    Updated to version 1.0.1
     
  4. yavuz

    yavuz Well-Known Member

    "Those attempting to hold me liable anyway will be locked in a room with Bob Brisco for three weeks."

    LOL :D
     
  5. SchmitzIT

    SchmitzIT Well-Known Member

    Corrected a minor error.
     
  6. SchmitzIT

    SchmitzIT Well-Known Member

  7. Jaxel

    Jaxel Well-Known Member

    Your XenPorta module is redundant... instead of rewriting code... you can just do the following:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <module>
      <module_name>SchmitzIT_SocialBlock</module_name>
      <module_cache>+1 day</module_cache>
      <module_settings>
        <schmitzit_social_block_header desc="Show Sidebar Title Header?" format="check">1</schmitzit_social_block_header>
      </module_settings>
      <module_template><![CDATA[<xen:include template="si_social_block" />]]></module_template>
    </module>
     
    EntropiaPlanets likes this.
  8. gmaister22

    gmaister22 Active Member

    Nice addon :)
     
  9. SchmitzIT

    SchmitzIT Well-Known Member

    Even better :D
     
  10. Jaxel

    Jaxel Well-Known Member

    I tried to make it as easy as possible for people to create custom blocks on XenPorta... worst case scenario, all they need to do is set a variable map during a template include.
     
  11. Mikey

    Mikey Well-Known Member

    Isn't this very similar to what Miko and Pank over at themesinc.com have made with xenosociable?
     
    Miko and John like this.
  12. SchmitzIT

    SchmitzIT Well-Known Member

    That's possible. I mostly made it because prior to this I had the icons on my navbar and prefered something easier and less cluttered.
     
  13. SchmitzIT

    SchmitzIT Well-Known Member

    OP has been updated with the new XenPorta XML suggested by Jaxel.
     
  14. RickM

    RickM Well-Known Member

    Nice addon there :)

    Just one suggestion, if I may - on the screenshot I noticed its actually titled 'Social Block' in the sidebar. Wouldnt it be a bit more friendly (especially since I guess non-techy forum users dont have a clue what a 'block' is) to title it something like 'Social Links' or just' Social'?

    Just a minor thing but thought I'd mention it :p
     
  15. Crazyfruitbat

    Crazyfruitbat Well-Known Member

    Yeah I was thinking the same thing, or even a way that the admin can set what to call it would even be better
     
  16. Travis

    Travis Active Member

    Maybe make the title a Phrase?
     
  17. Travis

    Travis Active Member

    Any update on a Widget Framework Version?
     
  18. SchmitzIT

    SchmitzIT Well-Known Member

    Not yet.I got caught up in some other stuff yesterday. I might get it done today, though.

    And good idea on phrasing the title. Will get that implemented. Any requests for additional social sites to be added?
     
  19. SchmitzIT

    SchmitzIT Well-Known Member

    Heh. I actually did phrase it before. In any case, I now added an option to the admincp where you can change the title of the block to your heart's content.
     
  20. SchmitzIT

    SchmitzIT Well-Known Member

    For some reason the template change did not end up in the zip-file. I have updated the OP with the correct zip. My apologies.
     

Share This Page