Recent content by mark22

  1. M

    XF 2.2 Error: Call to undefined method XF\Repository\AddOn::isAddOnDirectoryWritable() in src/XF/Admin/Controller/AddOn.php at line 72

    It looks like the files are very unhealthy :) I guess the files were never properly placed on the server (I used the web based upgrader). Should I just download the files from the XF customer control panel and replace everything on the server?
  2. M

    XF 2.2 Error: Call to undefined method XF\Repository\AddOn::isAddOnDirectoryWritable() in src/XF/Admin/Controller/AddOn.php at line 72

    Ive searched everywhere and havent gotten a result for this. Error: Call to undefined method XF\Repository\AddOn::isAddOnDirectoryWritable() in src/XF/Admin/Controller/AddOn.php at line 72 1. XF\Admin\Controller\AddOn->actionIndex() in src/XF/Mvc/Dispatcher.php at line 350 2...
  3. M

    XF 2.1 Can a template parse URL parameters?

    In my template I want to create sidebar navigation and the user can navigate to different pieces of content depending on which navigation button is selected. I want to basically use the URL to decide which navigation tab the user is on. so for example forums/index.php?mypage&tab=1...
  4. M

    XF 2.1 Templates made on the filesystem do not show up in ACP

    I'm following the "Let's build an add-on" in the dev docs and ran into an issue. I'm in the "Create the portal page" section Specifically I'm creating the .html template which ive placed in "src/addons/Demo/Portal/_output/templates/public/demo_portal_view.html" Now what is happening is that...
  5. M

    XF 2.1 Is it possible to insert the contents of a custom template via a template modification?

    NEVER MIND It works. I made the template in the wrong style. For anyone searching this in the future, the answer is to use <xf:include template="marksTemplate" />
  6. M

    XF 2.1 Is it possible to insert the contents of a custom template via a template modification?

    So I am successfully regex matching a section of the PAGE_CONTAINER template and I want to replace the matched text with the contents of another custom template I made called 'marksTemplate' Is this possible? Is there a simple xf call to pull in the contents of a template? I've so far tried...
  7. M

    XF 2.1 Correct way to edit templates in XF2 ?

    Well I'm an idiot, for other idiots out there, this is what you need: $config['development']['enabled'] = true; Thanks :)
  8. M

    XF 2.1 Correct way to edit templates in XF2 ?

    Thank you man, I got started and successfull made my add-on Now i'm trying to make the Template Modification but having problems I went to "Appearance" -> "Template modifications" and am under the "Public" tab. But I don't see any option to "Add template modification" as per the...
  9. M

    XF 2.1 Correct way to edit templates in XF2 ?

    I've been basicly directly editing my PAGE_CONTAINER template to add custom header graphics with my own divs. Over time i've been adding more and more custom html elements to that template, and i realized that this might be a mistake. For example, with every XF upgrade I hve to revert the...
  10. M

    XF 2.1 How do you use CSS calc in extra.less?

    Found the answer here: https://xenforo.com/community/threads/css-calc-function-not-working-properly.168854/ have to do ~""
  11. M

    XF 2.1 How do you use CSS calc in extra.less?

    I put this very basic CSS line into extra.less left: calc(5% + 33px); But xenforo outputs it as left:38% Is there anyway to tell xenoforo to output my CSS and let the browser do the calculation?
  12. M

    XF 2.1 Getting an error right off the bat with the Demo to learn how to make an Add-on

    I'm following the Add-on Demo: https://xenforo.com/xf2-docs/dev/lets-build-an-add-on/ When I try to run php cmd.php xf-addon:install-step Demo/Portal 1 I get the following error: PHP Fatal error: Class Demo\Portal\Setup contains 3 abstract methods and must therefore be declared abstract or...
  13. M

    XF 2.1 Reactions SQL tables

    Can you give a clue as to how to rebuild the caches so the data shows in posts?
  14. M

    XF 2.1 Reactions SQL tables

    Did you ever figure this out? I made a script to transfer over my "likes" from a vb install as reactions in the XF database. I got the data successfully ported over into the XF reaction content table, but the reactions dont actually show up on the posts. I'm assuming something somewhere has...
Top Bottom