The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Toggle Category no-solution ?

2 posters

Go down

In progress Toggle Category no-solution ?

Post by mirza.mejkem.converse November 24th 2011, 11: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
avatar
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. November 25th 2011, 2:27 am

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/
Nera.
Nera.
Energetic

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

Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by Guest November 25th 2011, 5:11 am

Are there any status updates concerning this bug?

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


Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by Guest November 25th 2011, 6:11 am

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
avatar
Guest
Guest


Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by Nera. November 25th 2011, 9:40 am

No, there are not. Smile
Nera.
Nera.
Energetic

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

Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by mirza.mejkem.converse November 25th 2011, 10: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.
avatar
mirza.mejkem.converse
New Member

Posts : 9
Reputation : 0
Language : Bosnian

Back to top Go down

Back to top

- Similar topics

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