. .
pragmaMx Support Forum 26 Mai 2012, 01:30:59 *
Willkommen Gast. Bitte einloggen oder registrieren.


Einloggen mit Benutzername und Passwort
News:
Brauchen Sie Hilfe? Bitte nutzen Sie unsere Suchfunktion bevor Sie Beiträge oder Fragen ins Board schreiben! Viele Fragen wurden bereits gestellt und beantwortet. Danke!
 
Übersicht Hilfe Forenregeln / Boardrules
 
Suche
Seiten: [1]   Nach unten
Drucken
Autor Thema: Javascript conflicts  (Gelesen 4240 mal)
0 Mitglieder und 2 Gäste betrachten dieses Thema.
shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« am: 20 Oktober 2011, 05:57:08 »

 Hi @ all pragmamx community.
My theme has got a javascript tv turning screen in home page ( http://TradeZone.fr ) and if i put a javascript navbar into modules, screenshots images into the tv don't move (work good on this test website http://www.communaute-echange.com/ ).
I've the same problem with the new java birthdate register, if i use the tv and/or the navbar, it's not works and guest can't register.

 It try to move java files into includes/javascript/jquery but it's not work, and i try to move position of scripts in theme.html but it's not works...
please help me

 Thanks @ all community
Regards,
shorty
Gespeichert

comedi
Moderator
*****
Offline Offline

Geschlecht: Männlich
Beiträge: 669

comedi


WWW
« Antworten #1 am: 20 Oktober 2011, 10:02:21 »

Moin shorty,  morning

you tie several times the same Javscript.

Zitat
* jQuery JavaScript Library v1.6.4

It is sufficient if you are in your modules before you insert the javascripts, the following uses:

Code: [Select]  
pmxHeader::add_jquery();

and then delete the duplicate files jquery.
Code: [Select]  
<script src="includes/javascript/jquery/jquery2.js" type="text/javascript">
« Letzte Änderung: 20 Oktober 2011, 10:07:30 von comedi » Gespeichert

LG Michael


Kein Support über PN, Mail oder ICQ!

CMS-Version: pragmaMx 1.12.1 --- PHP-Version: 5.2.14
MySQL-Version: 5.0.67 --- Server-Version: Apache 2.2.4

Wer den Weg zum Ziel kennt - dann aber Umwege nimmt - muss sich nicht wundern wenn er sein Ziel nicht findet!


Gemeinschaftseite: www.pragmamx-erweiterungen.de
shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #2 am: 20 Oktober 2011, 18:04:54 »

 Thanks for you help  smile
but i don't know how use this in my thème.

it's in my theme.html file
Code: [Select]  
<script src="includes/javascript/jquery/jquery2.js" type="text/javascript">

and javscript i use in into my thème folder, but i don't see where i must add this code

Code: [Select]  
pmxHeader::add_jquery();

functions.php, settings.php, theme.php ?

it's my head config
Code: [Select]  
<!-- START more_header -->
<link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
<script type="text/javascript" src="includes/javascript/jquery/jquery.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.1.js"></script>
<script type="text/javascript" src="js/jcarousel.js"></script>
<script type="text/javascript" src="js/cufon.js"></script>
<script type="text/javascript" src="js/Hand_Of_Sean_400.font.js"></script>
<script type="text/javascript" src="js/effects.js"></script>
<script type="text/javascript">
jQuery(function() {
jQuery(".mygallery").jCarouselLite({
btnNext: ".nextb",
        btnPrev: ".prevb",
easing: "backout",
vertical: true,
auto: 4000,
    speed: 1000

    });
jQuery(".mytext").jCarouselLite({
        btnNext: ".nextb",
        btnPrev: ".prevb",
visible: 1,
auto: 4000,
easing: "backout",
    speed: 1000

    });
});
</script>
<link type="text/css" href="themes/nawvander237/themes/default/jx.stylesheet.css" rel="stylesheet"/>
<script type="text/javascript" src="includes/javascript/jquery/jquery.js"></script>
<script type="text/javascript" src="js/jquery.jixedbar.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
$("#sample-bar").jixedbar();
    });
</script>
    <!--[if lte IE 7]>
      <link rel="stylesheet" href="style/patch-ie/patch_ie.css" type="text/css" />
    <![endif]-->
 <!-- END more_header -->


regards,
shorty

Gespeichert

comedi
Moderator
*****
Offline Offline

Geschlecht: Männlich
Beiträge: 669

comedi


WWW
« Antworten #3 am: 20 Oktober 2011, 23:55:11 »

Hoi shorty,  Smiley

Do it like this for example. Put one in your theme folder "js" and put there purely to themespzifische javscript. The open functions put on as javascript and add it as the example in the function with one.
Gespeichert

LG Michael


Kein Support über PN, Mail oder ICQ!

CMS-Version: pragmaMx 1.12.1 --- PHP-Version: 5.2.14
MySQL-Version: 5.0.67 --- Server-Version: Apache 2.2.4

Wer den Weg zum Ziel kennt - dann aber Umwege nimmt - muss sich nicht wundern wenn er sein Ziel nicht findet!


Gemeinschaftseite: www.pragmamx-erweiterungen.de
shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #4 am: 21 Oktober 2011, 01:36:49 »

 Thanks for help me  Smiley
i try this but it's not works, javascript don't start :

in functions.php (it's a 1.11 theme, i don't know how convert)

i put this :
Code: [Select]  
//function css/java test
function css1 ()
{
    global $theme_template, $themesetting;    
pmxHeader::add_style(MX_THEME_DIR . '/style/style.css');
pmxHeader::add_style(MX_THEME_DIR . '/themes/default/jx.stylesheet.css');
}

//function css/java test2
function css2 ()
{
    global $theme_template, $themesetting;
pmxHeader::add_script(MX_THEME_DIR . '/js/jquery.easing.1.1.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/jcarousel.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/cufon.js.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/Hand_Of_Sean_400.font.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/effects.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/sjquery.jixedbar.min.js');
}

I only let in theme.html

Code: [Select]  
<!-- START more_header -->
<script type="text/javascript">
jQuery(function() {
jQuery(".mygallery").jCarouselLite({
btnNext: ".nextb",
        btnPrev: ".prevb",
easing: "backout",
vertical: true,
auto: 4000,
   speed: 1000

    });
jQuery(".mytext").jCarouselLite({
        btnNext: ".nextb",
        btnPrev: ".prevb",
visible: 1,
auto: 4000,
easing: "backout",
   speed: 1000

    });
});
</script>
<link type="text/css" href="themes/nawvander237/themes/default/jx.stylesheet.css" rel="stylesheet"/>
<script type="text/javascript">
    $(document).ready(function() {
$("#sample-bar").jixedbar();
    });
</script>
    <!--[if lte IE 7]>
      <link rel="stylesheet" href="style/patch-ie/patch_ie.css" type="text/css" />
    <![endif]-->
 <!-- END more_header -->

and the turning screen not works and buttons of the bars appears directly on the footer templates like when jquery is not reconized. You can see this result on http://trade-zone.fr
« Letzte Änderung: 21 Oktober 2011, 01:40:52 von shorty » Gespeichert

shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #5 am: 22 Oktober 2011, 01:26:48 »

 In my last attempt i try this code in header.php :

Code: [Select]  
//function css/java test
{
pmxHeader::add_style(MX_THEME_DIR . '/themes/default/jx.stylesheet.css');
}

//function css/java test2

{
pmxHeader::add_script(MX_THEME_DIR . '/js/jquery.easing.1.1.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/jcarousel.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/cufon.js.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/Hand_Of_Sean_400.font.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/effects.js');
pmxHeader::add_script(MX_THEME_DIR . '/js/sjquery.jixedbar.min.js');

pmxHeader::add_jquery('ui/jquery-ui-pmx-core.min.js');
}


 I really don't know how doing this  gruebel
Gespeichert

shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #6 am: 26 Oktober 2011, 23:27:18 »

 In my last attempt to found a solution, i tried to put in theme.php & my block file :

Code: [Select]  
pmxHeader::add_style('/themes/nawvander2391/themes/default/jx.stylesheet.css');
pmxHeader::add_script('/themes/mythemefolder/js/jquery.jixedbar.min.js');
pmxHeader::add_script('/themes/mythemefolder/js/jquery.jixedbar.js');
pmxHeader::add_script('/themes/mythemefolder/js/bar.js');
pmxHeader::add_script('includes/javascript/jquery/jquery.min.js');
pmxHeader::add_script('includes/javascript/jquery/jquery.js');

 But always not works  mad

I give the script of the navbar if someone found how do work without conflict with new register calendar (members can't suscribe if you use it).  This java conflict appears also with the tv of mx-envander theme.

* jquery.jixedbar-0.0.5-branch.rar (68.23 KB - runtergeladen 19 Mal.)
Gespeichert

shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #7 am: 28 Oktober 2011, 01:53:46 »

 Finally i think it's also a cache problem. When cache theme cache is inactive (FALSE) for guests (in panel and in a thre bottom of setting.php theme file) visitors can't register (view the java birthdate calendar), and there is a problem with dispaly templates on home home page BUT the navbar maybe display correctly  mad2
Code: [Select]  
define('MX_THEME_CACHABLE', false);

 And
When  i define TRUE in settings.php the register calendar works BUT the navbar don't works for guest and the display of homepage have a problem (for visitors who can't register) BUT the navbar and the homepage display good for registered users.

If define true in settings .php and activate cache in config, visitors can register (only on quick register it's not works), but they can't see the navbar, they can't see correctly homepage complete and forums templates isn't complete some times...

  coffee

 Thanks to help me if you have an idea for this


Gespeichert

shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #8 am: 28 Oktober 2011, 03:12:41 »

OK i don't found the solution @ the moment.
Thanks Comedi ! Your method works with block inserts like you suggest.  drinks
But i don't know how do for visitors can registers and see the navbar [or other javascripts] Sad
« Letzte Änderung: 28 Oktober 2011, 03:42:50 von shorty » Gespeichert

shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #9 am: 12 Dezember 2011, 07:22:42 »

Hello @ all PragmaMx Community  smile
 I'don't know why it's don't work.
If cache is all active (in settings.php , admin option & debu) register work but can't display java bar & loginform
If cache is ALL inactive java bar & loginform works but you can't register (birthdate is not displayed)
If you purge browser cache, you can register one time but if you refresh the page it's not works
I try this with mx_evander theme and with Elements thème (like on http://tradezone.fr)
A return to the old register method could work around this problem if someone If somebody knows how to do.
 I am ok to give my details to access my server if anyone want to help me
This is a big problem for me because I can not update my software if visitors can not register on my website. So I stay in 1.11 for several months now that the update was released because of this problem.  crash

Thank you for your support
  Sincerely,
shorty
« Letzte Änderung: 12 Dezember 2011, 07:30:56 von shorty » Gespeichert

shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #10 am: 13 Dezember 2011, 20:09:03 »

 cry_smile
Gespeichert

Seiten: [1]   Nach oben
Drucken
 
Gehe zu:  

Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
design by hENNE, layout based on YAML