PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
xGSTQ
Worker
Worker


Joined: Feb 03, 2006
Posts: 168
Location: UK

PostPosted: Tue Jan 30, 2007 3:26 am Reply with quote Back to top

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 ... Very Happy
View user's profile Send private message Send e-mail Visit poster's website
xGSTQ
Worker
Worker


Joined: Feb 03, 2006
Posts: 168
Location: UK

PostPosted: Tue Jan 30, 2007 3:48 am Reply with quote Back to top

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")


Very Happy
View user's profile Send private message Send e-mail Visit poster's website
xGSTQ
Worker
Worker


Joined: Feb 03, 2006
Posts: 168
Location: UK

PostPosted: Tue Jan 30, 2007 5:22 am Reply with quote Back to top

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 Laughing

when you hit preview it doesn't save the message you have wrote Crying or Very sad 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
View user's profile Send private message Send e-mail Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4687

PostPosted: Tue Jan 30, 2007 5:57 am Reply with quote Back to top

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.
View user's profile Send private message
xGSTQ
Worker
Worker


Joined: Feb 03, 2006
Posts: 168
Location: UK

PostPosted: Tue Jan 30, 2007 6:04 am Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4687

PostPosted: Tue Jan 30, 2007 7:12 am Reply with quote Back to top

Normally, the WYSIWYG editor isn't applied to the comments field. I don't understand what you're trying to accomplish.
View user's profile Send private message
xGSTQ
Worker
Worker


Joined: Feb 03, 2006
Posts: 168
Location: UK

PostPosted: Tue Jan 30, 2007 7:20 am Reply with quote Back to top

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 ... Confused
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum