• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

template

  1. CMTV

    XF 2.0 PHP <xf:codeeditorrow...

    Hi! I am trying to add PHP <xf:codeeditorrow in my admin template. I tried this code: <xf:codeeditorrow name="test_name" value="..." mode="php" data-line-wrapping="true" class="codeEditor--autoSize" /> But I get an error every time I hit...
  2. C

    XF 2.0 Styling a "POST"

    Ok, crazy question, but I want to use the forum to post what I consider "articles". I am wondering if there are any 'templates' that would stylize a post. Something I can replicate over and over again to keep all similar posts the same. I have seen BBcode templates, but those are mostly for...
  3. CMTV

    XF 2.0 How use user custom field in .less template?

    Hi! I have a custom user field called test_color. How can I use the value of this field in extra.less or other less templates? Is there a way to do so without involving xenForo development mode and writing addons?
  4. whitesky

    Modern Gamer 1.0.0

    Modern Gamer is an amazing new responsive gaming theme, bringing powerful theme features and customization. Perfect for esports, gaming teams both casual and competitive alike, Modern Gamer is the ultimate sleek and professional gaming template for your forum. Boasting incredible features out...
  5. WeaponOwl

    XF 2.0 TO_MANY relation and templates

    Hello. I see very strange behaviour. I have entity 'MissionRecord' with TO_MANY relation to 'NpcMissionRecord', if try load this entity with relation using default finder $this->finder('.../MissionRecord') ->with('NpcMissionRecord') ->where('id', $id) ->fetch(); i receive...
  6. semprot

    XF 1.5 How to Modify Admin Template using Add On

    How to modify admin template using add-on system? I know how to modify admin template using debug mode, but i don't want it because change will be lost on each uprgrade. I can create add on to modify normal template such as here...
  7. whitesky

    XF 1.5 Access the background-image value from a Style Property?

    Wondering if it's possible to access just the background-image value of a standard CSS based property. For example, we could call from a template: .content { color: @primaryContent.color } .. or even render out all background items as a set: .content { {xen:property...
  8. CleanTalk Team

    XF 2.0 Addon development: edit register template

    Hello, we're making an application for XF2 and we need to change the default register template by adding a custom hidden field to it when plugin is installed (next to reg_key, timezone and xf_token). Any tips how could we do this?
  9. CMTV

    XF 2.0 Including external library (js and css)

    How to include external library (js and css files) in specific template that requires jQuery? I tried this code in template forum_view: <xf:head option="questionthreads_iconpicker"> <!-- Iconpicker styles --> <link rel="stylesheet" href="{{...
  10. CMTV

    XF 2.0 LESS "when" is not working

    I have created my custom style variable questionthreads_isStylingBestAnswerUserBg. It has Boolean value type. It is set to true. Now in my LESS template I have this code: .container when (@xf-questionthreads_isStylingBestAnswerUserBg = true) { background: #000; } The problem is that this...
  11. tmoflash

    Need Designer

    I was asking if there is a place on the forums hear to request a designer for my site. I am not on here all the time and I did look around very briefly and didn't see a place to post this request. Thanks, tmo
  12. CMTV

    XF 2.0 Extending <xf:avatar.../> template tag functionality

    Hi! I extended user entity structure and added custom column is_pixelated to it. Now I am trying to make every avatar of those users that have true in is_pixelated column to have image-rendering: pixelated CSS property in avatar img tag. xenForo uses <xf:avatar.../> template tag to display...
  13. CMTV

    XF 2.0 Switching thread option

    Hello! First of all, I have to say that it is really hard for my to get into all this xF core and addon structure, relations, models and etc. but I am trying my best to understand this. I used to create Wordpress plugins before and that process was fairly easy. So, let's get to the point. I am...
  14. L

    <select> inside a <xen:option>

    I'm trying to create a template modification that adds a new option to a radio unit in an admin template. This existing radio unit looks like so: <xen:radiounit label="..." name="..."> <xen:option value="...">...</xen:option> ... </xen:radiounit> I want my new option to contain a...
  15. whitesky

    Weird glitch with Style Property used in conditional statement?

    Searched through the forum and didn't see this specifically asked before. I've tested the following from Conditionals page to show content to the default four usergroups: <xen:if is="{xen:helper ismemberof, $visitor, 1,2,3,4"> content here... </xen:if> This works fine when testing in each...
  16. CyberAP

    PHP min() function alternative in templates?

    Is there any way to have something similar to min() function in PHP but in templates?
  17. C

    XF 1.5 Add a custom box to xenforo

    Hello all, I am using a pixelexit theme and wanted to know if there was a global way to add a boxes throughout the forum. Essentially, I would like to add a sidebox and a header box that is global throughout the forum for internal advertising. I have a couple of banners that I would like to use...
  18. LPH

    XF 1.5 Template Syntax

    What is the syntax for trying to get a particular category by title loaded then do a callback? In PHP it would look something like this: if ( $category.title == 'Business & Finance' ) { echo "Yay"; } What would it be for the template syntax? I tried this but fails to save. <xen:if...
  19. Vastyles

    XF 1.5 Display page_x_of_y in header

    Is there a way to display the pagenav bits within the header template? So if there is a pagination it would display the page x of x? <xen:if is="{$pageTotal} > 1"> {xen:phrase page_x_of_y, 'current={$currentPage}', 'total={$pageTotal}'} <xen:else />...
  20. VanillaNeko

    French translation for ACP Extended (ACPE) 1.7

    This Add-On features numerous enhancements for XenForo and especially the ACP, and which improve many security-related functions, the security of your XenForo. The following functions provides you the ACP Extended (please look at the images - more on xenmade.com): ACP -> Home: Displayed...