[Guide] Recently played tracks sigs


Recommended Posts

  • 2 months later...

Dont mean to bump an old thread, but can someone help me out?

I've tried uploading the file to a website 100webspace.com and changed it to my username and when i try to go to it, it just says "unable to parse song title from audioscrobbler.com"

I have the audioscrobbler plugin and can see it is listing the last submitted tracks in the plugin, and an account at last.fm but none of my tracks show in the 'recently played' section either. are the two connected?

yeh i need help on this, also, where do i extract the "denness" site .zip to?

586530851[/snapback]

You have to edit them to change the details to your username, and upload them online to somewhere like http://www.100webspace.com/

To the guy that wanted a swearfilter.

Open sig.php(or whatever you call it), add to the top:

define('WORD_FILTER', true);

Open RPI.php, Find:

	function addTrack($track)
	{  	
  $altbg = $this->altbg;
  foreach($this->options['fields'] as $field => $options)
  {

Add under:

if(WORD_FILTER) {
    foreach($track as $k => $v) {
    	$track[$k] = word_filter($v, $k);
    }
  	}

At the end of RPI.php, add:

function word_filter($string, $field = '') {
	$filter_fields = array(	
      	'description',
      	'title',
      	'artist',
      );
      	
	$badwords = array(
      	'/(w)or(d)/i',
      );
    	
	$replacements = array(
      	'\\1**\\2',
      );
      	
	if(!$field || in_array($field, $filter_fields)) {
  $string = preg_replace($badwords, $replacements, $string);
	}
  
	return $string;
}

Add words to the $badwords and $replacements arrays. Notice how I used subpatterns to get the letters I wanted to keep, this is to preserve the case.

Edit- Why are some of the tabs messed up and not others? :huh:

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.