Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Sakae on August 26, 2008, 07:55:10 PM

Title: Twitter Profile
Post by: Sakae on August 26, 2008, 07:55:10 PM
Twitter Profile MOD v2.2
By softcore (http://custom.simplemachines.org/mods/index.php?action=profile;u=106692)


Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1351) | Support Topic (http://www.simplemachines.org/community/index.php?topic=257943.0) | Demo (http://www.tigrelog.com.br/) (l: simple p: machines)



MOD NO LONGER UPDATED. USE AT YOUR OWN RISK OR FOLLOW THIS SUGGESTION:

Quote from: Dismal Shadow on April 27, 2010, 10:04:57 PMFor anyone who have been wondering....you don't need this mod with this tutorial:Social Media Icons in Profile Field Tutorial (http://www.simplemachines.org/community/index.php?topic=374284.0) for 2.0 RC2-RC3
Compatibility

For SMF 1.1.x and SMF 2.0

Features

This modification allows you to add a Twitter icon linked to your Twitter address in your profile.

Includes the following languages (please help me with more!)I welcome more translations on the support topic!

Installation

If you already have Twitter MOD v1.x working on your board, you don't need to install v2.0.

For SMF 1.1.x: This mod only changes TEMPLATE FILES. For install in other themes, just copy the file twitter.gif to it's image folder (your theme/images).

For SMF 2.0 RC1: Don't forget to install in your theme ("Install in other themes" option).

Changelog

Version 2.2 (June 3, 2009)
* Fixed CRITICAL BUG (thanks to General Naga);
* Added Spanish and Turkish (both normal and UTF8) languages.

Version 2.0 (May 20, 2009)
* PLEASE USE FIX-TwitterMODv2.zip!

Version 1.1 (May 12, 2009)
* English (UTF-8), French and French (UTF-8) supported (thanks to Saesee).

Version 1.0 (August 25, 2008)
* Supports the following languages: English, Portuguese Brazilian and Portuguese Brazilian (UTF-8).
Title: Re: Twitter Profile
Post by: Kimmie on August 27, 2008, 02:46:54 PM
ok I'll bite...


What the heck is a "Twitter"?  lol
Title: Re: Twitter Profile
Post by: ccbtimewiz on August 27, 2008, 03:40:43 PM
http://twitter.com/
Title: Re: Twitter Profile
Post by: Sakae on August 27, 2008, 05:52:06 PM
Quote from: Kimmie on August 27, 2008, 02:46:54 PM
ok I'll bite...


What the heck is a "Twitter"?  lol

Also, read this: http://www.twittown.com/blogs/jaiku/google-buys-twitter-competitor-jaiku

It's a growing online community. If there's a Google interest, it must be important. Right?...
Title: Re: Twitter Profile
Post by: beatlemanu on September 18, 2008, 09:27:14 AM
Hi,

I got this error when I tried to install on SMF 1.1.5

3. Execute Modification ./Themes/default/languages/Modifications.english.php File not found  

Is this setup for English-utf8.php and not english.php????

Please let me know, thanks...
Title: Re: Twitter Profile
Post by: RoarinRow on September 19, 2008, 01:06:11 PM
Cool, thanks for this mod!   8)
Title: Re: Twitter Profile
Post by: Sakae on September 26, 2008, 05:24:19 PM
Quote from: beatlemanu on September 18, 2008, 09:27:14 AM
Hi,

I got this error when I tried to install on SMF 1.1.5

3. Execute Modification ./Themes/default/languages/Modifications.english.php File not found  

Is this setup for English-utf8.php and not english.php????

Please let me know, thanks...

Hi, sorry for taking so long.

You erased Modifications.english.php of your languages default theme folder? Try to upload this file to your server and try again.

Quote from: RoarinRow on September 19, 2008, 01:06:11 PM
Cool, thanks for this mod!   8)

Thank you :)
Title: Re: Twitter Profile
Post by: RoarinRow on September 26, 2008, 05:40:37 PM
Do you know when you might have this for SMF 2.0 beta 4?   :)
Title: Re: Twitter Profile
Post by: Sakae on September 27, 2008, 11:18:21 AM
Quote from: RoarinRow on September 26, 2008, 05:40:37 PM
Do you know when you might have this for SMF 2.0 beta 4?   :)

Man.... Feel free (or anyone else) to create a update for this mod to SMF 2. I'll only make one if I move to 2.0, and I won't do that 'till it's a beta version.

ps.: Added a screenshot (using Outline-TP Theme)
Title: Re: Twitter Profile
Post by: bjraines on October 16, 2008, 07:29:32 PM
how does this work? i looked at the code and it doesn't make a new database field?
Title: Re: Twitter Profile
Post by: Low on December 07, 2008, 04:19:58 PM
Doesn't work!

Applies correctly but no twitter icon or text show with no clear instructions for adding your twitter profile. under profile settings it has

MSN
YAHOO
:

I'm assuming the : is for Twitter?

Either way I added my Twitter to it but the image isn't found.

Thanks anyway as once sorted this will be a great mod.

Louis
Title: Re: Twitter Profile
Post by: Sakae on December 08, 2008, 01:38:56 AM
Quote from: Low on December 07, 2008, 04:19:58 PM
Doesn't work!

Applies correctly but no twitter icon or text show with no clear instructions for adding your twitter profile. under profile settings it has

MSN
YAHOO
:

Louis, what language are you using? If it's not english or portuguese-BR, you might want to add this bit of code in your language file:

$txt['twitter_title'] = 'Twitter';
            $txt['twitter_desc'] = 'Enter your USERNAME on Twitter (i.e. if your Twitter link is http://www.twitter.com/john_doe, enter john_doe here)';


Also, if you're using other theme than default one, you'll need to change the Profile and Display templates files.
Title: Re: Twitter Profile
Post by: Sakae on December 08, 2008, 01:39:34 AM
Quote from: bjraines on October 16, 2008, 07:29:32 PM
how does this work? i looked at the code and it doesn't make a new database field?

It doesn't, but it works (!) :)
Title: Re: Twitter Profile
Post by: seeson on January 26, 2009, 12:46:38 AM
I've just installed this mod on 1.17 and there's a link to my twitter profile (displays my linked twitter username in text), just no icon. i installed the package via forums. please help! thanks!
Title: Re: Twitter Profile
Post by: seeson on January 26, 2009, 01:16:33 AM
Nevermind! I just manually uploaded the twitter.gif to my theme's images folder and it worked. ;)
Title: Re: Twitter Profile
Post by: blath on February 04, 2009, 08:58:53 PM
Obrigada!, very nice. :)

I'm using default  theme version 1.1.7 and encountered that blank Twitter description in the profile page that was described earlier by Low.

I fixed this by simply adding what was added the 'Modifications.english.php' to 'Modifications.english-utf8.php'.

ie

Find:
Quote
?>

Add Before:
Quote
$txt['twitter_title'] = 'Twitter';
$txt['twitter_desc'] = 'Enter your USERNAME on Twitter (i.e. if your Twitter link is http://www.twitter.com/john_doe, enter john_doe here)';

So if anyone encounters this problem there you go.

May want to include this as an option in the instruction set.

Thanks again for the Twitter modification. :) Have a wonderful 2009.
Title: Re: Twitter Profile
Post by: bork on February 26, 2009, 07:40:32 AM

Where does this mod store the twitter username?

I can't see any database code.
Title: Re: Twitter Profile
Post by: GazOutEast on March 03, 2009, 10:28:00 AM
Just tried it on SMF 2.0 RC1 and it failed installation

*     1.     Execute Modification     ./Themes/default/Profile.template.php     Test failed
      1.    Add After    ./Themes/default/Profile.template.php    Test failed
      2.    Add After    ./Themes/default/Profile.template.php    Test failed
*    2.    Execute Modification    ./Themes/default/Display.template.php    Test failed
      1.    Add After    ./Themes/default/Display.template.php    Test failed
3.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test successful

I guess it's not ready for SMF 2.0 yet - shame
Title: Re: Twitter Profile
Post by: Sakae on March 07, 2009, 10:35:58 PM
Quote from: bork on February 26, 2009, 07:40:32 AM
Where does this mod store the twitter username?

I can't see any database code.

Huh?

Quote from: GazOutEast on March 03, 2009, 10:28:00 AM
Just tried it on SMF 2.0 RC1 and it failed installation

*     1.     Execute Modification     ./Themes/default/Profile.template.php     Test failed
      1.    Add After    ./Themes/default/Profile.template.php    Test failed
      2.    Add After    ./Themes/default/Profile.template.php    Test failed
*    2.    Execute Modification    ./Themes/default/Display.template.php    Test failed
      1.    Add After    ./Themes/default/Display.template.php    Test failed
3.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test successful

I guess it's not ready for SMF 2.0 yet - shame

Guess right, it isn't. And my plans of updating are: Who wants to code that?
Title: Re: Twitter Profile
Post by: Smoky "Rider" Blue on March 08, 2009, 03:07:12 PM
/me thinks.. perhaps Babjusi??  O:) ;)
Title: Re: Twitter Profile
Post by: GazOutEast on March 09, 2009, 02:59:08 AM
Whoosh Smokey ;) that went straight over my head - care to elaborate?

(PM me if you don't want to post it here)

Thanks
Gaz
Title: Re: Twitter Profile
Post by: Smoky "Rider" Blue on March 09, 2009, 11:27:54 AM
i meant perhaps you could ask Babjusi to help you get it up to date for the rc..

is that not what you are stumpted on??  ;)  looks like a very kewl mod.. congrats!!

(even tho im a bit late lol)  :)
Title: Re: Twitter Profile
Post by: GazOutEast on March 09, 2009, 01:08:13 PM
Ah OK - I'm not the author, but appreciate the thought

I might have a bash at updating it myself - as far as I've seen so far, the only stumbling block is that the line in inserts after in RC1 has changed, so it might be as simple as copying over the top of the old line inside the xml file, then rewriting the insert into the same syntax as the new RC1 line.

Gaz

I REALLY MUST get a dev install onto my server instead of mucking about with live sites ;)
Title: Re: Twitter Profile
Post by: Smoky "Rider" Blue on March 09, 2009, 06:42:31 PM
best to have a local Gaz

i would help out but i have a few mods im working on right now and close to submitting 2 of them now..

then i have a few more that will take me a bit longer but i know i will be happy with them..  ;)

if you need help, just tag me ok??  :)
Title: Re: Twitter Profile
Post by: 4Kstore on March 09, 2009, 07:38:20 PM
Thanks for this mod.
Spanish Traslation:


/Themes/default/languages/Modifications.spanish.php
Buscar:
?>

Agregar antes:


            $txt['twitter_title'] = 'Twitter';
            $txt['twitter_desc'] = 'Ingrese su nombre de usuario en Twitter (ejemplo. Si su direccion de Twitter es  http://www.twitter.com/john_doe, escriba john_doe aca)';



Baiis!
Title: Re: Twitter Profile
Post by: GazOutEast on March 10, 2009, 12:49:29 AM
Quote from: SmokyBlue on March 09, 2009, 06:42:31 PM
best to have a local Gaz

i would help out but i have a few mods im working on right now and close to submitting 2 of them now..

then i have a few more that will take me a bit longer but i know i will be happy with them..  ;)

if you need help, just tag me ok??  :)

It's OK Smokey, sometime this week I'll get round to setting a workshop zone on my hosting provider and working within that - that way I'll be able to spot anything they have set at a server level that causes issues for a public site.   Unfortunately the local LAN hasn't any spare systems/capacity for setting up a winamps system right now, and I can't afford to buy another box at the moment (discovered last month that Mrs Gaz is expecting our 2nd - going to be a Halloween baby I think)

Another advantage to having a workshop zone online is that if other devs want to investigate a misbehaving mod or something, I can issue them with an account to play with it too.

Thanks for the thought.

Gaz
Title: Re: Twitter Profile
Post by: ifwmonster on March 13, 2009, 05:31:23 AM
Working beautifully on my 1.1.8 install, thank you.  I am trying to get back into sending tweets.
Title: Re: Twitter Profile
Post by: pastramirye on March 17, 2009, 09:00:49 AM
Great mod.
Easy manual install.
Just wondering - Any way to hide it from guests without locking them out ?
I appreciate this kind of defeats the point of Twitter.

Regards.
Title: Re: Twitter Profile
Post by: Sakae on March 18, 2009, 08:49:13 PM
Quote from: pastramirye on March 17, 2009, 09:00:49 AM
Just wondering - Any way to hide it from guests without locking them out ?

Must be, I'm planning do this with a feature like "last tweet on signature?" next update. No deadlines, please.
Title: Re: Twitter Profile
Post by: pastramirye on March 19, 2009, 06:04:27 AM
softcore,

QuoteMust be, I'm planning do this with a feature like "last tweet on signature?" next update.
That's great.

QuoteNo deadlines, please.

No I don't believe in them.   ;)

Regards.
Title: Re: Twitter Profile
Post by: bork on March 28, 2009, 04:01:44 PM
Quote from: softcore on March 07, 2009, 10:35:58 PM
Quote from: bork on February 26, 2009, 07:40:32 AM
Where does this mod store the twitter username?

I can't see any database code.

Huh?
Like it says - I'm wondering how the Twitter field is stored as the mod doesn't appear to make and database changes.
Title: Re: Twitter Profile
Post by: Sakae on March 28, 2009, 10:54:11 PM
I know, just wonder why does has to do with database code?
Title: Re: Twitter Profile
Post by: bork on March 29, 2009, 12:43:30 AM

Because I assumed all data was stored in the database?
Title: Re: Twitter Profile
Post by: marzi on April 28, 2009, 04:52:07 PM
Have you looked in the settings table?
Title: Re: Twitter Profile
Post by: kizley on April 29, 2009, 03:01:46 AM
will install this soon


thanks
Title: Re: Twitter Profile
Post by: Saesee on May 12, 2009, 08:14:35 AM
I've made a modification on your MOD to include French and French-UTF8 ! i post the .zip here.
Title: Re: Twitter Profile
Post by: Sakae on May 12, 2009, 10:22:40 AM
Quote from: Saesee on May 12, 2009, 08:14:35 AM
I've made a modification on your MOD to include French and French-UTF8 ! i post the .zip here.

Thanks a lot!




Version 1.1 released! (May 12, 2009)

* English (UTF-8), French and French (UTF-8) supported (thanks to Saesee).
Title: Re: Twitter Profile
Post by: rjscott on May 12, 2009, 12:06:57 PM
I have a failed (sort of) install and I uninstalled but the code remains in Modifications.english.php and some others. My question is which other files does the mod touch, so I can manually remove the code and try again.
Thanks!
I've just had an epiphany of newbie proportions! I just realized that if I look in the install.xml file, it will tell me exactly which files are modified. 
Title: Re: Twitter Profile
Post by: Mick. on May 12, 2009, 05:01:48 PM
Wow very cool. Thanx ;D
Title: Re: Twitter Profile
Post by: rad1701 on May 14, 2009, 06:21:42 PM
Got this error on trying to install on 1.1.8:

4. Execute Modification     ./Themes/default/languages/Modifications.english-utf8.php     Test failed

Does this mod require any special install if not using the default theme?
Title: Re: Twitter Profile
Post by: Sakae on May 14, 2009, 07:27:41 PM
Quote from: rad1701 on May 14, 2009, 06:21:42 PM
Got this error on trying to install on 1.1.8:

4. Execute Modification     ./Themes/default/languages/Modifications.english-utf8.php     Test failed

Does this mod require any special install if not using the default theme?

You can proceed with this error, if you're not using language english (utf-8).

Fixed.
Title: Re: Twitter Profile
Post by: rad1701 on May 15, 2009, 08:43:25 AM
Quote from: softcore on May 14, 2009, 07:27:41 PM
Quote from: rad1701 on May 14, 2009, 06:21:42 PM
Got this error on trying to install on 1.1.8:

4. Execute Modification     ./Themes/default/languages/Modifications.english-utf8.php     Test failed

Does this mod require any special install if not using the default theme?

You can proceed with this error, if you're not using language english (utf-8).

Fixed.

Error messages just give me a cold sweat.  I do use English, but my forum isn't UTF (at least not right now).  Is that why the error pops up?  Because the forum is not UTF?
Title: Re: Twitter Profile
Post by: Smoky "Rider" Blue on May 18, 2009, 05:24:29 PM
its giving you that due to something going on in that file.. you can still press go, but if you want to use the utf8, then you will need to edit that file and you will be fine..  ;)
Title: Re: Twitter Profile
Post by: trioptic on May 18, 2009, 10:43:17 PM
Quote from: softcore on March 07, 2009, 10:35:58 PM
Quote from: bork on February 26, 2009, 07:40:32 AM
Where does this mod store the twitter username?

I can't see any database code.

Huh?

I second that - how is this mod actually storing the user's twitter info if you aren't modifying the smf database.  For example, SMF remembers each member's yahoo/aim/website/etc. because there are fields in the members table inside of the smf database which stores them.
Title: Re: Twitter Profile
Post by: jgarzaro on May 20, 2009, 03:21:15 PM
Thank you for the updated version, and wanted to acknowledge x3mE for porting it over to SMF 2.0 and 4kstore for the Spanish translation, and last but not least, the author softcore!!  ;D

But I am getting the following warning when attempting to install, so I will hold back from installing until I get a confirmation that it's ok... the part that worries me is where it fails to make the changes to .Sources/ManageMembers.php
Title: Re: Twitter Profile
Post by: GazOutEast on May 20, 2009, 10:35:51 PM
Same here

*     2.     Execute Modification     ./Sources/ManageMembers.php     Test failed
      1.    Replace    ./Sources/ManageMembers.php    Test failed

Everything else tested OK (including skipping languages not installed) - am wondering about the replace command rather than an insert command - I already have the Skype mod installed and it is probably sitting exactly where the twitter mod is trying to install within ManageMembers.php

So instead of a Find ABC Replace with DEF - maybe it should be a Find ABC and Insert after ? 
Haven't looked at the .xml yet, just guessing.

Unfortunately I can't do any bug hunting this week as I've got too much happening.

Gaz
Title: Re: Twitter Profile
Post by: delayed_1 on May 24, 2009, 03:59:44 PM
I added the mod to my SMF 2.0 RC1-1 , and looked great! BUT I found no one could join my site, kept getting a database error try again later if happens again tell admin. I un-installed mod and it fixed the problem. added it again and same problem took it out and it was ok again. don't know what happened when it was installed but, it messes up the data base. Thank you for your work!
Title: Re: Twitter Profile
Post by: rad1701 on May 25, 2009, 03:43:20 PM
Quote from: delayed_1 on May 24, 2009, 03:59:44 PM
I added the mod to my SMF 2.0 RC1-1 , and looked great! BUT I found no one could join my site, kept getting a database error try again later if happens again tell admin. I un-installed mod and it fixed the problem. added it again and same problem took it out and it was ok again. don't know what happened when it was installed but, it messes up the data base. Thank you for your work!

OH - that scares me a lot!
Title: Re: Twitter Profile
Post by: Sakae on May 25, 2009, 06:58:30 PM
Quote from: delayed_1 on May 24, 2009, 03:59:44 PM
I added the mod to my SMF 2.0 RC1-1 , and looked great! BUT I found no one could join my site, kept getting a database error try again later if happens again tell admin. I un-installed mod and it fixed the problem. added it again and same problem took it out and it was ok again. don't know what happened when it was installed but, it messes up the data base. Thank you for your work!

Oh, man, I can't tell you what's wrong, since I installed fine on my SMF 2.0 RC1-1 (heavily modified).

Can you tell me what error you got, and paste your error log?
Title: Re: Twitter Profile
Post by: delayed_1 on May 25, 2009, 07:25:35 PM
I tried it on my board 2.0 RC1-1 looked good but no one could register on the board, kept getting data bade error. took it out everything worked again, put it back in and the same trouble no one could join. existing users had no trouble but no new members could join. removed it again and no problems.
Thank you for your work on this mod will be a good one!
Title: Re: Twitter Profile
Post by: Sakae on May 26, 2009, 10:36:41 AM
Quote from: delayed_1 on May 25, 2009, 07:25:35 PM
I tried it on my board 2.0 RC1-1 looked good but no one could register on the board, kept getting data bade error. took it out everything worked again, put it back in and the same trouble no one could join. existing users had no trouble but no new members could join. removed it again and no problems.
Thank you for your work on this mod will be a good one!

Ok mate, you already said you getting problems with this MOD, can you specify it?

What's your error log? What MODs do you have installed? What message you have about database error?

I just installed this MOD on a fresh 2.0 RC1-1 installation and got working pretty well.

--------

Ok, I saw this topic you created (http://index.php?topic=127911) and conclude your host sucks (lol).

Probably the Twitter MOD was your first modification installed that tried to change the database, which is not allowed by your host. I said PROBABLY, I'm on speculation field here.

If you answer my questions above, we can manage to come to a solution :)
Title: Re: Twitter Profile
Post by: JCox on May 27, 2009, 12:00:47 AM
I'm getting this error message when I download and then try to install by product manager.

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I am running 1.1.9 with the default theme. Any suggestions?
Title: Re: Twitter Profile
Post by: Sakae on May 27, 2009, 11:18:13 AM
Quote from: JCox on May 27, 2009, 12:00:47 AM
I'm getting this error message when I download and then try to install by product manager.

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I am running 1.1.9 with the default theme. Any suggestions?

I re-uploaded the version 1.1 of this mod. Try that instead.
Title: Re: Twitter Profile
Post by: JCox on May 27, 2009, 12:52:26 PM
Thanks!!! That worked.
Title: Re: Twitter Profile
Post by: Sakae on May 27, 2009, 10:22:18 PM
Quote from: JCox on May 27, 2009, 12:52:26 PM
Thanks!!! That worked.

Glad it work fine :)
Title: Re: Twitter Profile
Post by: General_Naga on May 31, 2009, 05:22:11 AM
Quote from: softcore on May 26, 2009, 10:36:41 AM
Quote from: delayed_1 on May 25, 2009, 07:25:35 PM
I tried it on my board 2.0 RC1-1 looked good but no one could register on the board, kept getting data bade error. took it out everything worked again, put it back in and the same trouble no one could join. existing users had no trouble but no new members could join. removed it again and no problems.
Thank you for your work on this mod will be a good one!

Ok mate, you already said you getting problems with this MOD, can you specify it?

What's your error log? What MODs do you have installed? What message you have about database error?

I just installed this MOD on a fresh 2.0 RC1-1 installation and got working pretty well.

--------

Ok, I saw this topic you created (http://index.php?topic=127911) and conclude your host sucks (lol).

Probably the Twitter MOD was your first modification installed that tried to change the database, which is not allowed by your host. I said PROBABLY, I'm on speculation field here.

If you answer my questions above, we can manage to come to a solution :)

I can second this problem. You can find the support thread before I discovered the source here (http://www.simplemachines.org/community/index.php?topic=314340.msg2086144#msg2086144)
Title: Re: Twitter Profile
Post by: Özgür on June 01, 2009, 05:58:49 PM
Turkish translation

<file name="$languagedir/Modifications.turkish.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
            $txt['twitter_title'] = 'Twitter';
            $txt['twitter_desc'] = 'Twitter kullanıcı adınızı girin (örneğin twitter linkiniz  http://www.twitter.com/john_doe, ise <b>john_doe</b> olarak girin)';
            ]]></add>

        </operation>
   </file>
<file name="$languagedir/Modifications.turkish-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
            $txt['twitter_title'] = 'Twitter';
            $txt['twitter_desc'] = 'Twitter kullanıcı adınızı girin (örneğin twitter linkiniz  http://www.twitter.com/john_doe, ise <b>john_doe</b> olarak girin)';
            ]]></add>

        </operation>
   </file>
Title: Re: Twitter Profile
Post by: Sakae on June 03, 2009, 08:06:11 PM
Twitter Profile MOD v2.2 RELEASED!
By softcore (http://custom.simplemachines.org/mods/index.php?action=profile;u=106692)


Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1351) | Support Topic (http://www.simplemachines.org/community/index.php?topic=257943.0) | Demo (http://www.tigrelog.com.br/)



Attention to whose that downloaded MOD v2.0!

The version 2.0 contains a CRITICAL bug that denies new member registers. If you installed this version, please use FIX-TwitterMODv2.zip RIGHT AWAY (attached to this post), and then use TwitterProfileMODv22.zip

Changelog

Version 2.2 (June 3, 2009)
* Fixed CRITICAL BUG (thanks to General Naga)
* Turkish and Spanish added.

Version 2.0 (May 20, 2009)
* PLEASE USE FIX-TwitterMODv2.zip!

Version 1.1 (May 12, 2009)
* English (UTF-8), French and French (UTF-8) supported (thanks to Saesee).

Version 1.0 (August 25, 2008)
* Supports the following languages: English, Portuguese Brazilian and Portuguese Brazilian (UTF-8).
Title: Re: Twitter Profile
Post by: Chris@houseofgreybook on June 04, 2009, 12:49:14 AM
Ok, just installed 2.2 and now my member section looks a little wonky. Seems twitter gifs have invaded 3 columns (Twitter, ICQ, and AIM) and shifted everything else to the right. Any ideas?

(http://i488.photobucket.com/albums/rr247/chris_snelgrove/screenshot2.jpg)
Title: Re: Twitter Profile
Post by: General_Naga on June 04, 2009, 06:01:40 AM
Didn't happen on mine...
Title: Re: Twitter Profile
Post by: Sakae on June 04, 2009, 11:44:00 AM
Quote from: Chris@houseofgreybook on June 04, 2009, 12:49:14 AM
Ok, just installed 2.2 and now my member section looks a little wonky. Seems twitter gifs have invaded 3 columns (Twitter, ICQ, and AIM) and shifted everything else to the right. Any ideas?

Are you using what SMF, 1 or 2?

If 2, can you attach your Sources/Memberlist.php so I can look into?

If you're using 1, use TwitterMODv11 for instance, till I got a solution.
Title: Re: Twitter Profile
Post by: Chris@houseofgreybook on June 05, 2009, 12:35:06 AM
QuoteAre you using what SMF, 1 or 2?

If 2, can you attach your Sources/Memberlist.php so I can look into?

SMF 2.0 RC1-1

attached is the Sources?Memberlist.

Title: Re: Twitter Profile
Post by: Sakae on June 05, 2009, 10:33:52 AM
Quote from: Chris@houseofgreybook on June 05, 2009, 12:35:06 AM
SMF 2.0 RC1-1

attached is the Sources?Memberlist.

It was "triplicated".

Attached your file fixed :)
Title: Re: Twitter Profile
Post by: Chris@houseofgreybook on June 05, 2009, 12:20:57 PM
Hey softcore, thanks so much for the updated file. I flopped it out and the memberslist still looks the same. I cleared my internet cache and the forum cache with no luck.  I also noticed that members profile ID's (the one to the left of their post) also shows up with 3 twitter gifs. Could something else be driving the triplicaiton besides memberslist.php?
Title: Re: Twitter Profile
Post by: Sakae on June 05, 2009, 11:28:07 PM
Search for this piece of code on your Theme/xxxx/Memberlist.template.php 

It should exist 3 times too.


// Twitter?
if (!isset($context['disabled_fields']['twitter']))
echo '
<td class="windowbg2">', $member['twitter']['link'], '</td>';
Title: Re: Twitter Profile
Post by: steve in houston on June 07, 2009, 11:15:14 PM
so did anyone figure out where the values are being stored?

i want to make a page that shows all my members that use twitter.

thanks
Title: Re: Twitter Profile
Post by: Chris@houseofgreybook on June 08, 2009, 11:29:40 AM
Quote from: softcore on June 05, 2009, 11:28:07 PM
Search for this piece of code on your Theme/xxxx/Memberlist.template.php 

It should exist 3 times too.

That did it. All set now. Thanks softcore!!!
Title: Re: Twitter Profile
Post by: Chris@houseofgreybook on June 08, 2009, 01:19:33 PM
One last request, the profile summary to the left hand side of member's posts still has 3 Twitter gifs. Do you know which file that runs from and I will take care of it also?

Again, thanks a bunch!
Title: Re: Twitter Profile
Post by: Sakae on June 08, 2009, 06:31:39 PM
Quote from: Chris@houseofgreybook on June 08, 2009, 01:19:33 PM
One last request, the profile summary to the left hand side of member's posts still has 3 Twitter gifs. Do you know which file that runs from and I will take care of it also?

Again, thanks a bunch!

Man, you need to search all files this mod changes to see what's triplicated. Use package parse for it.

But for your question now, the answer is: Search on display.template.php.
Title: Re: Twitter Profile
Post by: Jessikard on August 21, 2009, 09:46:36 PM
we got an error

// This shows the popular messaging icons.
echo '

', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '
!empty($message['member']['options']['twitter']) ? '<a href="http://www.twitter.com/' , $message['member']['options']['twitter'] , '" target="_blank"><img border="0" src="' , $settings['images_url'] , '/twitter.gif" alt="' , $message['member']['options']['twitter'] , '"></a>' : ''<br />';

won´t work

unexpected T-String ..... ',' or ';' ....

help please (version 1.1.10 TP 1.0 beta4)
Title: Re: Twitter Profile
Post by: GazOutEast on August 22, 2009, 01:01:06 AM
Quote from: Jessikard on August 21, 2009, 09:46:36 PM
we got an error

           
                                !empty($message['member']['options']['twitter']) ? '<a href="http://www.twitter.com/' , $message['member']['options']['twitter'] , '" target="_blank"><img border="0" src="' , $settings['images_url'] , '/twitter.gif" alt="' , $message['member']['options']['twitter'] , '"></a>' : ''<br />';

won´t work

unexpected T-String ..... ',' or ';' ....

help please (version 1.1.10 TP 1.0 beta4)

I'm not a programmer so be careful with anything I advise - but when that type of thing happens, I find it useful to break the code into its statements using colours and a larger font, based on the punctuation used as code - like this -

           

!empty($message['member']['options']['twitter']) ?
'<a
href="http://www.twitter.com/' , $message['member']['options']['twitter'] , '" target="_blank">

<!-- image source / link displayed --!> <img border="0" src="' , $settings['images_url'] , '/twitter.gif" alt="' , $message['member']['options']['twitter'] , '">

</a>' : ''<br />';



The problem looks to be on the last line of what I've broken-out above -
- you have a correct </a>' to close the anchor tag and php full statement
- then you have a full colon (is that text?)
- then two single apostrophes (deleted string or query from inside them?)
- then the <br /> followed by a php line closing tag ( '; ) - I'm assuming the opening apostrophe (for that one in the closing tag) is from the echo statement at the top of the section?

To clear the closing tag niggle, personally I'd put the html break and echo/php closing tag on a new line (just gets it out of the way when debugging), then I'd be looking at that colon and pair of single apostrophes on the last line (I've coloured the apostrophes red & pink to show they're not a " mark).

Your error reports an unexpected comma or semi-colon - I can't see one in the twitter line, which leads me to wonder if a user has accidently typed one into their twitter name field?

Unless I inject this into my test site, I can't work it further - this was just a coffee break distraction and I must get on with invoice printing now.

Hope it helps some?

Gaz


:'( Oh great - the code box stripped the colours out  >:(
Title: Re: Twitter Profile
Post by: GazOutEast on August 22, 2009, 01:07:35 AM
Aargh poo - think I know what it is - look at the code you posted

after the echo you open a php statement with an apostrophe
then you open your first icon with another apostrophe AND a comma - kill that comma and see what happens, there's no call in front of the comma and it's superfluous

Also, consider putting each of the calls into one continuous string inside a single set of echo marks with a single comma between each call, not the paired commas you have with them each on a new line.

Mind you would help if you posted the line number called by the error and showed which line that was ;)

Gaz
Title: Re: Twitter Profile
Post by: THE BRA1N on August 30, 2009, 06:26:20 AM
nice mod. how do i get it to display for guests? currently it only displays if youre logged in. i have 2.0 RC1.2.
Title: Re: Twitter Profile
Post by: Karlsm on January 16, 2010, 11:20:52 PM
How can i uninstall this please. There is no uninstaller according to the package manager.

Cheers.
Title: Re: Twitter Profile
Post by: TheListener on February 14, 2010, 11:03:35 AM
Do you have more than one version of the mod installed?

Did you manually install the mod?
Title: Re: Twitter Profile
Post by: DawnsWebDesigns on April 26, 2010, 09:32:57 PM
I just tried to install this & it said I had the wrong version for my SMF.  But I'm using SMF 1.1.11 & you say you're ready for it.  I only see one file to download...I guess it works for both 1.1.11 & RC3?  I'm going to have to do several others manually but I'm afraid to do this one since it wouldn't even attempt to go through the package manager.  If there another zip package I should be downloading?

I don't know what else I could tell you other then it's a fresh install, 1.1.11, package manager said whatever I downloaded was wrong for my version, it's the only version you have to download.  And I'm too afraid to do it manually considering.  :-[
Title: Re: Twitter Profile
Post by: TheListener on April 26, 2010, 09:39:39 PM
Hi Dawn I will try and help if I can.

Please let me know what you have done so far. ie gone to install it, did it install or problems etc.
Title: Re: Twitter Profile
Post by: Sakae on April 27, 2010, 09:34:40 PM
Sorry, this mod it's outdated.

I believe there's a new mod author taking care of it, but he haven't replied in months.
Title: Re: Twitter Profile
Post by: ~DS~ on April 27, 2010, 10:04:57 PM
For anyone who have been wondering....you don't need this mod with this tutorial:
Social Media Icons in Profile Field Tutorial (http://www.simplemachines.org/community/index.php?topic=374284.0) for 2.0 RC2-RC3
Title: Re: Twitter Profile
Post by: DataPeoplebd on November 06, 2010, 02:57:48 AM
Twitter profile marketing is one kind of  social media marketing services of good internet marketing agency offers which ultimately increase internet markets doors also increase visitors to web sites.

datapeoplebd.com/internet-marketing-services.html
Title: Re: Twitter Profile
Post by: Apllicmz on November 19, 2010, 12:59:48 PM
Nice work
when Update dont forget portuguese_pt

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[//Twitter Profiled MOD
$txt['twitter_title'] = 'Twitter';
$txt['twitter_desc'] = 'Digite seu nome de utilizador do Twitter (ou seja, se o seu link de Twitter for http://www.twitter.com/john_doe, insira aqui john_doe)';

]]></add>
        </operation>
   </file>
   
   <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[//Twitter Profiled MOD
$txt['twitter_title'] = 'Twitter';
$txt['twitter_desc'] = 'Digite seu nome de utilizador do Twitter (ou seja, se o seu link de Twitter for http://www.twitter.com/john_doe, insira aqui john_doe)';

]]></add>
        </operation>
   </file>