Search results

  1. Earl

    XF 2.0 Edit default bbcode [img]

    Simple question. how to modify the HTML code? I want to remove the https:|http: prefix.
  2. Earl

    XF 2.0 Import error

    Which step was running while you getting this error? Threads/ posts/ Users? And you are importing from?
  3. Earl

    Fixed horribly slow import of vB posts when a thread has an asinine amount of posts

    It still using a single core and taking sooooo long :sleep::( Step 10 of 17: Threads - [1,881] 0.11% It takes 7 seconds to import a single thread. I have more than 1 million threads to go. oh boy... life is short...
  4. Earl

    Duplicate unable to import from vb 3.8. Unicode Bug

    hmm seems like both usernames are not equal, even if we can see it as equal. <?php $value = 'Leni&#8302;&#8302;&#8302;&#8302;&#8302;&#8302;&#8302;&#8302;&#8302;&#8302;&#8302;&#8302;&#8302;'; $value = html_entity_decode(strval($value), ENT_QUOTES, 'UTF-8'); echo $value=='Leni'? "$value is...
  5. Earl

    Duplicate unable to import from vb 3.8. Unicode Bug

    Okay, I applied the patch and the situation got worse and turned into a more dangerous one! :LOL: lol I've got these two users: Before import UserID: 38647 Username: "Leni" UserID: 260394 Username...
  6. Earl

    Fixed horribly slow import of vB posts when a thread has an asinine amount of posts

    I've faced the same exact problem, and I was importing from vB 3.8. I'll let you know after trying your patch, for now, I'm facing another issue and totally stuck and lost.
  7. Earl

    Duplicate unable to import from vb 3.8. Unicode Bug

    I've got two users with usernames like 'محمد العلاف' (looks like Arabic characters) and also have plenty of other users with other language characters, in my db: This is where the script stopped at the beginning: user with user ID 161751 has its username this '&#1605;&#1581;&#1605;&#1583...
  8. Earl

    XF 2.0 Using protocol-independent absolute path in [IMG] tags

    Using protocol-independent absolute path: <img src="//domain.com/img/picture.png"/> If the browser is viewing a page in SSL through HTTPS, then it'll request that asset with the https protocol, otherwise, it'll request it with HTTP. This prevents that awful "This Page Contains Both Secure and...
  9. Earl

    XF 2.0 how to pass a $variable or $object to php file from template using xf:callback params?

    Yes, <xf:callback class="Earl\\AddOn\\Callback" method="getHtml" params="['test','{{ $context.search.search_type }}']">{$context.search.search_query}</xf:callback> and <xf:callback class="Earl\\AddOn\\Callback" method="getHtml"...
  10. Earl

    XF 2.0 how to pass a $variable or $object to php file from template using xf:callback params?

    Assuming you are referring to test in params, yes simple strings works fine, but if I put a variable, it gives "##0" as a string, and If I put another variable, it gives "##1", and another, "##2,.. so on. func_get_args() also returns same strange "##0" strings :rolleyes:
  11. Earl

    XF 2.0 how to pass a $variable or $object to php file from template using xf:callback params?

    I have this HTML type widget in the search_results template which has access to the $search object of the search_results template. (template passes $search to the widget via a context variable context-search, I'm using template modification to add the widget position to the search_results...
  12. Earl

    XF 2.0 Separate Forum and Resource results

    In everything search, Results from forum and resources appear in a mixed way. Is there a way to separate them and display in the same everything search results page?
  13. Earl

    Lazy Load [img]

    Please make this for XF 2
  14. Earl

    XF 2.0 Wow do you create html widgets in setup.php?

    okay I got this, I just have to create a new template manually using entity manager, and prefix it _widget_ followed by widget ID
  15. Earl

    XF 2.0 Wow do you create html widgets in setup.php?

    If you are familiar with the widget system in XenForo, as you may be aware, this special kind 'HTML' type widget, allows you to add raw HTML code to your site. I can create other type widgets when installing the addon, in setup.php but How do you create this HTML type widget using installSteps...
  16. Earl

    Watermark System (STWM2) [Paid]

    Yes, that was fast. And your fix is working. Sorry for the delayed response
  17. Earl

    Watermark System (STWM2) [Paid]

    After rebuilding the VPS, it started working, but image opacity isn't working. I tried both png and jpeg, still, it's showing the watermark without reducing the opacity. I tried adding less opacity png as the watermark file, but it reproduces full opacity watermarked attachment from my less...
  18. Earl

    Watermark System (STWM2) [Paid]

    yeah my bad, I already had GD but not the FreeType. got it fixed by installing FreeType library. One more question, where should I suppose to put the watermark.png file? I placed watermark.png files in root XF directory, and in src directory, and also inside the \addons\xenMade\STWM directory...
  19. Earl

    Watermark System (STWM2) [Paid]

    Got this error Error: Call to undefined function xenMade\STWM\Util\imagettfbbox() src/addons/xenMade/STWM/Util/Watermark.php:214 Stack trace #0 src/addons/xenMade/STWM/Util/Watermark.php(121): xenMade\STWM\Util\Watermark->getTextSize('12', '0', 'styles/def...', 'Copyright 2018 ...') #1...
  20. Earl

    XF 2.0 PHPUnit

    Hey @Ralle, thank you so much for trying to help us with this, I've been struggling for days to make it work in your way, but I got some errors Edit: Okay I found a solution: Changing this line in your bootstrap.php XF::startAutoloader($dir); to this: XF::start($dir); Fixed a lot of things...
Top