Post by brianmbi » Thu Mar 29, 2012 6:01 am

First Please keep in mind that this is the second vqmod I have written. However, the first one was working better than this one. I use the VQmodManager and it produces no errors, loads the .xml fine, etc.

It actually works: http://etechnologytesting.com/example7

However, when enabled it kills all other actions on the main page. Like the carousel, slideshow, etc. I really would like to get this working and put it for free download, without it killing all of the other mods.

I would really like to get this working 1.For my own sanity 2.For stability 3.To Share with others

OpenCart Version: Version 1.5.1.3
VQmod: 1.0.8

Code: Select all

<modification>
    <id>Side Sliding Tab</id>
    <version>1.0.0</version>
    <vqmver>2.1.5</vqmver>
    <author>Brianmbi</author>	
	<file name="catalog/view/theme/*/template/common/header.tpl">
		<operation>
			<search position="before"><![CDATA[
			</head> ]]></search>
			<add><![CDATA[
	<!-- Calling the jquery without having to upload more files to root folder -->		
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
<script src="http://tab-slide-out.googlecode.com/files/jquery.tabSlideOut.v1.3.js"></script>

    <script type="text/javascript">
    $(function(){
        $('.slide-out-div').tabSlideOut({
            tabHandle: '.handle',                
            pathToTabImage: 'image/data/contact_tab.gif',
            imageHeight: '122px',  
            imageWidth: '40px',  
            tabLocation: 'left',  
            speed: 300,    
            action: 'click',
            topPos: '200px',  
            leftPos: '20px',    
            fixedPosition: false  
        });

    });

    </script>
    <style type="text/css">
      
      .slide-out-div {
          padding: 20px;
          width: 250px;
          background: #ffffff;
          border: 1px solid #29216d;
      }      
      </style>
			]]></add>
		</operation>
	</file>		
	
<file name="catalog/view/theme/*/template/common/footer.tpl">
		<operation>
			<search position="before"><![CDATA[
			</body> ]]></search>
			<add><![CDATA[		
<div class="slide-out-div">
            <a class="handle" href="http://link-for-non-js-users.html">Content</a>
            <h3>Choose Your Shop</h3>
            <p>Shop <a href="#" target="_blank">shop1</a></p>
            <p>Shop <a href="#" target="_blank">shop2</a></p>
        </div>
			]]></add>
		</operation>
	</file>		
</modification>

Newbie

Posts

Joined
Fri Feb 17, 2012 8:26 am

Post by rph » Thu Mar 29, 2012 6:14 am

VQMod runs before the page is even rendered. If you're really using VQMod 1.0.8 the problem is the file name wildcard which isn't supported until VQMod 2.1 (I believe) so you need to install the most current version.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by brianmbi » Thu Mar 29, 2012 6:27 am

Took the wild card out. No change, slideshow will not show up in either the default theme or an add-on theme.

I'm stumped.

Newbie

Posts

Joined
Fri Feb 17, 2012 8:26 am

Post by brianmbi » Thu Mar 29, 2012 7:16 am

RPH,

I was wrong the Vqmod version is 2.1.6

OpenCart Version: Version 1.5.1.3

So the wildcard included does work and entering the theme by name works too. I should have caught that, the vqmod never would have worked with the way I have it coded under 1.0.8

Newbie

Posts

Joined
Fri Feb 17, 2012 8:26 am

Post by rph » Thu Mar 29, 2012 7:45 am

It's probably a javascript incompatibility. Confirm that the files are being correctly created in your vqcache then the problem isn't VQMod.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by brianmbi » Thu Mar 29, 2012 7:50 am

BAM!

I got it and it actually lays over default OC jquery and javascript now. Full functionality.

Code: Select all

<modification>
    <id>Side Sliding Tab</id>
    <version>1.0.1</version>
    <vqmver>2.1.6</vqmver>
    <author>Brianmbi</author>	
	
	
	<file name="catalog/view/theme/*/template/common/header.tpl">
		<operation>
			<search position="before"><![CDATA[
			</head> ]]></search>
			<add><![CDATA[
	<!-- Calling the jquery without having to upload more files to root folder -->		

<script src="http://tab-slide-out.googlecode.com/files/jquery.tabSlideOut.v1.3.js"></script>

    <script type="text/javascript">
    $(function(){
        $('.slide-out-div').tabSlideOut({
            tabHandle: '.handle',   
            pathToTabImage: 'image/data/contact_tab.gif', 
            imageHeight: '122px',                    
            imageWidth: '40px',                     
            tabLocation: 'right',  
            speed: 300,      
            action: 'click',      
            topPos: '300px',          
            leftPos: '20px',         
            fixedPosition: false      
        });

    });

    </script>
    <style type="text/css">
      
      .slide-out-div {
          padding: 20px;
          width: 250px;
          background: #ffffff;
          border: 1px solid #29216d;
      }      
      </style>
			]]></add>
		</operation>
	</file>		
	
<file name="catalog/view/theme/*/template/common/footer.tpl">
		<operation>
			<search position="before"><![CDATA[
			</body> ]]></search>
			<add><![CDATA[		
<div class="slide-out-div">
            <a class="handle" href="http://link-for-non-js-users.html">Content</a>
            <h3>Choose Your Shop</h3>
            <p>Shop <a href="#" target="_blank">SHOP 1</a></p>
            <p>Shop <a href="#" target="_blank">SHOP 2</a></p>
        </div>
			]]></add>
		</operation>
	</file>		
</modification>

Newbie

Posts

Joined
Fri Feb 17, 2012 8:26 am
Who is online

Users browsing this forum: No registered users and 2 guests