Maybe do... BOTH?!
Yup, totally aggree with your points. On the other hand, adding bbcodes via plugins is quite a handy thing. So i won't say the idea is bad, just the way it's done in the moment is not the best.
- Have the main BBCode in a source file,
- Give plugins the ability to add or replace BBCode,
- Only, plugins can't add code in the database, rather a function name. IIRC plugin files are always loaded so it's easy enough to just put the code in a plugin file and it should get executed.
Or, if it's too much to handle, just do points 2 and 3, because it still means putting the code to be executed into a source file, goddammit.
Yeah, that's probably the most realistic solution..?!
- First thing I want to do is moving all "validate_funcs" to
Subs-BBC (nearly done with that).
- Next thing is refactoring those functions, making more
clear what they do (figured out that the do nothing which
you should describe with the term "validate", most of them
trim or beautify the content.) and understanding why the
hell there are often the same tag twice with nearly the same
"validate_func". I'm sure it would be enough to have one of
those function for each tag (which needs this stuff). https://github.com/C3realGuy/wedge/commit/791bdfa2632190b0c23f570e4bc581de9a7bc2bd#diff-ea931b81508cfb000ca2c54e529ff570R1520
- If this is done I want to look if it's possible to "hardcode" all those
default bbc tags in a nice function. Something like loadBBCodes(),
which returns all default bbc tags plus loads all others from sql.
Have to see how the disable tag stuff is done. Want to add a
hook here too, so plugins really have all the power over bbcodes
without the need of modifying the bbc parse code or doing some
regex stuff on top of it.
It's a bit to do, won't get bored the next days. The Problem is not
the coding, it's understanding what goes on in Subs-BBC :lol:
Well, I've moved Wedge.org and Noisen.com at the same time. Wedge.org was flawless, but Noisen.com is running a heavily customized SMF 2.0 RC, with none of the code fixes to make it run on PHP 7. However, that server can ONLY run one version of PHP (because the admin doesn't want to bother, and it's okay), so I had to manually convert SMF code to PHP 7 *and* my custom code as well, of course... Took at least a day.
If I move my site again, I'll make sure it has PHP 5 as an option. I'd rather use PHP 5 for Noisen, even though it's now working correctly in PHP 7.
Sorry if it was confusing. Wedge was fine.
I'm having Wedge problems with my other new site though, ahah. But again-- server problem. Another server, other problems: this time it's file permissions. The difference is, the admin has been AWOL for 2 months now. Not great...
Didn't play with a pure webspace in years, and i know why :D
You just have more control, more power and of course more responsibility. But stuff like let's encrypt (free ssl certificates in case you don't know them), full control about software which is running and the configuration will always let me choose an vps/kvm/whatever over a webspace.
Yeah, me too. And thank you for being the only developer who still believes in it.:)
PS: It feels good to see wedge back under active developement:D
Although I never felt back about leaving it -- I just considered it finished. What I'm doing is maintenance work, plus extra minor features from time to time because, well, it's fun?
My game development plans were set aside due to the state of the market. Purely from a business point of view, there just isn't enough visibility for a new game, and for now I don't want to rely on my 'Kyodai' brand name to attain more recognition. So I just focus on selling that old game and building that game trading site. (Which for now is just a game trade matching site. Supposed to be unveiled today, except the site isn't working due to aforementioned permissions ahah.)
Wedge is quite finished. It's totally usable, I only tweak stuff which I don't like how it behaves. For example the WYSIWG Editor. It's fully working, but awful :D
Will be the next thing i want to look at. And some features I see around other forum softwares which i like. For example mark quotes. So you mark a part of post and you can only quote this part. Really like this idea, have to see how i can implement that. Maybe stuff for a plugin.
Besides that, i said it already in parts here and there, wedge is in my opinion the only good forum software around.
It's nearly perfect with balancing out pure html/css functions and extra js. It has many js stuff which makes it feel modern and dynamic without making it unusable on browsers without js. I mean solutions like nodebb they won't work in a browser without js. Those "in browser apps" are cool for sure, but not for a forum software (in my opinion). They are slow, make problems with search engines, are unusable with noscript. But forums should be accessable by as many people as possible and shouldn't make problems.
The next thing is mobile/responsive design. A lot of forum softwares aren't able to this. Xenforo just looks really really bad on a smartphone. They didn't understand this *less thing which wedge does. Less padding and style elements is more on a mobile screen. You wan't to use as much of the screen as possible to show content without confusing the user. Xenforo also didn't do this js thing well. It's just bloated with js even if it's more of traditional "non ajax" solution compared to nodebb. I hate it to surf on any xenforo forum. Only thing which is maybe worse is an old vbulletin forum. I just always fear to lose my account's email and password to some hackers :D
Wedge feels lightweight, it loads super fast on the browser. It looks modern, has a special touch to it which you will recognize. And it has a lot of really good ideas implemented. Besides that, it's super stable. I think we use wedge on our forum since 3 years. Never had a serious problem with the forum software. Not even a small one.
But still there are problems with wedge.
- PHP is just not modern anymore. In fact, it's a bit dying.
I'm not sure about that, but for example websockets aren't
supported yet in php. Which could be a nice thing to have,
also for wedge. Especially for notifications. Wedge is maybe
the last and best php Forum Software.
- Besides the PHP thing, the codebase is old and unmaintained.
No unit tests, no coding style standards. You also don't want to
touch that code, risks are too high to break a thing and don't even
notice it. Not a big of a problem, there aren't too many who use wedge
- No documentation, no helper/"framework like" functions to make life
easier for plugin developers. As a plugin developer you write so many
functions again, which are maybe already implemented in the wedge
core and you just could reuse. But you don't know of them and never will.
- In general you can make wedge do everything you want, but it's often not
a nice way. It's more like forging it with a flamethrower.
- Some standard functions are just not as good as they should. For example
the editor. Color chaning is bad, you can't asign a choosen color to another
marked text without first changing it's color to something else and than to
the color you want. Makes no fun.
Or Private Messages. It's this old private messaging system you know from
Bulletin Boards. It's just old and feels bad to use. It's a bit like emails and this
is already bad. In fact i would always prefer to write you a message on any
instant messanger instead of using wedge.
Wow this is more of an essay and totally off topic. But who cares.