template

  1. H

    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...
  2. Nulumia

    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...
  3. 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?
  4. 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="{{...
  5. 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...
  6. 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
  7. 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...
  8. 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...
  9. 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...
  10. Nulumia

    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...
  11. CyberAP

    PHP min() function alternative in templates?

    Is there any way to have something similar to min() function in PHP but in templates?
  12. 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...
  13. 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...
  14. 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 />...
  15. R

    Not a bug Templates variables & require do not work when the dependence is too much

    So let's say I have a template template_base and a template_module1 and template_nice_input_box. template_base <xen:include template="threemagw_auto_trigger" var1="supi" /> template_module1 Something with {var1}. <xen:require js="js/MyAddon/ThisIsAnIsland.js" /> <!-- This is not embedded! -->...
  16. Jawaad

    XF 1.5 How to add new URL variable template for http and https

    I have running my forum with http protocol. After I change the url to https protocol, the problem is share facebook count, it doesn't count from http. The suggestion from facebook is using old url. So, how can I change the url share facebook from https to http? I want to edit template...
  17. T

    XF 1.5 How can i add my extra css in header.css template

    Hi, I want to add my extra css in these classes "#header .pageWidth .pageContent". I found it in header.css template but it is something like that {xen:helper clearfix, '#header .pageWidth .pageContent'} and on front-end its displaying how can i add my own custom css in the template which...
  18. P

    XF 1.5 Need help with Header/Banner Redirect Link

    I'm trying to optimize the header banner on our Forums so that when clicked it redirects to the Forum homepage but can't figure out how. Please help me. :D I have a problem with the Logo It's showing up as a CSS background image, but I don't know where the attributes for it are, therefore, I...
  19. lsxforo

    How to getting template name?

    Dear, I have a question too. Is there way to get an own template name(unique) that inside certain template? :rolleyes:
  20. Torrey Leonard

    XF 1.4 Incorporate WordPress Header with XenForo

    Hey XenForo, For the past few days, I've been searching endlessly for a way to integrate my forum with WordPress. I've reached the conclusion that, well- it's difficult. At this point, I've extracted the contents of my header to raw HTML and CSS. However, placing the static HTML in my header is...
Top Bottom