Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Documentation and How To's:
How To: Integrate Jamroom with Mambo CMS : UPDATED 03/19/05
zed



Joined: 10 Aug 2003
Posts: 427
Location: switzerland

Posted: 11/19/05 12:26 
hey gutta,

I had trouble running these modules when they were on separate databases, too. even when putting in correct information in the module properties, my data would not display.

after installing mambo and jamroom into the same database I had no more problems.

hth
zed


_________________
DJ Booking
Back to top
gutta



Joined: 04 Nov 2005
Posts: 29

Posted: 11/19/05 16:26 
I re-installed Jamroom and used the same database as my Mambo site and I'm getting the same exact errors as above. NONE of the modules will work and I'm not sure what to do Crying or Very sad

Back to top
notset4life



Joined: 03 Jan 2004
Posts: 128

Posted: 06/07/06 20:38 
I was using mod_werkkrewspotlight for Mambo/Joomla and it worked great for months...until today.

I made no changed to Joomla or Jamroom, so when I opened my page today, I got:

Fatal error: Cannot use object of type stdClass as array in /www/c/mysite/jamroom/modules/mod_werkkrewspotlight.php on line 217

Any idea of the cause of this error?

thanks


_________________
www.cybermidi.com/live
Back to top
pleclair



Joined: 27 Jan 2005
Posts: 65

Posted: 07/11/06 13:07 
I seemed to have had that error too, oddly enough my Jamroom configuration changed.. verify your jamroom configuration parameters for the following:

Maximum Results: Default = 1000
(max 99999)

Page Results: Default = 100

Cache Expires = 600

Somehow my config changed to 0 for some of those values, my charts stopped working and therefore so did my spotlight module.. Even my searches retuned no results regardless what parameters I searched, Artist Name etc..!

Hopefully your problem is also as simple to solve!
Good Luck..
Confused

Back to top
luppe1



Joined: 20 Aug 2005
Posts: 44

Posted: 08/17/06 11:25 
Hi
I try to integrate with joomla
but I get a error with the modul Upcoming Events
Fatal error: Call to undefined function: get() in /opt/www/luypaerts/web/www.demoband.be/modules/mod_werkkrewevents_latest.php on line 40
Im I doing something wrong
events calendar is working wright
thanks for any help
greets luppe

Back to top
coolvibeonline



Joined: 24 Aug 2006
Posts: 18

Posted: 09/26/06 22:38 
Hello, It's my understanding the old werkkrew modules will not work with the new version of jamroom(correct me if I'm wrong). Are there any mods that can be done to the modules to make them work? They seem very helpful!!

Thanks.

Back to top
Inertia



Joined: 16 Sep 2006
Posts: 12

Posted: 09/27/06 07:04 
Actually I have a couple of the old modules working on my joomla site and they work quite alright. There's a few changes that need to be made but very minimal. The ones I had working at the "Newest Bands" and the Newest Songs. I haven't tried all of them as I didn't need them all but they do work.

Back to top
Prawn



Joined: 10 Sep 2006
Posts: 1512

Posted: 09/27/06 07:11 
Are these the ones you can download off the jamroom site in the downloads section

Back to top
Inertia



Joined: 16 Sep 2006
Posts: 12

Posted: 09/27/06 07:20 
yes Smile

Back to top
coolvibeonline



Joined: 24 Aug 2006
Posts: 18

Posted: 09/27/06 08:14 
Thanks for that information! What changes did you have to make ? Could you show me what you did. It would be very very appreciated.

Back to top
Inertia



Joined: 16 Sep 2006
Posts: 12

Posted: 09/27/06 08:25 
This is the code I used for Newest Band. Just replaced your php file with this one: Just a note tho, this displays members and bands so I just called my module "Newest Members".


Code
<?
// WerkkreW Newest Bands//
// Version: 2.0
// Designed for Mambo 4.5.1a
// Author : Bryan Chain

///THIS USES THE MAMBO PARAMETER FOR LIMIT
///Call it using "limit=10" of whatever number you want
///THERE IS A PARAMETER FOR LINK STYLE
///Call it using "link_type=1" or by these numbers
/// 1 : Default : Links link to bands page
/// 2 : Adds a link to rate the band

$link_type = $params->get( 'link_type' );  //1 for link to band site, 2 for link to play the song, 3 for a choice
$limit = $params->get( 'limit' );   //How many items to show in list max
$band_url = $params->get( 'jamroom' );
$bullet_img = $params->get( 'bullet' );
$main_link_style = $params->get( 'mainlink' );
$sub_link_style = $params->get( 'sublink' );
$max_words = $params->get( 'max_words' );

////Database Parameters

$useDatabase = $params->get( 'useDB' );
$db_user = $params->get( 'db_user' );
$db_password = $params->get( 'db_password' );
$db_name = $params->get( 'db_name' );
$db_path = $params->get( 'db_path' );

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

$query = "SELECT i.band_id, i.band_time, i.band_name, i.band_update, i.band_quota, SUM( s.hifi_scount_total + s.lofi_scount_total ) AS total_stream, SUM( s.hifi_dcount_total + s.lofi_dcount_total ) AS total_download, SUM( s.hifi_scount_total + s.lofi_scount_total + s.hifi_dcount_total + s.lofi_dcount_total ) AS total_count, q.quota_id, q.quota_disk"
       ."\nFROM jamroom_band_info AS i"
        ."\nLEFT JOIN jamroom_scounter AS s ON s.band_id = i.band_id"
        ."\nLEFT JOIN jamroom_quota AS q ON q.quota_id = i.band_quota"
        ."\nWHERE i.band_update != 99 AND q.quota_rank = 'yes'"
        ."\nGROUP BY i.band_id"
        ."\nORDER BY i.band_time DESC"
        ."\nLIMIT $limit";

if(!$useDatabase)
{
   $database->setQuery( $query );
   $rows = $database->loadObjectList();
} else {
    $db = mysql_connect($db_path, $db_user, $db_password);
   if (!$db) die ("Cannot connect to database");
   mysql_select_db($db_name, $db) or die ("Cannot connect to database");
   
   $res = mysql_query($query);
   $rows = array();
   while ($row = mysql_fetch_object( $res )) {
         $rows[] = $row;
   }
   mysql_free_result( $res );
}


echo "<table cellpadding='1' border='0'>";
  foreach($rows as $row) {
     if(strlen($row->band_name) > $max_words) {
      $row->band_name  = substr($row->band_name,0,($max_words - 3));
      $row->band_name .= "...";
    }
 
    echo "<tr>";
    echo "<td><img src='".$bullet_img."' /></td>";
    echo "<td><b><a href='".$band_url."members/".$row->band_id."/' target='_blank' class='".$main_link_style."'>".$row->band_name."</a></b>";
    echo "</td></tr>";
   if($link_type == 2) {
      $link2 = $band_url."rating.php?mode=rate_band&band_id=".$row->band_id;
      echo "<tr valign=top><td></td><td><a href='".$link2."' onclick=\"popwin(this.href,'name','500','500','yes');return false\" class='".$sub_link_style."'><small>Rate This Band!</small></a></td></tr>";

   }
  }
  echo "</table>";

?>



And this is the file I used for New Song


Code
<?
// WerkkreW Newest Songs//
// Version: 2.0
// Designed for Mambo 4.5.1a
// Author : Bryan Chain

///THIS USES THE MAMBO PARAMETER FOR LIMIT
///Call it using "limit=10" of whatever number you want
///THERE IS A PARAMETER FOR LINK STYLE
///Call it using "link_type=1" or by these numbers
/// 1 : Default : Links link to bands page
/// 2 : Links Link to play song
/// 3 : Main link goes to band page, secondary link plays song
/// 4 : Just Like Choice 3, With a Link to Rate the song

$link_type = $params->get( 'link_type' );  //1 for link to band site, 2 for link to play the song, 3 for a choice
$limit = $params->get( 'limit' );   //How many items to show in list max
$band_url = $params->get( 'jamroom' );
$bullet_img = $params->get( 'bullet' );
$main_link_style = $params->get( 'mainlink' );
$sub_link_style = $params->get( 'sublink' );
$max_words = $params->get( 'max_words' );

////Database Parameters

$useDatabase = $params->get( 'useDB' );
$db_user = $params->get( 'db_user' );
$db_password = $params->get( 'db_password' );
$db_name = $params->get( 'db_name' );
$db_path = $params->get( 'db_path' );

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

$query = "SELECT s.song_id, s.song_time, s.song_name, s.song_album, s.song_label, s.song_genre, s.song_lyrics, s.song_history, i.band_id, i.band_time, i.band_name, i.band_location, i.band_website, h.hifi_size, h.hifi_download, h.hifi_extension, l.lofi_size, l.lofi_download, l.lofi_extension, SUM(c.hifi_scount_total + c.lofi_scount_total) AS total_stream, SUM(c.hifi_dcount_total + c.lofi_dcount_total) AS total_download, SUM((c.hifi_scount_total + c.lofi_scount_total) + (c.hifi_dcount_total + c.lofi_dcount_total)) AS total_count, g.genre_name"
        ."\nFROM jamroom_song_info AS s"
        ."\nLEFT JOIN jamroom_band_info AS i ON i.band_id = s.band_id"
        ."\nLEFT JOIN jamroom_song_hifi AS h ON h.song_id = s.song_id"
        ."\nLEFT JOIN jamroom_song_lofi AS l ON l.song_id = s.song_id"
        ."\nLEFT JOIN jamroom_scounter AS c ON c.song_id = s.song_id"
        ."\nLEFT JOIN jamroom_quota AS q ON q.quota_id = i.band_quota"
        ."\nLEFT JOIN jamroom_song_genre AS g ON g.genre_id = s.song_genre"
        ."\nWHERE s.song_show != 'no' AND q.quota_rank = 'yes'"
        ."\nAND (h.hifi_size > 0 OR l.lofi_size > 0) GROUP BY s.song_id ORDER BY s.song_time DESC LIMIT $limit";

if(!$useDatabase)
{
   $database->setQuery( $query );
   $rows = $database->loadObjectList();
} else {
    $db = mysql_connect($db_path, $db_user, $db_password);
   if (!$db) die ("Cannot connect to database");
   mysql_select_db($db_name, $db) or die ("Cannot connect to database");
   
   $res = mysql_query($query);
   $rows = array();
   while ($row = mysql_fetch_object( $res )) {
         $rows[] = $row;
   }
   mysql_free_result( $res );
}


echo "<table cellpadding='0' border='0'>";
  foreach($rows as $row) {
     if(strlen($row->song_name) > $max_words) {
      $row->song_name  = substr($row->song_name,0,($max_words - 3));
      $row->song_name .= "...";
    }
   if($link_type == 1 || $link_type == 3 || $link_type == 4)
    {
      $link = $band_url."bands/".$row->band_id."/index.php";
      if($link_type == 3 || $link_type == 4) $link2 = $band_url."play.php?band_id=".$row->band_id."&song_id=".$row->song_id."&mode=song_hifi";
      if($link_type == 4) $link3 = $band_url."rating.php?mode=rate_song&band_id=".$row->band_id."&song_id=".$row->song_id;
    } else {
      $link = $band_url."play.php?band_id=".$row->band_id."&song_id=".$row->song_id."&mode=song_hifi";
    }
    echo "<tr>";
    echo "<td><img src='".$bullet_img."' /></td>";
    echo "<td><b><a href='".$link."' target='_blank' class='".$main_link_style."'>".$row->song_name."</a></b>";
   echo "</td></tr>";
   if($link_type == 3 || $link_type == 4){
      echo "<tr valign=top><td></td><td><a href='".$link2."' class='".$sub_link_style."'><small>Play It!</small></a>";
      if($link_type == 4) echo " || <a href='".$link3."' onclick=\"popwin(this.href,'name','500','500','yes');return false\" class='".$sub_link_style."'><small>Rate It!</small></a>";
      echo "</td></tr>";
   }
  }
  echo "</table>";

?>


Back to top
Prawn



Joined: 10 Sep 2006
Posts: 1512

Posted: 09/27/06 10:16 
thanks

Back to top
maxdg



Joined: 20 Aug 2006
Posts: 32
Location: Padova - Italy - Europe

Posted: 02/25/07 22:28 
Hi all!

First, many thanks for the support provided, then I have a question (maybe a stupid one) about how the links was created..

I'm working on this on my Joomla 1.0.12 site and Jamroom 3.0.26.
I have installed Jamroom in a subfolder of the Joomla mainsite.
About that New Songs Module (and the Featured Artist too) I noticed that a link like this:

http://mysite.com/jamroom/bands/10/index.php

was created but... there isn't a folder called "bands" in my Jamroom... only a "members" one, with both members and artists stored..

Should I have to set the system in jamroom config - File and Directory Settings - Account Directory Name providing the "bands" name of the folder, instead of "members"?
It doesn't affect other functions?

Many Thanks!

Back to top
maxdg



Joined: 20 Aug 2006
Posts: 32
Location: Padova - Italy - Europe

Posted: 02/26/07 14:47 
I slightly modified the mod_werkkrewspotlight.php file.

Around line 311 changed:


Code
echo "<td width=02%><a href='$band_url/bands/{$_rep2[$i]['{BAND_ID}']}/' target=_blank>\n";

with:


Code
echo "<td width=02%><a href='$band_url/members/{$_rep2[$i]['{BAND_ID}']}/' target=_blank>\n";


and works.

Then, the image shown was stretched because we have a fixed height and width.
I kept only heights like this:

changed:


Code
echo "<img src='{$_rep2[$i]['{BAND_IMAGE}']}&width=196&height=128' width=196 height=128 border=0></a></td>\n";


with:


Code
echo "<img src='{$_rep2[$i]['{BAND_IMAGE}']}&height=128' height=128 border=0></a></td>\n";


And works.

About other modules I'm trying to solve with mod_rewrite, just for now..

I think there's something more to be changed since this modules was written for mambo and Jamroom2.
Any helps to fix that for Joomla and Jamroom3 will be appreciate.. Wink

Hope it helps someone..

Back to top
Prawn



Joined: 10 Sep 2006
Posts: 1512

Posted: 04/16/07 13:20 
i honestly think the best solution is for jamroom to develop a better news and general content system.
So that you don't rely on artists to add content.

I use both joomla and jamroom for different things..

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Documentation and How To's

< Previous12345...1112131415Next >
 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.