Code Monkey home page Code Monkey logo

Comments (9)

WildcardSearch avatar WildcardSearch commented on July 20, 2024

This certainly needs to be addressed. Using the current system the main plugin file calls methods of the Sidebox_addon object $modules and doesn't have access to whether or not the module had content or is just an empty box.

So any change here would need to be made in the individual modules themselves. Perhaps add one setting as you have suggested and then have each module contain a default 'nothing to display' message tailored to the specific module and also check to see if it should display anything at all.

It would be relatively simple to do but require a bit of time. I am off tomorrow so I will try to dig in and get some of this going.

Do you really think the setting is necessary? I kind of think we should really just make a decision and go with it and then if people complain then address it then. No need adding more work for something that turns out to be a non-issue.

just my thoughts

from advanced-sidebox.

avril-gh avatar avril-gh commented on July 20, 2024

Do you really think the setting is necessary?

I agree with you all the way.
Whats important here is only fact that 'at least something like
should be within tbody tags' regardless from if there are any content or not - to maintain valid html structure.
and thats it.

The rest was just my common way of thinking forward, far beyound the current problem,
which always help me to avoid dead ends later, where its more easy to scrap something and remake from beginning,
than add new features, because of not flexible design which didnt predicted such things much earlier.

But more i think about it, more choices, possibilities, and things i see out there,
like displaing boxes depending on group permissions ect, which could blend nicely with this
and many other possible things (why display login box to logedin user? should display admin only box to everyone?)

While these ideas are still in shadows and need for them is not even fully grasped,
its really better to concentrate on 'tbody' issue and leave topic about 'what, why and from who to hide or not'
until it mature enough, or we will end up later with 100 separate show / hide options
all having the same functionality but different name.

from advanced-sidebox.

WildcardSearch avatar WildcardSearch commented on July 20, 2024

I think we are in agreement then.

I will work on ensuring the HTML produced is valid and keep in mind that I may have to edit that code later to include a setting check and so keep it flexible.

Will update when I make progress.

from advanced-sidebox.

WildcardSearch avatar WildcardSearch commented on July 20, 2024

Okay I think I have got this solved. Let me know if I missed anything.

Cheers.

from advanced-sidebox.

avril-gh avatar avril-gh commented on July 20, 2024

I saw there something not rite in html (which i will continue to test),
but for a moment while testing private messages box, fiew things within it caught my attention
and it end up in improvements in this module.

I think i just finished with private messages module for now,
and will post it as update to not forget, then im back to continue testing html and stuff.
(in fiew minutes there should be new report about private messages box update)

from advanced-sidebox.

WildcardSearch avatar WildcardSearch commented on July 20, 2024

Okay just let me know if this issue is fixed or not whenever you have time. I will look myself again, but I think you have a better eye for HTML than I do.

Cheers

from advanced-sidebox.

avril-gh avatar avril-gh commented on July 20, 2024

Ok, pm's block has been fixed in other report.
Im goin back now to checking html which i mentioned in previous comment.

from advanced-sidebox.

WildcardSearch avatar WildcardSearch commented on July 20, 2024

Cool. Let me know if you find anything else.

from advanced-sidebox.

avril-gh avatar avril-gh commented on July 20, 2024

fixed at #11

from advanced-sidebox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.