by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 01 2016 11:35
    @tobscure banned @flame05
David Sevilla Martín
@datitisev
Hm...
$reflection = new \ReflectionClass($name);
causes an error
this is very confusing
so the class select *... doesn't exist., but i never entered that
it's an Object of class Flarum\Extension\ExtensionServiceProvider this time
I have to go soon anyway. Thanks for the help, tho, Luceos
Daniël Klabbers
@Luceos
@datitisev events can also be queries, simply do a class_exists($name) first
David Sevilla Martín
@datitisev
Ok, thanks!
I wasn't able to use that because, for some reason, whenever I did if (is_string($name) && !get_class($name)) return it kept erroring that get_class wasn't receiving a string
Oh well. I fixed by ignoring all strings, and then using get_class($name) for the ReflectionClass instance, then getting its namespace name and checking it contains Flarum\Event, etc
Still doesn't add the measures, tho
David Sevilla Martín
@datitisev
Hm.. it seems like it adds all events after the function to get them is called
David Sevilla Martín
@datitisev
Well, not necessary. I give up for now. :P Thanks anyway for the help, Luceos
Daniël Klabbers
@Luceos
@datitisev is_object($name) || (is_string($name) && class_exists($name))
not sure how the measures work from those few snippets :)
you'll have to trace it into the code of the debugbar then
Florian Arndt
@flowli
Hey there, does anyone know the JS event when Mithril.js is done rendering?
Daniël Klabbers
@Luceos
@flowli morning
there's init for constructor and config when it's done and you can add listeners and the like
does that help @flowli ?
Kevin Wiesmüller
@kwiesmueller
Hey there!
Have you already thought about a docker image? If not, I would like to try this using one (and create one myself)
Franz Liedke
@franzliedke
There are several community-created ones.
ganuonglachanh
@ganuonglachanh
Does anyone know why I insert post text to flatum posts.content by mysqli then it automatic insert <t> and </t> tag around the text?
Daniël Klabbers
@Luceos
@ganuonglachanh yes it's not html
it's xlst
ganuonglachanh
@ganuonglachanh
I insert raw string to the colum content by mysqli and it still insert <t> tag automatically. How to prevent this?
Thanks @Luceos
vir_xp
@vabhik
While updating username of any user, would it be reflecting in the post in which he got mentioned ?
ganuonglachanh
@ganuonglachanh
You have to edit the post that mentioned him, just edit 1 and see the raw content
Daniël Klabbers
@Luceos
@vabhik yes it gets updated
vir_xp
@vabhik
@Luceos @ganuonglachanh I did the change (using controls CTA on profile page) but the changed username is not getting reflected in already mentioned post
ganuonglachanh
@ganuonglachanh
Because the post was save as @username#post_id in the database. So the mentioned user will not get updated.
If you want update, you need to replace new username in the post content as I replied in last comment
Daniël Klabbers
@Luceos
i see i wasn't aware of that, my bad
vir_xp
@vabhik
okay thankyou
vir_xp
@vabhik
I've read the threads of fb sharing on flarum, but unable to find any working extension with the latest version of flarum. Please help
Daniël Klabbers
@Luceos
@vabhik you mean og: meta properties?
vir_xp
@vabhik
yes @Luceos
ganuonglachanh
@ganuonglachanh
@datitisev how is your PHP DebugBar Extension going?
I think it help Dev debugblafrum faster
Will you release it?
yadongzhao87
@yadongzhao87
@yadongzhao87
Hi All, I'm a developer from china. Now I am developing a new extension. I meet some problem.
I don't know how can I debug my extension in the local envirement
Can you tell me?
yadongzhao87
@yadongzhao87
I have solved my problem. I read a passage from luceos. It give me the answer. Thank you every one
Christian la Forgia
@optiroot
Hello Guys! I'm using Flarum from a week and I'm using the SSO ext made by wuethrich; the problem is that I want to pass the UserID when making the user register... but in Flarum APIs I don't find (neither I think too) that is possible to pass the user ID in the Flarum API
Matthias Merkel
@Moritz30MC_twitter
hello
do you know how I could add more text boxes to the create thread dialog?
xWintx
@xWintx
My Flarum does not update Javascript code from my extension without running php flarum cache:clear. Did anyone face the same issue?
0E800
@0E800
anytime you make changes to your php or extension, you will want to clear the cache