Recent content by XFConvert

  1. X

    Xenith [Paid]

    Hi Will/ThemeHouse, since I upgraded XF from 2.0.6 to 2.3.9 and also upgraded Xenith to 2.3.8, the server emails informing of "new reply to watched thread" have a font size ten times bigger. The font size is now 150px (and I assume it should be 15px). This was not an issue until I upgraded XF...
  2. X

    Xenith [Paid]

    Will and ThemeHouse: Is this Xenith 2.3.8 style fully compatible with the latest Xenforo 2.3.10?
  3. X

    Xenith [Paid]

    Thanks Willl! I guess the upgrade procedure will be: Keep the old UI.X add-on enabled Do the Xenforo upgrade from 2.0.6 to 2.3.9 Change style to default Xenforo style and test core functionality of Xenforo Manually upload and update the UI.X add-on to latest version Import the Xenith 2.3.8...
  4. X

    Xenith [Paid]

    Is this latest update of the Xenith style (2.3.8.0.1) compatible with the latest version of Xenforo (2.3.9)? I'm doing self-hosted, upgrading Xenforo from 2.0.6 to 2.3.9. Please clarify: do I need to update the UI.X add-on as well? (My version is 2.0.7). Do I still need that add-on at all?
  5. X

    XF 2.0 template variable for avatar URL and profile URL

    Well I found this in another template, and it works for me: {$xf.visitor.getAvatarUrl('o', null, true)}
  6. X

    XF 2.0 template variable for avatar URL and profile URL

    When I tried the above, I got this error message: "The function visitor may not be called in a template. Only functions with whitelisted prefixes are allowed."
  7. X

    XF 2.0 template variable for avatar URL and profile URL

    Thanks Brad! Anyone know the code to get the avatar URL?
  8. X

    XF 2.0 template variable for avatar URL and profile URL

    What is the template variable for a user avatar URL? And also the profile URL?
  9. X

    XF 2.0 how to add an HTML script tag to every page only for logged in users

    Want to add an HTML script tag with some variables in the script, to be on every page of the site, but only for logged in users. I assume I need to add some conditionals in a template. Exactly what template and exactly what is the code for the conditional? Thanks!
  10. X

    XF 2.0 cannot use Login service after using Finder

    I first require_once a file with this code to set up the XF2 environment: $dir = __DIR__; require($dir . '/src/XF.php'); XF::start($dir); Then I use the finder as follows: $finder = \XF::finder('XF:User'); $xfuser = $finder->where('username', $username)->fetchOne(); Then I get some data...
  11. X

    XF 2.0 PHP code to get age from a user object or user profile object

    Thank you Katsulynx. Pardon this newbie question: What is the best way to look at one of the classes such as that one (/src/Entity/UserProfile.php)? Just opening the PHP file itself, or is there an API showing all of the XF 2 classes and functions?
  12. X

    XF 2.0 PHP code to get age from a user object or user profile object

    I know I can get a user object like this: $finder = \XF::finder('XF:User'); $user = $finder->where('username', "Joe")->fetchOne(); There is no age property or date of birth. So I can get a profile object like this: $profile = $user->Profile; And that profile object has date of birth day...
  13. X

    XF 2.0 How to get custom field value in PHP when it's from a set of choices

    Thank you very much katsulynx, that was a huge help. I had to play around with it a bit but I got it working. Now a related question if I may. What would the template syntax be to do the same thing -- but in a thread post? Basically I want to add a custom field like "country" near the...
  14. X

    XF 2.0 How to get custom field value in PHP when it's from a set of choices

    Have my own PHP script to authenticate an XF2 user and trying to get the custom profile fields, like "country". That profile field is from a set of choices. Here is how far I've gotten: // bootstrap framework $dir = __DIR__; require($dir . '/src/XF.php'); XF::start($dir); $app =...
  15. X

    XF 1.5 addons before or after import, does it matter?

    Oh, yah, that does make sense, especially with a lot of addons. Thank you.
Back
Top Bottom