Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto hide discussion plugin #339

Open
danielreckel opened this issue Mar 30, 2023 · 4 comments
Open

Auto hide discussion plugin #339

danielreckel opened this issue Mar 30, 2023 · 4 comments

Comments

@danielreckel
Copy link

danielreckel commented Mar 30, 2023

is it possible to auto hide the discussion until a user want to see it? If i hide it through the button it appears again by visiting the page again. I should be hide all the time until a user want to see it

@danielreckel danielreckel changed the title Auto Hide S Auto hide discussion plugin Mar 30, 2023
@Klap-in
Copy link
Member

Klap-in commented Mar 30, 2023

That button has some javascript that show and hides that section.

plugin-discussion/script.js

Lines 102 to 106 in 4595a8d

// toggle section visibility
jQuery('#discussion__btn_toggle_visibility').on('click', function () {
jQuery('#comment_wrapper').toggle();
});
});

The toggle function uses css to show/hide that section.
You could add to your conf/userstyle.css some css to hide the section initially.
https://www.dokuwiki.org/devel:css#user_styles

@cardi-m
Copy link

cardi-m commented Apr 17, 2023

same issue, @danielreckel have you solved it? I have no skills in js.

@danielreckel
Copy link
Author

sorry i did try it, but running in problems - i will ask a collegue of mine

@cardi-m
Copy link

cardi-m commented May 30, 2024

hello @danielreckel. Had you solved it maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants