1
maxima
Collapsible Block Listing in administration
  • 2006/8/29 17:11

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


Since the block list can get really long I suggest a collapsible method with the option to 'collapse all' just as the 'nested' system.

Related blocks would be grouped ie: All system blocks, all forum blocks, all custom blocks etc.

2
davidl2
Re: Collapsible Block Listing in administration
  • 2006/8/29 17:12

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


A good idea to submit here

3
wizanda
Re: Collapsible Block Listing in administration
  • 2006/8/29 20:12

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Here is a simple way to fold anything as my whole site is now blocks and themes....


You make a Java code at the top like so....

<script type="text/javascript">
    function 
showorhide(id) { 
        if (
document.getElementById(id).style.display == "none") {
            
document.getElementById(id).style.display "block";
        } else {
            
document.getElementById(id).style.display "none";
        }
    }
script>


Now all you have to do is set anything with....

style="display: none;"


With what ever it is that need shrinking or folding... wham bamm

folding menu or div that it is contained as nearly everything can have its own style displaying it as none!!
So if clicked with an a link or using this....

<button onclick="showorhide('Use ID of item');" style="color: White; background-color: #2887B6;">. can be dot or namebutton>


Used the Button as an example as you can make anything like a single file as we have in our GO module...



Would implement it my self, yet unsure, on what or how to get invovled in XOOPS

4
smfuser
How do you get this script to create cookie to remember setting?
  • 2007/2/19 2:40

  • smfuser

  • Not too shy to talk

  • Posts: 103

  • Since: 2006/6/24


great little script, :) I've added this to a cool new XOOPS Theme which I'm working on and have implemented it to show or hide certain things, but I've added my own bits and pieces.

My question is though, how do I get the hidden or shown state to be remembered for a users session? Because at the moment, upon testing, the show/hide functions work perfectly showing or hiding something..... BUT on page refresh or going to a new page, the hidden or shown state reverts back to its default. It doesn't remember that I'd hidden or shown something.

How do you get this particular script to create a cookie so that it remembers if the user has hidden or shown something, for that users session or for a set period of time?

Thanks in advance :)
I used to be Indecisive ... but now I'm not so sure

Login

Who's Online

299 user(s) are online (221 user(s) are browsing Support Forums)


Members: 0


Guests: 299


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits