Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 551 through 575 (of 1,702 total)
  • Author
    Search Results
  • Robkk
    Moderator

    Because I see potentioal and how WordPress self can make bbPress powerfull. Or buddyPress, I install it all the time together.

    I know a lot of users who ask for more features like other forum solutions are like this because they all do see potential.

    But, one thing is very specific for bbPress. I would not dare to touch it as average User, who installs and setup phpbb or SMF forum without big problems. It is extremely hard for beginners

    In what ways is it difficult? Is it anything about user experience, or from just going from one to another?? Any ideas to improve it for beginners?

    At least take those 10-12 plugins from Github and put them in WP repository. Dont ask developer, it is GPL. Developer had 2-3 years or more to decide to do it byself, and he did not wanted it.
    Problem there is notification about updates.
    Just one example, lost many hours to see why Live preview stoped to word and by chance checked on Github versions. If it was in WP repository I would be notificated directly there is an update for it.

    There is some plugins on Github but that doesn’t mean everybody should use them. Some plugins on github were made from developers from jobs they did for people(might contain specific db table names for a specific site), are just some custom plugins they use on their site(might contain several referances to a site), custom projects for themselves(just playing with stuff/learning development). There is a difference between building a plugin for yourself, and building a plugin for everybody to use. When you begin to build one for everybody to use, you definitely take into consideration some plugin conflicts that might happen(I think GD bbPress attachments and bbp live preview comes to mind). There are some plugins on there that actually should be considered to be on WordPress.org, so I will keep that in mind.

    Just to not be missunderstood. I personally dont have any problem whatsoever with this list above. Implemented with help of code tweaking and those plugins all of this. And much, much more. All except proper Polls. For this I cannot find a solution.

    The polka polls plugin is the best plugin for polls for bbPress. It does require use of shortcodes, I do not think you have to whitelist the shortcode or anything, I think it just works. I guess it could get inspired from some ideas of the bbPress polls plugin for v1 that _ck_ made.

    I am not telling about design, despite this too is hard for Users beginners to tweak.

    Please say any issues you might have on this, I have ideas for users to make design for theme compatibility easier.

    Github should never be primary source of plugins. Additional OK, but only and one never.
    I know there is a plugin that makes updates from Github possible, but demands some lines added by author in plugin self.

    It isn’t, any plugins listed on the featured plugins list are really just plugins that might have functionality similar to what might be suggested to core. Github was never really a plugin repository for WordPress, mostly development. Some of the information why some plugins might not be in what I already said above. Plus some plugins were pretty neat not to leave in.

    Something like Jetpack for bbPress would be a killer, perfect. But I do understand when you say there are not many developers of bbPress. Wish just you start discussion about it and report back to us how it went. Jetpack probably started with few developers, and with years come to number of 46. It doesnt have to start great, developers are attracted later to all good staff by itself.
    Do you know what all those names behind Jetpack say to me ? Not in the first hand anything about code quality, but about security. I know it will flow huge amount of years before this plugin is abandoned. And with all new WP versions they adapt code before new version get out.

    If we are talking about Jetpack as a plugin full of features, then BuddyPress could be something like that. There is also another plugin but it is paid (has minimized free version) that has several other features like bbcode, attachments, quotes. Creating another plugin like that I will keep in mind.

    #164398
    InquisitiveReader
    Participant

    I forgot to say in the previous reply that you also need to uncheck the “strip shortcodes” and “the content” boxes in the advanced excerpt plugin. See http://inquisitivereader.com/discussion-forum/

    #164393
    Stagger Lee
    Participant

    It cant work with shortcodes in a forum. Forget about it.

    #164280
    Robkk
    Moderator

    The activate component I think you are talking about is part of BuddyPress.

    I can’t find any documentation that details if there needs to be a shortcode on that page but mine is blank…This is the downside so far. In the Docs there should be a description of each of the required pages and what they do as well as what I need to do with them

    When BuddyPress is installed you will have a register page usually at yoursite.com/register/, and also an activate page so after you register you are required to activate your account usually here yoursite.com/activate/.

    All documentation for the activate page would be on BuddyPress, in their codex.

    Register and Activation Pages

    There might be more documentation on the activate page, but I can’t find them if you want more information about it contact BuddyPress in their forums.

    https://buddypress.org/support/

    bbPress does allow shortcodes for registration, lost-password, and also for login, but none for users to activate their account. bbPress relies on how WordPress sets up registered users.

    #164036
    Robkk
    Moderator

    There is no shortcode for an edit profile page.

    Shortcodes

    #163984
    stardrive
    Participant

    Please, what are the shortcodes for Edit Profile, Change Password?

    Regards,

    Stardrive

    #163774
    Stagger Lee
    Participant

    It is not problem to hardcode WP-Polls function inside specific bbPress custom template, to bypass activating shortcodes in topics and replies.

    https://wordpress.org/plugins/wp-polls/installation/

    But main problem is User interaction. Shame, WP-Polls is very nice Polls plugin.
    It would be needed one modal popup where User opening topic can add new poll. believe Roles and permissions are not problem to fix with plugin filters, but other doesnt exist.

    It is not acceptable to send Users to separate page (backend) just to make poll for topic they opening.

    #163747

    In reply to: BBCode Buttons?

    Robkk
    Moderator

    if you have the pro version they give you an editor for the bbcode/shortcode buttons.

    If you are messing with the bbPress default quicktags you can change the buttons output display to bbcode/shortcodes instead of html.

    If you look at this you can see that it says you can copy the Javsacript from bbPress to your custom child theme.

    https://codex.bbpress.org/theme-compatibility/

    So you can copy the editor.js file from bbPress and created custom buttons for your bbPress installation from there. You can see an example to change the output of the code button to just use quote marks.

    /* Use backticks instead of <code> for the Code button in the editor */
    	if ( typeof( edButtons ) !== 'undefined' ) {
    		edButtons[110] = new QTags.TagButton( 'code', 'code', '<code>', '</code>', 'c' );
    		QTags._buttonsInit();
    	}

    This will I think use the bold, italics , and lists format that they use in the plugin.

    /* Use some bbcode outputs for the quicktags editor in bbPress */
    	if ( typeof( edButtons ) !== 'undefined' ) {
    		edButtons[10] = new QTags.TagButton( 'strong', 'b', '[b]', '[/b]', 'b' );
    		edButtons[20] = new QTags.TagButton( 'em', 'i', '[i]', '[/i]', 'i' );
    		edButtons[80] = new QTags.TagButton( 'ul', 'ul', '[ul]', '[/ul]', 'u' );
    		edButtons[90] = new QTags.TagButton( 'ol', 'ol', '[ol]', '[/ol]', 'o' );
    		edButtons[100] = new QTags.TagButton( 'li', 'li', '[li]', '[/li]', 'l' );
    		QTags._buttonsInit();
    	}
    #163744

    Topic: BBCode Buttons?

    in forum Showcase
    Moobs
    Participant

    I’m looking for a way to get bbcode buttons for users. I have the gd bbpress toolbox, but I’d like to have buttons for those codes on the toolbar. Any suggestions?

    nmschaller
    Participant

    Hello robkk,

    Thank you very much for your answers. They helps me get started.

    I have found a way to hide most notices by CSS. Question is, can I keep it that way, or will there be any important notices not showing up later when the user is interacting with the form:

    /* bbpress */
    div.bbp-template-notice.info {
    display: none;
    }
    
    div.bbp-template-notice {
    display: none;
    }
    

    The bbpress pages cause me headaches. The original bbpress pages for forum index and user page all come out unformatted in my theme, practically useless. I have created a forums page by using shortcodes for forum index and topics index. That is well formatted and informative. But only with one level of hierarchy.

    The users plugin you suggest is from 2 years ago; I would not install that. I am told again and again by my hoster and main plugin providers that old plugins are one of the greatest vulnerabilities. Isn’t there a way to block all access to pages containing mysite/forums/users/* in .htaccess or something like that?

    And then I had to turn off the buttons for html because they are badly formatted, barely legible in white text on light-grey background.

    I also would like to offer my clients a possibility to create a profile page with some background on themselves and the business project they are working on. I have tried BuddyPress but it is not for me. I cannot code and this seems to be necessary to effectively use BuddyPress. So, I have not found a good solution for that yet. For the moment I have chosen to go with the wordpress.com/gravatar profiles and encourage people to introduce themselves and their project in the forum.

    Nicole

    #163701
    Nuchaz
    Participant

    I am having the same issue right now and was wondering if a solution was ever found? I tried the bbpress-do-short-codes plugin and it seems to work for google chrome, but not firefox. I would ok to just disable image captions from the tinymce editor too. I’ve been trying to figure out the css code so I could just slap it with a display:none, but haven’t had any luck.

    I’m using WP v4.2.2 and BB Press 2.5.4.

    #163605
    Robkk
    Moderator

    use the topic form shortcode.

    [bbp-topic-form]

    Shortcodes

    It would be supper nice to be able to put a general “Start a Discussion” button on various pages

    Ive explained to users bunches of times how to do this kind of functionality. Search the forums and search “new topic button”

    #163591
    peppecol
    Participant

    I have the same problem I can not put a file to download.
    The shordcode I should put it: [wpdm_package id = ‘12529’]
    How can I do?
    I also installed
    https://wordpress.org/plugins/bbpress-do-short-codes/ but nothing has changed I could explain what I do?
    Thanks!

    #163438

    In reply to: Menu link to Profile

    crzyhrse
    Participant

    Hi Robin,

    This thread is a bit old, but hoping it is still a place to pursue this..

    The WP Exec PHP plugin that was suggested above to enable this has not been updated in over two years, but in trying to use two different current well reviewed plugins that enable placing php in pages via shortcodes, Shortcode Exec PHP and PHP Code For Posts, I get the following same error with your last offered php snippet above…

    Parse error: syntax error, unexpected ‘<‘ in /home/spirawake/public_html/wp-content/plugins/shortcode-exec-php/shortcode-exec-php-class.php(895) : eval()’d code on line 1

    In both cases I created the shortcode using this, as per above;

    <meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/<?php global $current_user;
          get_currentuserinfo();
    
         echo  sanitize_file_name($current_user->user_login). "";
          
    ?>/edit/">

    I’ve often used shortcodes in other ways, and am hoping that maybe there is something that needs to be changed in this code because it is being inserted into the page via a shortcode…?

    Kind regards…

    #163299
    project_subdomain
    Participant

    thanks, sam. tried several codes, nothing worked unfortunately (blank page):(

    add_action( 'loop_start', 'divs_only_when_logged_in' );
    
    function divs_only_when_logged_in() {
    
    <?php if ( is_user_logged_in() ) {?>
     
        <div class="new-reply-link">
    
    	<a href="<?php bbp_topic_permalink(); ?>#new-post
    "class="reply-link-text">Reply</a> 
        </div></br>
    
    <ul id="bbp-topic-<?php bbp_topic_id(); ?>-lead" class="bbp-lead-topic">
    
    	<li class="bbp-header">
    
    		<div class="bbp-topic-author"><?php  _e( 'Author',  'bbpress' ); ?>
    </div>
    
    <?php endif; ?>
    }  
    ?>
    #163252
    Robkk
    Moderator

    Just shy away from using shortcodes for forum pages , it will be time consuming. You would have to possibly create pages for all instances of any bbPress page. This includes topic pages and user profile pages.

    The way you could get a non-fullwidth layout is to contact your theme author , which I think is Avada for help. Since they have more knowledge of how the theme works and I can’t just buy a theme and test it out and tell you what to do to have this layout.

    You could also do this manually with my help guiding you, but you would need some basic knowledge of how WordPress templates work.

    This guide will help with getting the layout , you would need to add the sidebar code back in like how the example template has. Please note that that is just an example template and is not something to copy and paste since all themes are different.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #163202
    Robkk
    Moderator

    the forums shouldn’t show up in pages > all pages

    I am guessing you have put shortcodes in pages to do this.

    I guess if you want to keep putting shortcodes in pages , which will be time consuming , you can use the [bbp-forum-index] shortcode

    #163012
    ns
    Participant

    Thank you for replying.

    Yes, that’s right.
    The link of https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is made by bbp_user_replies_created_url() function.
    The default file of user-detail.php has this function and I don’t change.
    The parameter of this function is blank.

    When the page like https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is executed.
    As the core processes of bbPress, does it really retrieve only specific user’s replies from database?
    This is what I don’t understand now and the current question.

    I checked php files user-replies-created.php, loop-replies.php, and loop-single-reply.php, and interface of functions which used in these php files.
    I haven’t almost changed codes in these php files, the content of these php files is nearly the original.
    As far as I checked, there are no parameters which can retrieve only specific user’s replies in functions.
    In this bbPress forums, user interface part is customized from the original file, though, why can it show only specific user’s replies data correctly?

    I think I might have to add or change some codes in some of php files…, I don’t know it’s true.

    #162994

    In reply to: SMF Import to bbPress

    Robkk
    Moderator

    how is it embedded?? with bbcodes??

    #162954
    flippyr
    Participant

    Hi everyone,

    Looking for some assistance here,Instead of using WordPress facing registration page/ login page i have made a page that has login, registration an d lost password shortcodes. However during the registration process, i cannot get the user to specify the password therefore there is a need for approving admins to go create a password then email the user. Any ideas?

    I have looked at many forums, plugins but haven’t got very far. Many thanks

    #162918
    jookkoo
    Participant

    Hello,

    I uses CodeStyling Localization to translate 13 language. and CodeStyling Localization report the issue as below:

    PHP runtime error reporting detected !
    Reason: some executed PHP code is not written proper | Originator: unknown (probably by Theme or Plugin)
    Below listed error reports has been traced and removed during page creation:

    STRICT Error: [2048] Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) /home/xxx/cookkoo.com/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28

    Please help
    Thank you

    #162833
    PinkishHue
    Participant

    This is an old topic but in case you’re still looking for help (or if helpful to someone else), this plugin allows you to use a shortcode to display a list of notifications (and other buddypress things) in a page or post:

    https://wordpress.org/plugins/bowe-codes/

    #162531
    qbow-admin
    Participant

    i found it somewhere on the web that users cannot use iframe code because wordpress prohibits it for the sake of security. -it says that – if they r allowed to use iframe codes, they might be able to attack you –

    qbow-admin
    Participant

    I’ve been using bbpress plugin to set up forums for my website’s users. Originally there is no function when it comes to ‘counting views’ of each post. So I added some codes according to this website’s advice.

    It works fine with general(sitewide) forums but when I made a group(buddypress function) and tried to integrate it with bbpress forum, the view count php code does not work in group forums. (Still, it works perfectly fine at sitewide forums)

    this is my code right now (wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php)

    <li class="bbp-topic-voice-count">
        <?php 
    
    if( !function_exists('get_wpbbp_post_view') ) :
    // get bbpress topic view counter
    function get_wpbbp_post_view($postID){
    $count_key = 'post_views_count';
    $count = get_post_meta($postID, $count_key, true);
    if($count==''){
        delete_post_meta($postID, $count_key);
        add_post_meta($postID, $count_key, '0');
        return "0";
    }
    return $count;
    }
    function set_wpbbp_post_view($postID) {
    $count_key = 'post_views_count';
    $count = get_post_meta($postID, $count_key, true);
    if( $count == '' ){
        add_post_meta($postID, $count_key, '1');
    } else {
        $new_count = $count + 1;
        update_post_meta($postID, $count_key, $new_count);
    }
    }
    endif;
    
    if( !function_exists('add_wpbbp_topic_counter') ) :
    // init the view counter in bbpress single topic
    function add_wpbbp_topic_counter() {
    global $wp_query;
    $bbp = bbpress();
    $active_topic = $bbp->current_topic_id;
    set_wpbbp_post_view( $active_topic );
    }
    add_action('bbp_template_after_single_topic', 'add_wpbbp_topic_counter');
    endif;
    
    echo get_wpbbp_post_view( bbp_get_topic_id() ); ?>
    </li>
    Robkk
    Moderator

    looking forward to your template or codex changes

    I just updated the codex article and put an example template to look and study off of.

    It is not just copy and pasting the template into a file and it working, you have to study it and read the comments in the code and find similarities in your index.php file. Then you can create a bbpress.php file from your index.php file.

    If I add the short-code to a custom page using the page.php code it works

    Yes I know but it is just that page, you need all of the bbPress forum pages. Using shortcodes like that means you would have to put a topic shortcode for every topic you have in a bunch of pages. And that is not what either of us are looking for , right??

    It doesnt matter if the default forum uses index.php or page.php – it doesnt work.

    Yes it does, and you have to edit the new bbpress.php file.

    I have sequentially copied pages.php and index.php and made them bbpress.php and each time I can see that the default forum is using it, and each time it doesnt work

    Its not as easy as just renaming it.

    So i guess I need a generic index.php that will work (which I think you said you were producing) OR some workaround so the generic forums page doesnt appear in the directory path

    Was busy with other stuff , but yes i uploaded an example template to look over and compare to your index.php. You cannot just copy and paste , you have to look at the simple code and read how it works in the comments i left in the code.

Viewing 25 results - 551 through 575 (of 1,702 total)
Skip to toolbar