The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Toggle Category no-solution ?

View previous topic View next topic Go down

In progress Toggle Category no-solution ?

Post by mirza.mejkem.converse on 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 !
http://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 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.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by Guest on 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

Guest
Guest


Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by Guest on 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: http://i46.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 November 25th 2011, 9:40 am

No, there are not. Smile

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

In progress Re: Toggle Category no-solution ?

Post by mirza.mejkem.converse on 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.

mirza.mejkem.converse
New Member

Posts : 9
Reputation : 0
Language : Bosnian

Back to top Go down

View previous topic View next topic Back to top


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