SMF Theme Song

Started by Sinan ANDIRMAN, September 14, 2009, 06:10:54 AM

Previous topic - Next topic

Sinan ANDIRMAN

Link to Mod


Mod:
SMF Theme Song

Author:
Sinan ANDIRMAN

Description:
English:

  • This simple mod is used for listen music in your site with Internet Explorer browser. You must edit your music url and loop time in your Admin panel with this mod.
Turkçe:
  • Bu basit mod sitenizde Internet Explorer tarayıcınızla muzik dinlemenize yarar. Müzik urlnizi ve döngü zamanını Admin panelinden ayarlamanız gerekir.

Compatible:
1.0 (All version)

Languages:
English, British and Turkish (With Utf-8)

Costa

Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Sinan ANDIRMAN


funkenwerner

Thanks

works fine

but not on GoogleChrom  :(
SMF 1.1.11 in Verwendung


Sinan ANDIRMAN

#4
Not at all ;)

Try this code in index.template.php

Find:
// Theme Song Modification by Sinan ANDIRMAN
if(empty($settings['theme_song']) && empty($settings['loop_time']))
echo' ';
else
echo'
<bgsound src="'. $settings['theme_song'] . '" loop="'. $settings['loop_time'] . '"></bgsound>';


and replace this code:
// Theme Song Modification by Sinan ANDIRMAN
if(empty($settings['theme_song']) && empty($settings['loop_time']))
echo' ';
else
echo'
<embed src="'. $settings['theme_song'] . '" loop="'. $settings['loop_time'] . '"></embed>';


Thanks,
Sinan ANDIRMAN

ishaan

HEllo Brother.. thanks 4 ur great mod.

i installed ur mod.. its working..

but its not working in other themes. now am trying to install it manually.
but i cant get "Settings.template.php" on my theme folder.. what i do ?




sry my English is very bad

Sinan ANDIRMAN

Try this code in Settings.template.php (If this is in your theme, you must this changing)

Find:
array(
'id' => 'header_logo_url',
'label' => $txt['header_logo_url'],
'description' => $txt['header_logo_url_desc'],
'type' => 'text',
),


and replace this code:


// Theme Song Modification by Sinan ANDIRMAN
array(
'id' => 'theme_song',
'label' => $txt['theme_song_url'],
'description' => $txt['theme_song_dsc'],
'type' => 'text',
),
array(
'id' => 'loop_time',
'label' => $txt['loop_time'],
'description' => $txt['loop_time_dsc'],
'type' => 'text',
),



and also you must use this code in index.template.php file;

Quote from: Sinan ANDIRMAN on September 16, 2009, 03:37:26 PM
Not at all ;)

Try this code in index.template.php

Find:
// Theme Song Modification by Sinan ANDIRMAN
if(empty($settings['theme_song']) && empty($settings['loop_time']))
echo' ';
else
echo'
<bgsound src="'. $settings['theme_song'] . '" loop="'. $settings['loop_time'] . '"></bgsound>';


and replace this code:
// Theme Song Modification by Sinan ANDIRMAN
if(empty($settings['theme_song']) && empty($settings['loop_time']))
echo' ';
else
echo'
<embed src="'. $settings['theme_song'] . '" loop="'. $settings['loop_time'] . '"></embed>';


Thanks,
Sinan ANDIRMAN

ishaan

Brother.. there is no "Settings.template.php" file on my the folder.

so what i do ?

Sinan ANDIRMAN

You must put Settings.template.php which is in default theme (after installing) in your theme file

EroticJudge

Hi there i downloaded this mod, and i was wondering if there is a way to give my members an option if they want to turn off the music.

Sinan ANDIRMAN

hello,
unfourtunately, i have not put this opinion in this mod :( maybe turn off volume of pc will can be solving :)

Dordt

Work in IE but not in Firefox ????


smp420

try this
Quote from: Sinan ANDIRMAN on September 16, 2009, 03:37:26 PM
Not at all ;)

Try this code in index.template.php

Find:
// Theme Song Modification by Sinan ANDIRMAN
if(empty($settings['theme_song']) && empty($settings['loop_time']))
echo' ';
else
echo'
<bgsound src="'. $settings['theme_song'] . '" loop="'. $settings['loop_time'] . '"></bgsound>';


and replace this code:
// Theme Song Modification by Sinan ANDIRMAN
if(empty($settings['theme_song']) && empty($settings['loop_time']))
echo' ';
else
echo'
<embed src="'. $settings['theme_song'] . '" loop="'. $settings['loop_time'] . '"></embed>';


Thanks,
Sinan ANDIRMAN
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

The Wizard

Hello Sinan ANDIRMAN:

I have installed this mod and it works great in my default theme, but I can't get it to work on my theme.

I'm using version 1.1.11.
My theme is Absolute blue and it does not have a Settings.template.php. I did move a copy of Settings.template.php into my theme and added the code into my index.template.php, but all I get is a code error.
attached is my index.template.php without the code added. Can you add the right code that will make it work?

I love this mod and think my users will go crazy about it!
Thank you

akbora

For firefox and Opera? Why not?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Sinan ANDIRMAN

Quote from: The Wizard on December 18, 2009, 08:46:50 PM
Hello Sinan ANDIRMAN:

I have installed this mod and it works great in my default theme, but I can't get it to work on my theme.

I'm using version 1.1.11.
My theme is Absolute blue and it does not have a Settings.template.php. I did move a copy of Settings.template.php into my theme and added the code into my index.template.php, but all I get is a code error.
attached is my index.template.php without the code added. Can you add the right code that will make it work?

I love this mod and think my users will go crazy about it!
Thank you
try this
Quote from: akbora on December 18, 2009, 09:00:08 PM
For firefox and Opera? Why not?
Quote from: smp420 on December 04, 2009, 04:32:14 PM
try this
Quote from: Sinan ANDIRMAN on September 16, 2009, 03:37:26 PM
Not at all ;)

Try this code in index.template.php

Find:
// Theme Song Modification by Sinan ANDIRMAN
if(empty($settings['theme_song']) && empty($settings['loop_time']))
echo' ';
else
echo'
<bgsound src="'. $settings['theme_song'] . '" loop="'. $settings['loop_time'] . '"></bgsound>';


and replace this code:
// Theme Song Modification by Sinan ANDIRMAN
if(empty($settings['theme_song']) && empty($settings['loop_time']))
echo' ';
else
echo'
<embed src="'. $settings['theme_song'] . '" loop="'. $settings['loop_time'] . '"></embed>';


Thanks,
Sinan ANDIRMAN

The Wizard

To: Sinan ANDIRMAN,

Thank you very much for the code rewright it worked like a DREAM!

Keep up the good work.

Wizard

Sinan ANDIRMAN

thanks Wizard, i hope so, i will product new production..

DoctorMalboro

excelent MOD  ;D

spanish translation

$txt['theme_song_url'] = 'Url de la canci&oacute;n';
$txt['theme_song_dsc'] = 'Pega aqu&iacute; la url de tu canci&oacute;n';
$txt['loop_time'] = 'repetir';
$txt['loop_time_dsc'] = 'cuantas veces queres que se repita la canci&oacute;n';


thank you!  ;)

Sinan ANDIRMAN

not at all :D i will update this mod and add this translation

Advertisement: