Recent content by rhodes

  1. R

    XF 2.1 Cannot connect to external Mysqli database

    Perfect! Thank you.
  2. R

    XF 2.1 Cannot connect to external Mysqli database

    Hello, I would like to access a non XF2 mysqli database from a custom addon. <?php namespace mynamespace; class myClass { ..... public static function myfunction($mediaKey, array $site, $siteId) { ... $mysqli = new \mysqli($this_host,$this_user,$this_pw,$this_db); ...
  3. R

    XF 2.2 How can I show a widget only in one forum?

    Hello, I use the widget system to show some blocks in the sidebar. What i would like to do is display a content block only in the forum with the ID = 6 <xf:if is="$forum.node_id == 6"> <div class="block"> <div class="block-container"> <div class="block-body block-row">...
  4. R

    XF 2.1 How do I get the thread title in a sidebar widget?

    Thank you @Brogan . You have been most helpful!
  5. R

    XF 2.1 How do I get the thread title in a sidebar widget?

    In my xf2 forum I have a widget in the sidebar of the thread view. In this widget I need the thread title. Unfortunately, I am not able to do that. When I display the available variables with {{ dump(vars()) }}, I see context-thread, but there seems to be no title in it. Any idea how I can get...
  6. R

    XF 1.5 How can I block suspicious email addresses?

    Hello, in my forum there are always users registering with email addresses like the following, which are obviously spam users. us.e.rza.le.v.sk.ij.axxxx.0.1@gmail.com where xxxx stands for a sequence of numbers. Of course I could ban gmail completely as email, but I don't want to do that. Is...
  7. R

    XF 2.2 How can I add thread title as parameter in a callback

    Thank's @Mike . I think I found my mistake. What I would need in my sidebar widget is the $pageTitle in a thread view context. However, it seems as if pageTitle is only available in template page_container, not in the sidebar widget template.
  8. R

    XF 2.2 How can I add thread title as parameter in a callback

    Hello, I use some widgets in a thread view sidebar. One of the widgets uses the current thread title as a parameter. I've tried this <xf:callback class="MyAddon\\MyClass" method="mymethod" params="['{$thread.title}']" ></xf:callback> However, the parameter within my method is ##0. What is my...
  9. R

    Calendar [Paid]

    I will upgrade my live environment from XF1.5 to XF2.2 soon. We already have a lot of events for 2021 and a lot of clients used RSVP to join the events. What happens if we upgrade to calendar 2? Do the events and RSVP entries remain?
  10. R

    XF 2.2 Javascript function on login/logoff

    Hello, I would like to execute a custom Javascsript function when a user just logged in /off. Any idea how I can achieve this? regards, rhodes
  11. R

    XF 2.1 How can I execute a callback after login?

    Hello, I want to execute a PHP callback after a successful login. Unfortunately I am not quite sure which class I have to extend and which event listener I have to set up. Does anyone have a tip for me? Thanks a lot, rhodes
  12. R

    Missing template when creating addon

    Ahhh (y) thank you very much
  13. R

    Missing template when creating addon

    Hello, I've just created my first xf2 addon following the description here: https://xenforo.com/xf2-docs/dev/lets-build-an-add-on/ When trying to modify the forum edit template (In the "Template" field, type "forum_edit". ) I receive an error. As far as I can see there is no template...
  14. R

    Post Ratings - taking likes to the next level [Paid]

    Does anybody know what happens if you update your forum to XF2.x? Do you loose all custom ratings?
  15. R

    XF 1.5 How to update trophy points for a single user?

    One of our most active users told me that her trophy points are always at 49. However, she creates 10 posts every day. Also her posts are liked a lot.. Any idea what can cause this issue? Is there a way to recalculate the trophy points for a single user?
Top