Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 71
  1. #11
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Twitter sidebox Cached

    Quote Originally Posted by rammerson View Post
    I installed this module and it worked fine. When I went to edit the username in the file specified in the help file and upload to my server it doesnt change the user?? Still your account.
    That shows the cache works! And glad to hear it works after all

    But to prevent this issue on new installs you can:

    - Edit the user setting before installation (the instruction to install and test first, and edit the settings afterwards, is to prevent bogus parse error reports cause by editing errors...)

    - Or use the hidden manual cache refresh feature (easier than editing the cache refresh period). It's possible to force a cache refresh by opening this url in your browser: www.yourdomain.tld/?refresh_twitter_cache (or http://www.yourdomain.tld/yourzensho..._twitter_cache if that's the location of your shop of course)
    (cache age needs to be > 60 seconds).
    Last edited by paulm; 12 Sep 2011 at 10:56 AM.

  2. #12
    Join Date
    Sep 2011
    Location
    Sydney, Australia
    Posts
    48
    Plugin Contributions
    0

    Default Re: Twitter sidebox Cached

    thank you for this plugin

  3. #13
    Join Date
    Apr 2008
    Location
    Athens
    Posts
    84
    Plugin Contributions
    0

    Default Re: Twitter sidebox Cached

    It not showing greek characters correct! Any fix?

  4. #14
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Twitter sidebox Cached

    Probably an error with the encoding.

    What is the encoding of your shop? UTF8?

  5. #15
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Twitter sidebox Cached

    The Twitter xml feed is UTF-8 encoded. If your shop uses ISO-8859-1 encoding, and you have problems with special characters, try the following fix:

    In includes/functions/extra_functions/twitter_cached_sidebox.php:
    After:
    Code:
    function twitterTextConverter($text){
      // url2link conversion
      $text = preg_replace("/([^A-z0-9])(http|ftp|https)([\:\/\/])([^\\s]+)/",' <a href="$2$3$4">$2$3$4</a>',$text);
      // shorten long links
      $text = str_replace('>http://www.', '>', $text);
    Add:
    Code:
      // convert UTF-8 to ISO-8859-1
      $text = iconv('UTF-8', 'ISO-8859-1//TRANSLIT//IGNORE', $text);

  6. #16
    Join Date
    Apr 2008
    Location
    Athens
    Posts
    84
    Plugin Contributions
    0

    Default Re: Twitter sidebox Cached

    It worked!!!! (ISO-8859-7 for the greek)

    Thank you very much!

    Quote Originally Posted by paulm View Post
    The Twitter xml feed is UTF-8 encoded. If your shop uses ISO-8859-1 encoding, and you have problems with special characters, try the following fix:

    In includes/functions/extra_functions/twitter_cached_sidebox.php:
    After:
    Code:
    function twitterTextConverter($text){
      // url2link conversion
      $text = preg_replace("/([^A-z0-9])(http|ftp|https)([\:\/\/])([^\\s]+)/",' <a href="$2$3$4">$2$3$4</a>',$text);
      // shorten long links
      $text = str_replace('>http://www.', '>', $text);
    Add:
    Code:
      // convert UTF-8 to ISO-8859-1
      $text = iconv('UTF-8', 'ISO-8859-1//TRANSLIT//IGNORE', $text);

  7. #17
    Join Date
    Oct 2011
    Posts
    1
    Plugin Contributions
    0

    Default Re: Twitter sidebox Cached

    this worked. im using japanese zen-cart. also follow the encoding solution...thanks paulm! this is great contri.

  8. #18
    Join Date
    Mar 2011
    Posts
    364
    Plugin Contributions
    0

    Default Re: Twitter sidebox Cached

    When someone is shopping or browsing and they click
    the Follow Us icon it changes the screen completely to Twitter's homepage.
    How can we make this actually open a separate page? I would think
    you wouldn't want your customers to leave your site.

  9. #19
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Twitter sidebox Cached

    @entoy: thanks for the compliments and feedback that it works on your Japanese site too

    willie bee: to open in a new window you could try to edit the template file and add target = blank to the links like this:
    HTML Code:
    <a href="#" target="_blank">
    (not literally!)
    I don't think it's valid HTML strict though, only transitional.

    #####################

    New version 1.10:
    - Tested on Zen Cart 1.5
    - Fix for other than 200 http responses from twitter
    Now the cache should be used (and not overwritten, as before) whenever the twitter response is not 200.
    - Automated character set conversion status (ISO-8859-1,UTF-8)

  10. #20
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: Twitter sidebox Cached

    Quote Originally Posted by paulm View Post
    @entoy: thanks for the compliments and feedback that it works on your Japanese site too

    willie bee: to open in a new window you could try to edit the template file and add target = blank to the links like this:
    HTML Code:
    <a href="#" target="_blank">
    (not literally!)
    I don't think it's valid HTML strict though, only transitional.

    #####################

    New version 1.10:
    - Tested on Zen Cart 1.5
    - Fix for other than 200 http responses from twitter
    Now the cache should be used (and not overwritten, as before) whenever the twitter response is not 200.
    - Automated character set conversion status (ISO-8859-1,UTF-8)
    for anyone wanting to open in new tab here is the code to replace (line 31?) in the template file tpl_twitter_cached_sidebox.php

    $content .= '<a target="_blank" href="http://twitter.com/#!/' . TWITTER_BOX_CACHED_USER . '" id="twitter-link">';


 

 
Page 2 of 8 FirstFirst 1234 ... LastLast

Similar Threads

  1. Twitter sidebox
    By karenkte in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Apr 2015, 05:25 PM
  2. Twitter Sidebox Addon link colors
    By habsolutely in forum Addon Sideboxes
    Replies: 0
    Last Post: 26 Sep 2011, 01:45 AM
  3. Facebook/Twitter images sidebox
    By dddmx3 in forum Addon Sideboxes
    Replies: 11
    Last Post: 3 Mar 2011, 05:39 PM
  4. Twitter sidebox only on home page
    By krazey in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Dec 2010, 09:04 PM
  5. twitter sidebox text overflow
    By healthstore in forum Addon Sideboxes
    Replies: 0
    Last Post: 14 May 2010, 02:44 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR