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

XF 1.1 Twitter widget into the sidebar

#1
Dear all,

do you know if it is possible to have a widget within the sidebar, showing the list of the 5/10 most recent tweets from a twitter account?

Maybe it's already there somewhere and I cannot see it...? :)

Thanks
Marco
 

Jake Bunce

XenForo moderator
Staff member
#2
This looks promising:

http://tweet.seaofclouds.com/

In step 4 (adding the placeholder in <body>) you will need to edit this template to add a sidebar block:

Admin CP -> Appearance -> Templates -> forum_list

E.g. add the red code:

Code:
<xen:sidebar>
	<xen:edithint template="sidebar.css" />
	
	<xen:hook name="forum_list_sidebar">
		<xen:include template="sidebar_online_users" />
		
		<!-- block: forum_stats -->
		<div class="section">
			<div class="secondaryContent statsList" id="boardStats">
				<h3>{xen:phrase forum_statistics}</h3>
				<div class="pairsJustified">
					<dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
						<dd>{xen:number $boardTotals.discussions}</dd></dl>
					<dl class="messageCount"><dt>{xen:phrase messages}:</dt>
						<dd>{xen:number $boardTotals.messages}</dd></dl>
					<dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
						<dd>{xen:number $boardTotals.users}</dd></dl>
					<dl><dt>{xen:phrase latest_member}:</dt>
						<dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
					<!-- slot: forum_stats_extra -->
				</div>
			</div>
		</div>
		<!-- end block: forum_stats -->
		
		<xen:include template="sidebar_share_page">
			<xen:set var="$url">{xen:link canonical:index}</xen:set>
		</xen:include>
		
	</xen:hook>

	<div class="section">
		<div class="secondaryContent">
			<div class="tweet"></div>
		</div>
	</div>
</xen:sidebar>
 

MagnusB

Well-known member
#3
You can just get the official widget and use the ad_sidebar templates, just do something like this:
Code:
<div class="section">
<div class="secondaryContent">
<h3>Twitter Feed</h3>
<!-- Paste your twitter widget code here -->
</div>
 
</div>
 

MichaelDance

Well-known member
#5
This looks promising:

http://tweet.seaofclouds.com/

In step 4 (adding the placeholder in <body>) you will need to edit this template to add a sidebar block:

Admin CP -> Appearance -> Templates -> forum_list

E.g. add the red code:

Code:
<xen:sidebar>
<xen:edithint template="sidebar.css" />
 
<xen:hook name="forum_list_sidebar">
<xen:include template="sidebar_online_users" />
 
<!-- block: forum_stats -->
<div class="section">
<div class="secondaryContent statsList" id="boardStats">
<h3>{xen:phrase forum_statistics}</h3>
<div class="pairsJustified">
<dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
<dd>{xen:number $boardTotals.discussions}</dd></dl>
<dl class="messageCount"><dt>{xen:phrase messages}:</dt>
<dd>{xen:number $boardTotals.messages}</dd></dl>
<dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
<dd>{xen:number $boardTotals.users}</dd></dl>
<dl><dt>{xen:phrase latest_member}:</dt>
<dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
<!-- slot: forum_stats_extra -->
</div>
</div>
</div>
<!-- end block: forum_stats -->
 
<xen:include template="sidebar_share_page">
<xen:set var="$url">{xen:link canonical:index}</xen:set>
</xen:include>
 
</xen:hook>
 
<div class="section">
 <div class="secondaryContent">
 <div class="tweet"></div>
 </div>
 </div>
</xen:sidebar>
I couldn't get that working :s