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.

how to add this button

5 posters

Go down

In progress how to add this button

Post by BetterHax June 8th 2013, 3:22 pm

http://prntscr.com/18vj64

how to add this button same in FM?


Last edited by BetterHax on June 9th 2013, 2:55 pm; edited 2 times in total
avatar
BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

In progress Re: how to add this button

Post by SLGray June 8th 2013, 6:06 pm

Please change the title of your topic, that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.
Take a look at this from the official French support forum - http://forum.forumactif.com/trucs-et-astuces-f8/categorie-retractable-sans-invision-t262264.htm .


how to add this button Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: how to add this button

Post by Symbianize June 9th 2013, 2:48 pm

this feature is working in phpbb2
Symbianize
Symbianize
Forumember

Female Posts : 65
Reputation : 1
Language : English
Location : || New York City ||

Back to top Go down

In progress Re: how to add this button

Post by Derri June 9th 2013, 2:50 pm

Hi,

Isn't this button related to this script --> https://help.forumotion.com/t102749-category-toggle?highlight=Category+toggle

The category toggle?
Derri
Derri
Helper
Helper

Male Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

In progress Re: how to add this button

Post by BetterHax June 9th 2013, 2:54 pm

this feature is working in phpbb2? in tutorial punbb3 and punbb only?
my forum version is phpbb2
avatar
BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

In progress Re: how to add this button

Post by Derri June 9th 2013, 2:58 pm

BetterHax wrote:this feature is working in phpbb2? in tutorial punbb3 and punbb only?
my forum version is phpbb2

It says in the tutorial PHPBB2 boards aren't supported within this tutorial.
Derri
Derri
Helper
Helper

Male Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

In progress Re: how to add this button

Post by BetterHax June 9th 2013, 3:00 pm

how about sir gray link..
i think here have a tutorial there but i dont understand it
avatar
BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

In progress Re: how to add this button

Post by Derri June 9th 2013, 3:07 pm

Now since I can't read french other than some basic french I used a translator and from what I can tell.

You need to take this code

Code:
/* categories retractables sans invision */
$(function() {
  if(window.localStorage) {
    var b = JSON.parse(localStorage.getItem("catRet")) || {}
  }
  var f = 0;
  if($("body#phpbb").length) {
    var a = "div.table-title h2", e = "ul.topiclist", c = ":not(ul.topiclist.forums)"
  }else {
    $("#pun-intro").length ? (a = "div.page-title h2", e = "div.main-head", c = ":not(div.main-content)") : (a = "th.secondarytitle h2", e = "tr", c = ":not(tr)")
  }
  $(a).closest(e).css("cursor", "pointer").each(function() {
    var d = "c" + f++, a;
    window.localStorage ? b[d] && (a = !0) : a = !1;
    a && $(this).nextUntil(c).toggle();
    $(this).click(function() {
      $(this).nextUntil(c).toggle();
      window.localStorage && (b[d] ? delete b[d] : b[d] = 1, localStorage.setItem("catRet", JSON.stringify(b)))
    })
  })
});

And then place it in a JavaScript so go to ACP --> Modules --> Javascript Management --> Create New --> Title it whatever --> In all pages --> enter the code from above --> Save

I could be wrong as the translation wasn't that great but from what I can tell this was what you needed to do to install it.

EDIT: I just tested it and it worked.
Derri
Derri
Helper
Helper

Male Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

In progress Re: how to add this button

Post by Sir Chivas™ June 9th 2013, 6:41 pm

Hi,

If the answer provided by Derri helped out, please edit your first post and mark your thread as solved, thank you. Very Happy
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6965
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: how to add this button

Post by BetterHax June 10th 2013, 5:29 am

not working theres any code will be add in CSS?
avatar
BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

In progress Re: how to add this button

Post by Symbianize June 10th 2013, 1:14 pm

i think no code this feature in phpbb2 version
Symbianize
Symbianize
Forumember

Female Posts : 65
Reputation : 1
Language : English
Location : || New York City ||

Back to top Go down

In progress Re: how to add this button

Post by Derri June 10th 2013, 1:38 pm

BetterHax wrote:not working theres any code will be add in CSS?

Symbianize wrote:i think no code this feature in phpbb2 version

I installed this on a PHPBB3 forum and it worked like a charm. Make sure you have Javascript enabled, you'll see an option in the Javascript management section.

EDIT, I can't say for sure but it sounds like the code might be universal, nothing from the French tutorial will indicate otherwise.
EDIT 2, By the way, you won't get an image, you actually just click on the category title.
Derri
Derri
Helper
Helper

Male Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

In progress Re: how to add this button

Post by Sir Chivas™ June 10th 2013, 2:03 pm

Please change the title of your topic, that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6965
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Back to top


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