Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you trying to style each sidebar differently?? The sidebar generator plugin does not require you alter your CSS at all. If your looking to make each generated sidebar look a bit different, you can use CSS to do that. View the source of one of your posts/pages that use the sidebar generator plugin, you’ll see that each of your widgets will have an additional class (assuming the widgets follow the WP coding standard). Each widget will have a generic class, shared among all generated sidebar widgets, and a more specific class that is shared with all the widgets of that generated sidebar.

    hope that answers your question. You can also submit questions on my website at getson.info.

    I’ve tested the plugin on 2.8.0 – 2.8.6 and everything works correctly.

    I have tried this with no success on version 2.7. I wrote a function to display it… This seems to be the only way I could get it to work:

    function get_WYSIWYG($id='content',$name='content',$value=''){
    	$editor =<<<HTML
    				<script type="text/javascript" src="/wp-includes/js/tinymce/tiny_mce.js"></script>
    				<script type="text/javascript">
    					<!--
    					tinyMCE.init({
    					theme : "advanced",
    					skin:"wp_theme",
    					theme_advanced_buttons1:"bold,italic,strikethrough,underline,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,styleprops,separator,separator,spellchecker,search,separator,fullscreen,wp_adv",
    					theme_advanced_buttons2:"fontsizeselect,formatselect,pastetext,pasteword,removeformat,separator,charmap,print,separator,forecolor,emotions,separator,sup,sub,separator,undo,redo,attribs,wp_help",
    					theme_advanced_buttons3:"",
    					theme_advanced_buttons4:"",
    					language:"en",
    					spellchecker_languages:"+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
    					theme_advanced_toolbar_location:"top",
    					theme_advanced_toolbar_align:"left",
    					theme_advanced_statusbar_location:"bottom",
    					theme_advanced_resizing:"1",
    					theme_advanced_resize_horizontal:"",
    					dialog_type:"modal",
    					relative_urls:"",
    					remove_script_host:"",
    					convert_urls:"", apply_source_formatting:"", remove_linebreaks:"1", paste_convert_middot_lists:"1", paste_remove_spans:"1",
    					paste_remove_styles:"1",
    					gecko_spellcheck:"1",
    					entities:"38,amp,60,lt,62,gt",
    					accessibility_focus:"1", tab_focus:":prev,:next",
    					wpeditimage_disable_captions:"",
    					plugins:"safari,inlinepopups,autosave,spellchecker,paste,wordpress,fullscreen,-emotions,-print,-searchreplace,-xhtmlxtras,-advlink,",
    					mode : "exact",
    					elements : "{$id}",
    					width : "565",
    					height : "200"
    					});
    					-->
    				</script>
    				<textarea id="{$id}" name="{$name}">{$value}</textarea>
    HTML;
    return $editor;
    }

    Now any time I need the editor, I just echo get_WYSIWYG($id,$name,$value);

    hope that helps anyone that was having the same issue.

    Forum: Plugins
    In reply to: publish_post help/tutorial?
    Thread Starter kylegetson

    (@kylegetson)

    Apparently you cant do it? I am able to use the add_post_meta function to save the information, but it’s not ideal. It seems as though I can do just about anything except use the $wpdb… it doesnt seem to be a scope issue. Anyone tried this before?

    more specifically:
    I am creating an ‘event’ type plugin that allows you to make an event on a post. so when writing a post you can give it a date/time, however i want to store this in a table I have created with my plugin. I can access the table without any problem outside of this hook, but when using publish_post I cant. I am forced to use add_post_meta and update_post_meta

Viewing 3 replies - 1 through 3 (of 3 total)