Page Index Toggle Pages: [1] 2  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Add More Message Icons (Read 9196 times)
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Add More Message Icons
Aug 1st, 2014 at 8:30am
Mark & QuoteQuote  
There was a mod back in version 1.3 or 1.4 that worked much like the Add More Smilies mod (which eventually became our really robust smiley center in 2.0) called Add More Message Icons. That mod let you add more smileys or images to the ones like  Exclaim or  Questioning (or the green thumbs up that I used for this thread). It was a nice, professional, high quality mod.

It never made it to version 2.0.

Instead, I hunted down enough information to set up a sort of 'do-it-yourself' mod that installed four specific smilies that I was interested in having as message icons. If somebody else wanted to use different smilies, they could go in and replace mine with theirs. It wasn't elegant. The coding wasn't pretty. But it did let me add the four specific extra message icons that I wanted.

In a fit of optimism, I am going to upload that weird little 'do-it-yourself' mod, and see if there is anybody who would like the challenge of making a more full-featured version once again. If not, I may just have to check and see what it will take to get my 'do-it-yourself' working again.
  

Add_More_Message_Icons_25.zip ( 14 KB | 239 Downloads )

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
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Add More Message Icons
Reply #1 - Aug 1st, 2014 at 8:54am
Mark & QuoteQuote  
@ Batchman

Thanks for the mod I have searched and not found.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Re: Add More Message Icons
Reply #2 - Aug 1st, 2014 at 9:04am
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Add More Message Icons
Reply #3 - Aug 1st, 2014 at 2:29pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Add More Message Icons
Reply #4 - Aug 1st, 2014 at 2:46pm
Mark & QuoteQuote  
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.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Add More Message Icons
Reply #5 - Aug 1st, 2014 at 2:56pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Add More Message Icons
Reply #6 - Aug 1st, 2014 at 3:02pm
Mark & QuoteQuote  
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.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Add More Message Icons
Reply #7 - Aug 1st, 2014 at 3:24pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Add More Message Icons
Reply #8 - Aug 20th, 2014 at 4:35am
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Re: Add More Message Icons
Reply #9 - Aug 20th, 2014 at 8:55pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Add More Message Icons
Reply #10 - Aug 20th, 2014 at 8:58pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Add More Message Icons
Reply #11 - Aug 20th, 2014 at 9:11pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Re: Add More Message Icons
Reply #12 - Aug 20th, 2014 at 9:29pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Add More Message Icons
Reply #13 - Aug 20th, 2014 at 9:42pm
Mark & QuoteQuote  
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.  :Smiley
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Re: Add More Message Icons
Reply #14 - Aug 20th, 2014 at 9:44pm
Mark & QuoteQuote  
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.  :Smiley


That's what I said...
  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Add More Message Icons

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry