Search Results for 'code'
-
Search Results
-
When someone makes a reply to one of our topics, the automatic emails sent to subscribers of the topic contains style formatting that makes it very difficult to read.
This is an example from a recent reply:
<p class="MsoNormal">“The two schools of Buddha's doctrine, the esoteric and the exoteric, are respectively called the ‘Heart’ and the ‘Eye’ Doctrine. Bodhidharma called them in China — from whence the names reached Tibet — the <span style="font-family: 'Calibri','sans-serif';">Tsung-men</span> (esoteric) and <span style="font-family: 'Calibri','sans-serif';">Kiau-men</span> (exoteric school). It is so named, because it is the teaching which emanated from Gautama Buddha's <span style="font-family: 'Calibri','sans-serif';">heart</span>, whereas the ‘Eye’ Doctrine was the work of his head or brain. The ‘Heart Doctrine’ is also called ‘the seal of truth’ or the ‘true seal, a symbol found on the heading of almost all esoteric works.</p> <p class="MsoNormal">"Secret Heart" is the esoteric doctrine.</p> <p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; line-height: normal; mso-outline-level: 5;"><b><span style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';">H. P. Blavatsky, The Voice</span><i><span style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"> of the Silence</span></i></b><b><span style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';">, Fragment 11. The Two Paths. </span></b></p> <p class="MsoNormal">http://www.theosociety.org/pasadena/voice/voice2.htm#nn1</p> Post Link: http://nexus.universaltheosophy.com/groups/art-of-living-study-group/forum/topic/weekly-theme-for-contemplation-the-law-of-love/#post-3548This happens when people copy/paste into their reply from another program (i.e. Word, etc.). How can we strip this formatting in the emails?
Details: we’re using the TinyMCE editor for replies, with “Text” and “Visual” field options. If members paste into the “text” field and then switch to the “visual” field before posting, there’s no issue, as wordpress cleans the content itself. But if people paste into the visual field, the formatting remains and gets sent as part of the auto email.
Also, we’re currently running bbpress 2.5.10 and WordPress 4.6.1.Topic: Profile in menu – php
WP 4.6 BBpress plugin 2.5.10
I am using some of the super BBpress code suggestions at https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/ and most work just fine ‘out of the box’ but I am not sure what I should be putting in place of ‘ my_nav_menu_profile_link’ in this one. If I put in the code as is….// Filter wp_nav_menu() to add profile link add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); function my_nav_menu_profile_link($menu) { if (!is_user_logged_in()) return $menu; else $current_user = wp_get_current_user(); $user=$current_user->user_nicename ; $profilelink = '<li><a href="/forums/users/' . $user . '/edit">Edit Profile</a></li>'; $menu = $menu . $profilelink; return $menu; }I get this when trying the menu link……
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24If I replace the ‘ my_nav_menu_profile_link’ with the actual link like this…..
/* Profile link in menu....................*/ // Filter wp_nav_menu() to add profile link add_filter( 'wp_nav_menu_items', 'http://localhost/wordpress/wp-admin/profile.php' ); function http://localhost/wordpress/wp-admin/profile.php($menu) { if (!is_user_logged_in()) return $menu; else $current_user = wp_get_current_user(); $user=$current_user->user_nicename ; $profilelink = '<li><a href="/forums/users/' . $user . '/edit">Edit Profile</a></li>'; $menu = $menu . $profilelink; return $menu; }I get this as soon as I go to the site…
Parse error: syntax error, unexpected ‘:’, expecting ‘(‘ in C:\xampp\htdocs\wordpress\wp-content\themes\twentytenchild\functions.php on line 49
What should I be entering and when I move to a live site will it need to be further changed?I have a client with a request that seems simple but I am having a dilly of a time figuring it out.
They want to be able to charge users for premium posts. These posts will *not* appear at the top. Instead they will look different from other posts – bolded links, different color font – not at the users choice simply coded in by us. This will be a one time thing for a user – the users should not be able to do any other posts this way. I already set up the forum so that the client will approve all posts – he wants to be able to go in and click a button that will then style that post a different way.
I can style the sticky to do this easily and have done so on my demo but am unsure how to proceed with his request. I do have a child theme.
I know enough code to add stuff into functions and php pages. I am much better at HTML5 and CSS (can do animations).
I have tried a few things I came up with on my own but they do not work and rather than show them I would rather hear your thoughts.
Here is my demo – it is still pretty primitive… http://www.contentandsolutions.com/njywf/
I am using
Wordpress Version 4.6.1Customizr theme using child theme. Customizr Version: 3.4.23
BBPress Plugin Version 2.5.10
Code or a plugin (even a paid for plugin) if possible. Thank you!
I deactivated bbpress today, and the next thing all site is broke with HTTP code 500.
I tried to reset plugins, reset themes, checked for htaccess entries, nothing.
I put it back, no chance.Class ‘BBP_Theme_Compat’ not found in /home/sites/pcforum.ro/public_html/wp-content/themes/pcf/functions_bb.php on line 32
Update – i fix it.
Found the code and remove it. Thanks