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.

how to add this button

View previous topic View next topic Go down

In progress how to add this button

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

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 on 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 .


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


SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: how to add this button

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

this feature is working in phpbb2

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 on June 9th 2013, 2:50 pm

Hi,

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

The category toggle?


Forum Rules: :Forumotion Staff: :Appeal A Warning: :FAQ: :Tips & Tricks: :Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

In progress Re: how to add this button

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

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

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 on 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
Administrator
Administrator

Male Posts : 8355
Reputation : 571
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

In progress Re: how to add this button

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

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

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 on 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
Administrator
Administrator

Male Posts : 8355
Reputation : 571
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™ on 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



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: how to add this button

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

not working theres any code will be add in CSS?

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 on June 10th 2013, 1:14 pm

i think no code this feature in phpbb2 version

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 on 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
Administrator
Administrator

Male Posts : 8355
Reputation : 571
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™ on 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.



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

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