Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Off Topic Discussions > Adoptables Buzz

Notices

Reply
 
Thread Tools Display Modes
  #71  
Old 12-20-2015, 09:14 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,821
Kyttias is on a distinguished road
Default PM System

I've finally finished my updates to the PM System. Unfortunately, these were massively deep edits, so I cannot possibly remember all my little tweaks to assist people in overhauling their own.

Finished: PM System
  • Sending New PMs
  • Notifications
  • Inbox Preview
  • Delete Confirmation

You'll notice I did away with drafts as a feature, because, well... Why do we really need that? And I was SUPER tired of CKEditor, so I decided to switch over to WYSIHTML5 for Bootstrap 3. I can give you a hint for that change over, at least:

In view/messagesview.php, in the newpm() function, find:
PHP Code:
$pmForm->add(new Comment($editor->editor("mtext""Enter your message here."))); 
Replace and/or comment it out with this instead:
PHP Code:
$pmForm->add(new Comment("<textarea name='mtext' class='msgarea' placeholder='Enter your message here.'></textarea>")); 
But, uh, again... I'm not here to help with that. All the documentation for WYSIHTML5 for Bootstrap 3 can be found at the link provided. There are dependencies you need (jQuery, Bootstrap, Bootstrap's jQuery plugin, it, it's css file, and optionally Font Awesome). And then you just need too add a line of code to the end of your template and, bam, textareas with a particular class name are awesome-tastic (I used the class 'msgarea' above). Despite the effort of changing over I feel a lot better about how lightweight it is.

I've thoroughly checked it for security holes like script injection and it seems just as secure! *thumbs up*

There was only one issue I had, where whitespace was being deleted around formatted areas. I fixed the problem inside classes/class_privatemessage.php, by modifying the format() function:

PHP Code:
public function format($text){
        
$text html_entity_decode($text);
        
$text stripslashes($text);
        
$text str_replace("&nbsp;"," ",$text);
        
$text str_replace("'","'",$text); // added this so some forms wouldn't break
        
$text str_replace("i>","em>",$text); //changed this over, too - em is standard now
        
return $text;
    } 
※ I also found the Report feature for PMs is broken. If you'd like yours fixed, I made this thread about it.

※ The Reply button, as it exists by default, lacks some functionality. If you want your Reply page to not only remember the user's name but the topic and message, check out this thread because I managed to get some help achieving that.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 12-22-2015 at 11:46 PM.
Reply With Quote
  #72  
Old 12-20-2015, 09:36 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,950
Abronsyth is on a distinguished road
Default

Novul seems to be coming along beautifully! Looks like you were very successful in the PM system overhaul!
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #73  
Old 12-20-2015, 10:12 PM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 49,819
tahbikat is on a distinguished road
Default

I concur with Abronsyth, looking very nice Kyttias!
Reply With Quote
  #74  
Old 12-20-2015, 11:11 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 338,666
Hall of Famer is on a distinguished road
Default

Well it does look very nice, I see you were using JQuery-AJAX. Congratulations. ^^
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #75  
Old 12-20-2015, 11:35 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,821
Kyttias is on a distinguished road
Default

No Ajax for that, actually. I just popped in an instant header change on the server side where the confirmation page would have been. The page reloads so fast you can't tell it happened.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #76  
Old 12-22-2015, 04:16 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,821
Kyttias is on a distinguished road
Default

So... I uploaded my site to a live server and everything's carried over just fine after a few tweaks... except... the GD image manipulation I'm using to merge pet image layers is SUPER SLOW. Like, I'm going to need to find an alternative way of generating pet images, that's how SLOW it is. D;

I think I'll be looking into HTML5 Canvas next...
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #77  
Old 12-22-2015, 11:54 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,950
Abronsyth is on a distinguished road
Default

I'm glad the transfer went well! I wonder why the image manipulation is going so slowly? I wish you good luck figuring it out, regardless!
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #78  
Old 12-27-2015, 05:36 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,821
Kyttias is on a distinguished road
Default

I've decided that I'll just save images for each individual pet once they've been generated at creation. Most saved pet images are weighing between 40kb~120kb. If each user has ~50 pets, I'm looking at 5 to 8 GB of diskspace needed once I reach 2000 users. This is not ideal, but I really don't have any other viable options at the moment.

However, during the beta period, I plan on having a hard cap of 200 users, which will at least bide me time to find a place to host my site. Once I hit a certain level of popularity, though, I'm going to be screwed unless I find some place with a hefty diskspace allowance and unlimited inodes.

In other news, I've got an artist I trust to help me out. For now, it's just with item art. In the future she'll also be helping with pet decorations, designer skins, and patterns.


We'll launch with 18 colors, plus three more hidden alterations - albinism, melanism, and a mottled monochrome that will happen extremely rarely if genetics line up just right and the Novu gets both albinism and melanism.

I'm definitely on schedule to invite some of you to help test starting in the spring~!
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #79  
Old 12-27-2015, 09:00 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,950
Abronsyth is on a distinguished road
Default

Oooh those bottles are so shiny and nice! Lovely artwork, glad you found someone to help out!
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #80  
Old 12-30-2015, 02:14 AM
Bexasaurus's Avatar
Bexasaurus Bexasaurus is offline
〈 ᴘʀᴀᴄᴛɪᴄɪɴɢ ᴀʀᴛɪsᴛ 〉
 
Join Date: Aug 2015
Posts: 101
Gender: Female
Credits: 7,568
Bexasaurus is on a distinguished road
Default

I really am excited for Novul!
__________________
TUMBLR * NOPE
I post art and stuff, feel free to follow/watch!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kyt's Novul Sketches Kyttias Art Gallery 4 01-15-2015 07:42 PM


All times are GMT -5. The time now is 07:55 AM.

Currently Active Users: 9583 (0 members and 9583 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636