ToggleME

ToggleME 3.1.4

No permission to download
How do i install this addon? i have never installed anything before
Standard process:
  1. Download the archive
  2. Extract it
  3. Upload the content of the upload folder inside the the content of your XenForo installation
  4. Import the xml file (same depth than the upload folder - see here)
  5. Read the addon documentation
  6. Configure the addon
You can also find addons that will help you to import directly the archive file and will install it for you.

Is there a way for this toggleme add-on to remember what the users preferences was?
This addon is using cookies and not the database to remember options. Once you log out, the cookie is erased and the default configuration is back. I don't want to use database to save user preferences for this addon.
 
I'm not a programmer, so I don't know where the error here. I will write to the author of the add-on also.
Widgets must hide and back.
 
I'm not a programmer, so I don't know where the error here.
Widgets must hide and back.
I have a lot of widgets that do not work with this addon. How can I fix this?
 

Attachments

  • widget2.webp
    widget2.webp
    26 KB · Views: 17
  • Widgets.webp
    Widgets.webp
    52.5 KB · Views: 14
Last edited:
I'm not a programmer, so I don't know where the error here.
Widgets must hide and back.
I have a lot of widgets that do not work with this addon. How can I fix this?
Wait than XenForo releases its own widget manager to have an unified code. I've already integrated the Widget Framework some time ago, but I can't extend the code to match all addons that insert widgets on the page.
 
thanks. What is name of file, theare is procedure with widgets?

It is curious that the same widget from the Better Blogs are not works in one place and work in another.
 
Last edited:
While th about it the 2nd time, I realized what I had in mind probably not quite suit for this add-on (you collapse stuff)...

Anyway, I'll leave the idea here:

For example, if the categories listing is:

XenForo Tips and Guides 124
Styles 187


And if there are sub-categories under Styles, I wish it can show some indication by giving a plus sign(with a circle or square around it) or something, like this:

XenForo Tips and Guides 124
+Styles 187


Once user clicks on Styles, the category listing will become:

XenForo Tips and Guides 124
- Styles 187
Light Styles 114
Dark Styles 51
Seasonal Styles 10
Other Styles 12
 
@cclaerhout , Here is the mockup:

ToggleMe_1.webp


When clicking on Styles, it becomes this:

ToggleMe_2.webp

It would be great, if it allows admins to choose whether to show all the sub-categories in each category as default.

Would be even better, if it allows admins to configure to show all the sub-categories in a specific category for a specific usergroup as default, e.g., allowing to show all sub-categories under Styles to all members in usergroup 'style designers' as default setting; allowing to show all sub-categories under Add-ons to all members in usergroup 'add-on developers' as default setting, etc.

Thanks!!
 
It might be possible but since all elements are not on the page it's not just a toogle function, so it doesn't match with that addon. Sorry.
 
Cédric this addon is working nicely on AVForums, thank you.
I want to relocate the postbit toggle image a bit from here:
temp1.webp
to here

temp2.webp

I'm moving
HTML:
<div class="tglPosbit inactive"></div>
to after
HTML:
<a sl-processed="1" href="members/fluidz.155730/" class="username" itemprop="name">fluidz</a>
Is there a way to do this which won't break when I upgrade your addon?
Thanks
 
Last edited:
Cédric this addon is working nicely on AVForums, thank you.
I want to relocate the postbit toggle image a bit from here:
View attachment 60084
to here

View attachment 60085

I'm moving
HTML:
<div class="tglPosbit inactive"></div>
to after
HTML:
<a sl-processed="1" href="members/fluidz.155730/" class="username" itemprop="name">fluidz</a>
Is there a way to do this which won't break when I upgrade your addon?
Thanks


At the moment, edit this file:

Search (and don't look at the useless regex backreference that I will have to get rid of) - [line 102 - 103]:
Code:
        $search = '#(<h3 class="userText">)#i';
         $replace = '$1<div class="tglPosbit"></div>';

Replace with:
Code:
        $search = '#<a[^>]+?class="username"[^>]+?>.*?</a>#i';
         $replace = '$0<div class="tglPosbit"></div>';

I think you will have to modify a little the toggle box (margin or padding) so it doesn't come to close to the user banner.

Since this is a basic modification, I can make it as an option later.
 
Top Bottom