Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Add More Message Icons (Read 5698 times)
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Add More Message Icons
Reply #16 - Aug 20th, 2014 at 9:47pm
Print Post  
Dandello wrote on Aug 20th, 2014 at 9:46pm:
But isn't it amazing how many fools are out there? Grin


Count me in Wink
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Add More Message Icons
Reply #15 - Aug 20th, 2014 at 9:46pm
Print Post  
But isn't it amazing how many fools are out there? Grin
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Add More Message Icons
Reply #14 - Aug 20th, 2014 at 9:44pm
Print Post  
Dandello wrote 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.  Roll Eyes


That's what I said...
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Add More Message Icons
Reply #13 - Aug 20th, 2014 at 9:42pm
Print Post  
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.  Roll Eyes
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Add More Message Icons
Reply #12 - Aug 20th, 2014 at 9:29pm
Print Post  
Dandello wrote on Aug 20th, 2014 at 9:11pm:
Monni wrote on Aug 20th, 2014 at 8:55pm:
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.
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Add More Message Icons
Reply #11 - Aug 20th, 2014 at 9:11pm
Print Post  
Monni wrote on Aug 20th, 2014 at 8:55pm:
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.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Add More Message Icons
Reply #10 - Aug 20th, 2014 at 8:58pm
Print Post  
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.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Add More Message Icons
Reply #9 - Aug 20th, 2014 at 8:55pm
Print Post  
Dandello wrote 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.


That's because Micon.def is part of the template, and editing active/current template violates security restrictions in YaBB 2.6.
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Add More Message Icons
Reply #8 - Aug 20th, 2014 at 4:35am
Print Post  
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.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Add More Message Icons
Reply #7 - Aug 1st, 2014 at 3:24pm
Print Post  
I'll email JonB and let him know you've volunteered.  Smiley
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Add More Message Icons
Reply #6 - Aug 1st, 2014 at 3:02pm
Print Post  
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.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Add More Message Icons
Reply #5 - Aug 1st, 2014 at 2:56pm
Print Post  
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.  Smiley

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Add More Message Icons
Reply #4 - Aug 1st, 2014 at 2:46pm
Print Post  
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.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Add More Message Icons
Reply #3 - Aug 1st, 2014 at 2:29pm
Print Post  
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?
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 163
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Re: Add More Message Icons
Reply #2 - Aug 1st, 2014 at 9:04am
Print Post  
It's not much of a mod (because I'm not much of a coder) ... but you are welcome.
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint