Post by catalinm75 » Tue Jan 21, 2014 7:31 pm

Salut!

Fac un magazin cu 1.5.4.

As vrea o melodie care sa ruleze permanent pe background. E posibil asa ceva?

Daca da, ce ar trebui sa fac?

Multumesc!

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by Xyph3r » Tue Jan 21, 2014 8:12 pm

E posibil in HTML5
http://www.w3schools.com/html/html5_audio.asp

IE 9+

Sau si in browserele mai vechi cu javascript - mai multa bataie de cap.

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by catalinm75 » Tue Jan 21, 2014 9:17 pm

Stiam lucrurileastea, dar nu stiu cum sa le fac posibile in opencart.

Pur si simplu fac "code embeding" si merge?

Ai mai incercat asa ceva si a mers?

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by Xyph3r » Tue Jan 21, 2014 9:50 pm

E cod html...pur si simplu il introduci unde vrei tu..de ce ar functiona diferit pe Opencart? Il adaugi in heade, footer ..modul ...sau unde vrei tu

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by catalinm75 » Tue Jan 21, 2014 11:29 pm

ok

incerc si te tin la curent

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by florinsith » Wed Jan 22, 2014 12:26 am

Nuu, daca vrei sa pui melodie de fundal foloseste vreun plugin care sa aiba si un mic buton de stop undeva.(cele mai enervante situri sunt cele care au muzica pe fundal si no o poti oprii)

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by Xyph3r » Wed Jan 22, 2014 8:16 am

Pai foloseste HTML 5 cu controls daca nu vrea compatibilitate cu browserele mai vechi

Code: Select all

<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
Sau poti folosi youtube si sa ascunzi frame-ul principal ...cam asa..bine..decizi tu setarile

Code: Select all

<iframe width="250" height="25" src="//www.youtube.com/embed/Q_wkhdoE-c0" frameborder="0" allowfullscreen></iframe>

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by catalinm75 » Wed Jan 22, 2014 2:55 pm

Azi fac treaba si-ti dau link!

Inca nu m-am decis asupra melodiei!

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by utzy » Thu Jan 23, 2014 5:47 pm

catalinm75 wrote:
Inca nu m-am decis asupra melodiei!

"Pușca și cureaua lată"

:laugh: :laugh: :laugh: :laugh: :laugh: :laugh:

User avatar
Active Member

Posts

Joined
Fri Nov 25, 2011 5:59 am

Post by catalinm75 » Fri Jan 24, 2014 1:47 am

@ utzy

he he he

hai, nu ma influenta.....

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by catalinm75 » Mon Jan 27, 2014 8:49 pm

Uite cum sta treaba, nu pot insera melodia aia.....

Nu stiu in ce script sa pun codul html 5.

Realmente nu ma descurc.

Pe bune, am nevoie de putin ajutor.

Daca se poate, desigur!

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by Xyph3r » Mon Jan 27, 2014 9:54 pm

O pui in pagina...daca browserul suporta...incepe sa cante..daca nu..

Code: Select all

<audio controls>
  <source src="audio/audio.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
sau

Code: Select all

<embed name="melodia" loop="true" hidden="true" src="audio/audio.mp3"></embed>
bineinteles///melodia o pui in folderul audio creat in root..numele il decizi tu dar il schimbi si in cod

si uita-te aici si la browser support si vezi ce fel de formate suporta fiecare


Mai uita-te si aici...ai un player..8kb are scriptul
http://www.jplayer.org

Aici ai alta metoda

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by catalinm75 » Wed Jan 29, 2014 10:07 pm

Hai sa lamurim o treaba!

Sunt foarte convins ca metofele tale dau rezultate si vor avea succes!

Intrebarea mea, relativ simpla, IN CE SCRIPT trebuie sa le integrez?

Aici e problema mea.....

Asta as fi dorit sa flu.....

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by Xyph3r » Wed Jan 29, 2014 10:43 pm

in niciun script...
depinde ce folosesti...codul HTML audio il bagi in header.tpl sau footer.tpl

Am presupus ca stii macar putin HTML...

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by catalinm75 » Wed Jan 29, 2014 10:53 pm

L-am bagat.

Nu merge!

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by Xyph3r » Wed Jan 29, 2014 11:05 pm

ai uploadat fisierul audio? ai schimbat codul ca sa iti incarce fisierul tau? ai folosit un browser HTML5?

Daca intrai pe pagina oferita de mine mai sus..vedeai in ce browsere functioneaza si tipuri de fisiere suportate.

Supportul pentru audio este limitat. Cea mai buna varianta pentru tine ere sa folosesti jsplayer sau ceva similar.

Sau chiat youtube...iti alegeai o melodie si o puneai embed cu autostart intr-un div care era ascuns

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by catalinm75 » Wed Jan 29, 2014 11:09 pm

Si eu m-am gandit la youtube, dar nu stiu cum sa-l fac sa faca autoplay.....

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by Xyph3r » Wed Jan 29, 2014 11:38 pm

uite asa

Code: Select all

<?php if (!isset($this->request->get['route']) || (isset($this->request->get['route']) && $this->request->get['route'] == 'common/home')) { ?>
	<iframe style="display:none;" width="560" height="315" src="//www.youtube.com/embed/exOA_rGl1BY?autoplay=1" frameborder="0" allowfullscreen></iframe>
<?php } ?>
asta il copiezi in footer.tpl inainte de </body>
Frame-ul va fi ascuns si va canta in background numai pe homepage.
Poti folosi si soundcloud.com sau trilulilu

Code: Select all

<iframe width="110" height="80" src="http://embed.trilulilu.ro/muzica-pop/cornel-constantiniu-draga-1?autoplay=true" frameborder="0" allowfullscreen></iframe>
Cu trilulilu ai si buton de pauza.poti mari width la 448 ca sa ai toata bara trilulilu sau poti ascunde tot iframe-ul cu style="display:none;"

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by catalinm75 » Thu Feb 06, 2014 12:56 pm

Incerc de-o saptamana, diferite metode. Nu merge nimic......

Efectiv, sunt la limita cu nervii.....

Nu reusesc sa fac melodia sa mearga cu niciun chip.

Active Member

Posts

Joined
Fri Jun 17, 2011 2:14 am

Post by Xyph3r » Thu Feb 06, 2014 4:46 pm

Ti-am dat eu sus varianta youtube si varianta trilulilu..testate de mine si merg perfect...mai mult de atat ce pot spune? Doar sa intru sa le fac eu personal

Later Edit: Acum vad ca te-ai dus si pe forumul General sa ceri suport pentru o chestie pe care ti-am explicat-o si pe care nu stii tu sa o faci. Cum vrei sa te ajute oamenii daca tu nu stii sa copiezi 3 randuri in codul tau? Da-mi un acces temporar FTP pe privat si melodia dorita pe trilulilu sau youtube si iti adaug eu.
Last edited by Xyph3r on Thu Feb 06, 2014 4:59 pm, edited 1 time in total.

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am

Who is online

Users browsing this forum: No registered users and 7 guests