Blogga - More Content ( Problem )
Permalink
Hi people. I downloaded Blogga , i was thinking i will can to publish news ,embeding videos , photos , using bbcode , and more.....
I'm trying to change the form how blogga publish the news adding the "TEXTAREA" of Text Editor
To try this to your site , change "http://your-website.com/ for you real domain.
For the moment this doesn't work because doesn't work the "publish" button.
If someone wish to help me .. i'll whait.
I'm trying to change the form how blogga publish the news adding the "TEXTAREA" of Text Editor
To try this to your site , change "http://your-website.com/ for you real domain.
For the moment this doesn't work because doesn't work the "publish" button.
If someone wish to help me .. i'll whait.
<div class="ccm-pane-controls"> <a name="_add1"></a> <script type="text/javascript"> $(function() { $('#ccm-block-form').each(function() { ccm_setupBlockForm($(this), false, 'add'); }); }); </script> <input type="hidden" name="ccm-block-pane-action" value="/index.php/tools/required/add_block_popup.php?cID=106&btID=1&arHandle=Blog+Area" /> <form method="post" action="/index.php?cID=106&arHandle=Blog+Area&btID=1&mode=edit&ccm_token=1305636324:f12c18441ad34e1bff0f9850608b8fe0" class="validate" id="ccm-block-form" enctype="multipart/form-data"> <input type="hidden" name="ccm-block-form-method" value="REGULAR" /> <div id="ccm-block-fields"> <script language="javascript"> tinyMCE.init({
Viewing 15 lines of 179 lines. View entire code block.
<div class="ccm-pane-controls"> <a name="_add1"></a> <script type="text/javascript"> $(function() { $('#ccm-block-form').each(function() { ccm_setupBlockForm($(this), false, 'add'); }); }); </script> <input type="hidden" name="ccm-block-pane-action" value="/index.php/tools/required/add_block_popup.php?cID=106&btID=1&arHandle=Blog+Area" /> <form method="post" action="/index.php?cID=106&arHandle=Blog+Area&btID=1&mode=edit&ccm_token=1305636324:f12c18441ad34e1bff0f9850608b8fe0" class="validate" id="ccm-block-form" enctype="multipart/form-data"> <input type="hidden" name="ccm-block-form-method" value="REGULAR" /> <div id="ccm-block-fields"> <script language="javascript"> tinyMCE.init({ mode : "textareas", width: "100%", height: "310px", inlinepopups_skin : "concreteMCE", theme_concrete_buttons2_add : "spellchecker", relative_urls : false, document_base_url: 'http://your-website.com/', convert_urls: false, content_css : "http://your-website.com/packages/theme_boldy/themes/boldy/typography.css", plugins: "inlinepopups,spellchecker,safari,advlink,table,advhr,advimage,xhtmlxtras,emotions,insertdatetime,paste,visualchars,nonbreaking,pagebreak,style", editor_selector : "ccm-advanced-editor", theme : "advanced", theme_advanced_buttons1 : "cut,copy,paste,pastetext,pasteword,|,undo,redo,|,styleselect,formatselect,fontsizeselect,fontselect", theme_advanced_buttons2 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,|,forecolor,backcolor,|,image,charmap,emotions", theme_advanced_buttons3 : "cleanup,code,help,charmap,insertdate,inserttime,visualchars,nonbreaking,pagebreak,hr,|,tablecontrols", theme_advanced_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite", theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats", theme_advanced_font_sizes : "1,2,3,4,5,6,7", theme_advanced_more_colors : 1, theme_advanced_toolbar_location : "top", //theme_advanced_styles: "Note=ccm-note", theme_advanced_toolbar_align : "left", spellchecker_languages : "+English=en" }); </script> <script type="text/javascript"> var ccm_editorCurrentAuxTool = ''; var editor_id = 'ccm-content-263'; // store the selection/position for ie.. var bm; setBookMark = function () { tinyMCE.activeEditor.focus(); bm = tinyMCE.activeEditor.selection.getBookmark(); } ccm_selectSitemapNode = function(cID, cName) { var mceEd = tinyMCE.activeEditor; var url = 'http://your-website.com/index.php?cID=' + cID; mceEd.selection.moveToBookmark(bm); var selectedText = mceEd.selection.getContent(); if (selectedText != '') { mceEd.execCommand('mceInsertLink', false, { href : url, title : cName, target : null, 'class' : null }); } else { var selectedText = '<a href="http://your-website.com/index.php?cID=' + cID + '" title="' + cName + '">' + cName + '<\/a>'; tinyMCE.execCommand('mceInsertRawHTML', false, selectedText, true); } } ccm_chooseAsset = function(obj) { var mceEd = tinyMCE.activeEditor; mceEd.selection.moveToBookmark(bm); // reset selection to the bookmark (ie looses it) switch(ccm_editorCurrentAuxTool) { case "image": var args = {}; tinymce.extend(args, { src : obj.filePathInline, alt : obj.title, width : obj.width, height : obj.height }); mceEd.execCommand('mceInsertContent', false, '<img id="__mce_tmp" src="javascript:;" />', {skip_undo : 1}); mceEd.dom.setAttribs('__mce_tmp', args); mceEd.dom.setAttrib('__mce_tmp', 'id', ''); mceEd.undoManager.add(); break; default: // file var selectedText = mceEd.selection.getContent(); if(selectedText != '') { // make a link, let mce deal with the text of the link.. mceEd.execCommand('mceInsertLink', false, { href : obj.filePath, title : obj.title, target : null, 'class' : null }); } else { // insert a normal link var html = '<a href="' + obj.filePath + '">' + obj.title + '<\/a>'; tinyMCE.execCommand('mceInsertRawHTML', false, html, true); } break; } } </script> <div class="ccm-editor-controls"> <div class="ccm-editor-controls-right-cap"> <ul> <li ccm-file-manager-field="rich-text-editor-image"><a class="ccm-file-manager-launch" onclick="ccm_editorCurrentAuxTool='image'; setBookMark();return false;" href="#">Add Image</a></li> <li><a class="ccm-file-manager-launch" onclick="ccm_editorCurrentAuxTool='file'; setBookMark();return false;" href="#">Add File</a></li> <li><a href="/index.php/tools/required/sitemap_overlay.php?sitemap_mode=select_page" onclick="setBookMark();" class="dialog-launch" dialog-modal="false" >Insert Link to Page</a></li> <li><a style="float: right" href="/index.php/dashboard/settings/">Customize Toolbar</a></li> </ul> </div> </div> <div id="rich-text-editor-image-fm-display"> <input type="hidden" name="fType" class="ccm-file-manager-filter" value="1" /> </div> <div class="ccm-spacer"> </div> <script type="text/javascript"> function ccmEditorSitemapOverlay() { $.fn.dialog.open({ title: 'Choose A Page', href: CCM_TOOLS_PATH + '/sitemap_overlay.php?sitemap_mode=select_page&callback=ccm_selectSitemapNode', width: '550', modal: false, height: '400' }); }; ccm_activateFileSelectors(); </script> <form id="frm-add-post" method="post" action="/index.php/dashboard/blogga/add_posts/add_post/"> <div class="ccm-dashboard-inner"> <h2>Select a Blog</h2> <table class="entry-form" border="0" cellpadding="0" cellspacing="1"> <!--<tr> <td class="header" style="white-space:nowrap;">Blog Name</td> <td class="header">Owner</td> </tr>--> <tbody><tr> <td class="subheader" style="white-space: nowrap;">Pick a blog <span style="color: red;">*</span></td> <td style="width: 100%;" width="100%"><select class="ccm-input-select" name="blog_id" id="blog_id" ccm-passed-value=""><option value="" selected="selected"></option><option value="1">Home</option><option value="93">News</option></select></td> </tr> <tr> <td class="subheader" style="white-space: nowrap;">Post Title <span style="color: red;">*</span></td> <td><input id="post_title" name="post_title" value="" class="pretext" onfocus="blogga.clearText(this)" style="width: 300px;" type="text"></td> </tr> <tr> <td class="subheader" style="white-space: nowrap;">Post Description</td> <td><div style="text-align: center"><textarea id="ccm-content-263" class="advancedEditor ccm-advanced-editor" id="post_description" name="post_description" class="pretext ccm-input-textarea" onfocus="blogga.clearText(this)"></textarea></div></td> </tr> <tr> <td class="subheader" style="white-space: nowrap;">Categories</td> <td> <div id="show-categories" class="clearfix"> Pick a blog to see its categories<!-- loaded via ajax --> </div> </td> </tr> <tr> <td class="subheader">Tags</td> <td> <ul id="tag-holder"><!--appended via ajax --></ul> <input autocomplete="off" id="blogga-tags" name="blogga-tags" value="Start typing tags in here" class="pretext" onfocus="blogga.clearText(this)" style="margin-top: 5px;" type="text"> <a id="make-tag" href="javascript:void(0)">Make new tag</a> <input id="tags_akID" value="21" type="hidden"> </td> </tr> <tr> <td class="subheader" style="white-space: nowrap;">Post Preview Image</td> <td> <div id="post_preview_image-fm-selected" class="ccm-file-selected-wrapper" style="display: none;"><img src="/concrete/images/throbber_white_16.gif"></div><div class="ccm-file-manager-select" id="post_preview_image-fm-display" ccm-file-manager-field="post_preview_image" style="display: block;"><a href="javascript:void(0)" onclick="ccm_chooseAsset=false; ccm_alLaunchSelectorFileManager('post_preview_image')">Choose an Image</a><input class="ccm-file-manager-filter" name="fType" value="1" type="hidden"></div><input id="post_preview_image-fm-value" name="post_preview_image" value="0" type="hidden"> </td> </tr> <tr> <td></td> <td> <div class="ccm-buttons"> <a href="javascript:void(0)" onclick="$('#frm-add-post').get(0).submit()" class="ccm-button-right accept" style="float: left;"><span>Create Post</span></a> </div> <p style="margin: 8px 0pt 0pt 100px;"><input class="ccm-input-radio" name="enable_comments" id="enable_comments1" value="1" checked="checked" type="radio"> Allow Comments <input class="ccm-input-radio" name="enable_comments" id="enable_comments2" value="0" checked="checked" type="radio"> No Comments</p> </td> </tr> </tbody></table> </div> </form>