What is vldPersonals?

vldPersonals is a very easy to use dating/social software. It allows you to create a fully functioning & modern dating website in a matter of minutes. If You think it's too complicated - check vldPersonals!
Know more about how You can become a dating website owner

What is vldCrowd?

vldCrowd.com is the biggest unofficial community of vldPersonals owners. It is a place to share ideas and thoughts about Your dating website. It is a place to answer questions and receive answers.
Do You own a vldPersonals license? Don't hesitate and join!

Connect Today

Community members help each other to take their dating websites to the next level. Can You make your vldPersonals website better? Join and find out...

Connect With More Than 500 Dating Website Owners! Sign Up Today
655 3 13
Tired of the 'NiceEdit' that ships with vldPersonals?
 
I much prefer TinyMCE, and fortunately, changing from NiceEdit (not so nice I think) to TinyMCE is very easy.


 
Apart from familiarity, it offers more options and functionality, and functions in a better way than NiceEdit.
 
Want to give it a try?
 
First, download the jQuery version of TinyMCE - to make it easier, you can get it from me here
 
Unpack this archive, into your root/includes directory, so it in installed as follows:
public_html/includes/tiny_mce
There will be further subdirectories under the tiny_mce directory
 
Now, open the file /includes/templates/header.tpl
Around line 15, find and DELETE the entry
<script type="text/javascript" src="{virtual_path}includes/js/nicedit.js"></script>
That's right, delete it, erase it, cast it into cyber space.
 
Now, still in /includes/templates/header.tpl paste the following, just about where you deleted the other line.
 
Text
<script type="text/javascript" src="{virtual_path}includes/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
        mode : "textareas",
 plugins : "inlinepopups",
 dialog_type : "modal",
        theme : "advanced",
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",   
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true
});
</script>

You can now save and close /includes/templates/header.tpl
 
Now, all you need to do is modify two template files:
/includes/templates/pages_edit.tpl
and
/includes/templates/news_edit.tpl
 
Note, if you have my vldArticles mod, then you would also have to change
/includes/templates/articles_edit.tpl
 
Towards the bottom of the files you will find an entry such as this:
Text
<script type="text/javascript">
        $(document).ready(function(){
                new nicEditor({
                        iconsPath: '{virtual_path}includes/js/nicicons.gif',
                        buttonList:
                }).panelInstance('field_body');
        });
</script>

Delete this entire selection, close and save your files, and voila, you should now have a much better textarea editor than NiceEdit.
 
Cheers

Comments

fatlizard

  • Posted on 08/02/2010 08:22 AM

hi when i send private Messages for all user(broad cast) my Messages show like This
<p style="text-align: right;">HI ALL &nbsp; HO &nbsp; salam</p>
<p style="text-align: right;">thank </p>
what is problem please please please help me

I am not sure where you have tried using this, but it is somewhere in the system that I personally have not changed, so cannot give you a standard answer to resolve this.
It looks like the message is being sent as text, not HTML.
Are your preferences set to send messages as HTML?
The VLD source uses an email class that sends messages as HTML or text depending on what your preferences have been set to - check this in your CP.

dezchilds

  • Posted on 08/02/2010 08:00 AM
help please how i can replace Old editor ?

dezchilds

  • Posted on 08/01/2010 11:25 AM
hi when i send private Messages for all user(broad cast) my Messages show like This
<p style="text-align: right;">HI ALL &nbsp; HO &nbsp; salam</p>
<p style="text-align: right;">thank </p>
what is problem please please please help me

fatlizard

  • Posted on 01/08/2010 07:53 AM
There was an issue when inserting images using TinyMCE, in that the path saved was a relative local path, giving an image tag something like <img src="../../directory/file.jpg> which wouldn't show in the browser, as the browser needs to know what image server to find the image on.
 
The solution is a simple edit to the TinyMCE configuration.
 
Open your /includes/templates/header.tpl and find the TinyMCE init code
 
At the end simply add convert_urls : false, so that the code block finishes like this:
 
tinyMCE.init({
:: // other stuff in here
:: // other stuff in here
theme_advanced_resizing : true,
convert_urls : false
});
 
Be sure to add a comma at the end of the preceding line.
 
When you now add an image using TinyMCE, use the full server/site address, for example:
http://mydomain.com/templates/name/media/image.jpg
 
Because we changed TinyMCE configuration, this will now be saved as the full image address, allowing it to show in the browser.

fatlizard

  • Posted on 12/19/2009 05:42 PM
Problem of loading template content solved.
 
Please check post on vldPersonals forum (http://www.vldpersonals.com/forum/viewtopic.php?pid=34756#p34756)

misulicus

  • Posted on 12/18/2009 11:11 AM
first problem after changing it
when i try to send a message using the communicate link in CP
it doesent loads the messages body at all

r0b33

  • Posted on 12/18/2009 06:51 AM
Nice work! Working like a charm!

wclang

  • Posted on 12/15/2009 05:41 PM
This is very nice. Thanks for the mod...

Log in to leave a comment