• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Twitter code change

Ryan Kent

Well-known member
#1
I set up my Twitter integration today (ACP-->Options-->Twitter Integration). I noticed when turning on Twitter the ACP panel said "You may also specify up to two Twitter accounts to recommend to visitors after they use the Tweet button. More info..."

The More Info linked to twitter which provides a single line of code to add to the existing Twitter code, which will then suggest users add my website's Twitter to their list. Sounds like something I want to do.

My question is...where can I add this code? I checked templates and saw a lot of Facebook code but nothing for Twitter.

The code I wish to modify should look something like this

Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
 

Ryan Kent

Well-known member
#3
Found the code easily in both locations. You are a walking XenCylopedia :)

For anyone interested, by making this modification your twitter users can easily follow your Twitter page if you have one.

Locate the above mentioned code in the templates Brogan identified. After the
Code:
data-count="horizontal"
insert the following code

Code:
data-via="YourTwitterAcctName"
I will perform testing later today when I can locate some friends with Twitter accounts, but everything looks good so far.
 

Mike

XenForo developer
Staff member
#4
You don't need to make a template modification for that - it's already there. You just need to setup the option and it will be added automatically.
 

Brogan

XenForo moderator
Staff member
#6
In the field where it states Related Account: @...

I have already entered my main Twitter account in the first field.

twitter.PNG
 

Ryan Kent

Well-known member
#7
Thank you Brogan. I am now clear on the function of those 2 fields.

If I may make a suggestion...the default text in the field that now says "ClipTheApex" is Via Account: @...

I don't believe it is intuitive or clear. I would recommend replacing that text with "Enter name of the Twitter acct you wish to recommend to your users" or some form of that verbiage. For the second field which currently shows "Related Account: @..." something along the lines of "Enter the name of a second Twitter account you wish to recommend"

I developed user applications for 6 years while working for Verizon Wireless. For quite a while I struggled with making user documentation clear enough, and my apps intuitive enough, for users. Then I ultimately came up with a solution that bridged this gap. I found various employees in my company who had ZERO expertise related to my apps, and had them try to use them. As I watched their thought process, I realized that many things which I thought were crystal clear, or didn't need explanation...actually were not that clear to users. I would grab anyone I could...new employees, switchboard operator, a janitor..didn't care. In the end my apps were more intuitive and my documentation clearer. Just sharing my experience here.
 

Trombones13

Well-known member
#8
Thank you Brogan. I am now clear on the function of those 2 fields.

If I may make a suggestion...the default text in the field that now says "ClipTheApex" is Via Account: @...

I don't believe it is intuitive or clear. I would recommend replacing that text with "Enter name of the Twitter acct you wish to recommend to your users" or some form of that verbiage. For the second field which currently shows "Related Account: @..." something along the lines of "Enter the name of a second Twitter account you wish to recommend"

I developed user applications for 6 years while working for Verizon Wireless. For quite a while I struggled with making user documentation clear enough, and my apps intuitive enough, for users. Then I ultimately came up with a solution that bridged this gap. I found various employees in my company who had ZERO expertise related to my apps, and had them try to use them. As I watched their thought process, I realized that many things which I thought were crystal clear, or didn't need explanation...actually were not that clear to users. I would grab anyone I could...new employees, switchboard operator, a janitor..didn't care. In the end my apps were more intuitive and my documentation clearer. Just sharing my experience here.
FYI, those are Twitter's phrases, not XenForo's; see the link that "More info..." displays.
 

Ryan Kent

Well-known member
#9
Those phrases may be a copy/paste from Twitter, but the page upon which they are displayed is entired XF, correct? The screenshot Brogan shared seems to be an XF screen, and XF would have full control over that page's content. I apologize if I am mistaken.

Either way the point I was trying to make is perhaps some text could be added or modified to help admins more intuitively understand the purpose of those fields.
 

Trombones13

Well-known member
#10
Those phrases may be a copy/paste from Twitter, but the page upon which they are displayed is entired XF, correct? The screenshot Brogan shared seems to be an XF screen, and XF would have full control over that page's content. I apologize if I am mistaken.
You're right there; just wanted to point out that the phrases used are likely because Twitter uses them too. :)
 

Brogan

XenForo moderator
Staff member
#11
Yes, they're just a duplicate of the terms used by Twitter.

They can of course be changed by editing the related phrases in the ACP.