Scripts for headline syndication

Use these scripts to syndicate headlines from a MemberGate powered site to any other site

Use these scripts to syndicate headlines from a MemberGate powered site to any other site

This first scripts shows how to syndicate headlines from the discussion forum

var global_article = new Array()
var global_article_counter = 0
var article = null
var early_exit = 0

if (article != null)
{
for (var article_counter = 0; article_counter < Math.min(20,article.length); article_counter++)
{
global_article[global_article_counter] = article[article_counter]
global_article_counter++
}
}
else
{
if (early_exit == 0)
{
document.writeln(“Please reload this page to view the headlines”)
early_exit = 1
}
}

if (early_exit == 0)
{
// change these settings to modify display
var width = “137”
// width of display box
var title = “Recent forum posts”
// title headline on box
var title_display = “Yes”
// select Yes to show title, No to not show title
var date_display = “No”
// select Yes to show article date, no to not show article date
var numberofarticles = “15”
// number of articles to display in box – maximum 20
var item_spacing = “3”
// spacing between items – 5 is good
var box_bgcolor = “eeeeee”
// box background color
var box_border = “0”
// box border size – 1 for border, 0 for no border
var cell_spacing = “0”
// spacing between articles
var cell_padding = “3”
// padding in front of articles
var title_bgcolor = “eeeeee”
// title font color
var title_font = “Verdana, Arial,Helvetica, sans-serif”
// title font face
var title_font_size = “-1”
// title font size
var title_fgcolor = “ff0000”
// title box font color
var headline_bgcolor = “eeeeee”
// article headline background color
var headline_font = “Verdana, Arial,Helvetica, sans-serif”
// article headline font face
var headline_font_size = “-2”
// article headline font size
var headline_fgcolor = “333333”
// article headline font color
var date_font = “Verdana, Arial,Helvetica, sans-serif”
// date font face
var date_font_size = “-2”
// date font size
var date_fgcolor = “ff6600”
// date font color
var time = new Array(global_article.length)

// Print out the table to hold the title and headlines
document.writeln(“

“)
document.writeln(“
“)
if (title_display == “Yes”)
{
document.writeln(““)
}
if (global_article_counter < numberofarticles)
{var numberofarticles = global_article_counter}
// Start loop for articles
for (var counter=0; counter < numberofarticles; counter++)
{
// Print out the headline
document.writeln(““)
} // End of article loop
document.writeln(“
“)
document.writeln(““)
document.writeln(““+title+”
“)
document.writeln(“<FONT SIZE="+headline_font_size+" FACE="+headline_font+" COLOR=’#"+headline_fgcolor+"’")
document.writeln(“>”+global_article[counter].headline_text+” …
“)
if (date_display == “Yes”)
{
document.writeln(“<FONT SIZE="+date_font_size+" FACE="+date_font+" COLOR=’#"+date_fgcolor+"’")
document.writeln(“> “+global_article[counter].article_date+”“)
}
document.writeln(“
“)

document.writeln(“

“)
}

The following script pulls syndicated article headlines



var global_article = new Array()
var global_article_counter = 0
var article = null
var early_exit = 0

if (article != null)
{
for (var article_counter = 0; article_counter < Math.min(20,article.length); article_counter++)
{
global_article[global_article_counter] = article[article_counter]
global_article_counter++
}
}
else
{
if (early_exit == 0)
{
document.writeln(“Please reload this page to view the headlines”)
early_exit = 1
}
}

if (early_exit == 0)
{
// change these settings to modify display
var width = “135”
// width of display box
var title = “Headlines from Bill Myers …”
// title headline on box
var title_display = “Yes”
// select Yes to show title, No to not show title
var date_display = “Yes”
// select Yes to show article date, no to not show article date
var numberofarticles = “5”
// number of articles to display in box – maximum 20
var item_spacing = “3”
// spacing between items – 5 is good
var box_bgcolor = “F7EFDE”
// box background color
var box_border = “0”
// box border size – 1 for border, 0 for no border
var cell_spacing = “0”
// spacing between articles
var cell_padding = “5”
// padding in front of articles
var title_bgcolor = “F7EFDE”
// title font color
var title_font = “Verdana, Arial,Helvetica, sans-serif”
// title font face
var title_font_size = “-1”
// title font size
var title_fgcolor = “ff0000”
// title box font color
var headline_bgcolor = “F7EFDE”
// article headline background color
var headline_font = “Verdana, Arial,Helvetica, sans-serif”
// article headline font face
var headline_font_size = “-2”
// article headline font size
var headline_fgcolor = “333333”
// article headline font color
var date_font = “Verdana, Arial,Helvetica, sans-serif”
// date font face
var date_font_size = “-2”
// date font size
var date_fgcolor = “ff6600”
// date font color
var time = new Array(global_article.length)

// Print out the table to hold the title and headlines
document.writeln(“

“)
document.writeln(“
“)
if (title_display == “Yes”)
{
document.writeln(““)
}
if (global_article_counter < numberofarticles)
{var numberofarticles = global_article_counter}
// Start loop for articles
for (var counter=0; counter < numberofarticles; counter++)
{
// Print out the headline
document.writeln(““)
} // End of article loop
document.writeln(“
“)
document.writeln(““)
document.writeln(““+title+”
“)
document.writeln(“<FONT SIZE="+headline_font_size+" FACE="+headline_font+" COLOR=’#"+headline_fgcolor+"’")
document.writeln(“>”+global_article[counter].headline_text+” …
“)
// check for and write date
if (date_display == “Yes”)
{
document.writeln(” <FONT SIZE="+date_font_size+" FACE="+date_font+" COLOR=’#"+date_fgcolor+"’")
document.writeln(“> “+global_article[counter].article_date+”“)
}
document.writeln(“
“)

document.writeln(“

“)
}

923 Comments

  1. Moritz, she does ski and hike, but not aggressively like many other people who live here. Being a ski area, (and in fact, this is a club OWNED by the ski resort!) that is why so many people live here! So I dont think she has any musculoskeltal or cardiovascular issues. At least, not that she put on her original form that asked for medical issues I should know about.

    This Wed – the final class in this 12-week series – we are doing 2-minute power intervals, where I will record their average power for 4 sets of 2 minutes. I will compare them to the first time we did that test.

    What I think I might do this Wednesday is have her ride her specific bike for most of the power tests, then put her on a bike that I know generally reads a lot higher power for a given gear/cadence combination. I know I can’t compare the numbers, but if it is significantly higher, as I suspect, at least she will leave with some satisfaction that her numbers would have been higher on another bike. I will still be left with the frustration that her FTP numbers did not improve over the 12 weeks (well, the last 6 weeks at least – the first 6 weeks was devoted to base building and technique – and wouldn’t impact LT/FTP much).
    I’ll keep you guys posted.

  2. We call these participants “immune to advice” or “feedback resistant” 😉

    As for simplifying the display for her I would go with the approach described by Sandy: just take some tape and cover all of the display except the part that is relevant (power in this case).

    As for really very low FTP: unless this person is very small and slim or the pure opposite of that, I would have her checked by a sports doctor to make sure she is not affected by a medical (cardiovascular, muscular or other) problem.

  3. It’s interesting to hear how you deal with this situation. I have to admit I’ve been told I have the patience of Noah (but I think I am just too stubborn and refuse to give up!haha!) 😉
    I am, however, most irritated by another group. I have had two riders (only?!) that I’ve been irritated by. Those sat on the bike with the most horrible set up, rode-no excuse me-bounced all over the place at 140rpm and no resistance, and when I approached them to help with their set up or diplomatically mention what their RPE should be at that segment, they just refused and told me they are fine where they are! Really! Oh Lord, how it pained me to smile, as I mentioned my credentials (only to give them assurance in my suggestions), and explained why they would be better off making those adjustments. I finished by telling them that was my job to offer help and offer set up adjustment,…..and (still with a smile) told them that ultimately, it was their body and therefore absolutely their choice to wreck it-I mean- ride the way they wished ;-)I have to add, one of them, mid ride changed his position and his cadence, he has been back to the rides since. The other rider chose to stay oblivious!! Has that happened to you? If so, how did you handle it?

  4. Jennifer,

    Thanks again for another “timely” topic! You always seem to be reading my mind as I am working with a long time rider right now who has resisted me in trying to get her cadence up, she is one of my only remaining “mashers” and is the the one who still just doesn’t quite “get it.” Sandy I love your suggestion about covering up the numbers you don’t want them concerned with.

    I will be looking forward to your follow ups to this Jennifer!

    Lorie

  5. Author

    Thanks Jennifer for this article, I enjoyed reading it & let us know how the 12th week go with your students.

    I started teaching at a private facility 2 weeks ago where they have normal spinning bikes. This makes me appreciate the Keiser M3 even more and how you can do more with your participants when you have access to power.

    Many members at this new facility refuse to listen to me and start doing their own things during class so I would be really interested in an article about how to deal with a member who refuses to listen.

    Thanks

    Moot 🙂

  6. Hey, that’s not a bad idea. She can follow the other riders for cadence and I’ll cover that up so she doesn’t get it mixed up with power! Thanks!
    I’m going to follow this article up with another discussion on when do we just move on and accept it. Not give up, but realize that some things we think are so important may not be as important to our students. Now, really bad form that will hurt them or doing CI moves while we’re just riding along – that I wouldn’t “accept”, but over the years I’ve been teaching there were some things I just stopped harping on. For example, years ago at a different club, one guy always hung his head no matter what we were doing. Like, seriously hung it down to his chest. I made suggestions till I was blue in the face, using all different analogies and creative cues, and blatant hands on “GET YOUR HEAD UP!” How many times past 100 could I keep asking him to change? (I don’t know if it was 100 or 50, just making a point!) Finally I just said to myself it isn’t worth it. He’s not going to injure himself or others unless he does that outside on his bike!

  7. How frustrating for an instructor when certain individuals “don’t get it” even after the most basic and many explainations. I have a similiar age bracket and a few women who can never raise their cadence. ( I don’t have power). I have tried to make them my special projects but as soon as I divert my attention off of them they go back to their ways. Now these are not outdoor riders and probably will never be so they don not have a goal to accomplice aside from coming to the gym to “work out” so I have resolved myself to give reminders to them but not obsess. They also are not paying me $300 to improve their cycling skills.
    But one idea I had as I was reading your post was, can you put something in the form of a small piece of masking tape over the numbers on the console that you want her to not focus on that day and just work on the number she sees displayed? Meaning tape off every number BUT cadence so she can’t get mixed up.

Leave a Reply to Moritz Cancel reply

Your email address will not be published. Required fields are marked *