<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Chevereto Forums - Third Tab]]></title>
	<link rel="self" href="http://chevereto.com/forums/feed-atom-topic449.xml"/>
	<updated>2011-01-11T08:03:39Z</updated>
	<generator>PunBB</generator>
	<id>http://chevereto.com/forums/topic449-third-tab.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Third Tab]]></title>
			<link rel="alternate" href="http://chevereto.com/forums/post3597.html#p3597"/>
			<content type="html"><![CDATA[<p>None of that code will work without the stylesheet for those classes.</p>]]></content>
			<author>
				<name><![CDATA[piksulz]]></name>
				<uri>http://chevereto.com/forums/user1340.html</uri>
			</author>
			<updated>2011-01-11T08:03:39Z</updated>
			<id>http://chevereto.com/forums/post3597.html#p3597</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Third Tab]]></title>
			<link rel="alternate" href="http://chevereto.com/forums/post3308.html#p3308"/>
			<content type="html"><![CDATA[<p>What i did was made my own custom jquery action for the tabs to make this process easier</p><div class="codebox"><pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
  // &lt;![CDATA[
    $(document).ready(function() {

    //When page loads...
    $(&quot;.tab_content&quot;).hide(); //Hide all content
    $(&quot;ul.upload_options li:first&quot;).addClass(&quot;active&quot;).show(); //Activate first tab
    $(&quot;.tab_content:first&quot;).show(); //Show first tab content

    //On Click Event
    $(&quot;ul.upload_options li&quot;).click(function() {

        $(&quot;ul.upload_options li&quot;).removeClass(&quot;active&quot;); //Remove any &quot;active&quot; class
        $(this).addClass(&quot;active&quot;); //Add &quot;active&quot; class to selected tab
        $(&quot;.tab_content&quot;).hide(); //Hide all tab content

        var activeTab = $(this).find(&quot;a&quot;).attr(&quot;href&quot;); //Find the href attribute value to identify the active tab + content
        $(activeTab).fadeIn(); //Fade in the active ID content
        return false;
      });

    //Hide (Collapse) the toggle containers on load
    $(&quot;.toggle_container&quot;).hide(); 

    //Switch the &quot;Open&quot; and &quot;Close&quot; state per click then slide up/down (depending on open/close state)
    /*$(&quot;a.trigger&quot;).click(function(){
      $(this).toggleClass(&quot;active&quot;).next().slideToggle(&quot;fast&quot;);
      return false; //Prevent the browser jump to the link anchor
    });*/

    $(&quot;a.trigger&quot;).click(function(){
      var $next = $(this).next();

      //close and deactivate everything else
      $(&#039;a.trigger&#039;).not(this).removeClass(&#039;active&#039;);  //deactivate all .trigger buttons except current
      $(&#039;.toggle_container.active_toggle&#039;).not($next.get(0))
        .slideUp()
        .removeClass(&#039;active_toggle&#039;);  //close all active containers except the current and deactivate

      //now deal with the current item (toggle)
      $(this).toggleClass(&quot;active&quot;);
      $next.slideToggle(&quot;medium&quot;).toggleClass(&#039;active_toggle&#039;);

      return false; //Prevent the browser jump to the link anchor
    });
  // ]]&gt;
    &lt;/script&gt;</code></pre></div><p>Then changed </p><p>This <br /></p><div class="codebox"><pre><code>    &lt;div id=&quot;tab_container&quot;&lt;? if (isset($lang)) { echo &#039; class=&quot;&#039;.$lang.&#039;&quot;&#039;; } ?&gt;&gt;
        &lt;div class=&quot;btn_local&quot;&gt;&lt;a class=&quot;local&quot; id=&quot;linklocal&quot; style=&quot;display: none;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
        &lt;div class=&quot;btn_remoto&quot;&gt;&lt;a class=&quot;remota&quot; id=&quot;linkremota&quot;&gt;&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;</code></pre></div><p>To this<br /></p><div class="codebox"><pre><code>&lt;ul class=&quot;upload_options&quot;&gt;
    &lt;li class=&quot;local&quot;&gt;&lt;a href=&quot;#local&quot;&gt;Local&lt;/a&gt;&lt;/li&gt;
    &lt;li class=&quot;remote&quot;&gt;&lt;a href=&quot;#remote&quot;&gt;Remote&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</code></pre></div><p>Now for the body of the feilds</p><p>Change </p><div class="codebox"><pre><code>    &lt;div id=&quot;contenedorupload&quot;&gt;
        &lt;div id=&quot;subir_local&quot;&gt;
            &lt;h2 id=&quot;chooselocal&quot;&gt;&lt;?php echo TXT_LOCAL;?&gt;&lt;/h2&gt;
            &lt;div class=&quot;inputs&quot;&gt;&lt;input name=&quot;fileup&quot; type=&quot;file&quot; size=&quot;60&quot; id=&quot;localUP&quot; onclick=&quot;javascript:document.getElementById(&#039;remotaUP&#039;).value = &#039;&#039;;&quot;/&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div id=&quot;subir_remota&quot; style=&quot;display: none;&quot;&gt;
            &lt;h2 id=&quot;chooseremota&quot;&gt;&lt;?php echo TXT_REMOTE;?&gt;&lt;/h2&gt;
            &lt;div class=&quot;inputs&quot;&gt;&lt;input name=&quot;remota&quot; size=&quot;60&quot; id=&quot;remotaUP&quot; onclick=&quot;javascript:document.getElementById(&#039;localUP&#039;).value = &#039;&#039;;&quot;/&gt;&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;</code></pre></div><p>To this</p><div class="codebox"><pre><code>&lt;div class=&quot;toggle_container pref&quot;&gt;
&lt;div id=&quot;local&quot; class=&quot;tab_content&quot;&gt;
            &lt;h2 id=&quot;chooselocal&quot;&gt;&lt;?php echo TXT_LOCAL;?&gt;&lt;/h2&gt;
            &lt;div class=&quot;inputs&quot;&gt;&lt;input name=&quot;fileup&quot; type=&quot;file&quot; size=&quot;60&quot; id=&quot;localUP&quot; onclick=&quot;javascript:document.getElementById(&#039;remotaUP&#039;).value = &#039;&#039;;&quot;/&gt;&lt;/div&gt;
        &lt;/div&gt;
&lt;div id=&quot;remote&quot; class=&quot;tab_content&quot;&gt;
            &lt;h2 id=&quot;chooseremota&quot;&gt;&lt;?php echo TXT_REMOTE;?&gt;&lt;/h2&gt;
            &lt;div class=&quot;inputs&quot;&gt;&lt;input name=&quot;remota&quot; size=&quot;60&quot; id=&quot;remotaUP&quot; onclick=&quot;javascript:document.getElementById(&#039;localUP&#039;).value = &#039;&#039;;&quot;/&gt;&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;</code></pre></div><br /><p>Note: keep in mind this is was done on a hevily customized script so this may not be perfect if you have any problems let me know.</p><p>From that it should be very simple to add a new tab by adding </p><div class="codebox"><pre><code>&lt;li class=&quot;custom&quot;&gt;&lt;a href=&quot;#custom&quot;&gt;customtab&lt;/a&gt;&lt;/li&gt;</code></pre></div><p>inside the &lt;ul class=&quot;upload_options&quot;&gt;</p><p>then </p><div class="codebox"><pre><code>&lt;div id=&quot;custom&quot; class=&quot;tab_content&quot;&gt;content here &lt;/div&gt;</code></pre></div><p>inside the &lt;div class=&quot;upload_options_container&quot;&gt;</p><p>Hope this helps out.</p>]]></content>
			<author>
				<name><![CDATA[th3fallen]]></name>
				<uri>http://chevereto.com/forums/user1176.html</uri>
			</author>
			<updated>2010-11-25T01:05:59Z</updated>
			<id>http://chevereto.com/forums/post3308.html#p3308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Third Tab]]></title>
			<link rel="alternate" href="http://chevereto.com/forums/post2727.html#p2727"/>
			<content type="html"><![CDATA[<p>This is quite an old thread. I don&#039;t believe <em>macho01</em> still checks this forum.</p><p>His question was however: how to add an extra tab next to remote upload.</p>]]></content>
			<author>
				<name><![CDATA[gamerlv]]></name>
				<uri>http://chevereto.com/forums/user540.html</uri>
			</author>
			<updated>2010-05-29T16:16:26Z</updated>
			<id>http://chevereto.com/forums/post2727.html#p2727</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Third Tab]]></title>
			<link rel="alternate" href="http://chevereto.com/forums/post2725.html#p2725"/>
			<content type="html"><![CDATA[<p>What do you mean by 3rd tap?</p>]]></content>
			<author>
				<name><![CDATA[Mr. Chinn]]></name>
				<uri>http://chevereto.com/forums/user873.html</uri>
			</author>
			<updated>2010-05-29T15:48:03Z</updated>
			<id>http://chevereto.com/forums/post2725.html#p2725</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Third Tab]]></title>
			<link rel="alternate" href="http://chevereto.com/forums/post2195.html#p2195"/>
			<content type="html"><![CDATA[<p>Hello everyone, it&#039;s some days that I&#039;m trying to add a third tab on the index of chevereto, but without result, can anyone explain me how to do that or help me in any way??<br />Thanks</p>]]></content>
			<author>
				<name><![CDATA[macho01]]></name>
				<uri>http://chevereto.com/forums/user716.html</uri>
			</author>
			<updated>2010-01-28T20:28:53Z</updated>
			<id>http://chevereto.com/forums/post2195.html#p2195</id>
		</entry>
</feed>

