Now Playing

Started by Oldiesmann, April 14, 2005, 12:57:06 PM

Previous topic - Next topic

stusplace

#80
Quote from: Oldiesmann on October 02, 2006, 07:49:49 PM
Quote from: stusplace on October 01, 2006, 03:39:22 PM
oldiemann

I tried to upload the Now Playing in to my Forum and  i got this


Install Actions for archive nowplaying_1-11.tar.gz:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.



Grrr...

You're supposed to be able to specify a range of versions in package-info.xml (ie "1.0.5 - 1.0.8" instead of "1.0.5, 1.0.6, 1.0.7, 1.0.8"), but apparently that doesn't actually work.

Should be fixed now.

Sort it works now :D  just goto sort it out and now i  can have music :P

Oldiesmann

Quote from: houston on October 02, 2006, 09:59:50 PM
Now I am getting quite a few of this undefined error messages showing up after fixing the one posted earlier.

Undefined variable: form_nowplaying
File: /home/eaglebay/public_html/newforum/Sources/Post.php

Line: 937

$context['nowplaying'] = str_replace(array('"', '<', '>', '  '), array('&quot;', '&lt;', '&gt;', ' &nbsp;'), $form_nowplaying);


Any thoughts

Try this...

Sources/Post.php

Find
$form_nowplaying = $row['nowPlaying'];

Replace
$form_nowplaying = isset($row['nowPlaying']) ? $row['nowPlaying'] : '';
Michael Eshom
Christian Metal Fans

soulmanpete

just letting you know upgraded to the new 1.1 and Now playing does not work. I deleted it and downloaded but doesn't want to work says its incomatable with verson of SMF I'm running  :(

BrotherBrian

I'm looking forward to implementing this on my forum with 1.1 as well!

arara

#84
Quote from: Oldiesmann on October 04, 2006, 10:31:50 AM
Quote from: houston on October 02, 2006, 09:59:50 PM
Now I am getting quite a few of this undefined error messages showing up after fixing the one posted earlier.

Undefined variable: form_nowplaying
File: /home/eaglebay/public_html/newforum/Sources/Post.php

Line: 937

$context['nowplaying'] = str_replace(array('"', '<', '>', '  '), array('&quot;', '&lt;', '&gt;', ' &nbsp;'), $form_nowplaying);


Any thoughts

Try this...

Sources/Post.php

Find
$form_nowplaying = $row['nowPlaying'];

Replace
$form_nowplaying = isset($row['nowPlaying']) ? $row['nowPlaying'] : '';

don't working, same error... with smf 1.1.1 and now playing 1.1.1

oaqm

I installed this via package manager, it does work with some of my themes and not with others.

It works fine with the Default, it works fine with Enterprise and Cerberus. It does not work with Babylon, Alienation, HeliosMulti, Yabba, etc.

Any ideas?

snork13

#86
Quote from: oaqm on December 19, 2006, 06:18:10 PM
I installed this via package manager, it does work with some of my themes and not with others.

It works fine with the Default, it works fine with Enterprise and Cerberus. It does not work with Babylon, Alienation, HeliosMulti, Yabba, etc.

Any ideas?

Yes, modifications only install for the Core-Default theme. However, some themes use the default files when the file is not present in the custom theme. If you unpack the mod on your local pc, you will find an .xml file.

This file tells you:

the files to modify
where the changes are.


http://docs.simplemachines.org/index.php?topic=402

Hope this helps!

-Snork13

Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

oaqm

Quote from: snork13 on December 19, 2006, 06:44:04 PM
Hope this helps!

It sure gives me a place to start. Thanks!!

arara

Quote from: arara on December 19, 2006, 05:11:10 PM
Quote from: Oldiesmann on October 04, 2006, 10:31:50 AM
Quote from: houston on October 02, 2006, 09:59:50 PM
Now I am getting quite a few of this undefined error messages showing up after fixing the one posted earlier.

Undefined variable: form_nowplaying
File: /home/eaglebay/public_html/newforum/Sources/Post.php

Line: 937

$context['nowplaying'] = str_replace(array('"', '<', '>', '  '), array('&quot;', '&lt;', '&gt;', ' &nbsp;'), $form_nowplaying);


Any thoughts

Try this...

Sources/Post.php

Find
$form_nowplaying = $row['nowPlaying'];

Replace
$form_nowplaying = isset($row['nowPlaying']) ? $row['nowPlaying'] : '';

don't working, same error... with smf 1.1.1 and now playing 1.1.1

up

arara


gereire

Ive recently upgraded from 1.0.8 to 1.1.1

i had been running the now playing mod,

and now it doesnt work,

when i try to re-install it i get the following message:

Database Error
QuoteDuplicate column name 'nowPlaying'
File: /home/oneforth/public_html/forum/Packages/temp/dbstuff.php
Line: 48

Ive found the file and the code for it is as follows:

<?php
/*******************************************************************************
This is a simplified script to add settings into SMF.

ATTENTION: If you are trying to INSTALL this package, please access
it directly, with a URL like the following:
http://www.yourdomain.tld/forum/add_settings.php (or similar.)

================================================================================

This script can be used to add new settings into the database for use
with SMF's $modSettings array.  It is meant to be run either from the
package manager or directly by URL.

*******************************************************************************/

// Set the below to true to overwrite already existing settings with the defaults. (not recommended.)
$overwrite_old_settings = false;

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \\")
$mod_settings = array(
'nowplayingEnabled' => '1',
'nowplaying_image' => 'cddisc.gif',
);

/******************************************************************************/

// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone.
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\\'s index.php.');

// Turn the array defined above into a string of MySQL data.
$string = '';
foreach ($mod_settings as $k => $v)
$string .= '
(\\'' . $k . '\\', \\'' . $v . '\\'),';

// Sorted out the array defined above - now insert the data!
if ($string != '')
$result = db_query("
" . ($overwrite_old_settings ? '
REPLACE' : 'INSERT IGNORE') . " INTO {$db_prefix}settings
(variable, value)
VALUES" . substr($string, 0, -1), __FILE__, __LINE__);

$result2 = db_query("ALTER TABLE {$db_prefix}messages ADD nowPlaying TINYTEXT NOT NULL DEFAULT ''", __FILE__, __LINE__);

// Uh-oh spaghetti-oh!
if ($result === false || $result2 === false)
echo '
<b>Error:</b> Database modifications failed!';

?>




any ideas?

drgnfireinferno

I'm getting an error when I try installing the mod.
SMF Version: 1.1.1
Installed Mods: http://i23.photobucket.com/albums/b358/drgnfireinferno/mods.jpg
the currently un unstalled ones are the ones that are giving me errors.

Error Message:
6.     Execute Modification     ./Sources/Subs-Post.php     Test successful
7.    Execute Modification    ./Themes/default/Display.template.php    Test failed
8.    Execute Modification    ./Themes/default/Post.template.php    Test successful

"How to beat yourself up, and make it look like a sporting accident too."

Marianita

It only works in default theme?  :(

Whiney

I've installed NP 1.1 on SMF 1.1.1 and it seems to work except one thing.
No matter how many times I set the 'Now Playing' text and press save, it doesn't save it and the text doesn't appear?
Is this a write perms thing or something else?

Cheers.

Great mod btw  :D

sherpa サイバー侍

Can some one please teach me how to uninstall this mod! I uninstalled it from package center of admin CP but it is still there somewhere giving me error time to time sounds it is not totally uninstalled yet.

scrawl

where can i get the previous packages? i'm looking for the one for 1.1RC3 i'm not willing to upgrade yet due to many issues with 1.1.2 and mods but i would like to use this mod any chance someone can link me.

Thanks

exciting

easy way, i found out, that in database-table smf_settings there is no field with nowplaying_text -> variable and the value is then your text :)

it seems that this was only forgotten :)


Quote from: Whiney on March 01, 2007, 03:20:25 PM
I've installed NP 1.1 on SMF 1.1.1 and it seems to work except one thing.
No matter how many times I set the 'Now Playing' text and press save, it doesn't save it and the text doesn't appear?
Is this a write perms thing or something else?

Cheers.

Great mod btw  :D

exciting

but there are following in the error report:


8: Undefined variable: form_nowplaying
Datei: /is/htdocs/........../smf/Sources/Post.php
Zeile: 961


anyone know why?

thx

Whiney

I've uninstalled it.
It just didn't work.
Shame though.

shapeshifter

Install test fails on 'ModSettings.php' when trying to install through the admin. Any idea why? (Using SMF 1.1.2.)

Advertisement: