Let's just say that anyone who starts playing around with editing templates on a live forum without first having a valid backup in a safe place is a fool at best. :
That's what I said...
Posted by: Dandello Posted on: Aug 20th, 2014 at 9:42pm
Let's just say that anyone who starts playing around with editing templates on a live forum without first having a valid backup in a safe place is a fool at best. :
Posted by: Monni Posted on: Aug 20th, 2014 at 9:29pm
That's because Micon.def is part of the template, and editing active/current template violates security restrictions in YaBB 2.6.
Actually, it's because the def files can't be opened inside the Admin Center using the template editor because they're not html or template files and I haven't written anything to allow for safely editing the hashes and/or lists stored inside. A similar issue exists with the Language files - it would be nice to have a language file editing utility so admins can more fully customize things and that's on the agenda for 2.6.2 or maybe 2.8 when we get there. But it's going to be one of those things that's a lot more complicated that it looks on the outside.
I could still argue that there is no safe way to edit any of the templates files inside Admin Center even though parsing Micon.def is pretty easy. Only thing that needs validating is that double quotes are not used in strings that need to be injected to JavaScript code... Rest is pretty much making list of all the icon variable names and reading the variable contents. Dumping variables back to the file is the part where hell freezes if there is even single error in either the code that writes back the file or in contents of one of the variables that have been edited.
Posted by: Dandello Posted on: Aug 20th, 2014 at 9:11pm
That's because Micon.def is part of the template, and editing active/current template violates security restrictions in YaBB 2.6.
Actually, it's because the def files can't be opened inside the Admin Center using the template editor because they're not html or template files and I haven't written anything to allow for safely editing the hashes and/or lists stored inside. A similar issue exists with the Language files - it would be nice to have a language file editing utility so admins can more fully customize things and that's on the agenda for 2.6.2 or maybe 2.8 when we get there. But it's going to be one of those things that's a lot more complicated that it looks on the outside.
Posted by: Dandello Posted on: Aug 20th, 2014 at 8:58pm
Testing moving all the Message icon parameters to Micon.def. (So far so good.) Putting the icon parameters into a hash and processing that also saves on having whole slew of hardcoded repeated items.
Also testing the additions made by Add More Message Icons.
Posted by: Monni Posted on: Aug 20th, 2014 at 8:55pm
I'm working on Add More Message Icons - saw more spots where code could be made more Mod friendly. The big problem with adding icons is that we currently don't have a way to edit Micon.def from the Admin Center.
That's because Micon.def is part of the template, and editing active/current template violates security restrictions in YaBB 2.6.
Posted by: Dandello Posted on: Aug 20th, 2014 at 4:35am
I'm working on Add More Message Icons - saw more spots where code could be made more Mod friendly. The big problem with adding icons is that we currently don't have a way to edit Micon.def from the Admin Center.
Posted by: Dandello Posted on: Aug 1st, 2014 at 3:24pm
I'll email JonB and let him know you've volunteered.
Posted by: pyragony54 Posted on: Aug 1st, 2014 at 3:02pm
Simply forth with the copy and I will see what I can do. That will not happen overnight. If the attachments are all there, I get the back also.
Posted by: Dandello Posted on: Aug 1st, 2014 at 2:56pm
JonB (supposedly) has all the backups for BoardMod. But a lot of the original functionality for that site was written in PHP and stored in mySQL so a lot has been lost since (guess what) those weren't backed up at all.
So ask JonB if he'll send you the backups he has for it to start rebuilding it.
And thanks for at least contemplating this challenge.
Posted by: pyragony54 Posted on: Aug 1st, 2014 at 2:46pm
So the old BoardMod produce, but really should not be a problem if a backup is available. Just bring it on. I do this already then. A subdomain is set up quickly.
@Dandello
Would be nice if you could customize this mod, I had it in the old board, but the icons have adapted to my board.
Posted by: Dandello Posted on: Aug 1st, 2014 at 2:29pm
I'm hoping that JonB can get BoardMod up again (once he's got time to breathe since I know he's been absolutely swamped at work). Then we'll have access to a lot of the old old mods that looked promising but never got updated to 2 for whatever reason.
@Pyragony, are you claiming this one to work on?
Posted by: Batchman Posted on: Aug 1st, 2014 at 9:04am
It's not much of a mod (because I'm not much of a coder) ... but you are welcome.