as esm pointed out you can now markup listings. heres a tutorial to markup sponsored listings - basically it gives people who pay an easy method to make their listing look better than everyone else... maybe a good money spinner, certainly value added.
1) get, and unzip FCKeditor, put it in a folder called fckeditor/ in the directory you store your local indexU files. http://www.fckeditor.net/download/default.html
2) now upload it to public_html/FCKeditor/
3) now load up add_form.html
4) at the top of the file add this (first lines for context)
5) go to the textbox you would like fckeditor to load into and type id=FCKeditor1Code:<%include file="header.html" title="Add a Listing" meta_keywords="" meta_description="" %> <script type="text/javascript" src="FCKeditor/fckeditor.js"></script> <script type="text/javascript"> window.onload = function() { // Automatically calculates the editor base path based on the _samples directory. // This is usefull only for these samples. A real application should use something like this: // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; oFCKeditor.BasePath = 'FCKeditor/' ; oFCKeditor.ReplaceTextarea() ; } </script>
6) now you need to be ruthless, go to FCKeditor/fckconfig.js you need to chop out all the functions that will be useless, it also helps to make the editor fir in the box nicer. lines from 78 lists the buttons it will load as the default tool set. heres mine :Code:<textarea class=text3 name="description" cols="80" rows="10" wrap="virtual" id="FCKeditor1"><%$description%> </textarea>
NOTE : their is a bug in the download file, you will need to edit the above section of code anyway to remove the comma after [about] for it to work in IE. Or copy what i have aboveCode:FCKConfig.ToolbarSets["Default"] = [ ['Cut','Copy','Paste','PasteText','PasteWord','-','SpellCheck'], ['Undo','Redo','-','SelectAll','RemoveFormat'], ['Bold','Italic','Underline','StrikeThrough'], ['OrderedList','UnorderedList','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink'], ['FontFormat','FontName','FontSize'], ['TextColor','BGColor'] ] ;
7) upload, now CLEAR YOUR BROWSER CACHE else you wont see hte changes. test.
8) this will be an editor for everyone, i suggested using it just for sponsored listings, its a simple <if> in smarty on the modify form to do that... at the top where it loads the javascript :
IF link = sponsored load javascript
ELSE <!-- dont bother -->
Dody :
this is what the wiki would be useful for, how do we add categories... I want to creat a cateogry called "fckeditor" but i dont see how...Attachment 197



