We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17282
    • 283 Posts
    My god that looks so good i could cry!

    I cant seem to make the slide show or get any "AJAXyness" to work tho .. ive done the Doc parser thing .. and the links to the relevant JS are showing when i view source...

    any ideas .. this is what i should be seeing when i view source yeah ?

    <script type="text/javascript">var xml_url = 'assets/galleries/[*id*]/gallery.xml';</script>
    <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/slidebox_lang_en.js"></script>
    <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/slidebox.js"></script>
    <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/prototype.js"></script>
    </head>
    
    
    
    <body><


    but all that happens is i click the thumb .. and it goes to a blank page with a large image on it .. works perfect on teh demo site .. so its not my browser sad

    Any help mucho appreciated

    Martyn
      Everytime you use Flash ... a puppy dies .....
      R.G Taylor
      • 7923
      • 4,213 Posts
      Quote from: Lizard at Apr 11, 2006, 09:35 PM
      I cant seem to make the slide show or get any "AJAXyness" to work tho .. ive done the Doc parser thing .. and the links to the relevant JS are showing when i view source...
      Hello and thanks for the comments!

      By looking at the source what you posted, I noticed that you had this at the first line:

      <script type="text/javascript">var xml_url = ’assets/galleries/[*id*]/gallery.xml’;</script>

      That [*id*] should be the actual ID of the document (automatically), but this can happen if you have not commented out the lines 380 through 390 in the fixed document parser class. Actually, if you have not commented those lines, you should see those javascript lines that you quoted twice in the head section, and the above ones should have a number in place of the [*id*], is there? Either way, comment out the lines I said and it should be working.

      You must also click at the "Save changes" button in the picture management after you have uploaded your pics, so that the necessary xml file will be generated. (this will be fixed though in the upcoming releases)


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 17282
        • 283 Posts
        Hi ...

        I have quoted out those lines ...

        heres what is in my head

        	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        	<meta http-equiv="keywords" content="Sloatbucket, Ska, Rock, Punk, PsychoBilly, Post Punk, Nyaaa, New York Alcoholic Anxiety Attack, New Model Army, Matt Heller, Joolz Denby, Joolz, Gothic, Goth, Bondy, BitterSweet Embrace, BitterSweet, Anti Product, Alternative" />
        
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        	<meta name="author" content="ZombieTuesday" />
                
        		<meta name="description" content="Pic Gallerys" />
        	<meta name="robots" content="all" />
        
        <title>BitterSweet Embrace - As Punky As Phuck - Pic Gallerys</title>
        
        	<style type="text/css">
        <!--
        .style1 {font-size: 9px}
        -->
            </style>
        	
        
        	
        	<script type="text/javascript"></script>
        	
        	
        	
            <link href="img/bse1.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
        <!--
        body {
        	background-color: #B90000;
        }
        -->
        </style><script type="text/javascript">var MODX_MEDIA_PATH = "media";</script>
        <script type="text/javascript" src="manager/media/script/bin/webelm.js"></script>
        <link rel="stylesheet" href="[(site_url)]assets/snippets/maxigallery/slidebox/style.css" type="text/css" media="screen" />
        
        
        <!--[if gte IE 5.5]>
        
        <![if lt IE 7]>
        
        <style type="text/css">
        
        * html #overlay{
        
        background-color: #333;
        
        back\ground-color: transparent;
        
        background-image: url(assets/snippets/maxigallery/slidebox/blank.gif);
        
        filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src="assets/snippets/maxigallery/slidebox/overlay.png", sizingMethod="scale");
        
        </style>
        
        <![endif]>
        
        <![endif]-->
        
        <script type="text/javascript">var xml_url = 'assets/galleries/[*id*]/gallery.xml';</script>
        <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/slidebox_lang_en.js"></script>
        <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/slidebox.js"></script>
        <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/prototype.js"></script>
        <!-- Start QuickEdit headers -->
        <script type="text/javascript">
         var modId = '1';
         var managerPath = '/manager/';
         var modPath = 'assets/modules/quick_edit';
        </script>
        <script src="assets/modules/quick_edit/javascript/cookies.js" type="text/javascript"></script>
        <script src="assets/modules/quick_edit/javascript/output.js" type="text/javascript"></script>
        <script type="text/javascript" src="manager/media/script/scriptaculous/prototype.js"></script>
        
        <script type="text/javascript" src="manager/media/script/scriptaculous/scriptaculous.js"></script>
        <link type="text/css" rel="stylesheet" href="assets/modules/quick_edit/styles/output.css" />
        <!-- End QuickEdit headers --></head>


        Im no coder .. does this shed any light on it ?

        Many thanks

        Martyn
          Everytime you use Flash ... a puppy dies .....
          R.G Taylor
          • 7923
          • 4,213 Posts
          Quote from: Lizard at Apr 11, 2006, 10:00 PM
          Im no coder .. does this shed any light on it ?
          Unfortunently no.. just gotta keep guessing! grin Do you have the snippet call in a cached page? If so, do you call it by using [!MaxiGallery!] ? Or if you have the snippet call in an uncached page, call it by using [[MaxiGallery]]. If this doesn’t help, the I would think that the document parser class you’re using is still not correctly patched..


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 17282
            • 283 Posts
            is this wrong?

             <script type="text/javascript">var xml_url = 'assets/galleries/[*id*]/gallery.xml';</script>
            <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/slidebox_lang_en.js"></script>
            <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/slidebox.js"></script>
            <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/prototype.js"></script>
            <


            that [(site-url)] doesnt look right... but im pretty rubbish at codey things ...

            I downloaded the document parser and commented out the lines ... but im thinking the problem is there ... god only knows what im doing wrong.

            its on an uncached page using this call : [[MaxiGallery? &display=`embedded` &embedtype=`slidebox` &pics_in_a_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`]]

            thnx smiley

            Martyn
              Everytime you use Flash ... a puppy dies .....
              R.G Taylor
              • 17282
              • 283 Posts
              Hey doze....

              further to our conversations last night

              its not just my template .. doesnt seem to work on any on my site!

              just created this ultra basic template :
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              <html xmlns="http://www.w3.org/1999/xhtml">
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
              <title>Untitled Document</title>
              </head>
              
              <body>
              
              [*content*]
              
              
              </body>
              </html>


              still no worky!

              it Only works on the default minumum!

              god only knows why.

              does anyone have any ideas why the modx tags in maxigallery wouldnt parse on any template but the default minumum ?

              Many thanks smiley

              Martyn

              EDIT: actually i cant get this to work on any site with anything other than the default minimal template!

              very wierd!

              Martyn
                Everytime you use Flash ... a puppy dies .....
                R.G Taylor
              • Sorry for stepping back in again late... Can you show us the restulting XHTML output of the page after creating the simple template that is supposed-to-be-running MaxiGallery, please? I suspect you’ve not patched the regClient functions and the regular template’s built in calls to scriptaculous and prototype are what makes it work.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 17282
                  • 283 Posts
                  Quote from: rthrash at Apr 12, 2006, 01:18 PM

                  Sorry for stepping back in again late... Can you show us the restulting XHTML output of the page after creating the simple template that is supposed-to-be-running MaxiGallery, please? I suspect you’ve not patched the regClient functions and the regular template’s built in calls to scriptaculous and prototype are what makes it work.

                  yep sure : by the way .. i patched doc.parser .. but as a safeguard doze also sent me his to use .. same problem .. thnx ryan

                  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                  <html xmlns="http://www.w3.org/1999/xhtml">
                  <head>
                  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
                  <title>Untitled Document</title>
                  <script src="manager/media/script/scriptaculous/prototype.js" type="text/javascript"></script>
                          <script src="manager/media/script/scriptaculous/scriptaculous.js" type="text/javascript"></script>
                  <link rel="stylesheet" href="[(site_url)]assets/snippets/maxigallery/slidebox/style.css" type="text/css" media="screen" />
                  
                  
                  <!--[if gte IE 5.5]>
                  
                  <![if lt IE 7]>
                  
                  <style type="text/css">
                  
                  * html #overlay{
                  
                  background-color: #333;
                  
                  back\ground-color: transparent;
                  
                  background-image: url(assets/snippets/maxigallery/slidebox/blank.gif);
                  
                  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src="assets/snippets/maxigallery/slidebox/overlay.png", sizingMethod="scale");
                  
                  </style>
                  
                  <![endif]>
                  
                  <![endif]-->
                  <script type="text/javascript">var xml_url = 'assets/galleries/[*id*]/gallery.xml';</script>
                  
                  <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/slidebox_lang_en.js"></script>
                  <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/slidebox.js"></script>
                  <script type="text/javascript" src="[(site_url)]assets/snippets/maxigallery/slidebox/prototype.js"></script>
                  <!-- Start QuickEdit headers -->
                  <script type="text/javascript">
                   var modId = '1';
                   var managerPath = '/manager/';
                   var modPath = 'assets/modules/quick_edit';
                  </script>
                  <script src="assets/modules/quick_edit/javascript/cookies.js" type="text/javascript"></script>
                  <script src="assets/modules/quick_edit/javascript/output.js" type="text/javascript"></script>
                  <script type="text/javascript" src="manager/media/script/scriptaculous/prototype.js"></script>
                  <script type="text/javascript" src="manager/media/script/scriptaculous/scriptaculous.js"></script>
                  
                  <link type="text/css" rel="stylesheet" href="assets/modules/quick_edit/styles/output.css" />
                  <!-- End QuickEdit headers --></head>
                  
                  <body><!-- Start QuickEdit toolbar -->
                  <div id="QE_Toolbar" onmouseup="QE_SetPosition(this);" style="display:none;">
                   <div id="QE_Toolbar_Header">
                    <h1 id="QE_Title">QuickEdit</h1>
                    <a id="QE_Button_content" class="QE_Button" href="javascript:;" onclick="javascript: QE_ToggleMenu('content');">Content</a><a id="QE_Button_setting" class="QE_Button" href="javascript:;" onclick="javascript: QE_ToggleMenu('setting');">Settings</a><a id="QE_Button_go" class="QE_Button" href="javascript:;" onclick="javascript: QE_ToggleMenu('go');">Go</a>
                   </div> 
                   <div id="QE_Menu_content" class="QE_Menu" style="display:none;">
                  
                   <ul>
                    <li><a href="javascript:;" id="QE_Toolbar_content" onclick="javascript: QE_OpenEditor(93, 'content');" title="Edit Document content">Document content</a></li><li><a href="javascript:;" id="QE_Toolbar_description" onclick="javascript: QE_OpenEditor(93, 'description');" title="Edit You can enter an optional description of the document here.">Description</a></li><li><a href="javascript:;" id="QE_Toolbar_introtext" onclick="javascript: QE_OpenEditor(93, 'introtext');" title="Edit Type a brief summary of the document">Summary (introtext)</a></li><li><a href="javascript:;" id="QE_Toolbar_longtitle" onclick="javascript: QE_OpenEditor(93, 'longtitle');" title="Edit Here you can enter a longer title for your document. This is handy for search engines, and might be more descriptive for your document.">Long title</a></li><li><a href="javascript:;" id="QE_Toolbar_pagetitle" onclick="javascript: QE_OpenEditor(93, 'pagetitle');" title="Edit Type the name/ title of the document here. Try to avoid using backslashes in the name!">Title</a></li>
                   </ul>
                  </div><div id="QE_Menu_setting" class="QE_Menu" style="display:none;">
                   <ul>
                    <li><a href="javascript:;" id="QE_ShowLinks" onclick="QE_ToggleLinks(true);"><img id="QE_ShowLinks_check" src="assets/modules/quick_edit/images/checked.gif" alt="checked" style="float:left; margin-right:3px;" />Show links</a></li><li><a href="javascript:;" id="QE_Toolbar_alias" onclick="javascript: QE_OpenEditor(93, 'alias');" title="Edit Here you can select an alias for this document. This will make the document accessible using:
                  
                  http://yourserver/alias
                  
                  This only works if you're using friendly URLs.">Document's alias</a></li><li><a href="javascript:;" id="QE_Toolbar_cacheable" onclick="javascript: QE_SendAjax('doc=93&var=cacheable&save=1&tvcacheable=1', function() { window.location.reload() } );" title="Edit Leaving this field checked will allow the document to be saved to cache. If your document contains snippets, make sure this field is unchecked."><img src="assets/modules/quick_edit/images/unchecked.gif" alt="checked" style="float:left; margin-right:3px;" />Cacheable</a></li><li><a href="javascript:;" id="QE_Toolbar_hidemenu" onclick="javascript: QE_SendAjax('doc=93&var=hidemenu&save=1&tvhidemenu=1', function() { window.location.reload() } );" title="Edit Select this option to show document inside a web menu. Please note that some Menu Builders might choose to ignore this option."><img src="assets/modules/quick_edit/images/unchecked.gif" alt="checked" style="float:left; margin-right:3px;" />Hide in menu</a></li><li><a href="javascript:;" id="QE_Toolbar_menuindex" onclick="javascript: QE_OpenEditor(93, 'menuindex');" title="Edit Menu Index is a field you can use for sorting document in your menu snippet(s). You can also use it for any other purpose in your snippets.">Menu index</a></li><li><a href="javascript:;" id="QE_Toolbar_menutitle" onclick="javascript: QE_OpenEditor(93, 'menutitle');" title="Edit Menu title is a field you can use to display a short title for the document inside your menu snippet(s) or modules.">Menu title</a></li><li><a href="javascript:;" id="QE_Toolbar_published" onclick="javascript: QE_SendAjax('doc=93&var=published&save=1&tvpublished=', function() { window.location.reload() } );" title="Edit Check this field to have the document published immediately after saving it."><img src="assets/modules/quick_edit/images/checked.gif" alt="checked" style="float:left; margin-right:3px;" />Published?</a></li><li><a href="javascript:;" id="QE_Toolbar_searchable" onclick="javascript: QE_SendAjax('doc=93&var=searchable&save=1&tvsearchable=', function() { window.location.reload() } );" title="Edit Checking this field will allow the document to be searched. You can also use this field for other purposes in your snippets."><img src="assets/modules/quick_edit/images/checked.gif" alt="checked" style="float:left; margin-right:3px;" />Searchable</a></li>
                  
                   </ul>
                  </div><div id="QE_Menu_go" class="QE_Menu" style="display:none;">
                   <ul>
                    <li><a id="QE_Manager" href="/manager/">Manager</a></li><li><a id="QE_Help" href="http://www.modxcms.com/quickedit.html">Help</a></li><li><a id="QE_Logout" href="index.php?id=93&QuickEdit_logout=logout">Logout</a></li>
                   </ul>
                  </div>
                  </div>
                  <!-- End QuickEdit toolbar -->
                  
                  
                  		<form action="/test.html" method="post" name="activateadminform">
                  
                  			<input type="hidden" name="mode" value="admin">
                  
                  			<center><input type="submit" value="Manage pictures"></center>
                  
                  		</form>
                  
                  		<table class="galleria" border="0" width="100%"><tr>
                  
                  		<td align="center" style="width:33%"><br /><a href="http://www.bittersweetembrace.com/assets/galleries/93/1dscf1201.jpg" rel="lightbox"><img src="assets/galleries/93/tn_1dscf1201.jpg" class="thumbnail" title=" » Click to zoom ->" alt=" » Click to zoom ->" /></a>
                  
                  		</td>
                  
                  		<td align="center" style="width:33%"><br /><a href="http://www.bittersweetembrace.com/assets/galleries/93/1dscf1195.jpg" rel="lightbox"><img src="assets/galleries/93/tn_1dscf1195.jpg" class="thumbnail" title=" » Click to zoom ->" alt=" » Click to zoom ->" /></a>
                  
                  		</td>
                  
                  		<td align="center" style="width:33%"><br /><a href="http://www.bittersweetembrace.com/assets/galleries/93/1dscf1200.jpg" rel="lightbox"><img src="assets/galleries/93/tn_1dscf1200.jpg" class="thumbnail" title=" » Click to zoom ->" alt=" » Click to zoom ->" /></a>
                  
                  		</td></tr><tr>
                  
                  		<td align="center" style="width:33%"><br /><a href="http://www.bittersweetembrace.com/assets/galleries/93/dscf1200.jpg" rel="lightbox"><img src="assets/galleries/93/tn_dscf1200.jpg" class="thumbnail" title=" » Click to zoom ->" alt=" » Click to zoom ->" /></a>
                  
                  		</td>
                  
                  		<td align="center" style="width:33%"><br /><a href="http://www.bittersweetembrace.com/assets/galleries/93/dscf1201.jpg" rel="lightbox"><img src="assets/galleries/93/tn_dscf1201.jpg" class="thumbnail" title=" » Click to zoom ->" alt=" » Click to zoom ->" /></a>
                  
                  		</td>
                  
                  		<td align="center" style="width:33%"><br /><a href="http://www.bittersweetembrace.com/assets/galleries/93/dscf1195.jpg" rel="lightbox"><img src="assets/galleries/93/tn_dscf1195.jpg" class="thumbnail" title=" » Click to zoom ->" alt=" » Click to zoom ->" /></a>
                  
                  		</td></tr></table>
                  <script type="text/javascript">
                  QE_PositionToolbar($('QE_Toolbar'));
                  QE_ToggleLinks();
                  new Draggable('QE_Toolbar', {handle:'QE_Title'});
                  </script></body>
                  
                  </html>
                    Everytime you use Flash ... a puppy dies .....
                    R.G Taylor
                    • 17282
                    • 283 Posts
                    and very wierdly .. this is the source of the large picture page i goto!

                    ÿØÿà
                      Everytime you use Flash ... a puppy dies .....
                      R.G Taylor
                      • 7923
                      • 4,213 Posts
                      Yea. it’s the minimal template’s built in calls to prototype what makes it work in it, like Ryan said.. The tags are not parsed in it too.. But it can’t be the document parser class anymore, because you are using the same what I use.. It must be some other plugin or something that is causing this..

                      But like I said in IRC last night, you can just comment out the regClientCSS and regClientStartupScript lines from the maxigallery snippet code and put the scripts to the head of the template manually. If you look back at this thread, I have attatched the scripts to use in to some of my post.

                      But I would REALLY like to get this resolved, because it’s driving me nuts! grin


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."

                      This discussion is closed to further replies. Keep calm and carry on.