Skip to content

Flarum - WordPress Journey

WordPress
59 2 22.2k 1
  • @Sala I discovered NodeBB 😁

    wrote on last edited by
    #36

    @phenomlab and im Enthusiast member in it!

  • @phenomlab and im Enthusiast member in it!

    wrote on last edited by
    #37

    @Hari see how I started pimping my shop online 😄💪 already

  • @Hari see how I started pimping my shop online 😄💪 already

    wrote on last edited by
    #38

    @Sala Surely not…

    ae535a3a-6ffd-4f6b-8b7b-c310e155580d-image.png

  • @Sala Surely not…

    ae535a3a-6ffd-4f6b-8b7b-c310e155580d-image.png

    wrote on last edited by
    #39

    @phenomlab 30tb? Shipment is from China

  • @phenomlab 30tb? Shipment is from China

    wrote on last edited by
    #40

    Bdw when I use security headers, I noticed the bbcodes icons in editor for answering questions disappear

    https://i.postimg.cc/SR41mCZc/Screenshot-20221209-104409.png

  • @phenomlab 30tb? Shipment is from China

    wrote on last edited by
    #41

    @Sala What I meant was the price for a 30Tb drive seems unrealistically cheap - especially for an SSD drive.

  • Bdw when I use security headers, I noticed the bbcodes icons in editor for answering questions disappear

    https://i.postimg.cc/SR41mCZc/Screenshot-20221209-104409.png

    wrote on last edited by
    #42

    @Sala said in Flarum - WordPress Journey:

    Bdw when I use security headers, I noticed the bbcodes icons in editor for answering questions disappear

    Can you elaborate a bit on this? Not sure what you mean.

  • @Sala said in Flarum - WordPress Journey:

    Bdw when I use security headers, I noticed the bbcodes icons in editor for answering questions disappear

    Can you elaborate a bit on this? Not sure what you mean.

    wrote on last edited by
    #43

    @phenomlab same here 30tb I also thought I had lapses in technology, maybe new things came without my notice 😂

    The bbcodes icons
    https://i.postimg.cc/R0YNnrGK/Screenshot-20221209-162710.png

    So they show when creating a new topic, but not showing on answering on already created topic.

    It doesn’t hurt but it’s caused by adding that security headers module. Anyway to rectify the cause?

  • @phenomlab same here 30tb I also thought I had lapses in technology, maybe new things came without my notice 😂

    The bbcodes icons
    https://i.postimg.cc/R0YNnrGK/Screenshot-20221209-162710.png

    So they show when creating a new topic, but not showing on answering on already created topic.

    It doesn’t hurt but it’s caused by adding that security headers module. Anyway to rectify the cause?

    wrote on last edited by
    #44

    @Sala Can you show me the output from the console when responding to a message? My personal thoughts are that this could be CORS related, but I need to verify that first.

  • @Sala Can you show me the output from the console when responding to a message? My personal thoughts are that this could be CORS related, but I need to verify that first.

    wrote on last edited by
    #45

    @phenomlab I knew you would love this, security part. 🥳 I’ve forwarded to you a test user.

  • @phenomlab I knew you would love this, security part. 🥳 I’ve forwarded to you a test user.

    wrote on last edited by
    #46

    @Sala It the BBCodes show on a new topic as below

    4440ddfa-bcdc-415c-820a-4abe1c5e5b39-image.png

    On response to a question, the same DIV is there but not populated

    4f73ccb0-8991-49c1-8be2-a580a3f3732d-image.png

    This is almost certainly a CORS issue, but I’ll need to see the headers you’ve applied to comment further, or make suggestions.

  • @Sala It the BBCodes show on a new topic as below

    4440ddfa-bcdc-415c-820a-4abe1c5e5b39-image.png

    On response to a question, the same DIV is there but not populated

    4f73ccb0-8991-49c1-8be2-a580a3f3732d-image.png

    This is almost certainly a CORS issue, but I’ll need to see the headers you’ve applied to comment further, or make suggestions.

    wrote on last edited by
    #47

    @phenomlab this one is going to be hard, I put it on pause

  • @phenomlab this one is going to be hard, I put it on pause

    wrote on last edited by
    #48

    @Sala not sure what you mean? I need the headers you specified in your .htaccess file (I’m assuming Apache here).

  • @Sala not sure what you mean? I need the headers you specified in your .htaccess file (I’m assuming Apache here).

    wrote on last edited by
    #49

    @phenomlab I have forwarded to you the headers found in htaccess

  • @phenomlab I have forwarded to you the headers found in htaccess

    wrote on last edited by
    #50

    @Sala thanks. I’ve checked the headers and again and I can’t see anything in the specific code I provided that would cause the bbcode to not display.

    Does it work if you remove all the headers? If this is the case, my recommendation would be to enable them one by one and find out which one actually causes the issue. Once we know which one it is, we can then modify it to allow the display of bbcode.

    It just seems odd to me that everything works fine on a new post, but not on reply. This would tell me they it’s not the headers, but I could be wrong. You may want to try disabling wp-rocket to see if that resolves the issue rather than removing the headers.

  • @Sala thanks. I’ve checked the headers and again and I can’t see anything in the specific code I provided that would cause the bbcode to not display.

    Does it work if you remove all the headers? If this is the case, my recommendation would be to enable them one by one and find out which one actually causes the issue. Once we know which one it is, we can then modify it to allow the display of bbcode.

    It just seems odd to me that everything works fine on a new post, but not on reply. This would tell me they it’s not the headers, but I could be wrong. You may want to try disabling wp-rocket to see if that resolves the issue rather than removing the headers.

    wrote on last edited by
    #51

    @phenomlab yesterday I fix 2 bugs on just at the time you needed an answer for the headers, I immediately knew this one needed a test of one by one bcoz it could be the Defer for Js .

  • @phenomlab yesterday I fix 2 bugs on just at the time you needed an answer for the headers, I immediately knew this one needed a test of one by one bcoz it could be the Defer for Js .

    wrote on last edited by
    #52

    @Sala yes, deferring JS can have a negative effect on functionality. For speed reasons, you typically place JS in the footer rather than the header, but this then means it’s not executed in time and in the DOM when needed.

    Another potentially damaging feature is minifying JS to reduce it’s size. Whilst wp-rocket offers several mechanisms to make the site load faster, you’d need to test each one of these settings to ensure it doesn’t negatively impact the site.

  • @Sala yes, deferring JS can have a negative effect on functionality. For speed reasons, you typically place JS in the footer rather than the header, but this then means it’s not executed in time and in the DOM when needed.

    Another potentially damaging feature is minifying JS to reduce it’s size. Whilst wp-rocket offers several mechanisms to make the site load faster, you’d need to test each one of these settings to ensure it doesn’t negatively impact the site.

    wrote on last edited by phenomlab
    #53

    @phenomlab Hurray!
    We have found the line that blocked the icons, it was this one:-

    Header set Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()" 
    

    Now it’s your part to come up with another config line 🙏

  • @phenomlab Hurray!
    We have found the line that blocked the icons, it was this one:-

    Header set Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()" 
    

    Now it’s your part to come up with another config line 🙏

    wrote on last edited by phenomlab
    #54

    It’s solved
    Demoted the above line and re- modified the

    Header set Feature-Policy "geolocation 'self' https://sopriza.com/" 
    

    To

    Permissions-Policy: geolocation=(self "https://sopriza.com") 
    

    A+

  • It’s solved
    Demoted the above line and re- modified the

    Header set Feature-Policy "geolocation 'self' https://sopriza.com/" 
    

    To

    Permissions-Policy: geolocation=(self "https://sopriza.com") 
    

    A+

    wrote on last edited by
    #55

    @Sala yes, that will resolve the status rating, but that header doesn’t have any impact against JS loading.

    Very odd.


Related Topics
  • WP / Woocommerce Mystery

    Solved Configure wordpress
    23
    1
    12 Votes
    23 Posts
    11k Views
    phenomlab
    @Panda said in WP / Woocommerce Mystery: Just back to my other question, have you ever used Shopify? It insists on a templating language to use any custom js. Not personally as never had any need, however, I do know that it uses Liquid for JS templating. It’s written in Ruby and is used to generate dynamic content on shop fronts. There’s zero reason as to why it wouldn’t work with data supplied by 3rd party API’s, although WordPress code won’t natively work for obvious reasons, and as such, this code would need to be re-written. The JS part will likely work with minor modification, but not the PHP file in it’s current form.
  • WordPress and NodeBB on different machines

    Solved WordPress
    10
    2 Votes
    10 Posts
    4k Views
    cagatay
    @phenomlab thank you for information.
  • move out from flarum to wordpress

    WordPress wordpress flarum migration
    87
    52 Votes
    87 Posts
    45k Views
    phenomlab
    @Hari Glad to see this went so well, and that you’ve finally departed the Flarum ecosystem
  • Creating posts from RSS feeds in Flarum

    Blog flarum rss
    1
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • WordPress installation

    WordPress wordpress
    6
    0 Votes
    6 Posts
    2k Views
    JAC
    @phenomlab said in WordPress installation: @jac that plugin is for single sign on between WordPress and NodeBB. The plugin you really need is this Brilliant, that does look good!
  • Blomstra Realtime issues on ubuntu server

    Solved Linux
    26
    1 Votes
    26 Posts
    11k Views
    phenomlab
    Just checked this thread on Discuss. It’s effectively not stable yet. My suggestion would be to use kyrne/websocket
  • Why is the phenomlab/fancybox-wrapper repo removed?

    Solved General
    6
    4 Votes
    6 Posts
    3k Views
    phenomlab
    @katos Thanks
  • WordPress & NodeBB

    Solved WordPress
    6
    0 Votes
    6 Posts
    3k Views
    phenomlab
    @jac That won’t matter. You just redirect at nginx or apache level and it’ll work. The generally accepted standard though is to use a subdomain.