Page 4 of 4 FirstFirst ... 234
Results 31 to 38 of 38
  1. #31
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: Facebook/Twitter Module

    Bingo, i think i got it....


    Code:
    <?php
    /**
     * Product Type - allows you to show a sidebox that will list Product Types.
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: product_type.php 2007-05-26 kuroi $
     */
    
      $content = '';
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
      $content .= '<a href="http://www.facebook.com/pages/The-Esoteric-Emporium/145421388812693?sk=wall"><img src="images/fb.png" width="50" height="50" alt="Facebook" /></a>&nbsp;&nbsp;<a href="http://twitter.com/YOUR-TWITTER-HERE"><img src="images/tw.png" width="50" height="50" /></a>';
      $content .= '</div>';
    ?>

  2. #32
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Facebook/Twitter Module

    Glad it's working now! You'll notice that the functional difference between your original social.php module file and the final version is that the standard code layout calls the tpl_ file before the $column_box_default file, while you had $column_box_default before the content. I was remiss in not checking on that when I thought your coding was unusual.

  3. #33
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: Facebook/Twitter Module

    Quote Originally Posted by gjh42 View Post
    Glad it's working now! You'll notice that the functional difference between your original social.php module file and the final version is that the standard code layout calls the tpl_ file before the $column_box_default file, while you had $column_box_default before the content. I was remiss in not checking on that when I thought your coding was unusual.
    Wasnt just that change either, it was also the coding in the TPL that was changed, however i will upload the mod to Zencart so everyone else can put it on their site if they wish.

  4. #34
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Facebook/Twitter Module

    The require for the tpl_ file has the same effect as putting the code right in the module file - it's the sequence that makes a real difference. You now have code executing in the right sequence.

    It will be good to have a packaged set of the right files for that... be sure to look at the mod submission guidelines when putting it together.
    Last edited by gjh42; 19 Apr 2011 at 02:36 AM.

  5. #35
    Join Date
    Nov 2007
    Location
    Sheboygan
    Posts
    5
    Plugin Contributions
    0

    Default Re: Facebook/Twitter Module

    I have a quick question please........when I 1st installed everything working fine.......but now I have no log in on the twitter side......

    Blank white screen with the info box on top on twitter page.

    show as http://twitter.com/#!/WAW_JonJay when it use to do http://twitter.com/WAW_JonJay.

    Did something get messed up??

  6. #36
    Join Date
    Mar 2011
    Posts
    160
    Plugin Contributions
    0

    Default Re: Facebook/Twitter Module

    Hi guys. I downloaded this mod for twitter and facebook. I was able to install it, the only thing that I would like the links to open in a new window so that my customers dont leave the site. Can someone please help with this.

    This is the code:

    <!-- Start Facebook&Twitter Links -->
    <br />
    <br />
    <center>
    &nbsp;&nbsp;<a href="http://www.facebook.com/bequjuice"><img src="images/social/fb.png" width="50" height="50" alt="Facebook" /></a>&nbsp;&nbsp;<a href="http://twitter.com/bequjuice"><img src="images/social/tw.png" width="50" height="50" /></a>&nbsp;&nbsp;
    </center>
    <!-- End Facebook&Twitter Links -->

    Thanks

  7. #37
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Facebook/Twitter Module

    Add target="_blank" to the <a href> links, like this:

    <a href="http://www.facebook.com/bequjuice" target="_blank">

  8. #38
    Join Date
    Mar 2011
    Posts
    160
    Plugin Contributions
    0

    Default Re: Facebook/Twitter Module

    Perfect. Thanks!

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. v151 Facebook, Twitter, Youtube
    By missnura_com in forum General Questions
    Replies: 1
    Last Post: 14 Jan 2013, 06:56 AM
  2. v150 Facebook google plus twitter
    By oitem in forum General Questions
    Replies: 0
    Last Post: 4 Jun 2012, 06:56 PM
  3. facebook and twitter buttons
    By alfonso99 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Jul 2011, 02:23 PM
  4. facebook and twitter
    By deemurphy in forum General Questions
    Replies: 2
    Last Post: 9 Apr 2010, 09:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg