then you can use the parameter "band_id" as per the documentation
I reinstalled the spotlight module so all the code would be right. I did delete the query = $query .= "\nAND i.band_id = $band_id"; = but I still always get the same artist in the spotlight.
Also I can not figure out where I change or use the parameter band_id to select the band in the spotlight.
Sorry I can't figure this one out
Thanks again.
Peace
I used the template files in JamRoom to make a module for the Artist Spotlight Feature. It is picking bands at Random and looks very nice. Thanks for all your help again.
Peace
# select our database
mysql_select_db($database,$con)
or die("unable to open the phpBB2 database!
<br>MySQL error:". mysql_errno() .' - '. mysql_error());
THEN REPLACE THESE TWO LINES IN EACH FILE WITH THESE
Joined: 30 Jun 2004
Posts: 14
Location: Atlanta, Ga.
Posted: 08/06/04 12:30
[quote]I reinstalled the spotlight module so all the code would be right. I did delete the query = $query .= "\nAND i.band_id = $band_id"; = but I still always get the same artist in the spotlight.
Also I can not figure out where I change or use the parameter band_id to select the band in the spotlight.
Sorry I can't figure this one out
Thanks again.
Peace
I'm having the same problem.
[quote]I used the template files in JamRoom to make a module for the Artist Spotlight Feature. It is picking bands at Random and looks very nice. Thanks for all your help again.
Peace
Joined: 15 Jan 2004
Posts: 954
Location: united kingdom
Posted: 08/08/04 13:18
These mods work perfectly i had to re-install mambo due to a corruption i made,but when i did i created jamroom with the same databse as mambo and they work ,
thank you WerkKrew,i am very greatfull.
Darren.
Joined: 15 Jan 2004
Posts: 954
Location: united kingdom
Posted: 08/12/04 11:39
altho the spotlight feature doesnt change,its weird tho ,..is this best changed manualy when you want the artist changing ? i think this is the way ill try it
Joined: 30 Jun 2004
Posts: 14
Location: Atlanta, Ga.
Posted: 08/15/04 08:29
After modifying the module code as werkrew suggested. I can't get the spotlight module to randomize. I can get spotlight display of the first band in the database but it never changes. Has anyone been able to figure out how to make this work?
foreach($rows AS $_row)
{
if (!empty($_row->hifi_size) && $_row->hifi_size != 0)
{
$_rep['{SONG_HIFI_PLAY_LINK}'] = $jamroom_url."/play.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_hifi";
$_rep['{SONG_HIFI_PLAY_IMAGE}'] = "<a href=\"".$jamroom_url."/play.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_hifi\"><img src=\"".$jamroom_url."/rank/song/images/play_hifi.gif\" border=0 alt=\"click here to stream "".$_row->song_name."" in HIFI mode\" title=\"click here to stream "".$_row->song_name."" in HIFI mode\"></a>";
if ($_row['hifi_download'] == 'yes')
{
$_rep['{SONG_HIFI_DOWNLOAD_LINK}'] = $jamroom_url."/download.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_hifi";
$_rep['{SONG_HIFI_DOWNLOAD_IMAGE}'] = $jamroom_url."/download.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_hifi\"><img src=\"".$jamroom_url."/rank/song/images/down_hifi.gif\" border=0 alt=\"click here to download a HIFI version of "".$_row->song_name.""\" title=\"click here to download a HIFI version of "".$_row->song_name.""\"></a>";
}
else
{
$_rep['{SONG_HIFI_DOWNLOAD_LINK}'] = '';
$_rep['{SONG_HIFI_DOWNLOAD_IMAGE}'] = '-';
}
}
else
{
$_rep['{SONG_HIFI_PLAY_LINK}'] = '';
$_rep['{SONG_HIFI_PLAY_IMAGE}'] = '-';
$_rep['{SONG_HIFI_DOWNLOAD_LINK}'] = '';
$_rep['{SONG_HIFI_DOWNLOAD_IMAGE}'] = '-';
}
if (!empty($_row->lofi_size) && $_row->lofi_size != 0)
{
$_rep['{SONG_LOFI_PLAY_LINK}'] = $jamroom_url."/play.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_lofi";
$_rep['{SONG_LOFI_PLAY_IMAGE}'] = "<a href=\"".$jamroom_url."/play.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_lofi\"><img src=\"".$jamroom_url."/rank/song/images/play_lofi.gif\" border=0 alt=\"click here to stream "".$_row->song_name."" in LOFI mode\" title=\"click here to stream "".$_row->song_name."" in LOFI mode\"></a>";
if ($_row->lofi_download == 'yes')
{
$_rep['{SONG_LOFI_DOWNLOAD_LINK}'] = $jamroom_url."/download.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_lofi";
$_rep['{SONG_LOFI_DOWNLOAD_IMAGE}'] = "<a href=\"".$jamroom_url."/download.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_lofi\"><img src=\"".$jamroom_url."/rank/song/images/down_lofi.gif\" border=0 alt=\"click here to download a HIFI version of "".$_row->song_name.""\" title=\"click here to download a HIFI version of "".$_row->song_name.""\"></a>";
}
else
{
$_rep['{SONG_LOFI_DOWNLOAD_LINK}'] = '';
$_rep['{SONG_LOFI_DOWNLOAD_IMAGE}'] = '-';
}
}
else
{
$_rep['{SONG_LOFI_PLAY_LINK}'] = '';
$_rep['{SONG_LOFI_PLAY_IMAGE}'] = '-';
$_rep['{SONG_LOFI_DOWNLOAD_LINK}'] = '';
$_rep['{SONG_LOFI_DOWNLOAD_IMAGE}'] = '-';
}
foreach($rows AS $_row)
{
if (!empty($_row->hifi_size) && $_row->hifi_size != 0)
{
$_rep['{SONG_HIFI_PLAY_LINK}'] = $jamroom_url."/play.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_hifi";
$_rep['{SONG_HIFI_PLAY_IMAGE}'] = "<a href=\"".$jamroom_url."/play.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_hifi\"><img src=\"".$jamroom_url."/rank/song/images/play_hifi.gif\" border=0 alt=\"click here to stream "".$_row->song_name."" in HIFI mode\" title=\"click here to stream "".$_row->song_name."" in HIFI mode\"></a>";
if ($_row['hifi_download'] == 'yes')
{
$_rep['{SONG_HIFI_DOWNLOAD_LINK}'] = $jamroom_url."/download.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_hifi";
$_rep['{SONG_HIFI_DOWNLOAD_IMAGE}'] = $jamroom_url."/download.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_hifi\"><img src=\"".$jamroom_url."/rank/song/images/down_hifi.gif\" border=0 alt=\"click here to download a HIFI version of "".$_row->song_name.""\" title=\"click here to download a HIFI version of "".$_row->song_name.""\"></a>";
}
else
{
$_rep['{SONG_HIFI_DOWNLOAD_LINK}'] = '';
$_rep['{SONG_HIFI_DOWNLOAD_IMAGE}'] = '-';
}
}
else
{
$_rep['{SONG_HIFI_PLAY_LINK}'] = '';
$_rep['{SONG_HIFI_PLAY_IMAGE}'] = '-';
$_rep['{SONG_HIFI_DOWNLOAD_LINK}'] = '';
$_rep['{SONG_HIFI_DOWNLOAD_IMAGE}'] = '-';
}
if (!empty($_row->lofi_size) && $_row->lofi_size != 0)
{
$_rep['{SONG_LOFI_PLAY_LINK}'] = $jamroom_url."/play.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_lofi";
$_rep['{SONG_LOFI_PLAY_IMAGE}'] = "<a href=\"".$jamroom_url."/play.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_lofi\"><img src=\"".$jamroom_url."/rank/song/images/play_lofi.gif\" border=0 alt=\"click here to stream "".$_row->song_name."" in LOFI mode\" title=\"click here to stream "".$_row->song_name."" in LOFI mode\"></a>";
if ($_row->lofi_download == 'yes')
{
$_rep['{SONG_LOFI_DOWNLOAD_LINK}'] = $jamroom_url."/download.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_lofi";
$_rep['{SONG_LOFI_DOWNLOAD_IMAGE}'] = "<a href=\"".$jamroom_url."/download.php?band_id=".$_row->band_id."&song_id=".$_row->song_id."&mode=song_lofi\"><img src=\"".$jamroom_url."/rank/song/images/down_lofi.gif\" border=0 alt=\"click here to download a HIFI version of "".$_row->song_name.""\" title=\"click here to download a HIFI version of "".$_row->song_name.""\"></a>";
}
else
{
$_rep['{SONG_LOFI_DOWNLOAD_LINK}'] = '';
$_rep['{SONG_LOFI_DOWNLOAD_IMAGE}'] = '-';
}
}
else
{
$_rep['{SONG_LOFI_PLAY_LINK}'] = '';
$_rep['{SONG_LOFI_PLAY_IMAGE}'] = '-';
$_rep['{SONG_LOFI_DOWNLOAD_LINK}'] = '';
$_rep['{SONG_LOFI_DOWNLOAD_IMAGE}'] = '-';
}