Jamroom Logo Jamroom 5 Core
is now Open Source!
Follow Jamroom on Twitter!

This document applies to Jamroom 2 only!
For current Jamroom 4 Documentation, visit the main Jamroom Documentation section.

After logging in to Jamroom as the Master Admin, you may have noticed a small section in the Admin Menu called “Messages”. You can think of this as a “blog” for the Master Admin - a way to send messages to your Artists by having the Admin Messages displayed on the “Login Notes” (see the Jamroom Login Notes section for more details on Login Notes).

The first step, is to make sure you have the Jamroom Login Notes working properly. Once you have confirmed that the Login notes are working properly, its pretty easy to add the Admin Messages in to the Login Notes templates.

For example, lets say you want to add the Admin Messages to the “login_note_0.tpl” (the login note only seen by the Jamroom Master Admin - a good place to “test” your changes). Within the login_note_0.tpl, find the place you would like the Admin Messages to appear, and place the following code:

{fetch file="$JAMROOM_URL/message.php?mode=show_messages&band_id=0"}

Next, you will need to modify the “Admin Messages template”. A default copy of a template that works is provided for you in the jamroom/templates directory:


This is the template that will be used to display the Admin Messages, and will appear where you put the Smarty “fetch” statement above. A simple Admin message template might look like this:

{* this is a Smarty template - please see http://smarty.php.net for documentation
on using Smarty and different structures and tags that are available *}
<table width="100%" cellpadding="0" cellspacing="0" border="0">
{foreach from=$MESSAGES key=key item=msg}
<td width="100%">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<td width="100%" colspan="2">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<td width="100%" height="25" bgcolor="#003366" style="color: #FFFFFF; padding: 2px;">
<tr bgcolor="#212121" style="color: #FFFFFF; font-size: 11px">
<td width="50%" style="padding: 2px">
Posted By: <a href="mailto: {$msg.USER_EMAILADR}">{$msg.USER_NICKNAME}</a>
<td width="50%" align="right" style="padding: 2px">
Posted On: {$msg.MESSAGE_TIME|date_format:"%D %T"}
<td width="100%" colspan="2" bgcolor="#111111" style="padding: 5px; color: #FFFFFF; font-size: 12px">

If you want to be able to define more than 1 template for the Admin Messages (say you would like to format them differently based on Quota, for example). You can also pass in the “template” variable to the message.php call like this:

{fetch file="$JAMROOM_URL/message.php?mode=show_messages&band_id=0&template=new_template.tpl"}

If you know the specific message_id number of the message you would like to show (you can get the message_id number from the “Modify Message” section of Jamroom), you can also pass this message_id in to retrieve just that message:

{fetch file="$JAMROOM_URL/message.php?mode=show_messages&band_id=0&message_id=25&template=new_template.tpl"}

This works really well for using special messages as “announcements” on other areas of your website, for example.

Make sure the template file is located in the jamroom/templates/message directory or it will not work!.

Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom 5
Jamroom 5 Modules
Jamroom Marketplace
Support Forum
Support Center
Contact Support
Community Forum
Member Sites
About Us
Contact Us
Privacy Policy
©2003 - 2024 The Jamroom Network