Toggle Category no-solution ?

Go down

In progress Toggle Category no-solution ?

Post by mirza.mejkem.converse on Thu Nov 24, 2011 3:54 pm

FORUM VERSION : punBB
So i really tried to get it, but It's impossible. The toggle isn't visible. I tried to move it to the left and to the top but It didn't worked.
I tried it on there, but It doesnt work. I did everything right, i placed the script where is should be, i placed the css on the bottom and so on, but It doesn't work. Any solution ?

http://forum-owners.forumotions.in/
This is where I try to get the toggle.

And I was using this tutorial !
https://help.forumotion.com/t96460-category-toggle-script

mirza.mejkem.converse
New Member

Posts : 9
Reputation : 0
Language : Bosnian

Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by Nera. on Thu Nov 24, 2011 6:27 pm

Hello,

You did not follow the step with the dot Mirza according to the sript I see on your forum.

Before saving the code please find this piece of code
Code:
        cookies = document·cookie.split('; ');

and change it to:
Code:
        cookies = document (dot) cookie.split('; ');

Everything is Ok with the tutorial. Here is after I have tried it on punBB.
http://tiki.makingforum.com/
avatar
Nera.
Energetic

Female Posts : 7078
Reputation : 2015
Language : English
Location : -

http://webartzforum.com

Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by Guest on Thu Nov 24, 2011 9:11 pm

Are there any status updates concerning this bug?

It would really be nice if the correct characters could be entered into the tutorial. Wink

Guest
Guest


Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by Guest on Thu Nov 24, 2011 10:11 pm

Go to: ACP - Modules - HTML & JAVASCRIPT - Javascript codes management:

  • Title * : Category Toggle Script for punBB
  • Placement : In all the pages
  • Javascript Code * :
    Code:
    $(function(){
    var partname = location.pathname.slice(1,5);
        $("div.page-title h2").prepend('<span class="collapse" style="float:right"><img src="http://i46.servimg.com/u/f46/15/26/55/24/icon_c10.gif" alt="fmClose" /><img style="display:none" src="http://i46.servimg.com/u/f46/15/26/55/24/icon_e10.gif" alt="fmOpen" /></span>');
        $(".collapse").each(function(index) {
            $(this).attr("id", "fmvicollapse" + partname + index);
            if (my_getcookie("fmvicollapse" + partname + index) == "1") {
                $(this).children("img[alt='fmClose']").hide();
                $(this).children("img[alt='fmOpen']").show();
                $(this).parent().parent().parent().next().hide();
            };
        });
        $(".collapse img[alt='fmClose']").click(function() {
            my_setcookie($(this).parent().attr("id"), 1, 1, 0);
            $(this).hide().next().show();
            $(this).parent().parent().parent().parent().next().slideUp();
        });
        $(".collapse img[alt='fmOpen']").click(function() {
            my_setcookie($(this).parent().attr("id"), 0, 1, 0);
            $(this).hide().prev().show();
            $(this).parent().parent().parent().parent().next().slideDown();
        });
    });


Demo: https://i.servimg.com/u/f46/15/26/55/24/exampl11.png

Guest
Guest


Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by Nera. on Fri Nov 25, 2011 1:40 am

No, there are not. Smile
avatar
Nera.
Energetic

Female Posts : 7078
Reputation : 2015
Language : English
Location : -

http://webartzforum.com

Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by mirza.mejkem.converse on Fri Nov 25, 2011 2:53 am

@Nera. wrote:Hello,

You did not follow the step with the dot Mirza according to the sript I see on your forum.

Before saving the code please find this piece of code
Code:
        cookies = document·cookie.split('; ');

and change it to:
Code:
        cookies = document (dot) cookie.split('; ');

Everything is Ok with the tutorial. Here is after I have tried it on punBB.
http://tiki.makingforum.com/

Hvala Nero ali piše da je to za phpBB3, i eto promjenio sam, stavio sam (dot) ali opet ništa :S
Šta da stavim umjesto tog dot ?

URADIO SAM SVE, OPET NE RADI -.-"
Može li neko dati tačan kod ?

----------------------

Ty Nera but It stands there that the code code above is just for phpBB3, but I changed it, i replaced the • with (dot). But the result was the same. Now i changed the whole "(dot)" to just "." But the same result.

mirza.mejkem.converse
New Member

Posts : 9
Reputation : 0
Language : Bosnian

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum