Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,051 through 12,075 (of 32,504 total)
  • Author
    Search Results
  • #145385
    Robin W
    Moderator

    do you know how to add some code to your functions file – if I gave you the code?

    #145380
    Stephen Edgar
    Keymaster

    I have no idea nor could find a reference to [wesf_account_page] most likely it is a plugin.

    All references to it via a Google search appear to all revolve around a page titled my-account.

    Most likely it was from either a theme or plugin you no longer use as you see the ‘raw’ shortcode rather than a rendered shortcode. Find what page the shortcode is used on and remove it.

    #145377

    In reply to: Sidebar formatting

    Robin W
    Moderator

    oh and sorry – see

    Step by step guide to setting up a bbPress forum – part 2

    for how to add this -several options.

    #145371
    Stephen Edgar
    Keymaster

    Here is a custom plugin for custom KSES, specifically it adds support for tables and class names for a and img though you most likely don’t want people adding classes to these normally.

    https://gist.github.com/ntwb/7797990

    And I am glad your up and running now @matoca, TinyMCE v4 is a big upgrade and as you point out there are vast improvements and vast breakages with existing plugins, hopefully the authors of these plugins will get this sorted soon.

    I also look forward to seeing and checking out a few of the plugins that really take advantage of TinyMCE 4 as I have already spent a fair amount of time testing it already, specificly pasting from Word, Excel PDF etc and it is pretty awesome what you can throw at it.

    #145365
    tharsheblows
    Participant

    Thank you so much for the update! I’m glad it’s working. 🙂

    I have just now finished helping troubleshoot a bug with copying and pasting text from pdfs into the new WP visual editor. The guy thought it was a problem with WP 3.9 but it is an issue with one of his plugins – however, I can see why he thought that. (I didn’t go all the way through to finding out which plugin it is – this is just some guy I follow on twitter.) So it’s happened to someone I’ve come across, too.

    I want to use Parsedown in my forums and got as far as making a plugin that got it to work when writing posts but then realised I needed something like “Parseup” (current status: imaginary) to make the editing posts possible and sane. Doh.

    Perhaps there will be a plugin in the future that will allow moderators with administrator rights to have these tools directly in the forum, but not have them accessible to the general public?

    Your users can still use a limited number of html tags, although they probably don’t know it because now it doesn’t say so anywhere. I think that’s true… it’s in includes/common/formatting.php
    Note that they can’t upload images but can simply hotlink them. I was worried about this initially but it hasn’t been a problem so far although now I’ve probably jinxed it.

    /** Kses **********************************************************************/
    
    /**
     * Custom allowed tags for forum topics and replies
     *
     * Allows all users to post links, quotes, code, formatting, lists, and images
     *
     * @since bbPress (r4603)
     *
     * @return array Associative array of allowed tags and attributes
     */
    function bbp_kses_allowed_tags() {
    	return apply_filters( 'bbp_kses_allowed_tags', array(
    
    		// Links
    		'a' => array(
    			'href'     => array(),
    			'title'    => array(),
    			'rel'      => array(),
    			'target'   => array()
    		),
    
    		// Quotes
    		'blockquote'   => array(
    			'cite'     => array()
    		),
    
    		// Code
    		'code'         => array(),
    		'pre'          => array(),
    
    		// Formatting
    		'em'           => array(),
    		'strong'       => array(),
    		'del'          => array(
    			'datetime' => true,
    		),
    
    		// Lists
    		'ul'           => array(),
    		'ol'           => array(
    			'start'    => true,
    		),
    		'li'           => array(),
    
    		// Images
    		'img'          => array(
    			'src'      => true,
    			'border'   => true,
    			'alt'      => true,
    			'height'   => true,
    			'width'    => true,
    		)
    	) );
    }
    #145364
    Matoca
    Participant

    Update. Monday I asked my iPad, iPhone moderator to see if she could get a keyboard to come up, see what she was typing and actually post to the forum. She reported that it was working perfectly! No kidding! So after the WordPress 3.9 upgrade, the tinyMCE 4 upgrade has improved interaction with iPads and iPhones.

    See: http://www.tinymce.com/index.php
    Also: tinyMCE 4 has a presentation that explains what is different.
    http://www.tinymce.com/presentation/index.html#/

    I did a little research about tinyMCE because honestly it sounds like the name of a toy. So once I found the name, Tiny Moxiecode Content Editor, it made more sense to me. Wikipedia describes it as “platform-independent web-based JavaScript/HTML WYSIWYG editor control.” So, in a sense, this is the core element of WordPress (and other CMS platforms), giving the user the ability to get content on the blog without having to necessarily understand anything about HTML.

    After browsing some forums I better understand that this upgrade of WP and tinyMCE has rendered many previous plugins dead in the water. It means that users need to do some serious spring cleaning and get rid of any plugins that have not been specifically updated for use with WP 3.9.

    A lot of plugins have necessarily cropped up over time to add back lost functionality in tinyMCE as functions were removed. So the bbPress plugin I was using in the past that added back the visual tab to the forum message field was just one of many. Luckily I did disable it prior to the release of 3.9 but it clearly was already unstable with 3.8.

    I made a mistake when I posted earlier, enabling the tools in the dashboard does give them to everyone who is not registered or logged in, not just those logged in as moderators. So I have rethought having the text editor tools on the open forum. I don’t like the ability of non-registered posters to add images directly nor do I like them adding links. These people don’t register so I have removed all editing tools from the forum in forum>settings. I have asked moderators to use the tools in the dashboard for adding images and links. Perhaps there will be a plugin in the future that will allow moderators with administrator rights to have these tools directly in the forum, but not have them accessible to the general public?

    So if you do want your moderators to have undo, redo, add link, remove link and insert/edit image in the forum then enable this in forum>settings, it standard with tinyMCE 4, and looks exactly as it does on this forum

    I became interested in more functionality and I installed TinyMCE Advanced plugin this afternoon to play with. I realized the many things I could do just with tables! So it’s a versatile plugin and they claim has been tested with 3.9.
    my best, matoca

    ryanric
    Participant

    Hello Forum,
    My bbPress forum is displaying all of the replies instead of showing just a few replies per page.

    WHAT I WANT: I’m trying to set up a single-topic forum on my website on this page (http://learn.serve-smart.com/topic/the-secret-to-service-reflection-learner/). Right now I’m using this short code: [bbp-single-topic id=2073]. I want users to get a prompt, see the responses of three or so other users, and respond to the prompt themselves.

    WHAT IS HAPPENING NOW: The page is displaying every single reply to the topic on a single page. This is despite changing the bbPress settings to “3” for “Topics per page” and “Replies per page” under the “Topics and Replies Per Page” and Topics and Replies Per RSS Page.”

    WHAT I’M RUNNING:
    Database: Latest WP
    Theme: WP-Forge
    Key Plugins: Latest bbPress plugin, Latest LearnDash plugin

    Thanks in advance for your help!
    -Ryan

    #145357
    DietPipsi
    Participant

    Hello. Thankyou for the reply. The problem with using the Custom Default Avatar plugin is that users cannot choose which avatar from that list that they want to use. They only have two options, one default or upload their own.

    I want them to be able to choose from a list of avatars with a drop-down or radio button. Is there a plugin for this or a snippet of code I can put into my child theme to enable this?

    Thanks

    #145355

    In reply to: SMF Import to bbPress

    landshark
    Participant

    I’m having some issues converting an SMF forum to BBPress. The SMF forum has about 7,500 members, 7000+ topics and 45,000+ replies.

    It seems the links to images are not being imported, my guess it is a problem with the [img] bbcode? But not sure.
    I understand that I won’t be able to get attached images imported but i would think that linked images would not be a problem.

    Also some of the posts are being truncated. I might get the first sentence but the rest is dropped. But not on all of them.

    I tired slowing the import down to 50 items at a time with a 2 second pause but still same results.

    I’m on a dedicated server. Latest bbpress version, and SMF version is 2.0.4

    Any help will be greatly appreciated.

    #145354
    #145353
    buzoo
    Participant

    Hi i want to extend “participant” user role so that they can delete there own replies and images they have attached(For attaching i am using a plugin called GD bbpress attachment).I got some hint from this link but being novice i got more confused were to put the code.
    Can any one tell me if there is particular plugin to do the work so that i can extend “participants” capabilities ? or help me out to configure the file according to the link as it doesn’t mention were to put them
    Thanks

    #145351
    Robin W
    Moderator

    Have you tried

    Step by step guide to setting up a bbPress forum – Part 1

    In essence you need a .php from your theme that has a sidebar, and rename this bbpress.php within the root of your theme.

    #145346
    Matt
    Participant

    Hello,

    My sidebar is missing with my newly installed Striking MultiFlex theme. I’ve tried many of the solutions from this board, but none have worked.

    These did not work:
    http://codex.bbpress.org/theme-compatibility/

    http://bpsocialnetwork.wordpress.com/2013/06/02/twenty-eleven-theme-compatibility/
    I think Step 3 is missing a ‘)’, but I don’t know where to put it.

    Any ideas on how to make my sidebars appear on all of my bbpress pages? My site is in maintenance mode, so I can’t post a link.

    Thanks,
    Matt

    #145345
    msteelman
    Participant

    Ok, here is a very simple answer to a very simple question.

    Inside of your website admin area under appearance is a place to put custom CSS called Edit CSS.

    At the bottom of whatever else is in there add the following code:

    #bbpress-forums .bbp-topic-content p, #bbpress-forums .bbp-reply-content p {font-size: 16px;}

    That will make the font 16 pt. if you want it some other size then change the number.

    #145316
    tharsheblows
    Participant

    Oh good! That should work, actually. If I had done that and it didn’t work for me, it would have been because I only added it to one function and not the other, so maybe check that… 🙂

    Here is the full code with “Register here” linked to /register-now –

    //this adds the login form with a register here link underneath on a single topic so someone can leave a reply. It uses the same logic as form-reply
    function mjj_new_reply_login(){
    	if( !bbp_current_user_can_access_create_reply_form() && !bbp_is_topic_closed() && !bbp_is_forum_closed( bbp_get_topic_forum_id() ) ){
    		bbp_get_template_part('form', 'user-login');
    		echo '<a href="/register-now">Register here</a>';
    	}
    }
    
    add_action('bbp_template_after_single_topic', 'mjj_new_reply_login');
    
    //this adds the login form with a register here link underneath on a single forum so someone can start a topic. It uses the same logic as form-topic
    function mjj_new_topic_login(){
    	if( !bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_closed() ){
    		bbp_get_template_part('form', 'user-login');
    		echo '<a href="/register-now">Register here</a>';
    	}
    }
    
    add_action('bbp_template_after_single_forum', 'mjj_new_topic_login');
    #145291

    In reply to: Theme problem

    tharsheblows
    Participant

    Yeah, it might have been a dns propagation issue, I didn’t think of that. It didn’t work, then you disabled bbpress and then it worked a couple of hours later (I did check a few times) then wasn’t working the next morning.

    Do you have bbpress-functions.php in your WP theme folder? You could try editing that to give the correct path.

    OR what you could do is just ignore the 404 and add them in separately. So workaround rather than fix. I’m guessing all your css and js files in your template directory are not getting included. But they’re there – I can see them.

    This isn’t pretty and will stop working if you change themes or hosts, it’s like fixing trousers with duct tape, but it might work – you can and should keep trying to fix things in the meantime.

    It goes into functions.php but don’t add using the admin area editor as if something goes wrong and you don’t have another way of editing files, you’re in deep trouble. I say that because I’m not really convinced it’s completely right, there’s no conditional logic for the js files so you need to be prepared to fix it if needs be (or ask, that’s fine, too!).

    add_action('wp_enqueue_scripts', 'mjj_readd_scripts');
    function mjj_readd_scripts(){
    	
    	wp_register_style( 'ifuture-styles', '/ifuture/plugins/bbpress/templates/default/css/bbpress.css' );
    	wp_register_script( 'ifuture-editor', '/ifuture/plugins/bbpress/templates/default/js/editor.js' );
    	wp_register_script( 'ifuture-reply', '/ifuture/plugins/bbpress/templates/default/js/reply.js' );
    	wp_register_script( 'ifuture-topic', '/ifuture/plugins/bbpress/templates/default/js/topic.js' );
    	wp_register_script( 'ifuture-user', '/ifuture/plugins/bbpress/templates/default/js/user.js' );	
    
    	wp_enqueue_script( 'ifuture-editor' );
    	wp_enqueue_script( 'ifuture-reply' );
    	wp_enqueue_script( 'ifuture-topic' );
    	wp_enqueue_script( 'ifuture-user' );
    	
    	
    	wp_enqueue_style( 'ifuture-styles' );
    	
    }
    #145290
    Bob1nz
    Participant

    @palmdoc

    Check out the files i have in my pastebin http://pastebin.com/u/Bob1nz
    these were what I used with buddyboss a wee while ago using @kaliceos code

    Just make the four files and drop them into \buddybosschildtheme\bbpress\

    #145287
    tharsheblows
    Participant

    You’re looking for a:hover – that’s the style for a link when someone is hovering over it. So I think if you add the following it will all work as you’d like and be the same colour as your other links. This changes the default link hover colour. There might be something somewhere tucked away that overwrites it in certain circumstances but this should work on the forum index page at least.

    a:hover{
    color: #31485a;
    }
    #145283
    tharsheblows
    Participant

    Editing the template files is fine – that’s one of the big draws of open source to me.

    If you add this to your current theme’s functions.php file, you should get login forms for non-logged in users in the appropriate places. NB: never ever edit your functions.php file through the WordPress admin area – you need to have ftp access or your access to your hosting control panel (ie independent of WordPress) so you can undo whatever you’ve just done in case it all goes wrong.

    I can try to explain where the functions.php file is but I do tend to make people more confused sometimes so won’t unless you ask!

    //this adds the login form on a single topic so someone can leave a reply. It uses the same logic as form-reply
    function mjj_new_reply_login(){
    	if( !bbp_current_user_can_access_create_reply_form() && !bbp_is_topic_closed() && !bbp_is_forum_closed( bbp_get_topic_forum_id() ) ){
    		bbp_get_template_part('form', 'user-login');
    	}
    }
    
    add_action('bbp_template_after_single_topic', 'mjj_new_reply_login');
    
    //this adds the login form on a single forum so someone can start a topic. It uses the same logic as form-topic
    function mjj_new_topic_login(){
    	if( !bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_closed() ){
    		bbp_get_template_part('form', 'user-login');
    	}
    }
    
    add_action('bbp_template_after_single_forum', 'mjj_new_topic_login');
    #145277
    palmdoc
    Participant

    Hi I’m really keen on this layout rather than the default Forum index layout in bbPress.

    I have created the loop-forums.php with the code and placed it in the bbpress folder of my child theme (I am using Buddyboss)

    However having done that, my Forum index page still remains unchanged
    The page just has
    [bbp-forum-index]

    Advice much appreciated

    #145276
    keytastic
    Participant

    No dice. Or I’m doing something wrong.

    I decided on a much lighter color scheme for the website, and now it looks OK. If I could change one thing now, it would be for active links to behave the same way. For some reason certain links show an underline when you hover over them, and others turn white when you hover over them. It’s not a big deal if I can’t fix this, but it is kind of annoying.

    #bbpress-forums li.bbp-header,
    #bbpress-forums li.bbp-footer {
    	background: #89a2f4;
    }
    
    #bbpress-forums {
    	margin-bottom: 10px;
    	border: 1px solid #666;
    	padding: 12px;
    	background-color: #89a2f4;
    	color: #31485a;
    }
    
    #bbpress-forums div.bbp-forum-title h3,
    #bbpress-forums div.bbp-topic-title h3,
    #bbpress-forums div.bbp-reply-title h3,
    #bbpress-forums a.bbp-forum-title,
    #bbpress-forums a.bbp-topic-permalink {
    	color: #31485a;
    }
    
    #bbpress-forums a.bbp-author-name {
    	font-size: 12px;
    	color: #31485a;
    }
    #145275
    yoyoma1974
    Participant

    ok, but there don’t seem to be any plugins that specifically add the login to the bottom of the topics/forum pages, unless I missed it but I did a lot of searching. Maybe there’s another plugin that would allow me to add the Login shortcode to the bottom area of the Topics/Forums templates?

    #145268
    yoyoma1974
    Participant

    I searched for a plugin but couldn’t find anything like that, bummer. hmmm, not sure if were using a custom bbpress template. I don’t think so. If we’re not using a custom template would we need to create one? Then I imagine copy and past the login code at the bottom of that file?

    #145266
    jerryskate
    Participant

    Hi! Im having a problem with undefined call for Subscribe and favorites on threadreplys. Seems to be a known issue, but i can’t figure out how to fix it. Im using the BBpress starter theme from epicwebs, and i found this thread describing the problem: https://bbpress.org/forums/topic/help-me-to-solve-clicking-favorite-and-subscribe-problem/

    I have fiddled around with the changes to functions-php he is linking to github, but can’t get it right. If i delete everything in the bbpress.functions it works, but everything looks shit, of course. If i change the while file to the new functions.php as a whole, it works but all styling is crazy off.

    Was wondering anyone knows what part of the code controls this so maybe i can change just that part?

    Regards,
    Jerry

    #145232
    Matoca
    Participant

    I was using a specific bbPress tinyMCE plugin, but I disabled that over a week ago when you mentioned that there may be some issues with it. Was it successful? I don’t know, you can read my moderator’s varied results above. When I had originally added the plugin it was specifically so moderators could edit photo size in the forum and not have to go into the dashboard to do that. I still ask my moderators to always be logged in when they are posting. If it is as simple as asking my moderator with the iphone issues to not log in when she needs to post replies or start topics, that is what we will do.

    The latest upgrade WP 3.9 has ver 4.0 tinyMCS in it. See:

    TinyMCE 4.0 is in core

    So, rather than confuse my troubleshooting, I have no tinyMCE plugins installed. Whatever tinyMCE capabilities 3.9 has is what I now have.

    When I am logged in, on the text tab there are the standards plus insert/edit link, url img, code and close tags, the same as we are seeing on this forum.

    On the visual tab, logged in, in addition to the standards there is undo, redo, add link, remove link and insert/edit image. Perfect, exactly what I wanted for the moderators.

    When I am not logged in there are only the standard fields for name, email and website and add message. There are no text or visual tabs. I have the Nextgen gallery plugin for Upload Photos so that solves the issue of users wanting to post photos. They go directly into a specific gallery and I get an email telling me that something has been uploaded and needs approving.

    I have Post Formatting in the forum tools settings unchecked for “Add toolbar & buttons to text areas to help with HTML formatting.” So that is probably why they are not allowed to have visual or text tabs. I do not require registration for posting. If I have trouble with someone I can put their IP on a blacklist. Akismet works well.

    But it’s only been a couple of days since I upgraded to 3.9. The developer of the theme I am using has notified me that he is also reworking his theme so that may change things as well.

    Once my moderator gets back in touch with me I will post here. Perhaps this WP upgrade has solved the problems with iPhone and iPad?
    my best, matoca

Viewing 25 results - 12,051 through 12,075 (of 32,504 total)
Skip to toolbar