Photos and Brag Points widget

The KU Photos and Brag Points widget lets you pull in a photo slideshow and/or paginated brag points for a school or department at KU. All schools are available, and all departments that have migrated to the new online brochures format are also available.

Here's a basic example showing both the photos and brag points for the College of Liberal Arts & Sciences:

Several settings help you customize the widget, and every element of its HTML output is thoroughly classed, making it easy to restyle via CSS to fit your site's design. The image slideshow and the brag points' pagination use standard JQuery plugins and can be customized.

To include the widget on your site, you will need to use SSI, have KU's "contained" version of JQuery turned on (it's on by default), and be on a central KU webserver such as www2.ku.edu. From there, it's a three-step process:

  1. a) If your "otherheaderinfo" setting isn't already in use, adding this setting before you call your KU header will do most of the work for you:
    <!--#set var="otherheaderinfo" value="/~distinction/cgi-bin/mybragpoints_otherheaderinfo.shtml -->
    b) If your "otherheaderinfo" setting is in use or if you want to control which styles and libraries are loaded, you can add each of these files individually (preferably through the "pagecss" and "pagejs" settings, or in your existing "otherheaderinfo' setting:
    <link rel="stylesheet" type="text/css" href="/~distinction/cgi-bin/assets/css/distinction_widget.css" />
    <script type="text/javascript" src="http://webmedia.ku.edu/js/jqueryplugins/jquery.cycle.all-2.71.min.js"></script>
    <script type="text/javascript" src="http://www2.ku.edu/~distinction/cgi-bin/assets/js/widgetpaginate.js"></script>
    <script type="text/javascript"> $kuj(document).ready(function() { $kuj('.bragpoints_images').cycle({ fx: 'fade', speed: 2000, timeout: 4500 }); var count = $kuj('.bragpoints_images').children().length; if (count > 3) { $kuj(function(){ var wrap = $kuj('.bragpoints_points'); $kuj('.prev').click(function(){ wrap.trigger('prev.evtpaginate'); return false; }); $kuj('.next').click(function(){ wrap.trigger('next.evtpaginate'); return false; }); wrap.bind( 'initialized.evtpaginate', function(e, startnum, totalnum ){ $kuj('#count').text(startnum); $kuj('#total').text(totalnum); }); wrap.bind( 'finished.evtpaginate', function(e, num, isFirst, isLast ){ $kuj('#count').text(num); } ); wrap.evtpaginate({perPage:3}); }); } }); </script>
  2. Place the following code in the body of your page, wherever you want the widget to appear:
    <!--#set var="bragpoints_sccode" value="SCCODE_GOES_HERE" -->
    <!--#include virtual="/~distinction/cgi-bin/mybragpoints.shtml" -->
    Note: you must set the bragpoints_sccode for your school or department, or the widget won't show anything. See the first setting below to find your code.

  3. Choose from the settings below to customize how the information is displayed.

Settings

These settings must be placed on your page above the include statement. You will likely want to add this in your header file.

bragpoints_sccode

Choose your school or department's code from below and use it for this parameter to display your photos and brag points:

Available school codes:

College of Liberal Arts and Sciences (CLAS)
Interdisciplinary and University Programs (IDPR)
School of Architecture, Design and Planning (SADP)
School of Business (BUS)
School of Engineering (ENG)
School of Health Professions (SHP)
School of Journalism and Mass Communications (JOUR)
School of Medicine (MED)
School of Music (MUS)
School of Pharmacy (PHARM)
School of Social Welfare (SSW)
School of the Arts (Liberal Arts & Sciences) (SOTA)

Available department & program codes:

Bachelor of Arts in Architectural Studies (BAAS)
Bachelor of Business Administration (BBA)
Bachelor of Social Work (BSW)
Bachelor of Social Work 2+2 Degree-Completion Program (BSWKC)
Doctor of Philosophy in Architecture (ARCHPHD)
Doctor of Philosophy in Social Work (SWPHD)
Graduate Study (GRADS)
Graduate Study in Anthropology (ANTHGR)
Graduate Study in Architectural Management (AMEC)
Graduate Study in Biostatistics (BIOS)
Graduate Study in Clinical Research (CLINRES)
Graduate Study in Design (DESGR)
Graduate Study in Dietetics and Nutrition (DIET)
Graduate Study in Engineering Management (EMGT)
Graduate Study in Film and Media Studies (FMSGR)
Graduate Study in Global and International Studies (GISTGR)
Graduate Study in Health Informatics (HINF)
Graduate Study in Information Technology (ITEC)
Graduate Study in Marketing Communications (JOUREC)
Graduate Study in Medicinal Chemistry (MDCM)
Graduate Study in Music (MUSGR)
Graduate Study in Nurse Anesthesia (NRAN)
Graduate Study in Political Science (POLSGR)
Graduate Study in Russian, East European, and Eurasian Studies (REESGR)
Graduate Study in Social Work (SWEC)
Graduate Study in Spanish and Portuguese (SPANGR)
Graduate Study in Theatre (THRGR)
Graduate Study in Visual Art (ARTGR)
International Study (INTL)
Master of Architecture I (5-year) (MARCHI)
Master of Architecture III (3-year) (MARCHIII)
Master of Arts in Architecture (ARCHMA)
Master of Arts in Communication Studies (COMSEC)
Master of Fine Arts in Creative Writing (CRWR)
Master of Public Health (MPH)
Master of Social Work (MSW)
Master of Urban Planning (UBPL)
Mount Oread Scholars (MtORUG)
Multicultural Scholars Program (MSP)
Office of Professional Military Graduate Education (OPMGE)
Study Abroad Programs (STAB)
Undergraduate Minor in Social and Behavioral Sciences Methodology (SBSM)
Undergraduate Study in Aerospace Engineering (AEUG)
Undergraduate Study in Anthropology (ANTHUG)
Undergraduate Study in Architectural Engineering (ARCEUG)
Undergraduate Study in Biology (BIOLUG)
Undergraduate Study in Business (BUSUG)
Undergraduate Study in Communication Studies (COMSUG)
Undergraduate Study in Dance (DANC)
Undergraduate Study in Design (DESUG)
Undergraduate Study in Developmental Psychology (DPSYEC)
Undergraduate Study in Economics (ECONUG)
Undergraduate Study in Electrical Engineering and Computer Science (EECSUG)
Undergraduate Study in Engineering (ENGUG)
Undergraduate Study in Film and Media Studies (FMSUG)
Undergraduate Study in Geology (GEOLUG)
Undergraduate Study in Global and International Studies (GISTUG)
Undergraduate Study in Humanities and Western Civilization (HWC)
Undergraduate Study in Literature, Language, and Writing (LLWEC)
Undergraduate Study in Mathematics (MATHUG)
Undergraduate Study in Mechanical Engineering (MEUG)
Undergraduate Study in Molecular Biosciences (MBEC)
Undergraduate Study in Music (MUSUG)
Undergraduate Study in Occupational Therapy (OT)
Undergraduate Study in Physics and Astronomy (PHYXAUG)
Undergraduate Study in Political Science (POLSUG)
Undergraduate Study in Prelaw (PRELAW)
Undergraduate Study in Premedicine (PREMED)
Undergraduate Study in Psychology (PSYCUG)
Undergraduate Study in Public Administration (PUADEC)
Undergraduate Study in Russian, East European, and Eurasian Studies (REESUG)
Undergraduate Study in Sociology (SOCUG)
Undergraduate Study in Spanish and Portuguese (SPANUG)
Undergraduate Study in Speech-Language-Hearing: Sciences and Disorders (SPLH)
Undergraduate Study in Theatre (THRUG)
Undergraduate Study in Visual Art (ARTUG)
University Honors Program (HNRS)
Default Value: N/A
Example
<!--#set var="bragpoints_sccode" value="ENGUG" -->

bragpoints_hidephotos

If set to "true," the widget's photo slideshow will not be shown.

Default Value: false
Example
<!--#set var="bragpoints_hidephotos" value="true" -->

bragpoints_hidepoints

If set to "true," the widget's brag points will not be shown.

Default Value: false
Example
<!--#set var="bragpoints_hidepoints" value="true" -->

bragpoints_hidepointlinks

If set to "true," the widget's brag points will be shown (unless you used the previous setting), but each point will be displayed as plain text and not as a link.

Default Value: false
Example
<!--#set var="bragpoints_hidepointlinks" value="true" -->

If you have any questions about this process, please feel free to contact webcomms@ku.edu.


The University of Kansas prohibits discrimination on the basis of race, color, ethnicity, religion, sex, national origin, age, ancestry, disability, status as a veteran, sexual orientation, marital status, parental status, gender identity, gender expression and genetic information in the University’s programs and activities. The following person has been designated to handle inquiries regarding the non-discrimination policies: Director of the Office of Institutional Opportunity and Access, IOA@ku.edu, 1246 W. Campus Road, Room 153A, Lawrence, KS, 66045, (785)864-6414, 711 TTY.