Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,526 through 4,550 (of 32,522 total)
  • Author
    Search Results
  • #189998
    streng
    Participant

    Hi,

    I try to acchieve to hide all content between code tags from public users. I want to show this content only for logged users. Any idea how to achieve this?

    The main reason why I want to do this is that, between code tags sometime contain content like quotation which can impact my SEOrank because isnt unique.

    Thanks

    #189951

    Topic: Visual pbs ?

    in forum Troubleshooting
    matevoun
    Participant

    Hi,

    i’ve got some visual problems :

    • Each time i push a picture, this code appears : “[Caption id=”xxxx” align=”aligncenter” width=”468″> xxxxxxxxxx (…) [/caption]“, but if i keep this, this will be printed online. I need to delete this caption insert for better visuals. Is it normal ?
    • The user avatar in forum list (for example) is smaller than it will be. Normal ?
    • Each post modification is notified under the post… But if i edit 15 times a post, it will be 15 rows about this modifications ?
    • In responsive mode (mobile), the post height is mid-screen only… It’s difficult to read… any idea ?

    You can check this on our forum here :
    -=> Forums Saint-Antonin

    Thank you for your help.
    Sorry for my English, i’m French. πŸ™‚

    #189942

    Topic: Page security

    in forum Installation
    dmb1319
    Participant

    WordPress version – 4.9.3
    Theme – Generate Press Pro
    bbPress version – 2.5.14
    link to your site – nuatv.com
    Simple WordPress Membership – 3.6.0

    I use Simple WordPress Membership to secure member only pages on our site, including the BBPress Forum index. The Forum is on a protected page with the shortcode:
    [bbp-forum-index]
    The index page is listed in the WordPress pages.
    However, if I open a forum post page like:

    General discussion


    this page does NOT appear in the list of WordPress pages and therefore I cannot apply access settings to the page.

    Where ARE the various forum pages and how can I get to them to set access permissions? I want to restrict forum access to site members only.

    #189926

    Topic: New install

    in forum Installation
    webcrawler2050
    Participant

    Hey All,

    So i’ve just installed the plugin. All working great, fab, thank you!

    However, i’ve created some someforums BUT when I go to the actual forum front end i get this

    Database Errors
    Query Call Stack Component Error Code Error Message
    SELECT SQL_CALC_FOUND_ROWS wasp_posts.ID
    FROM wasp_posts
    INNER JOIN wasp_postmeta
    ON ( wasp_posts.ID = wasp_postmeta.post_id )
    WHERE 1=1
    AND wasp_posts.post_parent = 656
    AND ((()))
    AND ( wasp_postmeta.meta_key = ‘_bbp_last_active_time’ )
    AND wasp_posts.post_type = ‘topic’
    AND (wasp_posts.post_status = ‘publish’
    OR wasp_posts.post_status = ‘closed’
    OR wasp_posts.post_status = ‘private’
    OR wasp_posts.post_status = ‘hidden’)
    GROUP BY wasp_posts.ID
    ORDER BY wasp_postmeta.meta_value DESC
    LIMIT 0, 15
    apply_filters(‘template_include’)
    wp-includes/plugin.php:203
    bbp_template_include()
    wp-content/plugins/bbpress/includes/core/sub-actions.php:436
    apply_filters(‘bbp_template_include’)
    wp-includes/plugin.php:203
    bbp_template_include_theme_compat()
    wp-content/plugins/bbpress/includes/core/theme-compat.php:559
    BBP_Shortcodes->display_forum()
    wp-content/plugins/bbpress/includes/common/shortcodes.php:241
    bbp_get_template_part()
    wp-content/plugins/bbpress/includes/core/template-functions.php:43
    bbp_locate_template()
    wp-content/plugins/bbpress/includes/core/template-functions.php:105
    load_template(‘~/wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php’)
    wp-includes/template.php:690
    bbp_has_topics()
    wp-content/plugins/bbpress/includes/topics/template.php:203
    WP_Query->__construct()
    wp-includes/class-wp-query.php:3336
    WP_Query->query()
    wp-includes/class-wp-query.php:3230
    WP_Query->get_posts()
    wp-includes/class-wp-query.php:2821
    Plugin: bbpress 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘))) AND ( wasp_postmeta.meta_key = ‘_bbp_last_active_time’ ) AND wasp_posts.’ at line 1

    #189922
    Robin W
    Moderator

    ok, I’ve done a very basic version in my style pack plugin, which would let you use a shortcode in say a widget.

    bbp style pack

    once installed go to

    dashboard>settings>bbp style pack>shortcodes and see the last one

    In our case, we have only 5 forums and we were thinking it would be nice to show the same information available in the β€œForums” section in the backend of WordPress where it displays a column of the number of subscribers for each forum.

    Pascals tollkit will show the number of sucsbribers in the backend as a column

    bbP Toolkit

    I need to do much more to do what you want for the rest.

    #189916
    brent0r
    Participant

    I’m not sure if this is displayed correctly or not. Appears the li code is dropping outside of the post. It also breaks the template.

    #189908
    Robin W
    Moderator

    Possible? – not without a load of bespoke code – I’m afraid

    #189895
    Robin W
    Moderator

    ok, just posting for anyone searching in future

    THIS IS A WORKING VERSION

    This code allows a standard gravity form lets it be saved as a gravity forum, but on saving also creates a new topic form for a specific forum

    add_action( 'gform_after_submission', 'set_post_content', 10, 2 );
    
    function set_post_content( $entry, $form ) {
    	//set the forum ID that the topic will be saved to
    	$forum_ID = '31086' ;
    	
    	if (!function_exists('bbp_insert_topic')) {
                require_once '/includes/topics/functions.php';
            }
    		
    		//getting post
    		$post_form = get_post($entry['post_id']) ;
    		$title = $post_form->post_title;
    		$content = $post_form->post_content;
    
            // The topic data.
            $topic_data = array(
            'post_parent'       => $forum_ID, // forum ID of Projects  hard coded
            'post_status'       => bbp_get_public_status_id(),   // Subscribed users can see this
            'post_content'      => $content,
            'post_title'        => $title,
            'comment_status'    => 'open',
            'menu_order'        => 0
            );
    
            // The topic meta.
            $topic_meta = array(
            'forum_id'    =>  $forum_ID,
            'reply_count' => 0
    		);
    
            $post_id = bbp_insert_topic($topic_data, $topic_meta);
               
    }
    #189891
    Robin W
    Moderator

    @jkw217 if you can confirm my post above – ie

    can you confirm that

    β€œ5 random reply posts that arent working:
    – all have β€˜0’ for post_parent.
    – all have a postmeta _bbp_topic_id #

    I need to know that you

    a) have EXACTLY the same problem and
    b) have the postmeta as above

    then I can give you some code

    #189885
    Robin W
    Moderator

    can you confirm that

    5 random reply posts that arent working:
    – all have β€˜0’ for post_parent.
    – all have a postmeta _bbp_topic_id #

    and I can give you some code

    #189883
    carriercarrier
    Participant

    Hi again
    I tried the forum-class, but it only added “text” to my forum see http://prntscr.com/i9yywx.
    I have added the abpve CSS code to my theme.

    Its this tag-cloud widget http://prntscr.com/i9z0m6 that I would like to show above the “forum title, if possible.

    Is there something Im missing here?

    #189880
    Robin W
    Moderator

    or you could link to the ‘forum’ class as it is just before the title

    eg

    .forum::before { 
         content: "Read this: ";
    } 
    #189879
    Robin W
    Moderator

    As it’s above the title, then it’s before bbpress kicks in.

    you could try

    if (is_bbpress) {
    echo 'hello' ;
    }

    but may not work

    Or try to add something to your theme page.php or equivalent before the title
    Something like (this won’t work it’s just to start you off!)

    $array = (2925, 3567,4567) ;
    if (in_array ($page_id, $array)) {
    echo 'hello' ;
    }

    where 2925 etc are forum ID’s

    #189863

    In reply to: # Postname concept

    Robin W
    Moderator

    try this

    a.bbp-reply-permalink {
    display : none !important;
    }
    #189862

    In reply to: # Postname concept

    keshabee
    Participant

    sorry but the style code did not work.
    what i want to hide is those things post numbers like #456, #4654

    hope to hear from you soon, Thank you

    #189861

    In reply to: # Postname concept

    Robin W
    Moderator

    put this in your custom css area

    .bbp-reply-permalink {
    display : none ;
    }
    #189857

    In reply to: User Registration

    Robin W
    Moderator

    when they first log on they are allocated the default role that you set in dashboard>settings>forums.

    you can use the bbpress logon widget in a sidebar, use the shortcode [bbp-login] on a page or post, use any wordpress logion plugin or technique, or add a login to your menu using

    https://wordpress.org/plugins/bbp-style-pack/

    #189826

    In reply to: This forum is empty

    Robin W
    Moderator

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/content-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    so change line 26 from

    <?php bbp_single_forum_description(); ?>

    to

    <?php if (bbp_get_single_forum_description != 'This forum is empty.') bbp_single_forum_description(); ?>

    #189823
    Robin W
    Moderator

    This is not as easy as I thought.

    As a widget it can be shortcoded, but the version I currently have does need to do the calculation each time, which on a site with lots of forums and users could make the site slow.

    Whereabouts on the site were you thinking of – eg in sidebar, at top of each forum, within the forum list etc.

    #189822
    Robin W
    Moderator

    hmm…

    not sure what to suggest next.

    I could code a quick ‘close topic’ shortcode, but that would be beyond free – contact me via my website if interested

    http://www.rewweb.co.uk

    #189821

    In reply to: Quicktags

    Robin W
    Moderator

    bis bold
    I is italic
    B-quote puts a wordpress block around the text – exactly what is set by your theme
    Del – is delete quotes
    img is an image
    ul is an unordered list
    ol is an ordered list
    li is a list item
    code is code – stops the display from executing, just displays it
    close tags – closes all open tags

    #189815

    In reply to: Login Widget problem!

    Robin W
    Moderator

    that should work, but the code is not showing up in the browser, so it is not getting loaded.

    #189806

    In reply to: Login Widget problem!

    Robin W
    Moderator

    where are you putting this code ?

    #189796
    Robin W
    Moderator

    don’t know what is happening

    I’ve just looked at the core close topic code, and it just changes post_status to closed, although it goes via a whole bunch of code in a topic hander function which I haven’t been through line by line.

    Suggest you try just changing the status directly in the db, and see if that fixes. You can always change it back !

    #189786

    In reply to: Login Widget problem!

    Robin W
    Moderator

    try

    input[type=”text”] {
    width: 50% !important;
    }
    .bbp-login-form .bbp-password input {
    width: 50% !important;
    }
Viewing 25 results - 4,526 through 4,550 (of 32,522 total)
Skip to toolbar