Author |
Message |
xGSTQ
Involved


Joined: Feb 03, 2006
Posts: 269
|
Posted:
Tue Jan 30, 2007 3:26 am |
|
How would i integrate it so we have the WYSIWYG reply box in the News comments section...
It was added to the News admin section and the Submit News part, but not the News Comments in RNv2.02.02 ?
Any help would be great ...  |
|
|
|
 |
xGSTQ

|
Posted:
Tue Jan 30, 2007 3:48 am |
|
he he i found it !
to get the WYSIWYG editor in your News modules comments do this
Open yoursite/modules/News/comments.php
Find (around line 695)
Code:echo "<font class=\"option\"><b>"._UCOMMENT.":</b></font><br>"
."<textarea wrap=\"virtual\" cols=\"50\" rows=\"10\" name=\"comment\"></textarea><br>"
|
Replace it with this below
Code:echo "<font class=\"option\"><b>"._UCOMMENT.":</b></font><br>";
//add WYSIWYG editor
wysiwyg_textarea("comment", "", "NukeUser", "50", "10");
// ."<textarea wrap=\"virtual\" cols=\"50\" rows=\"10\" name=\"comment\"></textarea><br>"
echo "<font class=\"content\">"._ALLOWEDHTML."<br>";
|
You get the jist anyways ! just compare the code you will see what i did, it worked okay on my site !
Essentially I just replaced
Code:."<textarea wrap=\"virtual\" cols=\"50\" rows=\"10\" name=\"comment\"></textarea><br>"
With
wysiwyg_textarea("comment", "", "NukeUser", "50", "10")
|
 |
|
|
|
 |
xGSTQ

|
Posted:
Tue Jan 30, 2007 5:22 am |
|
lol well i tested it and found that it worked, but (always a but with me !)
When you write your comment and hit preview it went to the old style .. so i found the other place where you needed to add the same code above, its around lines 789 (just search for text area) it will come up....
So now i had the WYSIWYG working on the submit news comment, BUT ! told ya
when you hit preview it doesn't save the message you have wrote so its pretty crap !
Any help plz much appreciated,
Ive also added the WYSIWYG to my Clan Links module, Web Links Submit, Downloads Submit ... erm Ah Surveys Module and the Surveys was having this same issue too
Thx
Ped |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Tue Jan 30, 2007 5:57 am |
|
When you hit preview or when you submit AFTER hitting preview?
WYSIWYG doesn't affect that way Nuke stores the comments, and there may be code that removes all WYSIWYG from comments. I'd suggest making comments text only (i.e. no HTML) to discourage spammers. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
xGSTQ

|
Posted:
Tue Jan 30, 2007 6:04 am |
|
Yup i agree there with you about no HTML can this be done for the WYSIWYG ?
It submitted fine, it didnt show what i wrote in the WYSIWYG after i hit preview ..
Hmm it showed what i wrote, fine at the top of the screen where you preview your post, then say if a wanted to make edits to that, it was missing from the WYSIWYG editor ...
Thats what im trying to say ! he he |
|
|
|
 |
kguske

|
Posted:
Tue Jan 30, 2007 7:12 am |
|
Normally, the WYSIWYG editor isn't applied to the comments field. I don't understand what you're trying to accomplish. |
|
|
|
 |
xGSTQ

|
Posted:
Tue Jan 30, 2007 7:20 am |
|
kguske wrote: | Normally, the WYSIWYG editor isn't applied to the comments field. I don't understand what you're trying to accomplish. |
ha ha well why didn't you tell me that before i started !
I just thought it would have looked a lot better and easier ...  |
|
|
|
 |
|