Twitter Widget update and localization issues

resolved (20 posts) (3 voices)

  1. Ecirb
    Member

    Hello,

    I have issues with the Twitter widget.

    The first is that it almost always show the default message instead of my tweets. Is this due to Twitter itself being overloaded as I have read or any other suggestion for me?

    Second point is that it actually does appear sometimes (let's say 10% of pages upload with tweets), but all French accentuated letters are replaced with a strange symbol - hints me that UTF-8 is not used but maybe there is another explanation... (I wanted to attach a screen capture for you but I can't find how)

    Last, I can't find where to translate in French the widget title "Recent Tweets" (I'm sure I'd find after a while and wouldn't post only for this but while we're here... :D)

    Thank you for your help, this is a great feature and I really hope it will work! :)

    Brice

    Posted 1 year ago #
  2. Ecirb
    Member

    Ha! This has attachments so here's my screen capture...

    Attachments

    1. twitter-issues.jpg (69.6 KB, 0 downloads) 1 year old
    Posted 1 year ago #
  3. Dorian
    Support

    Brice,

    Ok. First things first!

    How to change the widget's title:

    Open up the widgets.php file located under \lib\functions\ folder of your inFocus' installation. Look for line 63, which looks like this:

    echo $args['before_title'] .'Recent Tweets'. $args['after_title'];

    Change it accordingly.

    And for the other issues, I will need to see a link to your website. If you don't want to make it public at this time, please drop me a private message.

    Best Regards,
    Dorian

    Posted 1 year ago #
  4. Ecirb
    Member

    Hello Dorian,

    no worries, I'm working on the site right now (to include these great social media icons and a few other improvements), but the twitter feed is set to appear in the blog header (last tweet) and column (last 5 tweets) here :
    http://www.actone.net/actualites-articles/

    I should tell you though, the tweets almost never appear. I was actually surprised to see them and made a screen capture, which is how I could spot the issue about accentuated letter... When they don't show up, I set the standard default phrase to be "Pas de tweets !" (which means "No Tweets!" in French)

    Thanks for your help,

    I'll go change the title right away! :)

    Cheers,

    Brice

    Posted 1 year ago #
  5. Ecirb
    Member

    I just realized (and remembered...) : I can't use letters with accents in the Widget.php for the titles either actually (if I do they just don't appear).

    I find a workaround by using similar words without accents in French, but I can't do it for the content of the tweets... :S

    Hope this helps... :)

    Posted 1 year ago #
  6. Dorian
    Support

    Hello Brice,

    Yes you can! Just switch to ansii / utf-8 editing in your editor, and save it that way. This should let you use any type of character including accents and so on!

    Regarding the tweets, I've accesed your website almost 10 times now using different browsers and they seem to work just fine. Did you manage to fix this by yourself?

    Best Regards,
    Dorian

    Posted 1 year ago #
  7. Ecirb
    Member

    Hello Dorian,

    unfortunately, neither me nor my friends from their offices or home can show the Twitts... :( I tried several times after reading your post, all I get is the default message that I wrote. I don't understand why, and I feel really sorry for this because I actually use twitter quite efficiently in my line of work. I really hope we'll sort this out.

    As for the other point... I need your help on your help ! ;D I'm not sure what you mean by "switch to ansii / utf-8 editing in your editor"... Could you explain me how?

    Thank you for coming back to me on this. Best regards,

    Brice

    Posted 1 year ago #
  8. Dorian
    Support

    Hello Brice,

    I really can't say what the issue is because I can't see them anymore either! I'll ask the devs to come and take a look at this as I really can't figure this out!

    Regarding my explanation: I'm using Notepad++ myself, and I have attached a screenshot of what I mean exactely.

    Best Regards,
    Dorian

    Attachments

    1. encoding.jpg (120.9 KB, 0 downloads) 1 year old
    Posted 1 year ago #
  9. Ecirb
    Member

    Hello Dorian,

    Wow! You've just moved up one rank from "great help" to "savior"!!! :)

    So I actually had to use a 2-step process : first "convert to UTF-8", which turned all my accentuated letters into strange graphic symbols in the php file, then rewrite the texts properly and encode in UTF-8... And ta-dam!

    This actually solved a lot other issues for me that I never bothered mentioning to you: I can now use accents in the title of the widgets (re-encoded the widgets.php file) and in the content (for instance the message when research doesn't match existing blog posts). It's a huge relief!

    But... I still can't get the Twitter widget to work. So I'll give it some more tries and thoughts but I've been on it one hour already and not sure what to do next.

    Here's the bright side to it: when we'll have solved this twitter issus, you'll have moved up one more rank from "savior" to "hero" and there's no rank above that one! :D

    Cheers,

    Brice

    Posted 1 year ago #
  10. Ecirb
    Member

    Damn... I get a full white screen and these strange error messages every time I change a note or a page from the admin now:

    Warning: Cannot modify header information - headers already sent by (output started at /homez.52/actone/www/wp-content/themes/infocus/lib/functions/widgets.php:1) in /homez.52/actone/www/wp-includes/classes.php on line 1601
    or
    Warning: Cannot modify header information - headers already sent by (output started at /homez.52/actone/www/wp-content/themes/infocus/lib/functions/widgets.php:1) in /homez.52/actone/www/wp-includes/pluggable.php on line 890

    All I did was reincode in utf-8, no other file modification in widgets.php and the change in the note or the page is still taken into account in spite of the error message, it's just annoying because I have to reaload the admin page from my favorites or history

    Any idea on what went wrong? :S

    Posted 1 year ago #
  11. Dorian
    Support

    Hello Brice,

    I know why this is happening actually, but I will need your FTP access to fix this for you. Could you please forward me your login information for both WP and FTP via a Private Message?

    Best Regards,
    Dorian

    Posted 1 year ago #
  12. Ecirb
    Member

    Hello,

    I've changed the encoding to "utf-8 without BOM" and I no longer have the strange error message (I don't know if it's the issue but one way or another it made things better...)

    If you can solve my Twitter Issue widget and make it work properly however I'd really be thrilled (not to mention you're that close to having a good localization process to publish in your documentation if needed! :D)

    I sent you the PM with ftp codes. Let me know how it turns out and thanks again for taking such great care of your client's requests, I truly appreciate it.

    Best regards,

    Brice

    Posted 1 year ago #
  13. Ecirb
    Member

    Tweeted today for Burson Story.. And had a strange apostrophe issue too! A clue? Maybe this IS localization issue after all... :S

    Attachments

    1. Tweeter-and-apostrophe.png (15.6 KB, 0 downloads) 1 year old
    Posted 1 year ago #
  14. Dorian
    Support

    Hello Brice,

    Apostrophe's are usually parsed by PHP and the "\" symbol inserted over there is to prevent SQL injection. I can make them not display ( as I am just connecting to your FTP) for the future tweets.

    Best Regards,
    Dorian

    Posted 1 year ago #
  15. Ecirb
    Member

    Hello Dorian

    So I understand we'll merge the two threads on my issues.

    This last post was meant on my first issue with the Twitter icon in "spread the news": it doesn't work if the post title has an apostrophe in it... You can double check this for instance if you try to use the icon bar to tweet this post: http://www.actone.net/animation/la-minute-dact-one-10-idees-sinon-rien/

    At this stage, I could never get it to work: the twitter message will stop at the first apostrophe... I really don't know why. It also doesn't work with my friends who access the website with other computers or browsers from other places.

    Regarding this second issue, I leave it completely in your hands to find out why the InFocus Twitter widget doesn't work and my messages don't show up in the right column of the blog, which you can find here:

    http://www.actone.net/articles/

    At this point, I think the two sides of the problem mentioned in my very first message on this thread are still unsolved. I reverted back to the original files to make sure I didn't make anything worse. I then encoded utf-8 as suggested and changed the Twitter Widget title to French, but nothing else and I still have the default message "No public Twitter messages." showing 99% of the time...

    Of course, I can live without the Twitter widget on this website, and I have already found a way around it which is to insert the RSS feed from my company's twitter account right below the Twitter widget as a backup. But I really liked this feature in the template and still don't understand why it doesn't work :(

    If you find any solution to make the tweets show up, I'll be a 110% happy customer! ;)

    So I cross my fingers and let you find out if you can do anything for me.

    Best regards,

    Brice

    Posted 1 year ago #
  16. Ecirb
    Member

    Just a quick update to tell you I still have these messages : "Warning: Cannot modify header information - headers already sent by (output started at /homez.52/actone/www/wp-content/themes/infocus/lib/functions/widgets.php:1) in /homez.52/actone/www/wp-content/themes/infocus/lib/admin/admin-interface.php on line 414"

    Have you had a chance to use the ftp codes I sent you? I thought it was gone, but obviously I still have the issue and I can't understand why.

    For twitter, I think I'll move on to another plugin which works with international letters, probabaly Twitter Blender. Thanks for trying though... :)

    Posted 1 year ago #
  17. Ecirb
    Member

    Hello Dorian,

    I'm working hard to get my website up and running for official launch next week... And this error message bug is making my life miserable. Everytime I change anything on any page or setting, I get a white screen with a message such as this:

    Warning: Cannot modify header information - headers already sent by (output started at /homez.52/actone/www/wp-content/themes/infocus/lib/functions/widgets.php:1) in /homez.52/actone/www/wp-includes/pluggable.php on line 890

    It's clearly connected to coding utf-8 the widgets.php file... But if I don't the French letters with accent are not displayed by the InFocus widgets. I'm really stuck with this... please have mercy, if you know a way to get me rid of the error messages you would make me gain a lot of time and save me a lot of trouble this week-end!

    Thanks for your help :)

    Posted 1 year ago #
  18. Elliott
    Support

    I'm not sure if changing the encoding will cause that error Ecirb, but that error is usually caused by having whitespace above and/or below the <?php ?> tags.

    Open up your widgets.php file and check to make sure there is no whitespace like this,

    <?php // No whitespace in front of this line
    
    // The code like usual
    
    ?> // No whitespace after this line
    Posted 1 year ago #
  19. Ecirb
    Member

    So... We can close this thread at last! ;D

    I tried your idea, without success. But I found a way in the process: It definitely comes from encoding, but I coded utf-8 to integrate accentuated letters (which didn't appear otherwise)... And then I coded back to ansi and it works: accentuated letters for the Widget title remain, and I don't have the error message anymore.

    It's been a tedious process but in the end I'm perfectly happy with the result. Thanks for bearing with me, interacting is the best way to find appropriate solutions! :)

    Cheers,

    Brice

    Posted 1 year ago #
  20. Elliott
    Support

    Thanks for posting your solution Ecirb, this will be a valuable resource to other users.

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme