rejetto forum
February 09, 2012, 04:50:03 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Play sound file on home page load  (Read 1037 times)
0 Members and 1 Guest are viewing this topic.
Drise
Guest


Email
« on: June 07, 2010, 06:47:16 PM »

Is this possible? And if so, how? I would assume it would use the RAWR player and have it stream it as is the magnifying glass "preview" was clicked.
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1916



View Profile WWW
« Reply #1 on: June 12, 2010, 06:58:19 AM »

Yeah, there is several ways you could do it actually. We already have a 'play media' function in the code. I don't remember now but there is a way to popup a preview box and play the media in Terayon and RAWR-Template, via a function/url variable. Play a song, then right click the player, you will receive a link. Then figure out how to use that on page load.

It would be very annoying for visitors though, I am not sure its the best way.

You could also just embed the player somehow on the homepage.
Logged

Drise
Guest


Email
« Reply #2 on: June 13, 2010, 11:58:33 AM »

Well, I'm not very proficient with web page coding/design. Could you, or someone, give like an example piece of code for the embedded player?
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1468



View Profile WWW
« Reply #3 on: June 13, 2010, 03:21:22 PM »

Quote
someone, give like an example piece of code for the embedded player?


We are waiting all for the return of Giant Eagle for that, media players are the privilege of the rawr team  Grin
« Last Edit: June 13, 2010, 03:23:33 PM by Mars » Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1916



View Profile WWW
« Reply #4 on: June 14, 2010, 07:32:16 AM »

Code:
<object type="application/x-shockwave-flash" data="--LINK TO PLAYER--rawr_player.swf" width="500" height="50">
<param name="movie" value="--LINK TO PLAYER--rawr_player.swf"/>
<param name="allowscriptaccess" value="always"/>
<param name="allowfullscreen" value="true"/>
<param name="wmode" value="direct"/>
<param name="flashvars" value="theme={.!theme.}&autoplay=1&file=--LINK TO FILE--"/>
</object>

I think that is set up for MP3.
« Last Edit: June 14, 2010, 07:45:18 AM by TSG » Logged

Drise
Guest


Email
« Reply #5 on: June 15, 2010, 08:28:50 AM »

mp3 is what I have. Thanks!
Logged
rejetto forum
« Reply #5 on: June 15, 2010, 08:28:50 AM »

Do you like this software? Consider even $2
 Logged
Drise
Guest


Email
« Reply #6 on: June 20, 2010, 05:21:18 PM »

For anyone who is wanting to know how to specifically play only on the home page:

Under [special:strings] you'll find this bit bellow:

Code:
--- Other settings:
mod_updates=off
mod_folder_tasks=on
mod_search=on
mod_statistics=off
mod_shoutbox=on
sym_ip=on
btn_back=on
create_folder=on
rename=on

Add onto those variables with something like

Code:
--- Other settings:
mod_updates=off
mod_folder_tasks=on
mod_search=on
mod_statistics=off
mod_shoutbox=on
sym_ip=on
btn_back=on
create_folder=on
rename=on
example=

and past the = paste (on one line)

Code:
<object type="application/x-shockwave-flash" data...


/template/rawr_default/players/rawr_player.swf

given above.

Now find

Code:
<!--{.comment|--><h1>WARNING: This template will only work with HFS 2.3 or greater; macros must be enabled.</h1><!--.} -->

and right above it paste

Code:
{.switch|%folder%|;|
/|{.!example.}|
.}


P.S.

The link to the player that comes default with the RAWR template is

Code:
http://<SERVER ADDRESS HERE>/template/rawr_default/players/rawr_player.swf

I'm also attaching my template, which does have some minor modifications, for anyone wanting to see the whole thing.

* RAWR-Template.tpl (37.67 KB - downloaded 48 times.)
« Last Edit: June 21, 2010, 02:40:12 AM by TSG » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page February 06, 2012, 06:08:48 AM