tinymce in comments and chat module development questions

soaringeagle
@soaringeagle
11 years ago
3,304 posts
im very new to jr and slowly figuring it out
but had 2 big questions
1 can you add the tiny mce editor to ..well to this text field as an example basicly any fieild a users going to use to create or reply to or comment on forums blogs photos videos music the works id like a tiny mce text editor in

the other thing is once my sites ready i will need to develop a native chat module that alows all logged in users to chat (they can opt to log out of chat while still be logged into site).. possibly a private instant message option and a "followers only" room

ive been watching the vids on the yt channel and i think what i needs a form feild that takes the chat input a smarty object to output it to the chat display module ...although i dont yet know how to code that i think i can figure it out its the listeners that im not so clear on how do you set up a listener to listen for chat input and display it in the chat module

(i know my knowledge isnt up to speed to develop this module yet but slowly begining to understand how it might work)

was there a jr 4 chat that i could maybe poke around in and try to get an idea how it would work?

i know feel like such a newb now haha ..whole new system to learn ..but hey its only been 3 days and think i almost understand it


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/09/14 09:42:04PM
brian
@brian
11 years ago
10,149 posts
Right now the WYSIWYG field (the editor) is only available in specific "editor" fields. For comment fields, user can use BBCode, simply paste in URLs (they will be made clickable) or if you have the URL Scan module installed it automatically embeds a ton of stuff.

If you wanted to add the TinyMCE editor to comments you'd need to customize the modules/jrComment/templates/comment_form.tpl file - copy it to:

skins/YourCustomSkin/jrComment_comment_form.tpl and that will "override" the one provided by the comment module.

My recommendation would be to NOT do that however - in my experience with running online sites for almost 20 years, the only thing it will be used for is for users to embed links to their sites or spammers to setup links to their sites. But that's your call ;)

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
11 years ago
3,304 posts
its absolutely essential on my site for photos and vids
and we have always had near zero spam like 4 a year maybe
well not true there were times where we had tons and tons of idevb=ntickle spambot profiles created but once the spam filter was upgradedit was next to njothing.. and i and my members pay close attention so spam never survives longer then a few minutes


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
11 years ago
3,304 posts
this is what i should modify correct
(im very new to jamroom and spent thelast 4 days figuring it out..with no sleep)

i










{jrCore_lang module="jrCore" id="73" default="working..." assign="working"}
{jrCore_image image="form_spinner.gif" id="`$jrComment.unique_id`_fsi" width="24" height="24" alt=$working style="margin:8px 8px 0px 8px;display:none"}





is this $jrComment.class what i need to change


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
11 years ago
10,149 posts
I think the easiest thing for us to do is make it a Global Config option that you can check to enable the editor for comments - I've got that on my to-do list here and will get that done ASAP. Paul has told me that this is something he feels most ning migrations are going to want, so we'll make that easy to switch on.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
11 years ago
3,304 posts
oh hell yea you guys are awesome and yea that makes life alot easier

now if i can manage to get my styling from my ning 3 site to work on tyhe tinymce here (wich i think it should) that would be sweet
that editor was the hardest thing iveever come across to style (and had to style diferentky fir html mode then wysiwyg mode) ..but when i finaly got it the results were spectacular and was the only site id ever seen that had the editor styled
it does look lil diferent here but im sure most of the classes are the same and i can adapt


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
11 years ago
10,149 posts
Yeah we use TinyMCE 4 in Jamroom:

http://www.tinymce.com/

so you'll have full access to the CSS.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
11 years ago
3,304 posts
thnx i was trying to deconstruct it layer by layer by layer
and its really iframes within iframes

and the crazy part is if u change the background in firebug it woerks but on the site it dont cause it loads a seperate stylesheet after site load that overwrites it
but in html mode i could style the background but the outter container wouldnt take the same code so had to do that entirely diferently

feel free to join ww3.dreadlockssite.com and check out the result..it was beautiful
but the hardest coding ive ever had to do
and those css animations on there i wrote without any thought


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags