spacer spacer spacer spacer spacer spacer spacer

spacer
Connect With Us
SAMHSA Facebook SAMHSA Twitter SAMHSA YouTube SAMHSA Blog

Community Events


How To Feature Events on Your Widget

When adding the widget to your website, it will automatically display the zip code search box when using the provided code. However, you can tailor the widget on your site to feature a particular event (or events), such as your own activities, by following the steps below:

1. Identify the event you would like to highlight by browsing the Recovery Month website here: http://www.recoverymonth.gov/Community-Events.aspx

2. After you have found an event you would like to highlight, make note of its EventID number, which is located in parenthesis after the event title (e.g., Houston Run for Recovery (2440)).

3. Within the code, enter the EventID number in the “FlashVars” area following the “featuredEvents=” term. See purple text below:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="SWidget" width="160" height="600" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="http://recoverymonth.gov/flash/swidget/SWidget.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#663399" /> <param name="FlashVars" value="featuredEvents=&displayFirst=search" /> <param name="allowScriptAccess" value="always" /> <embed src="http://recoverymonth.gov/flash/swidget/SWidget.swf" quality="high" bgcolor="#663399" width="160" height="600" name="SWidget" align="middle" play="true" loop="false" FlashVars="featuredEvents=&displayFirst=search" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> </embed></object>

Please note: the text is bolded for instructional emphasis.

To display multiple featured events, separate EventID numbers using the 'pipe' | character, such as: featuredEvents=2440|2302|1314

4. Copy the embed code. The highlighted code below displays the code with EventID numbers, please use your EventID numbers instead of the example numbers.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="SWidget" width="160" height="600" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="http://recoverymonth.gov/flash/swidget/SWidget.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#663399" /> <param name="FlashVars" value="featuredEvents=2440|2303|1314&displayFirst=search" /> <param name="allowScriptAccess" value="always" /> <embed src="http://recoverymonth.gov/flash/swidget/SWidget.swf" quality="high" bgcolor="#663399" width="160" height="600" name="SWidget" align="middle" play="true" loop="false" FlashVars="featuredEvents=2440|2303|1314&displayFirst=search" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> </embed></object>

Please note: the text is bolded for instructional emphasis.

5. To display the featured events instead of the search function, follow the display instructions.

6. Paste the embed code onto your website or blog.



External link. Please review our Disclaimer