Twitter Profile

Started by Sakae, August 26, 2008, 07:55:10 PM

Previous topic - Next topic

Sakae

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.
http://www.tigrelog.com.br
l: simple p: machines

Chris@houseofgreybook

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.


Sakae

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 :)
http://www.tigrelog.com.br
l: simple p: machines

Chris@houseofgreybook

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?

Sakae

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>';
http://www.tigrelog.com.br
l: simple p: machines

steve in houston

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

Chris@houseofgreybook

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!!!

Chris@houseofgreybook

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!

Sakae

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.
http://www.tigrelog.com.br
l: simple p: machines

Jessikard

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)

GazOutEast

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  >:(
I have 20:20 vision - I can see anything bigger than 20" x 20"

GazOutEast

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
I have 20:20 vision - I can see anything bigger than 20" x 20"

THE BRA1N

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.

Karlsm

How can i uninstall this please. There is no uninstaller according to the package manager.

Cheers.

TheListener

Do you have more than one version of the mod installed?

Did you manually install the mod?

DawnsWebDesigns

#75
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.  :-[

TheListener

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.

Sakae

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.
http://www.tigrelog.com.br
l: simple p: machines

~DS~

For anyone who have been wondering....you don't need this mod with this tutorial:
Social Media Icons in Profile Field Tutorial for 2.0 RC2-RC3
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

DataPeoplebd

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

Advertisement: