New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Twitter - Profile WidgetTwitter - Profile Widget
Previous
 
Next
New Post
9/21/2010 6:58 PM
 
Thanks for that post Jeff.  Unfortunately it did not work for me.  I've tried everything to get the Twitter widget to work.  What version of DNN did yours work with?

Troy
 
New Post
9/22/2010 8:43 AM
 
We were running the latest version of the Community Edition and recently upgraded to the Professional Edition.  I worked for us on both versions.

What's occuring when you try to add the tweet module to your page?

Make sure you do the following:
Within your DesktopModules folder, create a folder named TweetModule.  Then create a new Tweet.ascx file within this TweetModule folder and enter the code below (obviously without :CODEBEGIN: and :CODEEND:) into this page and save it.  Maybe try creating a Tweet.ascx.vb file as well.  Enter the vb code below and save the file.

Next, within your host settings you need to add/create the extension to your host.  Goto Host -> Extensions and at the bottom select Create New Extension.

For Select Extension Type, select Module.
Name and Friendly Name are required fields so enter info here. Click Next.
Module Specific Details Page is next.  Usually I don't enter any info here. Click Next.
Owner Details page is next.  Enter whatever information you wish here. Click Next.

Extension has been created.  Either scroll down to the module or filter by Module type to see the newly created module.
Click the Edit extension button (pencil icon).  Under Module Definitions, add a new definition.  Add a friendly name and create the definition.

Under Module Controls, add a Module Control.
Using the drop down for Source, find DesktopModules/TweetModule/Tweet.ascx.  Click on update.
Then Update Extension.

Next, create a new page and drop this new tweet module into the page and you should then begin seeing tweets from Bill Gates's twitter acount.
Change the billgates in line }).render().setUser('billgates').start(); to the twitter account you wish to follow.

Hope this helps..  -Jeff

Tweet.ascx
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Tweet.ascx.vb" Inherits="DesktopModules_Tweet_Tweet" %>

<div id="Tweet">
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
 version: 2,
 type: 'profile',
 rpp: 10,
 interval: 6000,
 width: auto,
 height: 600,
 theme: {
shell: {
 background: '#333333',
 color: '#ffffff'
},
tweets: {
 background: '#000000',
 color: '#ffffff',
 links: '#4aed05'
}
 },
 features: {
scrollbar: true,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'all'
 }
}).render().setUser('billgates').start();
</script>
</div>



Tweet.ascx.vb
Imports DotNetNuke
Imports System.Web.UI
Imports DotNetNuke.Entities.Modules
Imports DotNetNuke.Security.Permissions

Partial Class DesktopModules_Tweet_Tweet

    Inherits DotNetNuke.Entities.Modules.PortalModuleBase

End Class
 
New Post
9/22/2010 11:47 AM
 
That did it!  You are the man Jeff!  Thanks a ton for that.  The error of my ways was zipping it up and installing it as a packaged module (even added the manifest).  So I reversed all that and then started over doing exactly as you said.  Your guide through creating the new extension and adding the module control was exactly what I needed.  Hopefully your tutorial here will be found and utilized by others with the same issue.  Thanks again!

Troy
 
New Post
9/22/2010 11:58 AM
 
Great, I'm glad it works for you..

Yea, I was having an issue trying to get the tweeks working and tried a number of different free tweet modules; none of which worked properly..  This was the only way I found to get it working..  This thread has a 5-start rating on it and even though it hasn't been locked, has over 2300 views on it.. So I can't complain and glad to see that it's helping others as well..
 
New Post
11/14/2010 12:11 AM
 
Hi Guys, I too have struggled with this issue, and resolved it as follows. I added and html module to my page, I edited the settings / page settings to not display container and disallow printing. I then got the code from twitter, and edited the html module I added in the basic text editor and set the render mode to raw. This seems a more elegant solution, at the end of a lot of time I wasted. I have tested it in Firefox. Chrome and ie8 I suspect the render mode is the real trick here.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Twitter - Profile WidgetTwitter - Profile Widget


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.