The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Twitter @Follow Button

View previous topic View next topic Go down

Solved Twitter @Follow Button

Post by Hardcore Gamer on August 12th 2012, 10:15 am



Is it possible to have something like the above on a phpBB2 forum, with the follower stats? Appreciate the help.


Last edited by Hardcore Gamer on August 17th 2012, 2:19 am; edited 1 time in total

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Hardcore Gamer on August 13th 2012, 7:07 am

Bump...

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Hardcore Gamer on August 14th 2012, 10:42 am

Again, bump...

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Sanket on August 14th 2012, 11:43 am

Do you have that code from twitter?

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Hardcore Gamer on August 14th 2012, 12:06 pm

I'm not sure, how do I get the code?

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Hardcore Gamer on August 15th 2012, 10:07 am

Bump...

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Sanket on August 15th 2012, 10:31 am


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Hardcore Gamer on August 15th 2012, 12:18 pm

Okay, cool. But where do I put the code once I have it? This seems to be really complex, I don't get it... even after reading it.

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Sanket on August 15th 2012, 6:28 pm

You could add it to a widget.
http://help.forumotion.com/frequently-asked-questions-f5/forum-widgets-t22589.htm#126813

Or add it to Homepage message
Display>generalities
Homepage message
Message Content:

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Hardcore Gamer on August 15th 2012, 8:47 pm

I'll try that. But there are so many codes on that website, which one do I use?

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Sanket on August 16th 2012, 10:23 am

Any one which you like, each display it differently. Its your personal choice.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Hardcore Gamer on August 16th 2012, 9:03 pm

@Sanket wrote:
Or add it to Homepage message
Display>generalities
Homepage message
Message Content:

I've just done that, but how would I be able to move it to left left instead of it being in the center? Also, how do I remove the border the homepage message has?

Thanks for the help so far.

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Sanket on August 16th 2012, 9:06 pm

Forum URL please?

Also the exact code that you added?

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Hardcore Gamer on August 16th 2012, 9:15 pm

Spoiler:
<a href="https://twitter.com/mylink" class="twitter-follow-button" data-show-count="true" data-lang="en">Follow @twitterapi</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Link: http://testforumhop.forumotion.com/

I want the button above "Your last visit was on...", on the left there.

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Sanket on August 16th 2012, 9:40 pm

http://testing.4rumer.com/forum
Its added on my test forum.

Firstly, remove the code you added on the homepage message.

Go into Display>Templates>General
Click on Edit corresponding to index_box
Find this in the code.
Code:
<!-- BEGIN switch_user_logged_in -->
Just before this code, you can add the following code.
Code:
<a href="https://twitter.com/mylink" class="twitter-follow-button" data-show-count="true" data-lang="en">Follow @twitterapi</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script><br>
Hit Save.
Then Publish the template.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Hardcore Gamer on August 16th 2012, 10:02 pm

Yes, it worked. Thank you so much. Solved.

Hardcore Gamer
Forumember

Male Posts : 409
Reputation : 3
Language : English

Back to top Go down

Solved Re: Twitter @Follow Button

Post by Sanket on August 17th 2012, 10:11 am

Topic Solved & Locked

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum