We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    Marc, UNB is really cool indeed, but is self-described by its dev as not really able to scale well that big.
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 17883
      • 1,039 Posts
      Hi Ryan, yes I read this. But, honestly, they talk about >40000 Users and lots of threads... For medium-scale boards this should work well. And the dev is very active as far I can see. In the newe versions there is also HTML caching and so on, I think performance will also be improved. We´ll see smiley
        • 32241
        • 1,495 Posts
        I heard a lot of positive review about their community though. I would love to use their software, it’s just that my eyes had been set to phorum, after knowing the experience that phorum’s developer have in building a large scale forum software, as well as knowing the roadmap of phorum, which allow a totally skinable and easy integration with other major application had attracted my attention and desire to try another forum software as a replacement. wink
          Wendy Novianto
          [font=Verdana]PT DJAMOER Technology Media
          [font=Verdana]Xituz Media
          • 25663 MODX Staff
          • 12,272 Posts
          I really like UNB, actually, and tried to deploy it as the board here prior to going with SMF. At the time PHP5 was the gating factor. Phorum souds wonderful too.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 17883
            • 1,039 Posts
            Okay, we´re getting nearer... Quote from the developer of UNB:


            It might be that UNB’s global code isn’t so global after all. That CMS could place the include() call inside a function, making all included code useless if it calls other functions.

            The thing is, that the content of a global variable of unb gets messed up at a call to a session function. Any hints on that?

            Thx guys!

            Marc
              • 32241
              • 1,495 Posts
              My only thought on this will be to check their code, do they use $GLOBAL when declaring their global vars or do they use global identofier in front of their var, when declaring it.

              Currently snippet is being evaluated using eval, while the eval is being called inside a function. So I assume when UNB declare a variables without using the specific indicator shown above, whatever variables that UNB defined in ther system will be local to the function that run the eval function.

              I might be wrong on this assumption due to the fact that I just used PHP for a couple months since I decided to use MODx. But consulting this to UNB forum will be helpful maybe.

              Sincerely,
                Wendy Novianto
                [font=Verdana]PT DJAMOER Technology Media
                [font=Verdana]Xituz Media
                • 17883
                • 1,039 Posts
                Hi Wendy, thx for your answer. I will forward this to the developer. But here in germany it´s already night, so I will get no answer soon. Perhaps you can help me a little on investigating this (I´m also interested in learning more about PHP). How can I see how the globals are defined? As far as I can see they are defined as usual vars and then called from the function with

                function UnbUpdateStat($key, $offset)
                {
                	global $UNB;
                ...
                


                So this is obviously the problem, right? How would a solution look like? Like converting this var into $GLOBAL[’UNB’] or something like that?

                Thx in advance,

                Marc
                  • 32241
                  • 1,495 Posts
                  Actually, when you declare variable not inside a function or a class, it will be automatically assigned as a global variables. The only problem is, when they just define it using $var_name = ’some_value’; on their program, then when the program being included inside a function, then when they specified global $var_name, it will look into a global var called $var_name, which is it’s not located inside a function, so the $var_name that suppose to be global, but because it’s being called inside a function, it’s no longer becoming global variables. So outputing $var_name will return null or nothing, instead of ’some_value’.

                  One of the solution will be to use $GLOBAL[’var_name’] = ’some_value’; when declaring it or using it, so it will make it easier to maintain global identity accross the program, even though the script later being included inside a function.

                  Btw, this is my tutorial and opinion from 3 months PHP programmer under training, so if I mention something wrong, please do correct me and pardon me.

                  I believe the UNB guys will help you with this. Just tell them that the system is being included inside a function, will this affect their system or not. That statement will make them give a clear answer yes or no.
                    Wendy Novianto
                    [font=Verdana]PT DJAMOER Technology Media
                    [font=Verdana]Xituz Media
                    • 34162
                    • 1 Posts
                    MadeMyDay,

                    I installed UNB and wrapped it in MODx using TV and View Port Widget.

                    Here is the link that you can take a look:
                    http://chanh.blogdns.com/modx/WrapperUNB.html

                    Please let me know what you think.
                      • 17883
                      • 1,039 Posts
                      Hi chanh,

                      thanks, I already have a wrapped solution (with autoheight even at klicking in the forum). But what I want to have is an integrated solution. For example links to the forum in a wrapped solution would always result in displaying only the forum page without the enviroment (so do RSS feeds and so on). Of course also this could be handled by reloading the stuff outside the iframe. But this isn´t what I consider to be a fast and "modx-like" solution wink

                      My page is nearly ready to start (think tomorrow), I´ll start with the Iframe solution but the goal is an integration in modX... wink

                      Thx and greetz
                      Marc