Welcome To WSC Available With The SBC SAM Broadcaster Plug-In
If you would like more information, suggest features or have questions you can contact us by clicking here!
The WSC php class software allows you to create a fully functional website with many features, with a minimum of amount of programming.
All major functions such as contact forms and user login are included automatically. The software is database driven for easy management.
The "WSC" (Website Structure Class) with "SBC" (SAM Broadcaster Class), is a light-weight starter website for SAM
Broadcasters to instantly create a web presence for their radio station, the class is written in PHP. This software is more
about functionality rather than design, we'll leave that up to you! The "SBC" module has the following
features; Displays the current song playing with history, provides local weather and national
video headlines, Featured artist of the month, Top ten requests list, and your internet broadcast server stats
that include listeners online, available connections and current high listener counts for each node. This package even
updates your Twitter account page using the OAuth technology.
This software also allows you to have your broadcast information on multiple servers accross multiple domains in multiple locations.
You can "Click Here" to see the actual SBC software in action!
Basic Broadcaster Website Construction
WSC configuration is database powered and consists of three sections, accessable through the admin control panel.
|
System Information Configuration ![]() Configures the the general information for the website. Including the website name, address, database information and other options. |
System Menu Configuration ![]() Allows configuration and addition of the website pages, including the order in which they will appear in the system menu. |
System CSS Configuration ![]() Set the websites basic style and colors for images, background, text, links and gerneral appearance. |
WSC with the SBC plugin uses php commands to construct the website and create features. Below is a list of the commands and functions.
A typical page would be created by the following php commands...
@session_start();
include('wsc.idx.php');
(Your Content And Options Intermixed With The Following)
$sbc->playingNOW($daynite);
$sbc->quickLINKS();
$wsc->videoNEWS($daynite);
$wsc->dispHOLIDAY();
$sbc->artistMONTH();
$wsc->endPAGE();
The variable $daynight privides "Today/Tonight", according to the time of day!
The code above creates the entire actual page (minus your actual text content).
PHP Code Command List
( Internal Class Commands )
Initialize Page - $wsc->initPAGE();
Creates the basic page foundation.
This is the first call to the class and is required as the first command issued to open a new page.
Initialize Head Section - $wsc->initHEAD();
Creates the page head section and initializes the page Meta Data.
This creates the head section, provides meta data, and initializes javascript functions.
Initialize Header - $wsc->initHEADER(0);
Creates the page header and if available loads the header image.
You have the option of including header graphics or using a plain css header background..
Initialize Content - $wsc->pageCONTENT();
Creates the page content area to be displayed.
All page content should only appear after this command.
Close Content End Page - $wsc->endPAGE();
Terminates all content and closes the page.
This action ends all HTML output, includes the page footer and graphics if specified in $wsc->initHEADER(0); and
displays the footer information and credits.
System Structure Commands
( Content Option Class Commands )
AutoMenu - $wsc->pageMENU();
Detects page files in the WSC root directory and automatically adds them to the menu bar.
All public page files should be named as a single name (i.e index.php). If you want to add pages, but do not
want them to be in the menu bar they should be named two or more words seperated by periods (i.e.wsc.config.php).
The software uses the number of periond (.) in the file name to make the determination as to add the page to the
menu bar. There is also an option to hide the current page link from appearing in the menus.
AutoMenu Footer Links - $wsc->footerLINKS();
Detects page files in the WSC root directory and automatically adds them to the menu links.
Works inconjunction with AutoMenu above and provides the footer text menu links on the page.
Google Referer String - $wsc->getGoogle();
If the page was found by a Google search, the seach term used will be displayed.
Example - "Welcome your Google search for software brought you here!"
This option will only be set if the user came from a Google search link.
Local Weather String - $wsc->getWeather();
Places your local weather in a brief string or sentence on the page.
Example - "Welcome to Las Vegas, NV - It's Currently 59°F Under Sunny sky's"
This is determind by the zip code in the wsc.cfg.php file and can be overridden by placing another location in
the actual command as in
$wsc->displayWeather(89061); which would display wheather for Pahrump, Nevada.
Some city names are also recognized, however it is better use an actual zip code. (Powered By The Google API).
Local Weather Display - $wsc->displayWeather();
Places your local weather on the page.
This is determind by the zip code in the wsc.cfg.php file and can be overridden by placing another location in
the actual command as in
$wsc->getWeather(89061); which would display wheather for Pahrump, Nevada.
Some city names are also recognized, however it is better use an actual zip code. (Powered By The Google API).
Holiday Display - $wsc->dispHOLIDAY();
Displays Most Holidays Automatically.
This option displays most holidays (USA) and inserts a graphic and a breif description of the holiday on the
page.
Video News Headlines - $sbc->videoNEWS();
Displays the current Nation News Video Headlines.
This option provides the latest world news video headlines and is updated regularly. The last five news stories
are presented graphically and if clicked on takes the user off site to view the video.
Add Video News Headlines - $sbc->addVideo();
Add a custom video headline.
Allows you to add your own custom video headline as the first story in the Video News Headlines.
SBC Optional Features (For SAM Broadcaster Software)
( SBC Specific Optional Class Commands )
Quick Links - $sbc->quickLINKS();
Display Listen Now Links.
This option displays graphical connect links for Winamp, Windows, Real Player, Quicktime and Web Proxy.
Playing Now - $sbc->playingNOW();
Displays The Current Song, Artist And History Information.
This option provides information to the song currently playing and includes song title, album name, year
released and the album cover picture. In addition it includes Amazon buy links and also provides history of the
last 12 songs that have played in the past hour.
Top Ten Requests - $sbc->topTEN();
Displays the top ten user requested songs.
This option creates a top ten list that displays the album art, song title, artist name, year, and the date and
time of the last request.
Featured Artist - $sbc->artistMONTH();
Displays the Featured Artist For The Month.
This option randomly selects an artist to display as featured artist of the month. Requires Database.
Other SBC Features
All Active Server Nodes Are Scanned Automatically Creating A Display Like The One Shown Above.
Server Information - Server Stats
The following server data is available...
- Server Number
- Server ID Number
- Number Of Current Listeners
- Maximum Allowed Listeners
- Listener High Total†
- Server Online/Offline
- Server Status (OK)
- Public/Private
- Server Alias
- Relay URL
- Server Bitrate
- Server Format
- Server Type
- Connect Address
† - Provides Persistant High Listener Counts Even If SAM Broadcaster Is Reset.
Twitter Oauth - SAM Broadcaster/Twitter Interface
The SBC package includes the SAM TWITTER OAUTH option which updates your existing Twitter account at each song change.



