Recent content by Indigo

  1. Indigo

    Template Hook Locations

    account_alert_preferences: Line 18: account_alerts_messages_in_threads Line 45: account_alerts_messages_on_profile_pages Line 76: account_alerts_achievements Line 90: account_alerts_extra account_contact_details: Line 10: account_contact_details_email_password Line 48...
  2. Indigo

    Template Hook Locations

    Oh boy, RC3 has 75 of these... Will probably just write a script that runs through and pulls out all the hook names and what template they're in.
  3. Indigo

    Template Hook Locations

    And another note, no additional template hooks were added in Beta 6.
  4. Indigo

    php version

    usort($array, function($a, $b) { return $a - $b; // or something, y'know, more complex. }); $text = preg_replace_callback('/\((\d+)\+(\d+)\)/', function($match) { return '(' . ($match[1] + $match[2]) . ')'; }, '(2+3) (10+7)'); // (5) (17) but i didn't test this at all. Basically...
  5. Indigo

    canViewForum based on unregistered users?

    Well, technically, it's not a "real" cron job, in the sense that the server is executing it via crond or something. The jobs are being executed in the context of the web server, either by running it manually through the Admin CP, or through an empty cron image gif served on the frontend (via...
  6. Indigo

    canViewForum based on unregistered users?

    I figured that would have worked fine, I just didn't want to suggest it since that overwrites the singleton instance of XenForo_Visitor with a guest. Not sure if there would be any side effects to that method when running a cron via the Admin CP.
  7. Indigo

    canViewForum based on unregistered users?

    $errorPhraseKey will be filled with the key of an error phrase, should the permission check fail (or any other error, presumably).
  8. Indigo

    canViewForum based on unregistered users?

    Try calling canViewForum like so: $guest = $this->getModelFromCache('XenForo_Model_User')->getVisitingGuestUser(); $viewable = $this->getModelFromCache('XenForo_Model_Forum') ->canViewForum($forum, $errorPhraseKey, null, $guest); The fourth parameter allows you to pass an array for any...
  9. Indigo

    Games your Playing?

    Finishing up all the races in Forza 3 career mode (there's close to a thousand of them...) on my 360, and playing a lot of Bejeweled 3 lightning mode on PC.
  10. Indigo

    Phrase Diff Tool

    I understand that general diff tools would work, but I think this gives more concise output, and would be easier for most people to read.
  11. Indigo

    Phrase Diff Tool

    Here's the output for Beta 4 -> Beta 5: http://crindigo.com/xf/phrasediff-1.0.0b4-1.0.0b5.txt
  12. Indigo

    Phrase Diff Tool

    It wouldn't be *that* much harder to make it executable via the browser, but it was much faster to write as a command line script.
  13. Indigo

    Phrase Diff Tool

    I wrote a small tool to grab the list of added/updated/deleted phrases between two "phrases.xml" files from installation data. It's command-line only right now. Example usage is: php xfPhraseDiff.php beta4-phrases.xml beta5-phrases.xml Which, if ran with the actual beta4/beta5 phrases.xml...
  14. Indigo

    Template Hook Locations

    Just a note, no template hooks were added in Beta 5.
  15. Indigo

    Is there a post from Kier...

    SELECT COUNT(*) FROM xf_post WHERE user_id = 2 AND likes = 0?
Top Bottom