Search Results for 'code'
-
Search Results
-
Topic: bbPress & tinyMCE
Hello!
I’m having some issues styling the buttons in the bbPress Topics/Forum section. My website contains a large amount of TinyMCE editors — some need specific styles and buttons. Assigning this was very easy to my custom editors, but I’m facing an issue when trying to customize the bbpress editor. None of the code I found in the forums seems to do anything to the buttons.
Here is a snipped of how I’m modifying my other editors. Since these are custom, Is easy to modify by just adding the parameters.
wp_editor( $options['callout_body'], 'callout_bodyβ, //ID OF EDITOR array( 'textarea_name' => 'page_options_employer_guide_thrive_overview[callout_body]', 'media_buttons' => false, 'textarea_rows' => 8, 'tabindex' => 4, 'quicktags' => false, 'tinymce' => array( 'toolbar1'=> 'bold,italic', 'toolbar2'=> '', 'toolbar3'=> '', ), ) );The buttons that I need displayed in the bbpress editor are different from any other custom post type or options page editor.
I’ve tried every snippet I could find in the forums with no luck, no change. I tried to hook to the examples and add filters, with no luck as well.
I hope I’m clear enough to what I’m trying to achieve.
Thanks
Ok, here’s my dilemma. I have a corporate website and we are working on adding a forum. After working with bbPress for a couple of weeks I like what I see and have a good working shell, but as I get deeper I have some concerns with integrating a forum into my WordPress site versus completely stand-alone.
My question is, on a single host is there a way to have bbPress installed and totally separate from the main website. For example, current forum requests get added to my users within WordPress. While they get credentials to only have forum access and not WordPress access, it still concerns me that this is leaving open back doors for smart hackers to sneak in to my WordPress administration. I had to install some bbPress code in my functions file to stop non-administrator profiles from seeing the WordPress main menu at the top of the forum. This just seems too loose, as if hiding it with code really stops someone that knows what they are looking for from finding it.
With that, in having to add code such as this I subsequently shut down my entire site due to adding code the functions.php file that it didn’t like. Not a good situation for me. So, my second and really primary question is how I can have a forum administered in WordPress but totally separate from my main website. What I feel this gives me is 1) totally separate sites where my forum user profiles are not intermingled with my WordPress corporate site administrators and 2) a separate place where I can make site changes that I know only impact the forum and not the main site at all, so if I hose the forum temporarily it’s not as big of a crisis as if I shut down our entire web presence.
Can this be done on the same host where I have a subdomain and a separate WordPresss login for the forum as if the main website didn’t exist, or am I better off just having these creates separately under truly separate hosts and just pointing a URL on the corporate site’s menu to the stand-along forum that’s on the separate host and managed as a totally independent website?
I appreciate your suggestions.
Topic: smiles in the bbpress
How can I use smiles in the bbpress. I will insert it in my reply form.
For example with:
<script type="text/javascript"> function addsmile($smile){ document.getElementById('comment').value=document.getElementById('comment').value+' '+$smile+' '; } </script> <?php global $wpsmiliestrans; $dm_showsmiles = ''; $dm_smiled = array(); foreach ($wpsmiliestrans as $tag => $dm_smile) { if (!in_array($dm_smile,$dm_smiled)) { $dm_smiled[] = $dm_smile; $tag = str_replace(' ', '', $tag); $dm_showsmiles .= '<img src="'.get_bloginfo('wpurl').'/wp-includes/images/smilies/'.$dm_smile.'" alt="'.$tag.'" onclick="addsmile(\''.$tag.'\');"/> '; } } echo '<div style="width:100%; margin-left:0px; margin-right:0px;">'.$dm_showsmiles.'</div>'; ?>But it did not works. Have anybode idea why?