• We've added extra Spam Protection. if you get problem with account registration / registration rejected. please contact us
  • You need minimum 5 good posts for download files. Don´t push posting-counter with posts copy paste, thx, good, smileys..... Read This.
  • Note: don´t push posting-counter with messages like thx, good, haha, only use reactions! threads will be deleted without any comment or notification. Read Rules.
Ali Raza

WebDav support for XenForo 2 0.0.2

No permission to download
This add-on is for style and add-on developers.

XenForo 1 had very convenient way to edit templates via WebDav. Unfortunately XenForo 2 doesn't have such functionality, so I've made add-on that adds such functionality.

It does same thing as WebDav did in XenForo 1, but with few new features:

1. When you select any style you have option to show all items or only customized items:

proxy.php?image=https%3A%2F%2Fxenforo.com%2Fcommunity%2Fattachments%2F2018-04-13-2-png.173311%2F&hash=943cf5dc250eab10db138abfd17a14b5



2. You can revert templates by deleting file.

3. All scalar style properties are available in one easy to access .less file (see style_properties.less in screenshot above):
Code:
/**
* palette
*/
@xf-styleType: light;
@xf-paletteColor1: rgb(237, 246, 253);
@xf-paletteColor2: rgb(188, 222, 245);
@xf-paletteColor3: rgb(71, 167, 235);
@xf-paletteColor4: rgb(37, 119, 177);
@xf-paletteColor5: rgb(24, 88, 134);
@xf-paletteAccent1: rgb(255, 244, 229);
@xf-paletteAccent2: rgb(242, 147, 13);
@xf-paletteAccent3: rgb(170, 103, 9);
@xf-paletteNeutral1: rgb(254, 254, 254);
@xf-paletteNeutral2: rgb(140, 140, 140);
@xf-paletteNeutral3: rgb(20, 20, 20);

/**
* color
*/
@xf-textColor: @xf-paletteNeutral3;
@xf-textColorDimmed: mix(@xf-paletteNeutral2, @xf-paletteNeutral3);
@xf-textColorMuted: @xf-paletteNeutral2;
Saving that .less file will update all style properties that you have edited.

4. You can edit each style property as text file (for scalar properties), json file (for complex properties) or less file (for css properties)
proxy.php?image=https%3A%2F%2Fxenforo.com%2Fcommunity%2Fattachments%2F2018-04-13-3-png.173312%2F&hash=5cfb51e3657864510907e52f3db87476



5. You can use web browser to access webdav. Visit your_forum_url/admindav.php in browser to see it

6. You can manage styles directory via webdav. Click "styles" in root directory.

7. Unlike WebDav in XenForo 1, this add-on does not require debug mode. If add-on is available, you can access everything. Add-on is meant to be used for development, so it should not be uploaded on live website, so there is no need to add additional debug mode check.

How to use it.

How to access your forum via WebDav: same as in XenForo 1: http://url_to_your_forum/admindav.php

What application to use? Any application that supports WebDav. I'm using CyberDuck that you can get from Cyberduck | Libre server and cloud storage browser for Mac and Windows with support for FTP, SFTP, WebDAV, Amazon S3, OpenStack Swift, Backblaze B2, Microsoft Azure & OneDrive, Google Drive and Dropbox

Sample settings in CyberDuck:
proxy.php?image=https%3A%2F%2Fxenforo.com%2Fcommunity%2Fattachments%2F2018-04-13-4-png.173315%2F&hash=5ebbb0e4069dd7f0ba3f84b3b646a533



Replace xf2.dev with your domain, /dev-styles/ with path to your forum.

If you are using Windows, do not forget to configure a decent text editor in CyberDuck settings, all files have Linux line endings that Notepad doesn't handle. I recommend Sublime Text.

License.

Add-on is free. Its a niche add-on for developers, so making it commercial would be pointless.
  • Like
Reactions: hungo and chapelain
Author
Ali Raza
Downloads
3
Views
78
First release
Last update
Rating
3.00 star(s) 1 ratings

More resources from Ali Raza

Latest updates

  1. Updating dependencies

    Updating dependencies to latest versions. Add-on is compatible with 2.0 and 2.1
Top

AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock